部门提交更新

This commit is contained in:
shijing 2023-12-19 17:18:51 +08:00
parent e1563f70bb
commit 39f8a9fda6
1 changed files with 11 additions and 12 deletions

View File

@ -238,21 +238,20 @@ export default {
this.isSaveing = true;
var res;
if (this.type === "add") {
res = this.$API.system.dept.create.req(that.addForm);
this.$API.system.dept.create.req(that.addForm).then(res=>{
this.isSaveing = false;
this.limitedVisible = false;
this.$refs.table.refresh();
}).catch(res=>{this.isSaveing = false;});
} else {
res = this.$API.system.dept.update.req(
this.$API.system.dept.update.req(
that.addForm.id,
that.addForm
);
}
console.log(res);
debugger;
if (res.err_msg) {
this.$message.error(res.err_msg);
} else {
this.isSaveing = false;
this.limitedVisible = false;
this.$refs.table.refresh();
).then(res=>{
this.isSaveing = false;
this.limitedVisible = false;
this.$refs.table.refresh();
}).catch(res=>{this.isSaveing = false;});
}
}
});