From a041827095074ee0528c204bd5bcd345d80007f8 Mon Sep 17 00:00:00 2001 From: lukeyan <1727408482@qq.com> Date: Fri, 2 Jun 2023 10:38:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/equipmentTable.vue | 2 +- .../components/perceptionForm.vue | 16 ++++++++-------- .../components/videoForm.vue | 4 ++-- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/views/systemManagement/correlationEquipment2/components/equipmentTable.vue b/src/views/systemManagement/correlationEquipment2/components/equipmentTable.vue index cc5fbce..d890e1d 100644 --- a/src/views/systemManagement/correlationEquipment2/components/equipmentTable.vue +++ b/src/views/systemManagement/correlationEquipment2/components/equipmentTable.vue @@ -354,7 +354,7 @@ export default { open_perception_dialog(num, row) { if (num === "1") { // 新增智能感知 - this.$refs.perceptionForm.open(); + this.$refs.perceptionForm.open(num); } else if (num === "2") { // 删除智能设备 if (this.handle_perception.length != 1) { diff --git a/src/views/systemManagement/correlationEquipment2/components/perceptionForm.vue b/src/views/systemManagement/correlationEquipment2/components/perceptionForm.vue index 3d1d015..4431552 100644 --- a/src/views/systemManagement/correlationEquipment2/components/perceptionForm.vue +++ b/src/views/systemManagement/correlationEquipment2/components/perceptionForm.vue @@ -342,10 +342,10 @@ export default { companyName: "", deviceName: "", deviceIp: "", - deviceVideoParentType: "", - deviceVideoParentTypeCn: "", - deviceVideoSubType: "", - deviceVideoSubTypeCn: "", + devicePerceptionParentType: "", + devicePerceptionParentTypeCn: "", + devicePerceptionSubType: "", + devicePerceptionSubTypeCn: "", isDoorwayVideoCn: "", isDoorwayVideo: "", directionCn: "", @@ -411,13 +411,13 @@ export default { }, // 选中大类下拉 parent_change(val) { - this.form.deviceVideoParentType = this.form_list.parent_type.find( + this.form.devicePerceptionParentType = this.form_list.parent_type.find( (item) => item.dictLabel === val ).dictValue; }, // 选中小类下拉 son_change(val) { - this.form.deviceVideoSubType = this.form_list.son_type.find( + this.form.devicePerceptionSubType = this.form_list.son_type.find( (item) => item.dictLabel === val ).dictValue; }, @@ -447,7 +447,7 @@ export default { addPerceptionList(this.form).then((res) => { this.visible = false; console.log(res); - this.$message.success("新建数据成功"); + this.$message.success("新建成功"); // 新建数据成功后,表格刷新 this.$emit("refresh_perception"); }); @@ -455,7 +455,7 @@ export default { changePerceptionList(this.form).then((res) => { this.visible = false; console.log(res); - this.$message.success("修改数据成功"); + this.$message.success("修改成功"); this.$emit("refresh_perception"); }); } diff --git a/src/views/systemManagement/correlationEquipment2/components/videoForm.vue b/src/views/systemManagement/correlationEquipment2/components/videoForm.vue index 4ecfc2b..39cc1b7 100644 --- a/src/views/systemManagement/correlationEquipment2/components/videoForm.vue +++ b/src/views/systemManagement/correlationEquipment2/components/videoForm.vue @@ -383,7 +383,7 @@ export default { addVideoList(this.form).then((res) => { this.visible = false; console.log(res); - this.$message.success("新建数据成功"); + this.$message.success("新建成功"); // 新建数据成功后,表格刷新 this.$emit("refresh_video"); }); @@ -391,7 +391,7 @@ export default { changeVideoList(this.form).then((res) => { this.visible = false; console.log(res); - this.$message.success("修改数据成功"); + this.$message.success("修改成功"); this.$emit("refresh_video"); }); } -- 2.36.3