update BaseSearchForm
This commit is contained in:
@@ -103,23 +103,22 @@ export default {
|
||||
},
|
||||
|
||||
/** 获取 列表数据 */
|
||||
getList(listQuery = null) {
|
||||
getList(queryParams) {
|
||||
this.tableLoading = true;
|
||||
if (!listQuery) {
|
||||
listQuery = {};
|
||||
listQuery.page = this.page;
|
||||
listQuery.size = this.size;
|
||||
}
|
||||
|
||||
const params = {
|
||||
page: listQuery.page,
|
||||
limit: listQuery.size,
|
||||
};
|
||||
if (this.listQueryExtra.length) {
|
||||
const params = queryParams
|
||||
? { ...queryParams, page: this.page, limit: this.size }
|
||||
: {
|
||||
page: this.page,
|
||||
limit: this.size,
|
||||
};
|
||||
|
||||
if (!queryParams && this.listQueryExtra.length) {
|
||||
this.listQueryExtra.map((name) => {
|
||||
params[name] = "";
|
||||
});
|
||||
}
|
||||
|
||||
this.$http
|
||||
.get(this.urls.page, {
|
||||
params,
|
||||
@@ -207,8 +206,10 @@ export default {
|
||||
case "新增":
|
||||
this.openDialog();
|
||||
break;
|
||||
case "查询":
|
||||
case "查询": {
|
||||
this.getList(payload);
|
||||
break;
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user