Explorar o código

feat:用户档案新增提交注释代码

“wangyihan” hai 1 ano
pai
achega
aa67c8b7a5
Modificáronse 1 ficheiros con 8 adicións e 8 borrados
  1. 8 8
      src/views/system/profile/index.vue

+ 8 - 8
src/views/system/profile/index.vue

@@ -1359,10 +1359,10 @@ export default {
     },
     /** 提交按钮 */
     submitForm() {
-      if (this.sub_flag) {
-        return
-      }
-      this.sub_flag = true
+      // if (this.sub_flag) {
+      //   return
+      // }
+      // this.sub_flag = true
       this.$refs["form"].validate(valid => {
         this.form.temergentPeopleList = this.tEmergentPeopleList;
         if (valid) {
@@ -1370,19 +1370,19 @@ export default {
             updateProfile(this.form).then(response => {
               this.$modal.msgSuccess("修改成功");
               this.open = false;
-              this.sub_flag = false
+              // this.sub_flag = false
               this.getList();
             }, err => {
-              this.sub_flag = false
+              // this.sub_flag = false
             });
           } else {
             addProfile(this.form).then(response => {
               this.$modal.msgSuccess("新增成功");
               this.open = false;
-              this.sub_flag = false
+              // this.sub_flag = false
               this.getList();
             }, err => {
-              this.sub_flag = false
+              // this.sub_flag = false
             });
           }
         }