Compare commits

..

No commits in common. "8794e6a4b411f4e6c91399ebe60f915063042e9e" and "6a64f944ffe0e179dbe185a6e864355eda2186e0" have entirely different histories.

1 changed files with 10 additions and 20 deletions

View File

@ -77,7 +77,6 @@
<scTable
ref="table"
:apiObj="apiObj"
row-key="id"
stripe
remoteSort
remoteFilter
@ -488,29 +487,20 @@ export default {
let res;
if (this.type === "add") {
try {
res = await this.$API.system.user.create.req(this.addForm);
this.isSaveing = false;
this.limitedVisible = false;
this.$refs.table.refresh()
this.$message.success("操作成功");
}catch (err) {
this.isSaveing = false;
}
res = await this.$API.system.user.create.req(this.addForm);
} else if (this.type === "edit") {
try {
res = await this.$API.system.user.update.req(
res = await this.$API.system.user.update.req(
this.addForm.id,
this.addForm
);
this.isSaveing = false;
this.limitedVisible = false;
this.$refs.table.refresh()
this.$message.success("操作成功");
}catch(e) {
this.isSaveing = false;
}
}
this.isSaveing = false;
if (res.err_msg) {
this.$message(res.err_msg);
} else {
this.limitedVisible = false;
this.$refs.table.refresh()
this.$message.success("操作成功");
}
} else {
return false;