hrsass-components 2.3.6 → 2.3.8

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 = "2.3.6";
68
+ var version = "2.3.8";
69
69
 
70
70
  /**
71
71
  * 版本号
@@ -8405,7 +8405,7 @@ var index = {
8405
8405
  sortList: sort,
8406
8406
  conditionList: [].concat(_toConsumableArray(fitlerOtehrConditionListDeepClone), _toConsumableArray(fitlerConditionListDeepClone))
8407
8407
  }).then(function (res) {
8408
- var _this5$selectedRowsLi, _this5$selectedRowsLi2;
8408
+ var _this5$selectedRowsLi;
8409
8409
  //res.dataList根据rowKey去重
8410
8410
  res.dataList = _.uniqBy(res.dataList, _this5.rowKey || 'id');
8411
8411
  //外部处理数据
@@ -8431,9 +8431,9 @@ var index = {
8431
8431
  _this5.selectedUpdateRows = _this5.selectedUpdateRows.concat(notInCurrentPageRows);
8432
8432
  }
8433
8433
  }
8434
- if ((_this5 === null || _this5 === void 0 || (_this5$selectedRowsLi2 = _this5.selectedRowsList) === null || _this5$selectedRowsLi2 === void 0 ? void 0 : _this5$selectedRowsLi2.length) == 0) {
8435
- _this5.clearSelectedRows();
8436
- }
8434
+ // if (this?.selectedRowsList?.length == 0) {
8435
+ // this.clearSelectedRows();
8436
+ // }
8437
8437
  _this5.setState({
8438
8438
  pagination: _objectSpread$d(_objectSpread$d({}, pagination), {}, {
8439
8439
  total: res.total
@@ -8522,8 +8522,23 @@ var index = {
8522
8522
  var _conditionList = conditionList.filter(function (item) {
8523
8523
  return item.value || item.controlType === "SWITCH";
8524
8524
  });
8525
+ _conditionList = _conditionList.concat(tempConditionListByScheme, conditionListByScheme);
8526
+ var conditonListDeepClone = _.cloneDeep(_conditionList);
8527
+ var fitlerOtehrConditionListDeepClone = conditonListDeepClone.filter(function (item) {
8528
+ return item.codeType !== "org_organize_dept_tree_all" && item.controlType !== "DATERANGE";
8529
+ });
8530
+ console.log('toolbar conditionListDeepClone', fitlerOtehrConditionListDeepClone);
8531
+ var fitlerConditionListDeepClone = conditonListDeepClone.filter(function (item) {
8532
+ return (item.codeType === "org_organize_dept_tree_all" && item.controlType === "SELECTOR" || item.controlType === "DATERANGE") && _.isArray(item.value) && item.value.length > 0 && !item.value.every(function (val) {
8533
+ return typeof val === 'string' && val.trim() === '';
8534
+ });
8535
+ }).map(function (sub) {
8536
+ return _objectSpread$d(_objectSpread$d({}, sub), {}, {
8537
+ value: sub.value.join(",")
8538
+ });
8539
+ });
8525
8540
  var opts = {
8526
- condition: _conditionList.concat(tempConditionListByScheme, conditionListByScheme),
8541
+ condition: [].concat(_toConsumableArray(fitlerOtehrConditionListDeepClone), _toConsumableArray(fitlerConditionListDeepClone)),
8527
8542
  columns: columns
8528
8543
  };
8529
8544
  this.$axios.post("platform/imp/downloadGridData.search?code=".concat(code), opts).then(function (res) {