hrsass-components 1.7.42 → 1.7.44

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.
@@ -65,7 +65,7 @@ var contentStyle = _interopDefault(require('!!raw-loader!tinymce/skins/content/d
65
65
  var SvgPanZoom = _interopDefault(require('svg-pan-zoom'));
66
66
  var saveSvgAsPng = require('save-svg-as-png');
67
67
 
68
- var version = "1.7.42";
68
+ var version = "1.7.44";
69
69
 
70
70
  /**
71
71
  * 版本号
@@ -4506,7 +4506,8 @@ var TableProps = {
4506
4506
  showFilter: VuePropTypes.bool,
4507
4507
  autoLoad: VuePropTypes.bool,
4508
4508
  normalizeConfig: VuePropTypes.func,
4509
- normalizeData: VuePropTypes.func
4509
+ normalizeData: VuePropTypes.func,
4510
+ selectedRowsList: VuePropTypes.array
4510
4511
  // dataSource: PropTypes.array,
4511
4512
  };
4512
4513
 
@@ -6690,7 +6691,8 @@ var HrTableBase = {
6690
6691
  showFilter: VuePropTypes.bool,
6691
6692
  schemeList: VuePropTypes.array,
6692
6693
  defaultShowCount: VuePropTypes.number,
6693
- selectedSchemeId: VuePropTypes.any
6694
+ selectedSchemeId: VuePropTypes.any,
6695
+ selectedUpdateRows: VuePropTypes.array
6694
6696
  }, {
6695
6697
  prefixCls: 'hr-table-base',
6696
6698
  multiple: true,
@@ -6726,7 +6728,9 @@ var HrTableBase = {
6726
6728
  //筛选方案
6727
6729
  defaultShowCount: 6,
6728
6730
  //搜索条件默认显示数
6729
- selectedSchemeId: null //选择的方案Id
6731
+ selectedSchemeId: null,
6732
+ //选择的方案Id
6733
+ selectedUpdateRows: [] //选中行列表
6730
6734
  }),
6731
6735
  data: function data() {
6732
6736
  return {
@@ -6769,6 +6773,11 @@ var HrTableBase = {
6769
6773
  this.setState({
6770
6774
  dataList: val
6771
6775
  });
6776
+ },
6777
+ selectedUpdateRows: function selectedUpdateRows(selectedRows) {
6778
+ this.setState({
6779
+ selectedRows: selectedRows
6780
+ });
6772
6781
  }
6773
6782
  },
6774
6783
  mounted: function mounted() {
@@ -7686,6 +7695,8 @@ var index = {
7686
7695
  width: 100
7687
7696
  },
7688
7697
  //操作列宽度和锁定
7698
+ selectedRowsList: [],
7699
+ //选中的行id列表
7689
7700
  normalizeConfig: function normalizeConfig(config) {
7690
7701
  return config;
7691
7702
  },
@@ -7723,10 +7734,11 @@ var index = {
7723
7734
  //滚动宽度
7724
7735
  tempConditionListByScheme: [],
7725
7736
  //临时查询条件(方案)
7726
- conditionListByScheme: [] //查询条件(方案)
7737
+ conditionListByScheme: [],
7738
+ //查询条件(方案)
7739
+ selectedUpdateRows: []
7727
7740
  };
7728
7741
  },
7729
-
7730
7742
  watch: {
7731
7743
  code: function code() {
7732
7744
  this.configState = stateMap.none;
@@ -7769,6 +7781,13 @@ var index = {
7769
7781
  }
7770
7782
  },
7771
7783
  deep: true
7784
+ },
7785
+ //根据回填传的rowIds,过滤选中的行
7786
+ selectedRowsList: function selectedRowsList(rowIds) {
7787
+ var _selectedUpdateRows = this.dataSource.filter(function (item) {
7788
+ return rowIds.includes(item.t_0_hid);
7789
+ });
7790
+ this.selectedUpdateRows = _selectedUpdateRows;
7772
7791
  }
7773
7792
  },
7774
7793
  beforeDestroy: function beforeDestroy() {
@@ -8198,7 +8217,9 @@ var index = {
8198
8217
  pagination = this.pagination,
8199
8218
  sortOrder = this.sortOrder,
8200
8219
  schemeList = this.schemeList,
8201
- selectedSchemeId = this.selectedSchemeId;
8220
+ selectedSchemeId = this.selectedSchemeId,
8221
+ _this$selectedUpdateR = this.selectedUpdateRows,
8222
+ selectedUpdateRows = _this$selectedUpdateR === void 0 ? [] : _this$selectedUpdateR;
8202
8223
  var _getOptionProps6 = getOptionProps(this),
8203
8224
  prefixCls = _getOptionProps6.prefixCls,
8204
8225
  cls = _getOptionProps6["class"],
@@ -8226,6 +8247,7 @@ var index = {
8226
8247
  rowKey: rowKey,
8227
8248
  selection: selection,
8228
8249
  dataSource: dataSource,
8250
+ selectedUpdateRows: selectedUpdateRows,
8229
8251
  pagination: pagination,
8230
8252
  maxWidth: scrollWidth,
8231
8253
  action: action,
@@ -13312,9 +13334,9 @@ var index$a = {
13312
13334
  "class": "hr-emp-card-small-name"
13313
13335
  }, [data.name]), h("span", {
13314
13336
  "class": "hr-emp-card-small-no"
13315
- }, [locale.no, ": ", data.id]), h("span", {
13337
+ }, [locale.no, ": ", data.id]), data.labelList && data.labelList.length > 0 && h("span", {
13316
13338
  "class": "hr-emp-card-small-no"
13317
- }, [data.labelList.length && data.labelList.map(function (o, index) {
13339
+ }, [data.labelList.map(function (o, index) {
13318
13340
  if (index < 3) {
13319
13341
  return h("a-tag", {
13320
13342
  attrs: {