doway-coms 1.5.2 → 1.5.4

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.5.2",
3
+ "version": "1.5.4",
4
4
  "description": "doway组件库",
5
5
  "author": "dowaysoft",
6
6
  "main": "packages/index.js",
@@ -1756,7 +1756,7 @@ export default {
1756
1756
  );
1757
1757
  this.userDefineColumns = XEUtils.filter(
1758
1758
  tableCollectColumn,
1759
- (p) => !p.children && p.params.disableUserVisible !== true && p.field !== 'operation'
1759
+ (p) => !p.children && p.params.disableUserVisible !== true && p.sysVisible===true && p.field !== 'operation'
1760
1760
  );
1761
1761
  this.showGridColumnUserDefine = true;
1762
1762
  },
@@ -64,6 +64,7 @@
64
64
  :data="searchRows"
65
65
  @cell-click="gridCellClick"
66
66
  :columns="internalColumns"
67
+ :checkbox-config="{ checkMethod: checkMethod }"
67
68
  >
68
69
  <!-- :pager-config="gridPagerConfig" -->
69
70
  <!-- @page-change="pageChangeEvent" -->
@@ -575,6 +576,13 @@
575
576
  // this.$emit('pulldownBtnClick', btn)
576
577
  this.$refs.pulldownRef.hidePanel()
577
578
  },
579
+ // 多选内容时,若数据不满足条件,不可选中
580
+ checkMethod({ row }) {
581
+ if (row.sysRepeat) {
582
+ return false
583
+ }
584
+ return true
585
+ },
578
586
  /**
579
587
  * 确认多选
580
588
  */
@@ -67,7 +67,8 @@ export default new Vuex.Store({
67
67
  filters: loopField.isFilter,
68
68
  sortable: loopField.isSortable,
69
69
  controlType: loopField.controlType,
70
- edit:loopField.edit
70
+ edit:loopField.edit,
71
+ sysVisible:!loopField.sysVisible
71
72
  }
72
73
  //页面状态控制
73
74
  if(loopField.editStates){