Sfoglia il codice sorgente

防止多次点击新增

gangyj 3 anni fa
parent
commit
a03bca77dc

+ 1 - 3
src/views/manager/projectinfo/tree.vue

@@ -505,6 +505,7 @@
       width="50%"
       append-to-body
       :close-on-click-modal="false"
+      @closed="saveNodeLoading = false"
     >
       <el-form
         ref="nodeDetail"
@@ -1558,9 +1559,6 @@ export default {
           type: "success",
           message: "新增成功!"
         });
-        this.$nextTick(() => {
-          this.saveNodeLoading = false;
-        })
       })
     },
     updateNode () {

+ 1 - 3
src/views/manager/wbsinfo/edit.vue

@@ -504,6 +504,7 @@
       width="50%"
       append-to-body
       :close-on-click-modal="false"
+      @closed="saveNodeLoading = false"
     >
       <el-form
         ref="nodeDetail"
@@ -1674,9 +1675,6 @@ export default {
           type: "success",
           message: "新增成功!"
         });
-        this.$nextTick(()=>{
-          this.saveNodeLoading = false;
-        })
       })
     },
     updateNode () {