From abc30eaaf86546f1b9c5ee45843905dc68e0f93c Mon Sep 17 00:00:00 2001 From: Aaron <427787340@qq.com> Date: Tue, 6 Aug 2019 15:30:54 +0800 Subject: [PATCH] Scheme支持搜索时加入固定参数 --- packages/scheme/index.vue | 2 ++ 1 file changed, 2 insertions(+), 0 deletions(-) diff --git a/packages/scheme/index.vue b/packages/scheme/index.vue index d90b05b..a6866e1 100644 --- a/packages/scheme/index.vue +++ b/packages/scheme/index.vue @@ -294,11 +294,13 @@ export default { // 查询数据 async handleSearch(value) { const { currPageAlias = 'currPage', pageSizeAlias = 'pageSize' } = this.option || {}; + const fixedParams = this.option.params || {}; const param = { ...this.searchModel, ...value, [currPageAlias]: this.currentPage, [pageSizeAlias]: this.pageSize, + ...fixedParams, }; this.doSearch(param); }, -- libgit2 0.21.0