From 1cc4eb09ce38f1f0db114b7d3570f92ceaf1d470 Mon Sep 17 00:00:00 2001
From: lyfO_o <764716047@qq.com>
Date: 星期三, 06 四月 2022 08:51:11 +0800
Subject: [PATCH] Merge remote-tracking branch 'remotes/origin/shf' into master

---
 src/views/safetyproduction/checklist.vue |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/views/safetyproduction/checklist.vue b/src/views/safetyproduction/checklist.vue
index 64deeee..9dc6c1b 100644
--- a/src/views/safetyproduction/checklist.vue
+++ b/src/views/safetyproduction/checklist.vue
@@ -435,9 +435,6 @@
       }
     },
     coAdd(val, type) {
-       this.$nextTick(() => {
-        this.$refs["form"].clearValidate();
-      });
       this.titleN = type;
       if (type == "新增") {
         this.dialogVisible = true;
@@ -450,8 +447,11 @@
         this.index = this.form.deductionList.findIndex(
           (item) => item.name == val.name
         );
-        this.formInline = val;
+          this.formInline=JSON.parse(JSON.stringify(val));
       }
+        this.$nextTick(() => {
+            this.$refs["form"].clearValidate();
+        });
     },
     listAdd() {
         this.$refs["form"].validate((valid) => {
@@ -568,4 +568,4 @@
   background-color: #034ea2;
   border: 1px solid #034ea2;
 }
-</style>
\ No newline at end of file
+</style>

--
Gitblit v1.9.2