Commit b903e04d by Cat

zd 教师电子档案

parent 0c3b67fb
...@@ -406,6 +406,8 @@ export default { ...@@ -406,6 +406,8 @@ export default {
}, },
//弹窗确定按钮 //弹窗确定按钮
confirmDialog() { confirmDialog() {
// this.loading = true;
this.$modal.loading("正在加载数据,请稍等...");
this.$refs["form"].validate((valid) => { this.$refs["form"].validate((valid) => {
if (valid) { if (valid) {
if (this.form.id != null) { if (this.form.id != null) {
...@@ -421,11 +423,14 @@ export default { ...@@ -421,11 +423,14 @@ export default {
// 新增 // 新增
addTeacherNotice(this.form) addTeacherNotice(this.form)
.then((response) => { .then((response) => {
this.$modal.loading("正在加载数据,请稍等...");
this.$message.success("新增成功");
this.dialogVisible = false; this.dialogVisible = false;
this.getList(); this.getList();
}) })
.then((response) => {
this.loading = false;
this.$message.success("新增成功");
this.$modal.closeLoading();
})
.catch((err) => {}); .catch((err) => {});
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment