From 06bc1fdbe81da9a723ad9ee1d3d6dd74025b9e18 Mon Sep 17 00:00:00 2001
From: Your Name <123456>
Date: 星期五, 08 四月 2022 10:57:36 +0800
Subject: [PATCH] 'lct'

---
 src/views/safetyproduction/feature.vue |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/src/views/safetyproduction/feature.vue b/src/views/safetyproduction/feature.vue
index 4872385..eee259b 100644
--- a/src/views/safetyproduction/feature.vue
+++ b/src/views/safetyproduction/feature.vue
@@ -74,6 +74,7 @@
     <el-dialog
       :title="title"
       :visible.sync="dialogVisible"
+      :close-on-click-modal="false"
       width="40%"
     >
       <el-form ref="form" :rules="rules" :model="form" label-width="80px">
@@ -109,6 +110,7 @@
                 v-model="form.parentId"
                 placeholder="请选择"
                 style="width: 100%"
+                :disabled="title=='编辑'?true:false"
               >
                 <el-option
                   v-for="item in parent"
@@ -208,7 +210,6 @@
   methods: {
     async elementManagementL() {
       var res = await elementManagementList(this.listQuery);
-      console.log(res);
       if (res.data.code == 200) {
         this.list = res.data.result.records;
          this.recordTotal = res.data.result.total
@@ -222,7 +223,6 @@
         this.$refs["form"].clearValidate();
       });
        getParentElement().then(res=>{
-          // console.log('父类:',res)
           this.parent=res.data.result
         })
       if (type == "新增") {
@@ -235,7 +235,7 @@
         };
       } else {
         this.title = "编辑";
-        this.form = value;
+        this.form=JSON.parse(JSON.stringify(value));
       }
     },
     AddelementManagement() {
@@ -318,6 +318,11 @@
                      type: "success",
                      duration: 2000,
                    });
+                 }else {
+                     this.$message({
+                         type: "warning",
+                         message: res.data.message,
+                     });
                  }
                });
             })

--
Gitblit v1.9.2