bufix 0705 zentao
This commit is contained in:
@@ -85,7 +85,7 @@ export default {
|
||||
refreshLayoutKey: null,
|
||||
dialogBomCode: "",
|
||||
overlayVisible: false,
|
||||
cachedSearchCondition: {}
|
||||
cachedSearchCondition: {},
|
||||
};
|
||||
},
|
||||
inject: ["urls"],
|
||||
@@ -175,6 +175,7 @@ export default {
|
||||
// payload: { type: string, data: string | number | object }
|
||||
switch (type) {
|
||||
case "delete": {
|
||||
let currenPageListLength = this.dataList.length;
|
||||
// 确认是否删除
|
||||
return this.$confirm(`确定要删除记录 "${data.name ?? data.id}" 吗?`, "提示", {
|
||||
confirmButtonText: "确认",
|
||||
@@ -191,8 +192,9 @@ export default {
|
||||
if (res.code === 0) {
|
||||
this.$message.success("删除成功!");
|
||||
|
||||
this.page = 1;
|
||||
this.size = 10;
|
||||
// this.page = 1;
|
||||
// this.size = 10;
|
||||
if (currenPageListLength == 1) this.page = this.page > 1 ? this.page - 1 : 1;
|
||||
this.getList();
|
||||
} else {
|
||||
this.$message({
|
||||
|
||||
Reference in New Issue
Block a user