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 = []; } };