This commit is contained in:
不做码农
2021-11-24 10:27:16 +08:00
3 changed files with 52 additions and 1 deletions

View File

@@ -189,12 +189,20 @@ export default {
if (this.form.{PrimaryKey} != undefined || this.title === '修改数据') {
update{ModelTypeName}(this.form).then((res) => {
if (!res.data) {
this.msgError("修改失败");
return;
}
this.msgSuccess("修改成功");
this.open = false;
this.getList();
});
} else {
add{ModelTypeName}(this.form).then((res) => {
if (!res.data) {
this.msgError("新增失败");
return;
}
this.msgSuccess("新增成功");
this.open = false;
this.getList();