Merge branch 'feature/2filter' into develop
Showing
2 changed files
with
8 additions
and
3 deletions
@@ -489,7 +489,10 @@ export default { | @@ -489,7 +489,10 @@ export default { | ||
489 | await this.fetchList({...params, isReset: true}); | 489 | await this.fetchList({...params, isReset: true}); |
490 | 490 | ||
491 | // 获取筛选项 | 491 | // 获取筛选项 |
492 | - let filterData = await this.fetchSecondFilterData(); | 492 | + let filterDataParams = {}; |
493 | + filterDataParams.productPool = productPool; | ||
494 | + let filterData = await this.fetchSecondFilterData(filterDataParams); | ||
495 | + | ||
493 | let filterParams = this.filterParams; | 496 | let filterParams = this.filterParams; |
494 | 497 | ||
495 | for (let item of filterData) { | 498 | for (let item of filterData) { |
@@ -20,8 +20,10 @@ export default function() { | @@ -20,8 +20,10 @@ export default function() { | ||
20 | }, | 20 | }, |
21 | 21 | ||
22 | // 查询二手/瑕疵筛选列表 | 22 | // 查询二手/瑕疵筛选列表 |
23 | - async fetchSecondFilterData({commit}) { | ||
24 | - let {data} = await this.$api.get('/api/ufo/secondhand/filterData'); | 23 | + async fetchSecondFilterData({commit}, params) { |
24 | + let {data} = await this.$api.get('/api/ufo/secondhand/filterData', { | ||
25 | + ...params, | ||
26 | + }); | ||
25 | 27 | ||
26 | commit('setFilterData', data.filter || []); | 28 | commit('setFilterData', data.filter || []); |
27 | 29 |
-
Please register or login to post a comment