From 384e366eea1cb0029a62ab0b960bcc880484b4c4 Mon Sep 17 00:00:00 2001 From: DIAMOND <276397553@qq.com> Date: Thu, 5 Jan 2023 16:30:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E7=AA=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components.d.ts | 1 + src/views/page/cameraCenter.vue | 26 +++- src/views/page/cameraWindow.vue | 232 +++++++++++++++++++++++++++++++- 3 files changed, 253 insertions(+), 6 deletions(-) diff --git a/components.d.ts b/components.d.ts index 94eb12f..f0d1243 100644 --- a/components.d.ts +++ b/components.d.ts @@ -17,6 +17,7 @@ declare module '@vue/runtime-core' { AMenu: typeof import('ant-design-vue/es')['Menu'] AMenuItem: typeof import('ant-design-vue/es')['MenuItem'] AModal: typeof import('ant-design-vue/es')['Modal'] + APopconfirm: typeof import('ant-design-vue/es')['Popconfirm'] ARow: typeof import('ant-design-vue/es')['Row'] ASelect: typeof import('ant-design-vue/es')['Select'] ATree: typeof import('ant-design-vue/es')['Tree'] diff --git a/src/views/page/cameraCenter.vue b/src/views/page/cameraCenter.vue index d285788..db90429 100644 --- a/src/views/page/cameraCenter.vue +++ b/src/views/page/cameraCenter.vue @@ -34,6 +34,18 @@ + + + +
@@ -56,7 +68,7 @@
- + @@ -189,8 +201,15 @@ function deleteLabel(id: number) { //标签点击事件 function itemClick(item:any){ // console.log("点击",item); - popup("监控画面", [h(cameraWindow, { windowData: item })], "cameraWindow"); + // popup("监控画面", [h(cameraWindow, { windowData: item })], "cameraWindow"); + //打开小窗 + item.windowVisible = true } +//小窗关闭 +function windowCancel(item: any){ + item.windowVisible = false +} + function loadVideoPlayer() { let elmId = 'videoPlayer'; @@ -296,7 +315,8 @@ function mouseDownVideo(e: MouseEvent) { isDelete: false, inFlag: true, name: name, - groupName: name + groupName: name, + windowVisible: false //小窗开关状态 } labelList.value.push(obj) isActiveChoose.value = false diff --git a/src/views/page/cameraWindow.vue b/src/views/page/cameraWindow.vue index 8562716..bc1c8e0 100644 --- a/src/views/page/cameraWindow.vue +++ b/src/views/page/cameraWindow.vue @@ -1,10 +1,236 @@ - \ No newline at end of file +