doway-coms 1.4.30 → 1.4.32

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.30",
3
+ "version": "1.4.32",
4
4
  "description": "doway组件库",
5
5
  "author": "dowaysoft",
6
6
  "main": "packages/index.js",
@@ -1992,12 +1992,16 @@ export default {
1992
1992
  if (this.$refs.baseGrid.isInsertByRow(tempRow) === true) {
1993
1993
  tempRow["sysRowState"] = "add";
1994
1994
  tempRows.push(tempRow);
1995
- continue;
1996
1995
  }
1997
- // if (this.$refs.baseGrid.isUpdateByRow(tempRow) === true) {
1998
- // // tempRow['sysRowState'] = 'update'
1999
- // // tempRows.push(tempRow)
2000
- // // continue
1996
+ //判断子项
1997
+ // if(tempRow.children && tempRow.children.length>0){
1998
+ // //添加子项数据
1999
+ // XEUtils.arrayEach(tempRow.children,loopChild=>{
2000
+ // if (this.$refs.baseGrid.isInsertByRow(loopChild) === true){
2001
+ // loopChild["sysRowState"] = "add";
2002
+ // tempRows.push(loopChild);
2003
+ // }
2004
+ // })
2001
2005
  // }
2002
2006
  }
2003
2007
 
@@ -2259,20 +2263,22 @@ export default {
2259
2263
  });
2260
2264
  },
2261
2265
  filterConfirm(colInfo) {
2262
- console.log(colInfo);
2266
+ let col= this.internalColumns.find(x=>x.field==colInfo.property)
2267
+ this.$set(col.filters[0].data,'bindingValues',[])
2263
2268
  colInfo.filters[0].data.bindingValues = [];
2264
2269
  XEUtils.arrayEach(colInfo.filters[0].data.displayValues, (item) => {
2265
2270
  if (colInfo.params.controlType === controlType.select) {
2266
2271
  colInfo.filters[0].data.bindingValues.push(item);
2272
+ this.$set(col.filters[0].data,'bindingValues',colInfo.filters[0].data.bindingValues)
2267
2273
  } else {
2268
2274
  if (item.value[0] || item.value[1]) {
2269
2275
  colInfo.filters[0].data.bindingValues.push(item);
2276
+ this.$set(col.filters[0].data,'bindingValues',colInfo.filters[0].data.bindingValues)
2270
2277
  }
2271
2278
  }
2272
2279
  });
2273
2280
  colInfo.filters[0].checked =
2274
2281
  colInfo.filters[0].data.bindingValues.length > 0;
2275
-
2276
2282
  if (this.filterRemote) {
2277
2283
  //设置筛选过滤条件
2278
2284
  this.setFilterExpression();
@@ -2344,7 +2350,7 @@ export default {
2344
2350
  };
2345
2351
  let expStr = "";
2346
2352
  let filterBindingValues = loopColInfo.filters[0].data.bindingValues;
2347
-
2353
+ debugger
2348
2354
  //筛选条件过滤
2349
2355
  let colFilterExpression = { operator: "or", expressions: [] };
2350
2356
 
@@ -540,4 +540,27 @@ export function getExportParams(columns) {
540
540
  }
541
541
  }
542
542
  return tempParams
543
+ }
544
+ export function setFormButtons(toolBtns,statusBtns,permissionBtns){
545
+ XEUtils.arrayEach(permissionBtns,loopBtn=>{
546
+ let pushBtn = {
547
+ code: loopBtn.code,
548
+ caption: loopBtn.name,
549
+ visible: true
550
+ }
551
+ if(loopBtn.visibleState){
552
+ pushBtn['visibleStates'] = loopBtn.visibleState.split(',')
553
+ }
554
+ if(loopBtn.visibleStatus){
555
+ pushBtn['visibleStatuss'] = loopBtn.visibleStatus.split(',')
556
+ }
557
+ switch(loopBtn.buttonType){
558
+ case 'tool':
559
+ toolBtns.push(pushBtn)
560
+ break
561
+ case 'status':
562
+ statusBtns.push(pushBtn)
563
+ break
564
+ }
565
+ })
543
566
  }