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 | 294 | // 查询数据 |
| 295 | 295 | async handleSearch(value) { |
| 296 | 296 | const { currPageAlias = 'currPage', pageSizeAlias = 'pageSize' } = this.option || {}; |
| 297 | + const fixedParams = this.option.params || {}; | |
| 297 | 298 | const param = { |
| 298 | 299 | ...this.searchModel, |
| 299 | 300 | ...value, |
| 300 | 301 | [currPageAlias]: this.currentPage, |
| 301 | 302 | [pageSizeAlias]: this.pageSize, |
| 303 | + ...fixedParams, | |
| 302 | 304 | }; |
| 303 | 305 | this.doSearch(param); |
| 304 | 306 | }, | ... | ... |