Parcourir la source

防止多次点击新增

gangyj il y a 3 ans
Parent
commit
a03bca77dc
2 fichiers modifiés avec 2 ajouts et 6 suppressions
  1. 1 3
      src/views/manager/projectinfo/tree.vue
  2. 1 3
      src/views/manager/wbsinfo/edit.vue

+ 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 () {