Compare commits
No commits in common. "8794e6a4b411f4e6c91399ebe60f915063042e9e" and "6a64f944ffe0e179dbe185a6e864355eda2186e0" have entirely different histories.
8794e6a4b4
...
6a64f944ff
|
|
@ -77,7 +77,6 @@
|
||||||
<scTable
|
<scTable
|
||||||
ref="table"
|
ref="table"
|
||||||
:apiObj="apiObj"
|
:apiObj="apiObj"
|
||||||
row-key="id"
|
|
||||||
stripe
|
stripe
|
||||||
remoteSort
|
remoteSort
|
||||||
remoteFilter
|
remoteFilter
|
||||||
|
|
@ -488,29 +487,20 @@ export default {
|
||||||
let res;
|
let res;
|
||||||
|
|
||||||
if (this.type === "add") {
|
if (this.type === "add") {
|
||||||
try {
|
res = await this.$API.system.user.create.req(this.addForm);
|
||||||
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;
|
|
||||||
}
|
|
||||||
} else if (this.type === "edit") {
|
} 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.id,
|
||||||
this.addForm
|
this.addForm
|
||||||
);
|
);
|
||||||
this.isSaveing = false;
|
}
|
||||||
this.limitedVisible = false;
|
this.isSaveing = false;
|
||||||
this.$refs.table.refresh()
|
if (res.err_msg) {
|
||||||
this.$message.success("操作成功");
|
this.$message(res.err_msg);
|
||||||
}catch(e) {
|
} else {
|
||||||
this.isSaveing = false;
|
this.limitedVisible = false;
|
||||||
}
|
this.$refs.table.refresh()
|
||||||
|
this.$message.success("操作成功");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue