部门提交更新
This commit is contained in:
parent
e1563f70bb
commit
39f8a9fda6
|
@ -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;});
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue