From 004f47fd155ebfb45d16def623c4ecb7fa0361e7 Mon Sep 17 00:00:00 2001 From: Kxc0822a <kxc000822> Date: 星期四, 31 三月 2022 17:43:11 +0800 Subject: [PATCH] 重大 --- src/views/majorHazardSourceMonitoring/equipmentAlarm/index.vue | 6 +++--- src/views/majorHazardSourceMonitoring/productionEquipment/index.vue | 2 +- src/views/safetyproduction/feature.vue | 2 +- src/views/safetyproduction/reviewXG.vue | 5 +++-- src/views/safetyproduction/review.vue | 5 +++-- src/views/majorHazardSourceMonitoring/instrumentData/index.vue | 4 +--- src/views/safetyproduction/checklist.vue | 4 ++-- 7 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/views/majorHazardSourceMonitoring/equipmentAlarm/index.vue b/src/views/majorHazardSourceMonitoring/equipmentAlarm/index.vue index 97e7aad..1053f1d 100644 --- a/src/views/majorHazardSourceMonitoring/equipmentAlarm/index.vue +++ b/src/views/majorHazardSourceMonitoring/equipmentAlarm/index.vue @@ -199,7 +199,7 @@ alarmInfo: { required: true, message: "请输入报警信息", trigger: "change"}, }, equipmentName:[], - unitIdOptions:[{label:"已处理",value:0},{label:"未处理",value:1}], + unitIdOptions:[{label:"未处理",value:0},{label:"已处理",value:1}], }; }, created() { @@ -232,14 +232,14 @@ this.title = "新增"; this.form = { equipmentId: "", - status:'', + status:0, remark:"", alarmTime:"", alarmInfo:"" }; } else { this.title = "编辑"; - this.form = value; + this.form=JSON.parse(JSON.stringify(value)); } }, AddelementManagement() { diff --git a/src/views/majorHazardSourceMonitoring/instrumentData/index.vue b/src/views/majorHazardSourceMonitoring/instrumentData/index.vue index 1d70796..6620dec 100644 --- a/src/views/majorHazardSourceMonitoring/instrumentData/index.vue +++ b/src/views/majorHazardSourceMonitoring/instrumentData/index.vue @@ -437,9 +437,7 @@ }; } else { this.title = "编辑"; - this.form = value; - console.log(123,this.form) - console.log(222,this.equipmentName) + this.form=JSON.parse(JSON.stringify(value)); } }, AddelementManagement() { diff --git a/src/views/majorHazardSourceMonitoring/productionEquipment/index.vue b/src/views/majorHazardSourceMonitoring/productionEquipment/index.vue index a2d0b13..5da8ba6 100644 --- a/src/views/majorHazardSourceMonitoring/productionEquipment/index.vue +++ b/src/views/majorHazardSourceMonitoring/productionEquipment/index.vue @@ -239,7 +239,7 @@ }; } else { this.title = "编辑"; - this.form = value; + this.form=JSON.parse(JSON.stringify(value)); } }, AddelementManagement() { diff --git a/src/views/safetyproduction/checklist.vue b/src/views/safetyproduction/checklist.vue index 64deeee..91e3c2b 100644 --- a/src/views/safetyproduction/checklist.vue +++ b/src/views/safetyproduction/checklist.vue @@ -450,7 +450,7 @@ this.index = this.form.deductionList.findIndex( (item) => item.name == val.name ); - this.formInline = val; + this.formInline=JSON.parse(JSON.stringify(val)); } }, listAdd() { @@ -568,4 +568,4 @@ background-color: #034ea2; border: 1px solid #034ea2; } -</style> \ No newline at end of file +</style> diff --git a/src/views/safetyproduction/feature.vue b/src/views/safetyproduction/feature.vue index 06d47a3..86ed180 100644 --- a/src/views/safetyproduction/feature.vue +++ b/src/views/safetyproduction/feature.vue @@ -235,7 +235,7 @@ }; } else { this.title = "编辑"; - this.form = value; + this.form=JSON.parse(JSON.stringify(value)); } }, AddelementManagement() { diff --git a/src/views/safetyproduction/review.vue b/src/views/safetyproduction/review.vue index 80d9bdc..e450a9c 100644 --- a/src/views/safetyproduction/review.vue +++ b/src/views/safetyproduction/review.vue @@ -285,7 +285,8 @@ }, handleClick(data) { this.dialogVisible = true; - this.form = data; + // this.form = data; + this.form=JSON.parse(JSON.stringify(data)); }, lost() { this.dialogVisible = false; @@ -325,4 +326,4 @@ background-color: #034ea2; border: 1px solid #034ea2; } -</style> \ No newline at end of file +</style> diff --git a/src/views/safetyproduction/reviewXG.vue b/src/views/safetyproduction/reviewXG.vue index 572ea86..483b110 100644 --- a/src/views/safetyproduction/reviewXG.vue +++ b/src/views/safetyproduction/reviewXG.vue @@ -226,7 +226,8 @@ this.index = this.form.deductionList.findIndex( (item) => item.name == val.name ); - this.formInline = val; + // this.formInline = val; + this.formInline=JSON.parse(JSON.stringify(val)); } }, listAdd() { @@ -315,4 +316,4 @@ background-color: #034ea2; border: 1px solid #034ea2; } -</style> \ No newline at end of file +</style> -- Gitblit v1.9.2