|
@@ -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
|
|
|
});
|
|
|
}
|
|
|
}
|