hrsass-components 1.7.48 → 1.7.50
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 +47 -19
- package/lib/hrsass-components.min.js +1 -1
- package/package.json +1 -1
- package/rollup.build.css +57024 -0
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.50";
|
|
69
69
|
|
|
70
70
|
/**
|
|
71
71
|
* 版本号
|
|
@@ -1193,7 +1193,7 @@ var HrConstantCode = {
|
|
|
1193
1193
|
change: this.onChange
|
|
1194
1194
|
}))
|
|
1195
1195
|
}, [dataset.map(function (item) {
|
|
1196
|
-
if (_this5.type === 'LIST' && (item.typeCode.includes('LabelColor') || item.typeCode.includes('OrgColor'))) {
|
|
1196
|
+
if (_this5.type === 'LIST' && item.typeCode && (item.typeCode.includes('LabelColor') || item.typeCode.includes('OrgColor'))) {
|
|
1197
1197
|
var colorBlock = {
|
|
1198
1198
|
width: '16px',
|
|
1199
1199
|
height: '16px',
|
|
@@ -1592,7 +1592,9 @@ var defaultLocale = {
|
|
|
1592
1592
|
uploadBtnText: '上传文件'
|
|
1593
1593
|
},
|
|
1594
1594
|
HrAppendixDirectory: {
|
|
1595
|
-
uploadBtnText: '选择文件'
|
|
1595
|
+
uploadBtnText: '选择文件',
|
|
1596
|
+
total: '共',
|
|
1597
|
+
items: '条'
|
|
1596
1598
|
},
|
|
1597
1599
|
HrAddrBookCard: {
|
|
1598
1600
|
viewReportRelate: '查看汇报关系',
|
|
@@ -14089,6 +14091,16 @@ var index$h = {
|
|
|
14089
14091
|
isMainUploadFile: {
|
|
14090
14092
|
type: Boolean,
|
|
14091
14093
|
"default": false
|
|
14094
|
+
},
|
|
14095
|
+
pagination: {
|
|
14096
|
+
type: Object,
|
|
14097
|
+
"default": function _default() {
|
|
14098
|
+
return {};
|
|
14099
|
+
}
|
|
14100
|
+
},
|
|
14101
|
+
validateUrl: {
|
|
14102
|
+
type: String,
|
|
14103
|
+
"default": ''
|
|
14092
14104
|
}
|
|
14093
14105
|
},
|
|
14094
14106
|
data: function data() {
|
|
@@ -14100,15 +14112,11 @@ var index$h = {
|
|
|
14100
14112
|
// 当前文件列表
|
|
14101
14113
|
fileList: [],
|
|
14102
14114
|
errorFileList: [],
|
|
14103
|
-
|
|
14104
|
-
|
|
14105
|
-
pageSize: 10,
|
|
14106
|
-
total: 0,
|
|
14107
|
-
showSizeChanger: true
|
|
14108
|
-
},
|
|
14109
|
-
dataSource: []
|
|
14115
|
+
dataSource: [],
|
|
14116
|
+
modifiedPagination: _objectSpread$o({}, this.pagination) // 使用扩展运算符创建一个 prop 值的副本
|
|
14110
14117
|
};
|
|
14111
14118
|
},
|
|
14119
|
+
|
|
14112
14120
|
watch: {
|
|
14113
14121
|
value: function value(val) {
|
|
14114
14122
|
var fileIds = this.fileList.map(function (_ref) {
|
|
@@ -14254,7 +14262,7 @@ var index$h = {
|
|
|
14254
14262
|
} else {
|
|
14255
14263
|
num = "".concat(_this2.fileSizeLimit, "KB");
|
|
14256
14264
|
}
|
|
14257
|
-
|
|
14265
|
+
_this2.$message.error("".concat(_this2.locale.fileSizeError, " (").concat(num, ")"));
|
|
14258
14266
|
_this2.errorFileList.push(name);
|
|
14259
14267
|
}
|
|
14260
14268
|
}
|
|
@@ -14296,7 +14304,7 @@ var index$h = {
|
|
|
14296
14304
|
var fileList = files.map(function (_ref3) {
|
|
14297
14305
|
var fileId = _ref3.fileId,
|
|
14298
14306
|
fileName = _ref3.fileName;
|
|
14299
|
-
var fName = fileName.split(
|
|
14307
|
+
var fName = fileName.split("/");
|
|
14300
14308
|
var name = fName[fName.length - 1]; //文件夹上传
|
|
14301
14309
|
var fileObj = {
|
|
14302
14310
|
uid: "".concat(fileId),
|
|
@@ -14347,7 +14355,7 @@ var index$h = {
|
|
|
14347
14355
|
});
|
|
14348
14356
|
//附件详情页,上传空文件删除不了,故排除上传为空的文件
|
|
14349
14357
|
this.fileList = fileList;
|
|
14350
|
-
console.log(
|
|
14358
|
+
console.log("fileList-components", this.fileList);
|
|
14351
14359
|
},
|
|
14352
14360
|
realRemove: function realRemove(file) {
|
|
14353
14361
|
var _this5 = this;
|
|
@@ -14387,7 +14395,7 @@ var index$h = {
|
|
|
14387
14395
|
_this5.emitChange(_value2.length > 0 ? _value2 : undefined);
|
|
14388
14396
|
if (_this5.isDetailDelFile) {
|
|
14389
14397
|
_this5.$axios.post("/business/emp/empinfo/empbasic/deleteAttachment.data?id=".concat(fileId)).then(function () {
|
|
14390
|
-
_this5.$message.info(
|
|
14398
|
+
_this5.$message.info("删除成功");
|
|
14391
14399
|
});
|
|
14392
14400
|
}
|
|
14393
14401
|
} else {
|
|
@@ -14437,7 +14445,7 @@ var index$h = {
|
|
|
14437
14445
|
validatorFile: function validatorFile(fileId) {
|
|
14438
14446
|
var _this7 = this;
|
|
14439
14447
|
//后端上传校验失败接口
|
|
14440
|
-
this.$axios.post(
|
|
14448
|
+
this.$axios.post(this.validateUrl, {
|
|
14441
14449
|
blobIds: fileId
|
|
14442
14450
|
}).then(function (res) {
|
|
14443
14451
|
res && res.map(function (item) {
|
|
@@ -14476,6 +14484,14 @@ var index$h = {
|
|
|
14476
14484
|
});
|
|
14477
14485
|
});
|
|
14478
14486
|
},
|
|
14487
|
+
_handleTableChange: function _handleTableChange(pager) {
|
|
14488
|
+
var modifiedPagination = this.modifiedPagination;
|
|
14489
|
+
this.modifiedPagination = _objectSpread$o(_objectSpread$o({}, modifiedPagination), {}, {
|
|
14490
|
+
current: pager.current,
|
|
14491
|
+
pageSize: pager.pageSize
|
|
14492
|
+
});
|
|
14493
|
+
this.$emit("changePage", pager);
|
|
14494
|
+
},
|
|
14479
14495
|
_renderHrAppendixDirectory: function _renderHrAppendixDirectory(locale) {
|
|
14480
14496
|
var _this8 = this;
|
|
14481
14497
|
var h = this.$createElement;
|
|
@@ -14516,8 +14532,8 @@ var index$h = {
|
|
|
14516
14532
|
var dataSource = !this.isMainUploadFile ? this.fileList.filter(function (file) {
|
|
14517
14533
|
return file.status === "done";
|
|
14518
14534
|
}) : this.dataSource;
|
|
14519
|
-
this.$emit(
|
|
14520
|
-
this.$emit(
|
|
14535
|
+
this.$emit("errorFileNum", this.errorFileList.length || 0);
|
|
14536
|
+
this.$emit("save", dataSource);
|
|
14521
14537
|
$appendixDirectory = h("div", {
|
|
14522
14538
|
"class": "hr-appendix-directory hr-appendix-directory-table hr-appendix-directory-".concat(this.imageSize)
|
|
14523
14539
|
}, [(!disabled || btn) && h("header", [h("a-upload", _objectSpread$o(_objectSpread$o({}, options), {}, {
|
|
@@ -14531,7 +14547,7 @@ var index$h = {
|
|
|
14531
14547
|
}, ["\u6821\u9A8C\u6CA1\u6709\u901A\u8FC7\u7684\u6587\u4EF6"]), h("ul", {
|
|
14532
14548
|
"class": "hr-appendix-directory-error-file-ul"
|
|
14533
14549
|
}, [this.errorFileList.map(function (item) {
|
|
14534
|
-
var nameArr = item.split(
|
|
14550
|
+
var nameArr = item.split("/");
|
|
14535
14551
|
var name = nameArr[nameArr.length - 1];
|
|
14536
14552
|
return h("li", {
|
|
14537
14553
|
"class": "hr-appendix-directory-error-file-li"
|
|
@@ -14543,7 +14559,19 @@ var index$h = {
|
|
|
14543
14559
|
size: "small",
|
|
14544
14560
|
bordered: true,
|
|
14545
14561
|
dataSource: dataSource,
|
|
14546
|
-
pagination:
|
|
14562
|
+
pagination: this.modifiedPagination ? _objectSpread$o(_objectSpread$o(_objectSpread$o({}, {
|
|
14563
|
+
pageSizeOptions: ["10", "20", "50", "100"]
|
|
14564
|
+
}), this.modifiedPagination), {
|
|
14565
|
+
size: "small",
|
|
14566
|
+
showTotal: function showTotal(total) {
|
|
14567
|
+
return "".concat(locale.total, " ").concat(total, " ").concat(locale.items);
|
|
14568
|
+
}
|
|
14569
|
+
}) : false
|
|
14570
|
+
},
|
|
14571
|
+
on: {
|
|
14572
|
+
"change": function change(pagination) {
|
|
14573
|
+
_this8._handleTableChange(pagination);
|
|
14574
|
+
}
|
|
14547
14575
|
}
|
|
14548
14576
|
}, [h("a-table-column", {
|
|
14549
14577
|
attrs: {
|