hrsass-components 1.7.72 → 1.7.73
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/lib/hrsass-components.js +45 -34
- package/lib/hrsass-components.min.js +1 -1
- package/package.json +1 -1
- package/rollup.build.css +130 -130
package/lib/hrsass-components.js
CHANGED
|
@@ -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.
|
|
68
|
+
var version = "1.7.73";
|
|
69
69
|
|
|
70
70
|
/**
|
|
71
71
|
* 版本号
|
|
@@ -7583,22 +7583,24 @@ var HrTableBase = {
|
|
|
7583
7583
|
},
|
|
7584
7584
|
_getDefaultHeight: function _getDefaultHeight(height) {
|
|
7585
7585
|
// 定义常量,用于表示表格头部高度、工具栏高度、搜索框高度、布局内边距、表格头部高度以及分页组件高度
|
|
7586
|
-
var headHeight = 48,
|
|
7587
|
-
|
|
7588
|
-
|
|
7589
|
-
|
|
7590
|
-
|
|
7591
|
-
|
|
7592
|
-
|
|
7593
|
-
|
|
7594
|
-
|
|
7595
|
-
|
|
7596
|
-
//
|
|
7597
|
-
|
|
7598
|
-
|
|
7599
|
-
|
|
7600
|
-
|
|
7601
|
-
|
|
7586
|
+
// var headHeight = 48,
|
|
7587
|
+
// toolbarHeight = 32,
|
|
7588
|
+
// searchHeight = 120,
|
|
7589
|
+
// layoutPadding = 60,
|
|
7590
|
+
// tableHeaderHeight = 68,
|
|
7591
|
+
// // 根据条件判断是否显示分页组件,如果显示则高度为56.5 ,否则为0
|
|
7592
|
+
// paginationHeight = this.$props.pagination ? 56.5 : 0,
|
|
7593
|
+
// tableRowHeight = 47.5;
|
|
7594
|
+
|
|
7595
|
+
// this.$refs.tableToolbar &&
|
|
7596
|
+
// (searchHeight = this.$refs.tableToolbar.$el.clientHeight + 24);
|
|
7597
|
+
|
|
7598
|
+
// // 默认高度为窗口高度减去以上所有高度
|
|
7599
|
+
// var defaultHeight = parseInt(window.innerHeight - headHeight - toolbarHeight - searchHeight - layoutPadding - tableHeaderHeight - paginationHeight);
|
|
7600
|
+
// if (this.dataList.length > 0) {
|
|
7601
|
+
// var tableHeight = this.$parent.$parent.$el.clientHeight + tableRowHeight * this.dataList.length - searchHeight - tableHeaderHeight - paginationHeight;
|
|
7602
|
+
// return tableHeight - defaultHeight > 0 ? defaultHeight : tableHeight;
|
|
7603
|
+
// }
|
|
7602
7604
|
return height;
|
|
7603
7605
|
},
|
|
7604
7606
|
_renderTableBase: function _renderTableBase(locale) {
|
|
@@ -7895,11 +7897,11 @@ var stateMap = {
|
|
|
7895
7897
|
loaded: 2
|
|
7896
7898
|
};
|
|
7897
7899
|
var index = {
|
|
7898
|
-
name:
|
|
7900
|
+
name: "HrTable",
|
|
7899
7901
|
mixins: [BaseMixin],
|
|
7900
7902
|
props: initDefaultProps(TableProps, {
|
|
7901
|
-
prefixCls:
|
|
7902
|
-
rowKey:
|
|
7903
|
+
prefixCls: "hr-table",
|
|
7904
|
+
rowKey: "",
|
|
7903
7905
|
multiple: true,
|
|
7904
7906
|
//是否多选
|
|
7905
7907
|
columns: [],
|
|
@@ -7922,7 +7924,7 @@ var index = {
|
|
|
7922
7924
|
//自动加载数据
|
|
7923
7925
|
// action: { fixed: false, width: 100 }, //操作列宽度和锁定
|
|
7924
7926
|
action: {
|
|
7925
|
-
fixed:
|
|
7927
|
+
fixed: "right",
|
|
7926
7928
|
width: 100
|
|
7927
7929
|
},
|
|
7928
7930
|
//操作列宽度和锁定
|
|
@@ -8024,7 +8026,7 @@ var index = {
|
|
|
8024
8026
|
if (this.$refs.tableBase.$el) {
|
|
8025
8027
|
resizeDetector.removeListener(this.$refs.tableBase.$el, this._setMaxWidth);
|
|
8026
8028
|
}
|
|
8027
|
-
console.log(
|
|
8029
|
+
console.log("hr-table beforeDestroy");
|
|
8028
8030
|
},
|
|
8029
8031
|
mounted: function mounted() {
|
|
8030
8032
|
var _getOptionProps = getOptionProps(this),
|
|
@@ -8159,7 +8161,7 @@ var index = {
|
|
|
8159
8161
|
if (sortColumn) {
|
|
8160
8162
|
sort = [{
|
|
8161
8163
|
field: sortColumn.sorterName || sortColumn.columnName,
|
|
8162
|
-
style: sorter.order ===
|
|
8164
|
+
style: sorter.order === "descend" ? "DESC" : "ASC"
|
|
8163
8165
|
}];
|
|
8164
8166
|
}
|
|
8165
8167
|
}
|
|
@@ -8173,7 +8175,16 @@ var index = {
|
|
|
8173
8175
|
if (this.selectedSchemeId && this.editSchemeId !== this.selectedSchemeId) {
|
|
8174
8176
|
_conditionList = _conditionList.concat(conditionListByScheme);
|
|
8175
8177
|
}
|
|
8176
|
-
|
|
8178
|
+
var conditonListDeepClone = _.cloneDeep(_conditionList);
|
|
8179
|
+
conditonListDeepClone.map(function (item) {
|
|
8180
|
+
if (item.code === "p_deptHid" && item.codeType === "org_organize_dept_tree_all" || item.controlType === "SELECTOR") {
|
|
8181
|
+
if (_.isArray(item.value)) {
|
|
8182
|
+
item.value = item.value.join(",");
|
|
8183
|
+
}
|
|
8184
|
+
return item;
|
|
8185
|
+
}
|
|
8186
|
+
});
|
|
8187
|
+
console.log("selected id", this.editSchemeId, this.selectedSchemeId, tempConditionListByScheme, conditionListByScheme, conditonListDeepClone);
|
|
8177
8188
|
this.ajax({
|
|
8178
8189
|
page: {
|
|
8179
8190
|
autoCount: true,
|
|
@@ -8181,7 +8192,7 @@ var index = {
|
|
|
8181
8192
|
pageSize: pagination.pageSize
|
|
8182
8193
|
},
|
|
8183
8194
|
sortList: sort,
|
|
8184
|
-
conditionList:
|
|
8195
|
+
conditionList: conditonListDeepClone
|
|
8185
8196
|
}).then(function (res) {
|
|
8186
8197
|
//外部处理数据
|
|
8187
8198
|
if (lodash.isFunction(normalizeData)) {
|
|
@@ -8194,7 +8205,7 @@ var index = {
|
|
|
8194
8205
|
dataSource: res.dataList,
|
|
8195
8206
|
loading: false
|
|
8196
8207
|
});
|
|
8197
|
-
_this5.$emit(
|
|
8208
|
+
_this5.$emit("load");
|
|
8198
8209
|
});
|
|
8199
8210
|
},
|
|
8200
8211
|
//分页、排序
|
|
@@ -8273,7 +8284,7 @@ var index = {
|
|
|
8273
8284
|
conditionListByScheme = this.conditionListByScheme;
|
|
8274
8285
|
console.log(tempConditionListByScheme, conditionListByScheme);
|
|
8275
8286
|
var _conditionList = conditionList.filter(function (item) {
|
|
8276
|
-
return item.value || item.controlType ===
|
|
8287
|
+
return item.value || item.controlType === "SWITCH";
|
|
8277
8288
|
});
|
|
8278
8289
|
var opts = {
|
|
8279
8290
|
condition: _conditionList.concat(tempConditionListByScheme, conditionListByScheme),
|
|
@@ -8281,7 +8292,7 @@ var index = {
|
|
|
8281
8292
|
};
|
|
8282
8293
|
this.$axios.post("platform/imp/downloadGridData.search?code=".concat(code), opts).then(function (res) {
|
|
8283
8294
|
//下载完成后动画
|
|
8284
|
-
var div = document.createElement(
|
|
8295
|
+
var div = document.createElement("div");
|
|
8285
8296
|
document.body.appendChild(div);
|
|
8286
8297
|
var _top = e.clientY - 40,
|
|
8287
8298
|
_right = document.body.clientWidth - e.clientX - 12;
|
|
@@ -8293,9 +8304,9 @@ var index = {
|
|
|
8293
8304
|
duration = 2.5;
|
|
8294
8305
|
}
|
|
8295
8306
|
var sty = {
|
|
8296
|
-
top: _top +
|
|
8297
|
-
right: _right +
|
|
8298
|
-
|
|
8307
|
+
top: _top + "px",
|
|
8308
|
+
right: _right + "px",
|
|
8309
|
+
"animation-duration": duration + "s"
|
|
8299
8310
|
};
|
|
8300
8311
|
new Vue({
|
|
8301
8312
|
el: div,
|
|
@@ -8414,7 +8425,7 @@ var index = {
|
|
|
8414
8425
|
current: 1
|
|
8415
8426
|
})
|
|
8416
8427
|
}, function () {
|
|
8417
|
-
_this11.$emit(
|
|
8428
|
+
_this11.$emit("search", function () {
|
|
8418
8429
|
_this11._getData();
|
|
8419
8430
|
}, _this11);
|
|
8420
8431
|
});
|
|
@@ -8497,7 +8508,7 @@ var index = {
|
|
|
8497
8508
|
_this12._downloadHandler(columns, e);
|
|
8498
8509
|
},
|
|
8499
8510
|
"rowSelected": function rowSelected(rows) {
|
|
8500
|
-
_this12.$emit(
|
|
8511
|
+
_this12.$emit("rowSelected", rows);
|
|
8501
8512
|
},
|
|
8502
8513
|
"schemeChange": function schemeChange(id) {
|
|
8503
8514
|
_this12.editSchemeId = null;
|
|
@@ -8523,7 +8534,7 @@ var index = {
|
|
|
8523
8534
|
_this12.searchHandler();
|
|
8524
8535
|
},
|
|
8525
8536
|
"cellClick": function cellClick(column, record) {
|
|
8526
|
-
_this12.$emit(
|
|
8537
|
+
_this12.$emit("cellClick", column, record);
|
|
8527
8538
|
},
|
|
8528
8539
|
"settingChange": function settingChange(cols) {
|
|
8529
8540
|
_this12.setState({
|