From 549b06f756f39f29ab8e8f1376c604f12e28aece Mon Sep 17 00:00:00 2001 From: miao <2514145421@qq.com> Date: Wed, 8 Mar 2023 14:14:58 +0800 Subject: [PATCH] =?UTF-8?q?=E9=AD=94=E5=A2=99=EF=BC=9A=E5=8A=A0=E5=BC=80?= =?UTF-8?q?=E7=AA=97=E9=81=BF=E5=85=8D=E6=98=BE=E7=A4=BA=E4=B8=BA=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ControlPanelDialog.vue | 28 +++++++++++++++++---------- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/src/components/ControlPanelDialog.vue b/src/components/ControlPanelDialog.vue index 6bf1149..49dcb5f 100644 --- a/src/components/ControlPanelDialog.vue +++ b/src/components/ControlPanelDialog.vue @@ -1292,9 +1292,11 @@ export default defineComponent({ ((item.currenty + item.h / 2) / wall_dom?.offsetHeight) * 2160 ); } - test_monitor_wall.value=ordination(JSON.parse(JSON.stringify(test_monitor_wall.value))) + test_monitor_wall.value = ordination( + JSON.parse(JSON.stringify(test_monitor_wall.value)) + ); realtime_upload(); - item.active=true + item.active = true; }; const exceedrange = (item: test_monitor) => { const wall_dom = wall.value; @@ -1482,7 +1484,7 @@ export default defineComponent({ ); item.angle = element.angle; item.isShow = true; - item.active=false; + item.active = false; test_monitor_wall.value.push(JSON.parse(JSON.stringify(item))); sort_index.value.push(test_monitor_list.value[element.index].uuid); @@ -1493,11 +1495,11 @@ export default defineComponent({ }); }); } - if(a.length==0){ + if (a.length == 0) { test_monitor_list.value.forEach((ele) => { ele.isHide = false; - }) - test_monitor_wall.value=[] + }); + test_monitor_wall.value = []; } }; const sub_x = () => { @@ -1719,7 +1721,7 @@ export default defineComponent({ sort_index.value = []; old_sort_index = []; last_wall.value = []; - last_percenter.value=1 + last_percenter.value = 1; let client = GlobalData.getInstance().getCurrentClient(); if (client) { const settings = await GlobalData.getInstance() @@ -1774,7 +1776,7 @@ export default defineComponent({ }); $store.commit("setShowMonitorList", []); loading.value = false; - } else if (a && wall_dom) { + } else if (a && wall_dom) { a.forEach((element) => { let item: test_monitor = new test_monitor(0, "0", 0, 0, 0); extend(true, item, test_monitor_list.value[element.index]); @@ -1798,7 +1800,7 @@ export default defineComponent({ ); item.angle = element.angle; item.isShow = true; - item.active=false + item.active = false; test_monitor_wall.value.push(JSON.parse(JSON.stringify(item))); last_wall.value.push(JSON.parse(JSON.stringify(item))); sort_index.value.push( @@ -1815,6 +1817,13 @@ export default defineComponent({ current_index.value = -1; } } + if (a.length == 0) { + test_monitor_list.value.forEach((ele) => { + ele.isHide = false; + }); + sort_index.value = []; + test_monitor_wall.value = []; + } } } }, @@ -2017,7 +2026,6 @@ export default defineComponent({ } } } - }, onDragEnter(e: DragEvent, index: string) {