From 8dc1e8e11137beb5aad4852065d0c36c0d11b230 Mon Sep 17 00:00:00 2001
From: shj <1790240199@qq.com>
Date: 星期三, 06 四月 2022 09:32:20 +0800
Subject: [PATCH] 背景色

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

diff --git a/src/views/safetyproduction/checklist.vue b/src/views/safetyproduction/checklist.vue
index 6cf3e28..ac82020 100644
--- a/src/views/safetyproduction/checklist.vue
+++ b/src/views/safetyproduction/checklist.vue
@@ -357,15 +357,12 @@
       },
     beforTree() {
       safetyInspectionItemTree().then((res) => {
-        console.log(res);
         this.tree = res.data.result;
       });
     },
     safetyInspectionItemL(data) {
-      // console.log(data)
       this.listQuery.filter.elementB = data.value;
       safetyInspectionItemList(this.listQuery).then((res) => {
-        // console.log(res.data.result.records);
         this.list = res.data.result.records;
       });
     },
@@ -386,7 +383,6 @@
       } else {
         this.disabled = true;
         var i = this.list.findIndex((item) => item.id == id);
-        console.log(id);
         this.form = this.list[i];
       }
     },
@@ -439,9 +435,6 @@
       }
     },
     coAdd(val, type) {
-       this.$nextTick(() => {
-        this.$refs["form"].clearValidate();
-      });
       this.titleN = type;
       if (type == "新增") {
         this.dialogVisible = true;
@@ -454,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) => {
@@ -513,7 +509,7 @@
 }
 .box-left {
   width: 20%;
-  min-height: 800px;
+  min-height: 850px;
   background-color: white;
   border-radius: 5px;
 }
@@ -524,11 +520,15 @@
   width: 79%;
   background-color: rgb(223, 229, 235);
   border-radius: 5px;
+  height: 850px;
+  overflow-y:overlay;
 }
 .box-rights {
   width: 79%;
   background-color: #fff;
   border-radius: 5px;
+   height: 850px;
+  overflow-y:overlay;
 }
 .box-rightXQ {
   margin-bottom: 10px;
@@ -572,4 +572,4 @@
   background-color: #034ea2;
   border: 1px solid #034ea2;
 }
-</style>
\ No newline at end of file
+</style>

--
Gitblit v1.9.2