ztxkui 4.2.23-346-beta → 4.2.23-348-beta
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/dist/components/Table/table.js +15 -0
- package/dist/components/WorkflowPrintContainer/component/ProcessDetail.js +7 -74
- package/dist/components/WorkflowPrintContainer/component/Upload/index.js +1 -1
- package/dist/components/WorkflowPrintContainer/component/attention/index.d.ts +0 -1
- package/dist/components/WorkflowPrintContainer/component/attention/index.js +2 -9
- package/dist/components/WorkflowPrintContainer/component/previewTable/index.d.ts +0 -1
- package/dist/components/WorkflowPrintContainer/component/previewTable/index.js +2 -3
- package/dist/components/WorkflowPrintContainer/component/trail/component/TableList.js +1 -1
- package/dist/components/WorkflowPrintContainer/component/trail/index.js +1 -1
- package/dist/components/WorkflowPrintContainer/workflow-print-container.js +25 -67
- package/dist/components/electron-signatures/fileComponents/file-operation.js +1 -1
- package/dist/components/electron-signatures/index.js +1 -1
- package/package.json +1 -1
|
@@ -238,6 +238,21 @@ function Table(props) {
|
|
|
238
238
|
if (!isNaN(result)) {
|
|
239
239
|
return result;
|
|
240
240
|
}
|
|
241
|
+
if (typeof a[field_1] === 'string' && typeof b[field_1] === 'string') {
|
|
242
|
+
// 先按文件名主体部分排序(不包括扩展名)
|
|
243
|
+
var nameAWithoutExt = a[field_1].split('.')[0];
|
|
244
|
+
var nameBWithoutExt = b[field_1].split('.')[0];
|
|
245
|
+
var result_1 = nameAWithoutExt.localeCompare(nameBWithoutExt);
|
|
246
|
+
if (result_1 === 0) {
|
|
247
|
+
// 如果文件名主体相同,再按扩展名排序(如果有扩展名)
|
|
248
|
+
var extA = a[field_1].split('.').length > 1 ? a[field_1].split('.')[1] : '';
|
|
249
|
+
var extB = a[field_1].split('.').length > 1 ? b[field_1].split('.')[1] : '';
|
|
250
|
+
if (extA || extB) {
|
|
251
|
+
return extA.localeCompare(extB);
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
return result_1;
|
|
255
|
+
}
|
|
241
256
|
if (a[field_1] < b[field_1]) {
|
|
242
257
|
return -1;
|
|
243
258
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React, { memo, useState, useEffect,
|
|
1
|
+
import React, { memo, useState, useEffect, Suspense } from 'react';
|
|
2
2
|
import { Tabs } from 'antd';
|
|
3
3
|
import AssociationList from './association';
|
|
4
4
|
import TrailList from './trail';
|
|
5
5
|
import SendAroundList from './send';
|
|
6
|
-
import { fetchAttachList
|
|
6
|
+
import { fetchAttachList } from '../service';
|
|
7
7
|
import Collapse from '../../Collapse';
|
|
8
8
|
import ZtUpload from './Upload';
|
|
9
9
|
import Gragh from './Gragh/Gragh';
|
|
@@ -31,21 +31,8 @@ var ProcessDetail = function (_a) {
|
|
|
31
31
|
var originFileList = [];
|
|
32
32
|
var _f = useState(originFileList), fileList = _f[0], setFileList = _f[1];
|
|
33
33
|
var _g = useState(0), sendTotal = _g[0], setSendTotal = _g[1];
|
|
34
|
-
var
|
|
35
|
-
var
|
|
36
|
-
var _k = useState(1), associationRefresh = _k[0], setAssociationRefresh = _k[1];
|
|
37
|
-
var _l = useState(false), attentionLoading = _l[0], setAttentionLoading = _l[1];
|
|
38
|
-
var _m = useState(false), isAttentionModalVisible = _m[0], setIsAttentionModalVisible = _m[1];
|
|
39
|
-
var _o = useState(320), iframeHeight = _o[0], setIframeHeight = _o[1];
|
|
40
|
-
var _p = useState(''), queryId = _p[0], setQueryId = _p[1];
|
|
41
|
-
var _q = useState(''), queryCode = _q[0], setQueryCode = _q[1];
|
|
42
|
-
var _r = useState(0), refreshContacts = _r[0], setRefreshContacts = _r[1];
|
|
43
|
-
var _s = useState(false), isAssocitionModalVisible = _s[0], setIsAssocitionModalVisible = _s[1];
|
|
44
|
-
var onCloseAssocitionModalHandle = useCallback(function () { return setIsAssocitionModalVisible(false); }, []);
|
|
45
|
-
var onRefreshAssocitionModalHandle = useCallback(function () { return setAssociationRefresh(associationRefresh + 1); }, [associationRefresh]);
|
|
46
|
-
var callRefreshContacts = function () {
|
|
47
|
-
setRefreshContacts(function (value) { return value + 1; });
|
|
48
|
-
};
|
|
34
|
+
var attentionRefresh = 1;
|
|
35
|
+
var associationRefresh = 1;
|
|
49
36
|
useEffect(function () {
|
|
50
37
|
if (Array.isArray(attachData)) {
|
|
51
38
|
var attachList_1 = [];
|
|
@@ -80,9 +67,6 @@ var ProcessDetail = function (_a) {
|
|
|
80
67
|
}
|
|
81
68
|
getAttachIds && getAttachIds(uids);
|
|
82
69
|
}, [fileList, getAttachIds]);
|
|
83
|
-
function handleCancelAttention() {
|
|
84
|
-
setIsAttentionModalVisible(false);
|
|
85
|
-
}
|
|
86
70
|
/**附件数据获取 */
|
|
87
71
|
useEffect(function () {
|
|
88
72
|
if (data === null || data === void 0 ? void 0 : data.processInstId) {
|
|
@@ -95,57 +79,6 @@ var ProcessDetail = function (_a) {
|
|
|
95
79
|
});
|
|
96
80
|
}
|
|
97
81
|
}, [data === null || data === void 0 ? void 0 : data.processInstId, type, data === null || data === void 0 ? void 0 : data.id, request]);
|
|
98
|
-
/**
|
|
99
|
-
* 预览附件回调
|
|
100
|
-
*/
|
|
101
|
-
var onPreviewCallback = useCallback(function (file) {
|
|
102
|
-
fetchPreviewData({
|
|
103
|
-
params: { id: file.fileId },
|
|
104
|
-
});
|
|
105
|
-
return true;
|
|
106
|
-
}, []);
|
|
107
|
-
function showAttentionModal() {
|
|
108
|
-
setRefreshContacts(function (value) { return value + 1; });
|
|
109
|
-
setQueryId(data === null || data === void 0 ? void 0 : data.processInstId);
|
|
110
|
-
setQueryCode('ATTENTION');
|
|
111
|
-
setIsAttentionModalVisible(true);
|
|
112
|
-
}
|
|
113
|
-
var _t = useState([]), targetKeys = _t[0], setTargetKeys = _t[1];
|
|
114
|
-
var _u = useState([]), empKeys = _u[0], setEmpKeys = _u[1];
|
|
115
|
-
var onTargetKeys = useCallback(function (empKeys, selectPerson) {
|
|
116
|
-
setEmpKeys(empKeys);
|
|
117
|
-
setTargetKeys(selectPerson);
|
|
118
|
-
}, [setEmpKeys, setTargetKeys]);
|
|
119
|
-
function swapColumns(parentName, columnIndexA, columnIndexB, header) {
|
|
120
|
-
var _a;
|
|
121
|
-
if (header === void 0) { header = false; }
|
|
122
|
-
var parent = document === null || document === void 0 ? void 0 : document.querySelector("." + parentName);
|
|
123
|
-
var table = parent === null || parent === void 0 ? void 0 : parent.querySelector('table');
|
|
124
|
-
if (table instanceof HTMLTableElement) {
|
|
125
|
-
if (header) {
|
|
126
|
-
for (var i = 0; i < 1; i++) {
|
|
127
|
-
var row = table === null || table === void 0 ? void 0 : table.rows[i];
|
|
128
|
-
if (row.cells.length > columnIndexA &&
|
|
129
|
-
row.cells.length > columnIndexB) {
|
|
130
|
-
var temp = row.cells[columnIndexA];
|
|
131
|
-
row.insertBefore(row.cells[columnIndexB], row.cells[columnIndexA]);
|
|
132
|
-
row.insertBefore(temp, row.cells[columnIndexB + 1]);
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
else {
|
|
137
|
-
for (var i = 1; i < ((_a = table === null || table === void 0 ? void 0 : table.rows) === null || _a === void 0 ? void 0 : _a.length); i++) {
|
|
138
|
-
var row = table === null || table === void 0 ? void 0 : table.rows[i];
|
|
139
|
-
if (row.cells.length > columnIndexA &&
|
|
140
|
-
row.cells.length > columnIndexB) {
|
|
141
|
-
var temp = row.cells[columnIndexA];
|
|
142
|
-
row.insertBefore(row.cells[columnIndexB], row.cells[columnIndexA]);
|
|
143
|
-
row.insertBefore(temp, row.cells[columnIndexB + 1]);
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
82
|
// 不修改附件组件的情况下更改其文件名的默认宽度
|
|
150
83
|
useEffect(function () {
|
|
151
84
|
// 获取第一个class为'flow-attachment'的元素
|
|
@@ -227,12 +160,12 @@ var ProcessDetail = function (_a) {
|
|
|
227
160
|
(data === null || data === void 0 ? void 0 : data.status) === 7 ||
|
|
228
161
|
(data === null || data === void 0 ? void 0 : data.status) === 7 ? (React.createElement(TabPane, { tab: "\u5269\u4F59\u5BA1\u6279\u73AF\u8282", key: "2" },
|
|
229
162
|
React.createElement("div", { style: { paddingTop: '10px', paddingBottom: '10px' } },
|
|
230
|
-
React.createElement(PreviewList, { request: request, processInstId: data === null || data === void 0 ? void 0 : data.processInstId, taskId: data === null || data === void 0 ? void 0 : data.id, refresh: attentionRefresh,
|
|
163
|
+
React.createElement(PreviewList, { request: request, processInstId: data === null || data === void 0 ? void 0 : data.processInstId, taskId: data === null || data === void 0 ? void 0 : data.id, refresh: attentionRefresh, disable: approve !== 'approve' || (data === null || data === void 0 ? void 0 : data.status) !== 0 })))) : (React.createElement(TabPane, { tab: "\u5168\u90E8\u5BA1\u6279\u73AF\u8282\u9884\u6F14", key: "2" },
|
|
231
164
|
React.createElement("div", { style: { paddingTop: '10px', paddingBottom: '10px' } },
|
|
232
|
-
React.createElement(PreviewList, { request: request, processInstId: data === null || data === void 0 ? void 0 : data.processInstId, taskId: data === null || data === void 0 ? void 0 : data.id, refresh: attentionRefresh,
|
|
165
|
+
React.createElement(PreviewList, { request: request, processInstId: data === null || data === void 0 ? void 0 : data.processInstId, taskId: data === null || data === void 0 ? void 0 : data.id, refresh: attentionRefresh, disable: approve !== 'approve' || (data === null || data === void 0 ? void 0 : data.status) !== 0 })))))),
|
|
233
166
|
React.createElement(Panel, { header: "\u81EA\u52A8\u6284\u9001", key: "3" },
|
|
234
167
|
React.createElement("div", { style: { paddingTop: '10px', paddingBottom: '10px' } },
|
|
235
|
-
React.createElement(AttentionList, { request: request, processInstId: data === null || data === void 0 ? void 0 : data.processInstId, refresh: attentionRefresh,
|
|
168
|
+
React.createElement(AttentionList, { request: request, processInstId: data === null || data === void 0 ? void 0 : data.processInstId, refresh: attentionRefresh, disable: approve !== 'approve' || (data === null || data === void 0 ? void 0 : data.status) !== 0 }))),
|
|
236
169
|
React.createElement(Panel, { header: "\u6D41\u7A0B\u64CD\u4F5C", key: "4" },
|
|
237
170
|
React.createElement("div", { style: { paddingTop: '10px', paddingBottom: '10px' } },
|
|
238
171
|
React.createElement(AuditList, { request: request, processInstId: data === null || data === void 0 ? void 0 : data.processInstId })))))))));
|
|
@@ -27,7 +27,7 @@ import { fetchAttachList } from '../../service';
|
|
|
27
27
|
var ZtUpload = function (_a) {
|
|
28
28
|
var request = _a.request, _b = _a.showTable, showTable = _b === void 0 ? true : _b, showUploadBtn = _a.showUploadBtn, showDownloadBtn = _a.showDownloadBtn, showAllDownloadBtn = _a.showAllDownloadBtn, showPreviewBtn = _a.showPreviewBtn, taskId = _a.taskId, showDeleteBtn = _a.showDeleteBtn, processInstId = _a.processInstId, isAutoDelete = _a.isAutoDelete, fileList = _a.fileList, callback = _a.callback, onDeleteCallback = _a.onDeleteCallback, restProps = __rest(_a, ["request", "showTable", "showUploadBtn", "showDownloadBtn", "showAllDownloadBtn", "showPreviewBtn", "taskId", "showDeleteBtn", "processInstId", "isAutoDelete", "fileList", "callback", "onDeleteCallback"]);
|
|
29
29
|
var _c = useState({}), listRecord = _c[0], setListRecord = _c[1];
|
|
30
|
-
var
|
|
30
|
+
var current = listRecord.current, size = listRecord.size;
|
|
31
31
|
/**
|
|
32
32
|
* @description 默认要带上用户公司、部门、最近时间
|
|
33
33
|
* UPDATE:这个是列表表单默认的查询条件
|
|
@@ -16,7 +16,7 @@ import { fetchAttentionList } from '../../service';
|
|
|
16
16
|
import Footer from '../../../business/Footer';
|
|
17
17
|
import { message } from 'antd';
|
|
18
18
|
var AttentionList = function (_a) {
|
|
19
|
-
var request = _a.request, processInstId = _a.processInstId, refresh = _a.refresh, disable = _a.disable
|
|
19
|
+
var request = _a.request, processInstId = _a.processInstId, refresh = _a.refresh, disable = _a.disable;
|
|
20
20
|
var _b = useState({}), listRecord = _b[0], setListRecord = _b[1];
|
|
21
21
|
var records = listRecord.records, current = listRecord.current, size = listRecord.size, total = listRecord.total, extra = listRecord.extra;
|
|
22
22
|
var _c = useState(0), listCurrentPage = _c[0], setListCurrentPage = _c[1];
|
|
@@ -79,14 +79,7 @@ var AttentionList = function (_a) {
|
|
|
79
79
|
message.error(((_b = (_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.msg) || '请求失败!');
|
|
80
80
|
setListRecord([]);
|
|
81
81
|
});
|
|
82
|
-
|
|
83
|
-
}, [
|
|
84
|
-
currentParams,
|
|
85
|
-
listCurrentPage,
|
|
86
|
-
listPageSize,
|
|
87
|
-
callRefreshContacts,
|
|
88
|
-
request,
|
|
89
|
-
]);
|
|
82
|
+
}, [currentParams, listCurrentPage, listPageSize, request]);
|
|
90
83
|
return (React.createElement(React.Fragment, null,
|
|
91
84
|
React.createElement(TableList, { records: records, onReload: onReload, extra: extra, disable: disable }),
|
|
92
85
|
React.createElement(Footer, { footerDom: footerDom })));
|
|
@@ -4,7 +4,7 @@ import TableList from './component/TableList';
|
|
|
4
4
|
import { fetchPreviewList } from '../../service';
|
|
5
5
|
var PreviewList = function (_a) {
|
|
6
6
|
// UPDATE:获取当前路由对应得按钮权限
|
|
7
|
-
var request = _a.request, processInstId = _a.processInstId, taskId = _a.taskId, refresh = _a.refresh, disable = _a.disable
|
|
7
|
+
var request = _a.request, processInstId = _a.processInstId, taskId = _a.taskId, refresh = _a.refresh, disable = _a.disable;
|
|
8
8
|
var _b = useState(false), loading = _b[0], setLoading = _b[1];
|
|
9
9
|
var _c = useState(null), records = _c[0], setRecords = _c[1];
|
|
10
10
|
/**
|
|
@@ -23,7 +23,6 @@ var PreviewList = function (_a) {
|
|
|
23
23
|
}
|
|
24
24
|
setRecords(res.data.data);
|
|
25
25
|
setLoading(false);
|
|
26
|
-
callRefreshContacts();
|
|
27
26
|
})
|
|
28
27
|
.catch(function (error) {
|
|
29
28
|
var _a, _b;
|
|
@@ -31,7 +30,7 @@ var PreviewList = function (_a) {
|
|
|
31
30
|
setRecords([]);
|
|
32
31
|
setLoading(false);
|
|
33
32
|
});
|
|
34
|
-
}, [processInstId, taskId,
|
|
33
|
+
}, [processInstId, taskId, request]);
|
|
35
34
|
useEffect(function () {
|
|
36
35
|
setLoading(true);
|
|
37
36
|
var params = {
|
|
@@ -118,7 +118,7 @@ var TableList = function (_a) {
|
|
|
118
118
|
result = temp.filter(function (item) {
|
|
119
119
|
return item.activityDefName !== record.activityDefName ||
|
|
120
120
|
(item.activityDefName === record.activityDefName &&
|
|
121
|
-
(item.list || item.vieweState
|
|
121
|
+
(item.list || item.vieweState === 0));
|
|
122
122
|
});
|
|
123
123
|
}
|
|
124
124
|
setFilterRecords(result);
|
|
@@ -15,7 +15,7 @@ import { fetchTrailList } from '../../service';
|
|
|
15
15
|
var TrailList = function (_a) {
|
|
16
16
|
var request = _a.request, _b = _a.appCode, appCode = _b === void 0 ? '' : _b, processInstId = _a.processInstId, taskId = _a.taskId, refresh = _a.refresh, editOpinionAuth = _a.editOpinionAuth;
|
|
17
17
|
var _c = useState({}), listRecord = _c[0], setListRecord = _c[1];
|
|
18
|
-
var records = listRecord.records, current = listRecord.current, size = listRecord.size,
|
|
18
|
+
var records = listRecord.records, current = listRecord.current, size = listRecord.size, extra = listRecord.extra;
|
|
19
19
|
// /**
|
|
20
20
|
// * @description 默认要带上用户公司、部门、最近时间
|
|
21
21
|
// * UPDATE:这个是列表表单默认的查询条件
|
|
@@ -9,45 +9,9 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
13
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
14
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
15
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
16
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
17
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
18
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
19
|
-
});
|
|
20
|
-
};
|
|
21
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
22
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
23
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
24
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
25
|
-
function step(op) {
|
|
26
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
27
|
-
while (_) try {
|
|
28
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
29
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
30
|
-
switch (op[0]) {
|
|
31
|
-
case 0: case 1: t = op; break;
|
|
32
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
33
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
34
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
35
|
-
default:
|
|
36
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
37
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
38
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
39
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
40
|
-
if (t[2]) _.ops.pop();
|
|
41
|
-
_.trys.pop(); continue;
|
|
42
|
-
}
|
|
43
|
-
op = body.call(thisArg, _);
|
|
44
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
45
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
12
|
import React from 'react';
|
|
49
13
|
import { Checkbox } from 'antd';
|
|
50
|
-
import {
|
|
14
|
+
import { useEffect, useState } from 'react';
|
|
51
15
|
import { Typography } from 'antd';
|
|
52
16
|
import Header from './component/Header';
|
|
53
17
|
import ProcessDetail from './component/ProcessDetail';
|
|
@@ -194,41 +158,35 @@ var WorkflowPrintContainer = function (_a) {
|
|
|
194
158
|
* @returns {React.LazyExoticComponent} - 懒加载组件
|
|
195
159
|
*/
|
|
196
160
|
function createLazyComponent(data) {
|
|
197
|
-
var _this = this;
|
|
198
161
|
if (getComponet) {
|
|
199
162
|
var module_1 = getComponet(data);
|
|
200
163
|
// 返回默认导出或整个模块
|
|
201
164
|
return module_1;
|
|
202
165
|
}
|
|
203
|
-
return
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
}];
|
|
228
|
-
case 3: return [2 /*return*/];
|
|
229
|
-
}
|
|
230
|
-
});
|
|
231
|
-
}); });
|
|
166
|
+
return React.createElement(FallbackComponent, null);
|
|
167
|
+
// return lazy(async () => {
|
|
168
|
+
// try {
|
|
169
|
+
// // 动态导入模块
|
|
170
|
+
// const module = await import(`pages/module/${data?.printUrl}`).catch(
|
|
171
|
+
// (error) => {
|
|
172
|
+
// console.error('Failed to load component:', error);
|
|
173
|
+
// // 返回一个对象,该对象有一个 `default` 属性指向备选组件
|
|
174
|
+
// return {
|
|
175
|
+
// default: FallbackComponent,
|
|
176
|
+
// };
|
|
177
|
+
// }
|
|
178
|
+
// );
|
|
179
|
+
// // 返回默认导出或整个模块
|
|
180
|
+
// return module;
|
|
181
|
+
// } catch (error) {
|
|
182
|
+
// // 记录错误信息
|
|
183
|
+
// console.error('Failed to load component:', error);
|
|
184
|
+
// // 返回一个对象,其中包含默认导出的备选组件
|
|
185
|
+
// return {
|
|
186
|
+
// default: () => <FallbackComponent />,
|
|
187
|
+
// };
|
|
188
|
+
// }
|
|
189
|
+
// });
|
|
232
190
|
}
|
|
233
191
|
var getContent = function (data) {
|
|
234
192
|
var _a, _b;
|
|
@@ -39,7 +39,7 @@ var FileOperation = function (props) {
|
|
|
39
39
|
onWatermarkChange && onWatermarkChange(e.target.checked);
|
|
40
40
|
} }, "\u6DFB\u52A0\u6C34\u5370"))),
|
|
41
41
|
React.createElement("div", { className: "file-operation--list" },
|
|
42
|
-
|
|
42
|
+
isReplaceFile && (React.createElement(FileUpload, { fileList: fileList, apiBaseUrl: apiBaseUrl, onFileChange: onFileChange, type: "link" }, "\u66FF\u6362")),
|
|
43
43
|
isDownload && fileId ? (React.createElement(Button, { type: "link", onClick: function () {
|
|
44
44
|
downloadFileCallBack(apiBaseUrl, fileId, dangerouslySetXss(fileName) || '附件', {
|
|
45
45
|
addWaterMark: false,
|
|
@@ -798,7 +798,7 @@ var ElectronSignatures = function (props) {
|
|
|
798
798
|
return (React.createElement(ElectronSignaturesFragment, __assign({ key: index, dataType: "" + index, onTrackChange: onTrackChange, request: request, isUnControlled: isUnControlled, setLoading: setLoading, apiBaseUrl: apiBaseUrl, fileBaseUrl: fileBaseUrl, isSingleQj: isSingleQj }, mergeOptions)));
|
|
799
799
|
}),
|
|
800
800
|
React.createElement(ElectronSealBatchDownload, { request: request, apiBaseUrl: apiBaseUrl, selectRows: selectRows, allData: allData, isShowElectronBatchBtn: isShowElectronBatchBtn, isShowDownloadBatchBtn: isShowDownloadBatchBtn, isShowDoubleSignedBatchBtn: isShowDoubleSignedBatchBtn, batchDownloadZipName: batchDownloadZipName, firstDataType: firstDataType }, isShowFileUpload && currentIsEditMemo ? (React.createElement(FileUpload, __assign({ fileList: sameTypeRecords, apiBaseUrl: apiBaseUrl, onFileChange: onFileChange, multiple: true }, fileUploadProps), "\u6DFB\u52A0\u9644\u4EF6")) : null),
|
|
801
|
-
React.createElement(Table, { dataSource: mergeRecords, columns: columns, rowKey:
|
|
801
|
+
React.createElement(Table, { dataSource: mergeRecords, columns: columns, rowKey: function (record) { return record.id || record.attachId; }, className: "zt-table electron-table", bordered: true, pagination: false, loading: loading, rowSelection: myRowSelection, scroll: __assign({ x: 'max-content', y: 500 }, tableScroll) }),
|
|
802
802
|
React.createElement(LastQysModal, { modalHandleRef: modalHandleRef, appointSignLocation: function (info) {
|
|
803
803
|
// 未盖章的印章id列表
|
|
804
804
|
var needReSealList = info.needReSealList;
|