This commit is contained in:
lb
2023-02-20 11:25:32 +08:00
parent 20806b355d
commit 7d0c66ad73
6 changed files with 287 additions and 4 deletions

View File

@@ -101,7 +101,7 @@ export default {
size: 20, // 默认20
dataList: [],
tableLoading: false,
refreshLayoutKey: null
refreshLayoutKey: null,
};
},
inject: ["urls"],
@@ -213,6 +213,12 @@ export default {
this.$http.put(this.urls.base, queryCondition).then(({ data: res }) => {
if (res.code === 0) {
// do nothing
} else {
this.$message({
message: `${res.code}: ${res.msg}`,
type: 'error',
duration: 1500
})
}
});
break;
@@ -230,7 +236,16 @@ export default {
this.openDialog();
break;
case "查询": {
this.getList(payload);
const params = {};
this.listQueryExtra?.map(cond => {
if (!!payload[cond]) {
params[cond] = payload[cond]
} else {
params[cond] = ''
}
});
console.log("查询", params);
this.getList(params);
break;
}
}