This commit is contained in:
77
2024-04-23 02:17:02 +08:00
parent 558feb30f4
commit 1bf96a502b
2 changed files with 23 additions and 18 deletions

View File

@@ -344,14 +344,19 @@ export default {
})
},
submitForm(){
addUser(this.form).then(data => {
this.$modal.msgSuccess("新增用户成功");
this.buttonLoading = false;
this.open = false
this.$emit('refreshDataList')
}).finally(() => {
this.buttonLoading = false;
});
this.$refs['form'].validate((valid) => {
if (valid) {
this.buttonLoading = true;
addUser(this.form).then(data => {
this.$modal.msgSuccess("新增用户成功");
this.buttonLoading = false;
this.open = false
this.$emit('refreshDataList')
}).finally(() => {
this.buttonLoading = false;
});
}
})
}
}
};