部门提交更新
This commit is contained in:
parent
e1563f70bb
commit
39f8a9fda6
|
|
@ -238,21 +238,20 @@ export default {
|
||||||
this.isSaveing = true;
|
this.isSaveing = true;
|
||||||
var res;
|
var res;
|
||||||
if (this.type === "add") {
|
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 {
|
} else {
|
||||||
res = this.$API.system.dept.update.req(
|
this.$API.system.dept.update.req(
|
||||||
that.addForm.id,
|
that.addForm.id,
|
||||||
that.addForm
|
that.addForm
|
||||||
);
|
).then(res=>{
|
||||||
}
|
this.isSaveing = false;
|
||||||
console.log(res);
|
this.limitedVisible = false;
|
||||||
debugger;
|
this.$refs.table.refresh();
|
||||||
if (res.err_msg) {
|
}).catch(res=>{this.isSaveing = false;});
|
||||||
this.$message.error(res.err_msg);
|
|
||||||
} else {
|
|
||||||
this.isSaveing = false;
|
|
||||||
this.limitedVisible = false;
|
|
||||||
this.$refs.table.refresh();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue