@@ -138,7 +138,9 @@ import { listDemo, getDemo, delDemo, addDemo, updateDemo } from '@/api/demo/demo
|
||||
import { DemoVO, DemoQuery, DemoForm } from '@/api/demo/demo/types';
|
||||
import { log } from 'node:console';
|
||||
import Hls from 'hls.js';
|
||||
import { useVideosStore } from '@/store/modules/video';
|
||||
|
||||
const videosStore = useVideosStore();
|
||||
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
|
||||
|
||||
const demoList = ref([]);
|
||||
@@ -163,7 +165,7 @@ const dialog1 = reactive<DialogOption>({
|
||||
title: ''
|
||||
});
|
||||
|
||||
const monitorVideoUrl = 'http://192.168.0.214:8088/5a0db047943df198aff98b650ac9e001.mp4';
|
||||
const monitorVideoUrl = ref('');
|
||||
const monitorVideoRef = ref<HTMLVideoElement>();
|
||||
|
||||
type MonitorPoint = { x: number; y: number };
|
||||
@@ -318,6 +320,7 @@ const resetMonitorDraw = () => {
|
||||
monitorRectPx.value = null;
|
||||
};
|
||||
const handleSee = async (row?: any) => {
|
||||
console.log('1111111111111111', row);
|
||||
reset();
|
||||
resetMonitorDraw();
|
||||
seeSee.value = row?.isDrawArea === 1 ? 1 : 0;
|
||||
@@ -326,6 +329,9 @@ const handleSee = async (row?: any) => {
|
||||
Object.assign(form.value, res.data);
|
||||
dialog1.visible = true;
|
||||
dialog1.title = '修改设备';
|
||||
videosStore.getVideos(row.id);
|
||||
console.log('222222222222:', videosStore.hisUrl);
|
||||
monitorVideoUrl.value = videosStore.hisUrl;
|
||||
};
|
||||
|
||||
const handleMonitorDialogClose = (done: () => void) => {
|
||||
|
||||
Reference in New Issue
Block a user