From d7104f33fd6335d033d287d595749fc319b0bafa Mon Sep 17 00:00:00 2001 From: miao <2514145421@qq.com> Date: Thu, 9 Mar 2023 15:46:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=A4=9A=E6=AC=A1=E7=82=B9?= =?UTF-8?q?=E5=87=BB=E6=81=A2=E5=A4=8D=E6=98=BE=E7=A4=BA=E5=99=A8=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E5=85=A8=E9=83=A8=E5=87=BA=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ControlPanelDialog.vue | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/components/ControlPanelDialog.vue b/src/components/ControlPanelDialog.vue index f7dee4e..c4861e5 100644 --- a/src/components/ControlPanelDialog.vue +++ b/src/components/ControlPanelDialog.vue @@ -998,7 +998,13 @@ export default defineComponent({ } }; const close_magic_switch = () => { + let client = GlobalData.getInstance().getCurrentClient(); magic_switch.value = false; + if(client){ + client.setMagicWallList( + JSON.parse(JSON.stringify(test_monitor_list.value)) + ); + } upload_magic_switch(); }; const radians = (item: test_monitor) => { @@ -1369,7 +1375,12 @@ export default defineComponent({ multiple.value = false; loading.value = false; if (list_magic) { - test_monitor_list.value = JSON.parse(list_magic); + JSON.parse(list_magic).forEach((element:any,index:number) => { + if(test_monitor_list.value[index].uuid==element.uuid){ + test_monitor_list.value[index].cmw=element.cmw + test_monitor_list.value[index].cmh=element.cmh + } + });; } realtime_upload(last_wall.value, last_percenter.value, 2); }; @@ -1505,9 +1516,6 @@ export default defineComponent({ }); } if (a.length == 0) { - test_monitor_list.value.forEach((ele) => { - ele.isHide = false; - }); test_monitor_wall.value = []; } };