Commit abc30eaaf86546f1b9c5ee45843905dc68e0f93c
1 parent
6f37371a
Exists in
master
and in
1 other branch
Scheme支持搜索时加入固定参数
Showing
1 changed file
with
2 additions
and
0 deletions
Show diff stats
packages/scheme/index.vue
| @@ -294,11 +294,13 @@ export default { | @@ -294,11 +294,13 @@ export default { | ||
| 294 | // 查询数据 | 294 | // 查询数据 |
| 295 | async handleSearch(value) { | 295 | async handleSearch(value) { |
| 296 | const { currPageAlias = 'currPage', pageSizeAlias = 'pageSize' } = this.option || {}; | 296 | const { currPageAlias = 'currPage', pageSizeAlias = 'pageSize' } = this.option || {}; |
| 297 | + const fixedParams = this.option.params || {}; | ||
| 297 | const param = { | 298 | const param = { |
| 298 | ...this.searchModel, | 299 | ...this.searchModel, |
| 299 | ...value, | 300 | ...value, |
| 300 | [currPageAlias]: this.currentPage, | 301 | [currPageAlias]: this.currentPage, |
| 301 | [pageSizeAlias]: this.pageSize, | 302 | [pageSizeAlias]: this.pageSize, |
| 303 | + ...fixedParams, | ||
| 302 | }; | 304 | }; |
| 303 | this.doSearch(param); | 305 | this.doSearch(param); |
| 304 | }, | 306 | }, |