doway-coms 1.4.31 → 1.4.33

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": "doway-coms",
3
- "version": "1.4.31",
3
+ "version": "1.4.33",
4
4
  "description": "doway组件库",
5
5
  "author": "dowaysoft",
6
6
  "main": "packages/index.js",
@@ -2263,20 +2263,22 @@ export default {
2263
2263
  });
2264
2264
  },
2265
2265
  filterConfirm(colInfo) {
2266
- console.log(colInfo);
2266
+ let col= this.internalColumns.find(x=>x.field==colInfo.property)
2267
+ this.$set(col.filters[0].data,'bindingValues',[])
2267
2268
  colInfo.filters[0].data.bindingValues = [];
2268
2269
  XEUtils.arrayEach(colInfo.filters[0].data.displayValues, (item) => {
2269
2270
  if (colInfo.params.controlType === controlType.select) {
2270
2271
  colInfo.filters[0].data.bindingValues.push(item);
2272
+ this.$set(col.filters[0].data,'bindingValues',colInfo.filters[0].data.bindingValues)
2271
2273
  } else {
2272
2274
  if (item.value[0] || item.value[1]) {
2273
2275
  colInfo.filters[0].data.bindingValues.push(item);
2276
+ this.$set(col.filters[0].data,'bindingValues',colInfo.filters[0].data.bindingValues)
2274
2277
  }
2275
2278
  }
2276
2279
  });
2277
2280
  colInfo.filters[0].checked =
2278
2281
  colInfo.filters[0].data.bindingValues.length > 0;
2279
-
2280
2282
  if (this.filterRemote) {
2281
2283
  //设置筛选过滤条件
2282
2284
  this.setFilterExpression();
@@ -2348,7 +2350,7 @@ export default {
2348
2350
  };
2349
2351
  let expStr = "";
2350
2352
  let filterBindingValues = loopColInfo.filters[0].data.bindingValues;
2351
-
2353
+ debugger
2352
2354
  //筛选条件过滤
2353
2355
  let colFilterExpression = { operator: "or", expressions: [] };
2354
2356
 
@@ -563,4 +563,19 @@ export function setFormButtons(toolBtns,statusBtns,permissionBtns){
563
563
  break
564
564
  }
565
565
  })
566
+ }
567
+ export function setGridPagerButton(dataCode,datas,pagerButtons){
568
+ let tempData = XEUtils.find(datas,p=>p.code===dataCode)
569
+ if(!tempData){
570
+ return
571
+ }
572
+ XEUtils.arrayEach(tempData.fields,loopField=>{
573
+ if(loopField.controlType==='pager_button'){
574
+ pagerButtons.push({
575
+ field:loopField.boundField,
576
+ title:loopField.name,
577
+ visible:true
578
+ })
579
+ }
580
+ })
566
581
  }