jufubao-base 1.0.289-beta4 → 1.0.289-beta6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-base",
3
- "version": "1.0.289-beta4",
3
+ "version": "1.0.289-beta6",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -40,7 +40,7 @@
40
40
  <xd-font-icon size="24" icon="iconxia_down" color="#333"></xd-font-icon>
41
41
  </view>
42
42
  <view @click="handleGetFilterItem({value:'sort'})" v-if="showSort" class="menu_filter_item" >
43
- <view>{{sortData.label || '排序'}}</view>
43
+ <view>{{sortData.label || '综合'}}</view>
44
44
  <xd-font-icon size="24" icon="iconxia_down" color="#333"></xd-font-icon>
45
45
  </view>
46
46
  <view class="menu_filter_item" @click="handleGetFilterItem(item)" v-for="(item,index) in filterTab" :key="index">
@@ -409,6 +409,7 @@
409
409
  this.filterType = item.type
410
410
  this.curQueryTab = '';
411
411
  this.searchFilterParams = {};
412
+ this.selectFilterParams = {};
412
413
  this.sortData = {};
413
414
  this.sort = '';
414
415
  if (item.filter_item && item.filter_item.tab_filter) {
@@ -454,8 +455,9 @@
454
455
  this.curQueryTab = item.value;
455
456
  }
456
457
  if (this.curQueryTab === 'sort') {
458
+ this.sort = 'default'
457
459
  this.sortList = [{
458
- label: "排序",
460
+ label: "综合",
459
461
  key: "default",
460
462
  value: "default"
461
463
  }]
@@ -520,6 +522,8 @@
520
522
  if (this.$xdUniHelper.checkVarType(ids[key]) === 'array') {
521
523
  if (ids[key].length === 0) {
522
524
  this.searchFilterParams[maps[key]] = ''
525
+ } else {
526
+ this.searchFilterParams[maps[key]] = ids[key].join(',')
523
527
  }
524
528
  }
525
529
  }
@@ -216,16 +216,9 @@ export default {
216
216
  setChooseTag(tab, item){
217
217
  //单选
218
218
  if(!tab.multiple) {
219
- //取消
220
- if(this.selectedIds[tab.value] && this.selectedIds[tab.value].includes(item.value)) {
221
- this.setSelectData(tab.value, '', '', '')
222
- }
223
- //新增
224
- else {
225
- this.setSelectData(tab.value, item.value, item, item.label);
226
- //单选直接触发返回数据
227
- if(this.isShowBtn === false) this.onConfirm();
228
- }
219
+ this.setSelectData(tab.value, item.value, item, item.label);
220
+ //单选直接触发返回数据
221
+ if(this.isShowBtn === false) this.onConfirm();
229
222
  }
230
223
  //多选
231
224
  else {