From a654f8e58b72b2d4ce16e07f02b464b0fd767797 Mon Sep 17 00:00:00 2001 From: fanluyan <754122931@qq.com> Date: Tue, 11 Jul 2023 09:02:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=88=97=E8=A1=A8=E6=97=B6?= =?UTF-8?q?=E6=95=B0=E5=80=BC=E4=BC=9A=E5=8F=98bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/cameraChannel/components/adddeviceDialog.vue | 3 ++- src/views/devicePhotoSchedule/components/adddeviceDialog.vue | 3 ++- .../photographicDevice/components/addPhotoDialog.vue | 3 ++- .../userEquipment/lineInformation/components/addLineDialog.vue | 3 ++- .../lineInformation/components/addTowerDialog.vue | 3 ++- 5 files changed, 10 insertions(+), 5 deletions(-) diff --git a/src/views/cameraChannel/components/adddeviceDialog.vue b/src/views/cameraChannel/components/adddeviceDialog.vue index ae099b2..3261032 100644 --- a/src/views/cameraChannel/components/adddeviceDialog.vue +++ b/src/views/cameraChannel/components/adddeviceDialog.vue @@ -79,7 +79,8 @@ export default { if (val == null) { return (this.formdata = {}); } - this.formdata = val; + //this.formdata = val; + this.formdata = JSON.parse(JSON.stringify(val)); }, // 保存确定操作 submitForm() { diff --git a/src/views/devicePhotoSchedule/components/adddeviceDialog.vue b/src/views/devicePhotoSchedule/components/adddeviceDialog.vue index 557d253..796926d 100644 --- a/src/views/devicePhotoSchedule/components/adddeviceDialog.vue +++ b/src/views/devicePhotoSchedule/components/adddeviceDialog.vue @@ -99,7 +99,8 @@ export default { remark: "", }); } - this.ruleForm = val; + //this.ruleForm = val; + this.ruleForm = JSON.parse(JSON.stringify(val)); this.ruleForm.list.forEach((val) => { this.$set(val, "time", [val.startTime, val.endTime]); }); diff --git a/src/views/management/monitoringEquipment/photographicDevice/components/addPhotoDialog.vue b/src/views/management/monitoringEquipment/photographicDevice/components/addPhotoDialog.vue index 6ab68ec..5873a44 100644 --- a/src/views/management/monitoringEquipment/photographicDevice/components/addPhotoDialog.vue +++ b/src/views/management/monitoringEquipment/photographicDevice/components/addPhotoDialog.vue @@ -232,7 +232,8 @@ export default { ], }); } - this.formInfo = val; + //this.formInfo = val; + this.formInfo = JSON.parse(JSON.stringify(val)); }, //通道号值改变 changeHandle() { diff --git a/src/views/management/userEquipment/lineInformation/components/addLineDialog.vue b/src/views/management/userEquipment/lineInformation/components/addLineDialog.vue index 53b170b..2220979 100644 --- a/src/views/management/userEquipment/lineInformation/components/addLineDialog.vue +++ b/src/views/management/userEquipment/lineInformation/components/addLineDialog.vue @@ -82,7 +82,8 @@ export default { if (val == null) { return (this.formdata = {}); } - this.formdata = val; + //this.formdata = val; + this.formdata = JSON.parse(JSON.stringify(val)); //this.$set(this.formdata); }, // 保存确定操作 diff --git a/src/views/management/userEquipment/lineInformation/components/addTowerDialog.vue b/src/views/management/userEquipment/lineInformation/components/addTowerDialog.vue index fab95aa..e193d72 100644 --- a/src/views/management/userEquipment/lineInformation/components/addTowerDialog.vue +++ b/src/views/management/userEquipment/lineInformation/components/addTowerDialog.vue @@ -59,7 +59,8 @@ export default { methods: { //判断 getdataform(val) { - this.formdata = val; + //this.formdata = val; + this.formdata = JSON.parse(JSON.stringify(val)); this.formdata.lineId = val.name; }, // 保存确定操作