ztxkui 3.4.16 → 3.4.19
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.
|
@@ -143,9 +143,13 @@ var UploadTable = function (_a) {
|
|
|
143
143
|
? true
|
|
144
144
|
: false;
|
|
145
145
|
return (React.createElement(React.Fragment, null,
|
|
146
|
-
(typeof operationAuth === 'string'
|
|
146
|
+
((typeof operationAuth === 'string'
|
|
147
147
|
? authDownloadBtn
|
|
148
|
-
: showDownloadBtn)
|
|
148
|
+
: showDownloadBtn) ||
|
|
149
|
+
((typeof operationAuth === 'string'
|
|
150
|
+
? authPreviewBtn
|
|
151
|
+
: showPreviewBtn) &&
|
|
152
|
+
(record === null || record === void 0 ? void 0 : record.fileSize) >= 10 * 1024 * 1024)) && (React.createElement(Button, { type: "link", style: {
|
|
149
153
|
height: 28,
|
|
150
154
|
}, onClick: function () {
|
|
151
155
|
if (isPublic) {
|
|
@@ -231,8 +235,28 @@ var UploadTable = function (_a) {
|
|
|
231
235
|
ellipsis: false,
|
|
232
236
|
fixed: 'right',
|
|
233
237
|
render: function (text, record, index) {
|
|
238
|
+
var operationAuth = record === null || record === void 0 ? void 0 : record.operationAuth;
|
|
239
|
+
// '1' 预览 '2' 下载 '3' 删除
|
|
240
|
+
var authDownloadBtn = typeof operationAuth === 'string' &&
|
|
241
|
+
operationAuth.indexOf('2') !== -1
|
|
242
|
+
? true
|
|
243
|
+
: false;
|
|
244
|
+
var authPreviewBtn = typeof operationAuth === 'string' &&
|
|
245
|
+
operationAuth.indexOf('1') !== -1
|
|
246
|
+
? true
|
|
247
|
+
: false;
|
|
248
|
+
var authDeleteBtn = typeof operationAuth === 'string' &&
|
|
249
|
+
operationAuth.indexOf('3') !== -1
|
|
250
|
+
? true
|
|
251
|
+
: false;
|
|
234
252
|
return (React.createElement(React.Fragment, null,
|
|
235
|
-
|
|
253
|
+
((typeof operationAuth === 'string'
|
|
254
|
+
? authDownloadBtn
|
|
255
|
+
: showDownloadBtn) ||
|
|
256
|
+
((typeof operationAuth === 'string'
|
|
257
|
+
? authPreviewBtn
|
|
258
|
+
: showPreviewBtn) &&
|
|
259
|
+
(record === null || record === void 0 ? void 0 : record.fileSize) >= 10 * 1024 * 1024)) && (React.createElement(Button, { type: "link", style: {
|
|
236
260
|
height: 28,
|
|
237
261
|
}, onClick: function () {
|
|
238
262
|
if (isPublic) {
|
|
@@ -254,7 +278,9 @@ var UploadTable = function (_a) {
|
|
|
254
278
|
});
|
|
255
279
|
}
|
|
256
280
|
} }, "\u4E0B\u8F7D")),
|
|
257
|
-
|
|
281
|
+
(typeof operationAuth === 'string'
|
|
282
|
+
? authPreviewBtn
|
|
283
|
+
: showPreviewBtn) && (React.createElement(Button, { type: "link", style: {
|
|
258
284
|
height: 28,
|
|
259
285
|
}, onClick: function () {
|
|
260
286
|
if ((record === null || record === void 0 ? void 0 : record.fileSize) >= 10 * 1024 * 1024) {
|
|
@@ -269,7 +295,9 @@ var UploadTable = function (_a) {
|
|
|
269
295
|
onPreviewCallbackBefore(record);
|
|
270
296
|
}
|
|
271
297
|
} }, "\u9884\u89C8")),
|
|
272
|
-
|
|
298
|
+
(typeof operationAuth === 'string'
|
|
299
|
+
? authDeleteBtn
|
|
300
|
+
: showDeleteBtn) && (React.createElement(Popconfirm, { title: "\u662F\u5426\u5220\u9664\u8BE5\u6761\u6570\u636E?", cancelText: "\u5426", okText: "\u662F", onConfirm: function () { return onDeleteFile(record, index); } },
|
|
273
301
|
React.createElement(Button, { style: {
|
|
274
302
|
height: 28,
|
|
275
303
|
}, type: "link" }, "\u5220\u9664")))));
|
|
@@ -8,6 +8,7 @@ export interface IProps extends ColProps {
|
|
|
8
8
|
titleHorizontal?: 'flex-start' | 'flex-end' | 'center' | 'normal';
|
|
9
9
|
titleVertical?: 'flex-start' | 'flex-end' | 'center' | 'normal';
|
|
10
10
|
required?: boolean;
|
|
11
|
+
titleBackColor?: string;
|
|
11
12
|
}
|
|
12
13
|
declare const Item: React.FC<IProps>;
|
|
13
14
|
export default Item;
|
|
@@ -24,7 +24,7 @@ import React from 'react';
|
|
|
24
24
|
import { Col } from 'antd';
|
|
25
25
|
import classNames from 'classnames';
|
|
26
26
|
var Item = function (_a) {
|
|
27
|
-
var children = _a.children, className = _a.className, title = _a.title, colon = _a.colon, span = _a.span, titleSpan = _a.titleSpan, _b = _a.titleHorizontal, titleHorizontal = _b === void 0 ? 'normal' : _b, _c = _a.titleVertical, titleVertical = _c === void 0 ? 'normal' : _c, required = _a.required, restProps = __rest(_a, ["children", "className", "title", "colon", "span", "titleSpan", "titleHorizontal", "titleVertical", "required"]);
|
|
27
|
+
var children = _a.children, className = _a.className, title = _a.title, colon = _a.colon, span = _a.span, titleSpan = _a.titleSpan, _b = _a.titleHorizontal, titleHorizontal = _b === void 0 ? 'normal' : _b, _c = _a.titleVertical, titleVertical = _c === void 0 ? 'normal' : _c, required = _a.required, titleBackColor = _a.titleBackColor, restProps = __rest(_a, ["children", "className", "title", "colon", "span", "titleSpan", "titleHorizontal", "titleVertical", "required", "titleBackColor"]);
|
|
28
28
|
var classes = classNames('zt-grid-item', className);
|
|
29
29
|
return (React.createElement(Col, __assign({ className: classes, span: span }, restProps),
|
|
30
30
|
React.createElement("span", { className: "zt-grid-item--title", style: {
|
|
@@ -32,6 +32,7 @@ var Item = function (_a) {
|
|
|
32
32
|
display: 'flex',
|
|
33
33
|
alignItems: titleVertical,
|
|
34
34
|
justifyContent: titleHorizontal,
|
|
35
|
+
background: titleBackColor,
|
|
35
36
|
} },
|
|
36
37
|
required && React.createElement("span", { className: "zt-grid-item--required" }, "*"),
|
|
37
38
|
title,
|
|
@@ -581,10 +581,11 @@ var Sinatures = function (_a) {
|
|
|
581
581
|
},
|
|
582
582
|
/** 签章组件相关校验 */
|
|
583
583
|
validateSealFn: function () {
|
|
584
|
-
var _a
|
|
584
|
+
var _a;
|
|
585
585
|
// 确认盖章后 勾选的信息有更改
|
|
586
586
|
if (needQys &&
|
|
587
|
-
(
|
|
587
|
+
(prevParam === null || prevParam === void 0 ? void 0 : prevParam.sealIdList) &&
|
|
588
|
+
(prevParam === null || prevParam === void 0 ? void 0 : prevParam.sealIdList.length) !== (innerElectronicSeal === null || innerElectronicSeal === void 0 ? void 0 : innerElectronicSeal.length) &&
|
|
588
589
|
!isSure) {
|
|
589
590
|
Modal.confirm({
|
|
590
591
|
title: '当前所勾选的电子印章信息与上一次盖章时有差异,请确认是否继续?',
|
|
@@ -624,7 +625,7 @@ var Sinatures = function (_a) {
|
|
|
624
625
|
return false;
|
|
625
626
|
}
|
|
626
627
|
// 勾选的群杰印章 没有填用印次数
|
|
627
|
-
if (((
|
|
628
|
+
if (((_a = innerQunjSeal === null || innerQunjSeal === void 0 ? void 0 : innerQunjSeal.details) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
628
629
|
innerQunjSeal.details.forEach(function (item) {
|
|
629
630
|
if (!item.sealCount) {
|
|
630
631
|
message.warning("\u8BF7\u586B\u5199" + item.sealName + " \u7684\u7528\u5370\u6B21\u6570\uFF01");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ztxkui",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.19",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "React components library",
|
|
6
6
|
"author": "zt-front-end",
|
|
@@ -22,7 +22,8 @@
|
|
|
22
22
|
"react-dnd-html5-backend": "^14.0.0",
|
|
23
23
|
"react-infinite-scroll-component": "^6.1.0",
|
|
24
24
|
"react-resizable": "^3.0.4",
|
|
25
|
-
"react-to-print": "^2.14.7"
|
|
25
|
+
"react-to-print": "^2.14.7",
|
|
26
|
+
"ztxkutils": "^2.8.19"
|
|
26
27
|
},
|
|
27
28
|
"scripts": {
|
|
28
29
|
"analyze": "source-map-explorer 'dist/static/js/*.js'",
|