ztxkui 4.2.18-9 → 4.2.18-91
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/App.js +315 -291
- package/dist/Demo.js +58 -42
- package/dist/DemoCom/BasicDemo.js +57 -56
- package/dist/DemoCom/CodeQueryDemo.js +3 -2
- package/dist/DemoCom/CollapseDemo.js +28 -27
- package/dist/DemoCom/DragSort.js +11 -10
- package/dist/DemoCom/FormDemo.js +36 -30
- package/dist/DemoCom/PrintContainerDemo.js +151 -150
- package/dist/DemoCom/PrintDemo.js +15 -14
- package/dist/DemoCom/SinaturesDemo.js +9 -8
- package/dist/DemoCom/SyhDemo.js +21 -20
- package/dist/DemoCom/TableAnalyse.js +34 -33
- package/dist/DemoCom/TableDemo.js +74 -70
- package/dist/DemoCom/TableDemo1.js +34 -33
- package/dist/DemoCom/TableDetail.d.ts +9 -0
- package/dist/DemoCom/TableDetail.js +259 -0
- package/dist/DemoCom/TestCom.js +22 -19
- package/dist/DemoCom/data.d.ts +110 -0
- package/dist/DemoCom/data.js +2308 -0
- package/dist/TableDemo/BasicTable.js +103 -29
- package/dist/TableDemo/EditableTable.js +177 -91
- package/dist/TableDemo/ModalTable.js +25 -24
- package/dist/TableDemo/ProEditableTable.d.ts +21 -0
- package/dist/TableDemo/ProEditableTable.js +483 -0
- package/dist/TableDemo/data.d.ts +15 -0
- package/dist/TableDemo/data.js +44 -11
- package/dist/TableDemo/index.js +5 -4
- package/dist/TreeDemo.js +8 -7
- package/dist/TreeSelectDemo.js +10 -7
- package/dist/UI/Form/index.d.ts +3 -0
- package/dist/UI/Form/index.js +346 -0
- package/dist/UI/index.d.ts +2 -0
- package/dist/UI/index.js +10 -0
- package/dist/UploadDemo.js +12 -17
- package/dist/components/Button/button.js +3 -2
- package/dist/components/Collapse/collapse.js +2 -1
- package/dist/components/EnhanceSelect/index.d.ts +5 -1
- package/dist/components/EnhanceSelect/index.js +179 -32
- package/dist/components/EnhanceTree/index.js +4 -3
- package/dist/components/EnhanceTreeSelect/index.js +11 -5
- package/dist/components/Export/export.js +5 -4
- package/dist/components/Input/input.d.ts +3 -0
- package/dist/components/Input/input.js +53 -3
- package/dist/components/InputNumber/input-number.js +3 -2
- package/dist/components/NumberCase/index.js +9 -7
- package/dist/components/Print/print.js +4 -3
- package/dist/components/PrintContainer/AttachPreviewModal.js +3 -2
- package/dist/components/PrintContainer/PrintModal.js +4 -3
- package/dist/components/PrintContainer/handle.d.ts +2 -4
- package/dist/components/PrintContainer/handle.js +3 -2
- package/dist/components/PrintContainer/lodop.js +2 -1
- package/dist/components/PrintContainer/print-container.js +74 -73
- package/dist/components/PrintContainer/service.js +5 -4
- package/dist/components/ProForm/hooks.d.ts +23 -0
- package/dist/components/ProForm/hooks.js +209 -0
- package/dist/components/ProForm/index.d.ts +6 -0
- package/dist/components/ProForm/index.js +101 -0
- package/dist/components/ProForm/interface.d.ts +169 -0
- package/dist/components/ProForm/interface.js +1 -0
- package/dist/components/ProForm/item.d.ts +13 -0
- package/dist/components/ProForm/item.js +221 -0
- package/dist/components/ProForm/items.d.ts +5 -0
- package/dist/components/ProForm/items.js +36 -0
- package/dist/components/ProForm/search-drawer.d.ts +12 -0
- package/dist/components/ProForm/search-drawer.js +202 -0
- package/dist/components/ProForm/setting.d.ts +5 -0
- package/dist/components/ProForm/setting.js +13 -0
- package/dist/components/ProFormList/index.d.ts +12 -0
- package/dist/components/ProFormList/index.js +34 -0
- package/dist/components/ProTable/hooks.d.ts +28 -0
- package/dist/components/ProTable/hooks.js +279 -0
- package/dist/components/ProTable/index.d.ts +8 -0
- package/dist/components/ProTable/index.js +77 -0
- package/dist/components/ProTable/interface.d.ts +51 -0
- package/dist/components/ProTable/interface.js +1 -0
- package/dist/components/RangePicker/range-picker.js +5 -2
- package/dist/components/SortableCancel/sortable-cancel.d.ts +1 -0
- package/dist/components/SortableCancel/sortable-cancel.js +2 -2
- package/dist/components/Table/components/FillDown.d.ts +8 -0
- package/dist/components/Table/components/FillDown.js +11 -0
- package/dist/components/Table/components/FilterDropdown.d.ts +15 -0
- package/dist/components/Table/components/FilterDropdown.js +93 -0
- package/dist/components/Table/constants.d.ts +2 -0
- package/dist/components/Table/constants.js +2 -0
- package/dist/components/Table/hooks/useColumns.d.ts +25 -8
- package/dist/components/Table/hooks/useColumns.js +704 -180
- package/dist/components/Table/hooks/useDropRef.js +4 -2
- package/dist/components/Table/hooks/useInnerPagination.js +1 -0
- package/dist/components/Table/hooks/useSelectSubtotal.d.ts +4 -0
- package/dist/components/Table/hooks/useSelectSubtotal.js +182 -0
- package/dist/components/Table/hooks/useVituralScrollBar.d.ts +10 -0
- package/dist/components/Table/hooks/useVituralScrollBar.js +234 -0
- package/dist/components/Table/index.d.ts +11 -0
- package/dist/components/Table/table-adddel-column.d.ts +8 -5
- package/dist/components/Table/table-adddel-column.js +16 -5
- package/dist/components/Table/table-dynamic.js +165 -18
- package/dist/components/Table/table-enhance-cell.d.ts +7 -3
- package/dist/components/Table/table-enhance-cell.js +214 -109
- package/dist/components/Table/table-enhance-row.d.ts +4 -4
- package/dist/components/Table/table-enhance-row.js +10 -11
- package/dist/components/Table/table-headTooltip.d.ts +6 -0
- package/dist/components/Table/table-headTooltip.js +13 -0
- package/dist/components/Table/table-resizable-title.d.ts +4 -5
- package/dist/components/Table/table-resizable-title.js +33 -6
- package/dist/components/Table/table-sort.d.ts +11 -0
- package/dist/components/Table/table-sort.js +66 -0
- package/dist/components/Table/table.d.ts +30 -4
- package/dist/components/Table/table.js +526 -180
- package/dist/components/Table/utils/dom.d.ts +26 -0
- package/dist/components/Table/utils/dom.js +123 -0
- package/dist/components/Table/utils/filterHandle.d.ts +1 -0
- package/dist/components/Table/utils/filterHandle.js +66 -0
- package/dist/components/Table/utils/getSummaryData.d.ts +2 -1
- package/dist/components/Table/utils/getSummaryData.js +282 -25
- package/dist/components/Table/utils/shallowEqual.d.ts +2 -0
- package/dist/components/Table/utils/shallowEqual.js +35 -0
- package/dist/components/Table/utils/validate.d.ts +1 -1
- package/dist/components/Table/utils/validate.js +30 -11
- package/dist/components/TreeSelect/index.d.ts +15 -0
- package/dist/components/TreeSelect/index.js +29 -0
- package/dist/components/Upload/upload-table.js +31 -26
- package/dist/components/Upload/upload.js +23 -18
- package/dist/components/Upload/utils.js +11 -10
- package/dist/components/UploadSingle/upload-single.js +5 -4
- package/dist/components/Watermark/index.d.ts +2 -0
- package/dist/components/Watermark/index.js +2 -0
- package/dist/components/Watermark/interface.d.ts +20 -0
- package/dist/components/Watermark/interface.js +1 -0
- package/dist/components/Watermark/utils.d.ts +1 -0
- package/dist/components/Watermark/utils.js +70 -0
- package/dist/components/Watermark/water.d.ts +50 -0
- package/dist/components/Watermark/water.js +66 -0
- package/dist/components/Watermark/watermark-div.d.ts +4 -0
- package/dist/components/Watermark/watermark-div.js +41 -0
- package/dist/components/Watermark/watermark-shadow.d.ts +6 -0
- package/dist/components/Watermark/watermark-shadow.js +116 -0
- package/dist/components/Watermark/watermark.d.ts +3 -0
- package/dist/components/Watermark/watermark.js +102 -0
- package/dist/components/WorkflowPrintContainer/component/Gragh/Gragh.d.ts +9 -0
- package/dist/components/WorkflowPrintContainer/component/Gragh/Gragh.js +63 -0
- package/dist/components/WorkflowPrintContainer/component/Header.d.ts +12 -0
- package/dist/components/WorkflowPrintContainer/component/Header.js +109 -0
- package/dist/components/WorkflowPrintContainer/component/ProcessDetail.d.ts +18 -0
- package/dist/components/WorkflowPrintContainer/component/ProcessDetail.js +243 -0
- package/dist/components/WorkflowPrintContainer/component/Upload/index.d.ts +20 -0
- package/dist/components/WorkflowPrintContainer/component/Upload/index.js +59 -0
- package/dist/components/WorkflowPrintContainer/component/association/component/TableList.d.ts +10 -0
- package/dist/components/WorkflowPrintContainer/component/association/component/TableList.js +75 -0
- package/dist/components/WorkflowPrintContainer/component/association/index.d.ts +9 -0
- package/dist/components/WorkflowPrintContainer/component/association/index.js +92 -0
- package/dist/components/WorkflowPrintContainer/component/attention/component/TableList.d.ts +9 -0
- package/dist/components/WorkflowPrintContainer/component/attention/component/TableList.js +38 -0
- package/dist/components/WorkflowPrintContainer/component/attention/index.d.ts +10 -0
- package/dist/components/WorkflowPrintContainer/component/attention/index.js +95 -0
- package/dist/components/WorkflowPrintContainer/component/audit/component/TableList.d.ts +8 -0
- package/dist/components/WorkflowPrintContainer/component/audit/component/TableList.js +53 -0
- package/dist/components/WorkflowPrintContainer/component/audit/index.d.ts +7 -0
- package/dist/components/WorkflowPrintContainer/component/audit/index.js +88 -0
- package/dist/components/WorkflowPrintContainer/component/previewTable/component/TableList.d.ts +9 -0
- package/dist/components/WorkflowPrintContainer/component/previewTable/component/TableList.js +53 -0
- package/dist/components/WorkflowPrintContainer/component/previewTable/index.d.ts +11 -0
- package/dist/components/WorkflowPrintContainer/component/previewTable/index.js +60 -0
- package/dist/components/WorkflowPrintContainer/component/send/component/TableList.d.ts +9 -0
- package/dist/components/WorkflowPrintContainer/component/send/component/TableList.js +50 -0
- package/dist/components/WorkflowPrintContainer/component/send/index.d.ts +9 -0
- package/dist/components/WorkflowPrintContainer/component/send/index.js +92 -0
- package/dist/components/WorkflowPrintContainer/component/trail/component/TableList.d.ts +12 -0
- package/dist/components/WorkflowPrintContainer/component/trail/component/TableList.js +282 -0
- package/dist/components/WorkflowPrintContainer/component/trail/index.d.ts +11 -0
- package/dist/components/WorkflowPrintContainer/component/trail/index.js +56 -0
- package/dist/components/WorkflowPrintContainer/images.d.ts +2 -0
- package/dist/components/WorkflowPrintContainer/images.js +2 -0
- package/dist/components/WorkflowPrintContainer/index.d.ts +2 -0
- package/dist/components/WorkflowPrintContainer/index.js +2 -0
- package/dist/components/WorkflowPrintContainer/service.d.ts +14 -0
- package/dist/components/WorkflowPrintContainer/service.js +101 -0
- package/dist/components/WorkflowPrintContainer/usePagination.d.ts +14 -0
- package/dist/components/WorkflowPrintContainer/usePagination.js +22 -0
- package/dist/components/WorkflowPrintContainer/workflow-print-container.d.ts +100 -0
- package/dist/components/WorkflowPrintContainer/workflow-print-container.js +236 -0
- package/dist/components/business/Analyse/index.js +12 -11
- package/dist/components/business/CodeQuery/component/SearchForm.js +3 -2
- package/dist/components/business/CodeQuery/component/TableList.js +5 -4
- package/dist/components/business/CodeQuery/hooks.js +2 -1
- package/dist/components/business/CodeQuery/index.js +2 -1
- package/dist/components/business/Common/UserForgetPassword/index.js +36 -28
- package/dist/components/business/Common/UserInfo/component/MakingForm.js +11 -10
- package/dist/components/business/Common/UserInfo/index.js +7 -4
- package/dist/components/business/Common/UserPassword/index.d.ts +1 -0
- package/dist/components/business/Common/UserPassword/index.js +39 -18
- package/dist/components/business/Common/validatePassword.d.ts +1 -1
- package/dist/components/business/Common/validatePassword.js +17 -7
- package/dist/components/business/DetailCard/index.js +7 -6
- package/dist/components/business/DetailHeader/index.js +7 -6
- package/dist/components/business/DetailList/index.js +5 -4
- package/dist/components/business/DgColumns/index.js +12 -11
- package/dist/components/business/ExportButton/index.js +6 -5
- package/dist/components/business/Footer/index.js +4 -1
- package/dist/components/business/GridList/item.d.ts +1 -1
- package/dist/components/business/List/item.d.ts +1 -1
- package/dist/components/business/NewList/item.d.ts +1 -1
- package/dist/components/business/NewList/item.js +1 -1
- package/dist/components/business/OperationBtnGroup/index.js +17 -16
- package/dist/components/business/SearchContainer/hooks/useToggle.d.ts +1 -1
- package/dist/components/business/SearchContainer/hooks/useToggle.js +5 -4
- package/dist/components/business/SearchContainer/record-common-item.d.ts +14 -0
- package/dist/components/business/SearchContainer/record-common-item.js +82 -0
- package/dist/components/business/SearchContainer/record-common-list.d.ts +3 -0
- package/dist/components/business/SearchContainer/record-common-list.js +64 -0
- package/dist/components/business/SearchContainer/search-container.d.ts +13 -0
- package/dist/components/business/SearchContainer/search-container.js +32 -3
- package/dist/components/business/SearchContainer/search-drawer.d.ts +1 -0
- package/dist/components/business/SearchContainer/search-drawer.js +139 -13
- package/dist/components/business/SearchContainer/search-item.js +33 -2
- package/dist/components/business/SearchContainer/search-left.d.ts +1 -0
- package/dist/components/business/SearchContainer/search-left.js +11 -3
- package/dist/components/business/SearchContainer/search-right.js +23 -4
- package/dist/components/business/SearchContainer/useRecordCommonInit.d.ts +15 -0
- package/dist/components/business/SearchContainer/useRecordCommonInit.js +242 -0
- package/dist/components/business/SearchContainer/useRecordCommonSearch.d.ts +7 -0
- package/dist/components/business/SearchContainer/useRecordCommonSearch.js +140 -0
- package/dist/components/business/SearchContainer/useRecordCommonSearchContext.d.ts +31 -0
- package/dist/components/business/SearchContainer/useRecordCommonSearchContext.js +8 -0
- package/dist/components/business/Signatures/components/AttachOperation.js +7 -6
- package/dist/components/business/Signatures/components/CompareResult.js +7 -6
- package/dist/components/business/Signatures/components/DetailTable.js +37 -34
- package/dist/components/business/Signatures/components/QunjSeal.js +5 -4
- package/dist/components/business/Signatures/components/SealCheckbox.js +3 -2
- package/dist/components/business/Signatures/components/TemplateAttach.js +2 -1
- package/dist/components/business/Signatures/index.js +64 -53
- package/dist/components/business/SortList/sort-drawer.js +5 -4
- package/dist/components/business/Template/index.js +11 -10
- package/dist/components/utils/MyStorage.d.ts +36 -0
- package/dist/components/utils/MyStorage.js +120 -0
- package/dist/components/utils/ZtxkContext.d.ts +34 -0
- package/dist/components/utils/ZtxkContext.js +13 -0
- package/dist/components/utils/fetch.d.ts +10 -0
- package/dist/components/utils/fetch.js +119 -0
- package/dist/components/utils/index.d.ts +1 -0
- package/dist/components/utils/index.js +20 -0
- package/dist/components/utils/processNumber.d.ts +12 -0
- package/dist/components/utils/processNumber.js +106 -0
- package/dist/components/utils/upload.js +6 -3
- package/dist/components/utils/useBaseContext.d.ts +5 -0
- package/dist/components/utils/useBaseContext.js +10 -0
- package/dist/components/utils/useLastest.d.ts +2 -0
- package/dist/components/utils/useLastest.js +6 -0
- package/dist/components/utils/useMemoizedFn.d.ts +4 -0
- package/dist/components/utils/useMemoizedFn.js +19 -0
- package/dist/constants.d.ts +1 -1
- package/dist/constants.js +1 -1
- package/dist/index.css +1011 -7
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +10 -1
- package/dist/index.js +200 -84
- package/dist/locales/en-US.json +818 -0
- package/dist/locales/zh-CN.json +818 -0
- package/dist/request.js +6 -5
- package/package.json +7 -2
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
// 查询任务详情
|
|
2
|
+
export function detailRequest(request, params) {
|
|
3
|
+
return request === null || request === void 0 ? void 0 : request({
|
|
4
|
+
url: '/api/zmdms-workflow-client/wf/task/detail',
|
|
5
|
+
method: 'GET',
|
|
6
|
+
params: params,
|
|
7
|
+
});
|
|
8
|
+
}
|
|
9
|
+
// 批量查询任务详情
|
|
10
|
+
export function detailBatchRequest(request, data) {
|
|
11
|
+
return request === null || request === void 0 ? void 0 : request({
|
|
12
|
+
url: '/api/zmdms-workflow-client/wf/task/detail-batch',
|
|
13
|
+
method: 'POST',
|
|
14
|
+
data: data,
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
// 查询通知详情
|
|
18
|
+
export function noticeDetailRequest(request, data) {
|
|
19
|
+
return request === null || request === void 0 ? void 0 : request({
|
|
20
|
+
url: "/api/zmdms-workflow-client/wf/notice/detail-read",
|
|
21
|
+
method: 'GET',
|
|
22
|
+
params: data,
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
// 附件列表不分页
|
|
26
|
+
export function fetchAttachList(request, params) {
|
|
27
|
+
return request === null || request === void 0 ? void 0 : request({
|
|
28
|
+
url: '/api/zmdms-workflow-client/wf/attach/list',
|
|
29
|
+
method: 'GET',
|
|
30
|
+
params: params,
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
// 下载附件
|
|
34
|
+
export function fetchDownloadData(request, params) {
|
|
35
|
+
return request === null || request === void 0 ? void 0 : request({
|
|
36
|
+
url: "/api/zmdms-workflow-client/wf/attach/download/" + (params === null || params === void 0 ? void 0 : params.id),
|
|
37
|
+
method: 'POST',
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
// 预览附件
|
|
41
|
+
export function fetchPreviewData(request, params) {
|
|
42
|
+
return request === null || request === void 0 ? void 0 : request({
|
|
43
|
+
url: "/api/zmdms-workflow-client/wf/attach/preview/" + (params === null || params === void 0 ? void 0 : params.id),
|
|
44
|
+
method: 'POST',
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
// 获取流程图
|
|
48
|
+
export function graph(request, params) {
|
|
49
|
+
return request === null || request === void 0 ? void 0 : request({
|
|
50
|
+
url: "/api/zmdms-workflow-client/wf/process-inst/process-graph?procInstId=" + params.procInstId,
|
|
51
|
+
method: 'GET',
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
export function queryOpinionHistoryRequest(request, taskId) {
|
|
55
|
+
return request === null || request === void 0 ? void 0 : request({
|
|
56
|
+
url: "/api/zmdms-workflow-client/wf/trail/query-opinion-his/" + taskId,
|
|
57
|
+
method: 'GET',
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
export function fetchTrailList(request, params) {
|
|
61
|
+
return request === null || request === void 0 ? void 0 : request({
|
|
62
|
+
url: '/api/zmdms-workflow-client/wf/trail/page',
|
|
63
|
+
method: 'GET',
|
|
64
|
+
params: params,
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
export function fetchAssociationList(request, params) {
|
|
68
|
+
return request === null || request === void 0 ? void 0 : request({
|
|
69
|
+
url: '/api/zmdms-workflow-client/wf/association/list',
|
|
70
|
+
method: 'POST',
|
|
71
|
+
params: params,
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
export function fetchSendList(request, params) {
|
|
75
|
+
return request === null || request === void 0 ? void 0 : request({
|
|
76
|
+
url: '/api/zmdms-workflow-client/wf/notice/page-distribute',
|
|
77
|
+
method: 'GET',
|
|
78
|
+
params: params,
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
export function fetchPreviewList(request, params) {
|
|
82
|
+
return request === null || request === void 0 ? void 0 : request({
|
|
83
|
+
url: "/api/zmdms-workflow-client/wf/process-inst/preview/" + params.processInstId,
|
|
84
|
+
method: 'POST',
|
|
85
|
+
params: params,
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
export function fetchAttentionList(request, params) {
|
|
89
|
+
return request === null || request === void 0 ? void 0 : request({
|
|
90
|
+
url: "/api/zmdms-workflow-client/wf/process-inst/preview/" + params.processInstId,
|
|
91
|
+
method: 'POST',
|
|
92
|
+
params: params,
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
export function fetchAuditList(request, params) {
|
|
96
|
+
return request === null || request === void 0 ? void 0 : request({
|
|
97
|
+
url: '/api/zmdms-workflow-client/wf/operation-log/page',
|
|
98
|
+
method: 'GET',
|
|
99
|
+
params: params,
|
|
100
|
+
});
|
|
101
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IFooterDom } from '../business/Footer';
|
|
2
|
+
interface IUsePagination {
|
|
3
|
+
setListCurrentPage: any;
|
|
4
|
+
setListPageSize: any;
|
|
5
|
+
total: number;
|
|
6
|
+
current: number;
|
|
7
|
+
size: number;
|
|
8
|
+
isDispatch?: boolean;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* @description 获取底部分页组件的内容
|
|
12
|
+
*/
|
|
13
|
+
declare function usePagination({ setListCurrentPage, setListPageSize, total, current, size, }: IUsePagination): IFooterDom[];
|
|
14
|
+
export default usePagination;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { useMemo, useCallback } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* @description 获取底部分页组件的内容
|
|
4
|
+
*/
|
|
5
|
+
function usePagination(_a) {
|
|
6
|
+
var setListCurrentPage = _a.setListCurrentPage, setListPageSize = _a.setListPageSize, total = _a.total, current = _a.current, size = _a.size;
|
|
7
|
+
var onPaginationChange = useCallback(function (current, size) {
|
|
8
|
+
setListCurrentPage(current);
|
|
9
|
+
setListPageSize(size);
|
|
10
|
+
}, [setListCurrentPage, setListPageSize]);
|
|
11
|
+
var footerDom = useMemo(function () { return [
|
|
12
|
+
{
|
|
13
|
+
DOMType: 'pagination',
|
|
14
|
+
total: total,
|
|
15
|
+
current: current,
|
|
16
|
+
pageSize: size,
|
|
17
|
+
onChange: onPaginationChange,
|
|
18
|
+
},
|
|
19
|
+
]; }, [total, size, current, onPaginationChange]);
|
|
20
|
+
return footerDom;
|
|
21
|
+
}
|
|
22
|
+
export default usePagination;
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* 任务状态:待办
|
|
4
|
+
*/
|
|
5
|
+
export declare const TO_DO = 0;
|
|
6
|
+
/**
|
|
7
|
+
* 任务状态:已办
|
|
8
|
+
*/
|
|
9
|
+
export declare const DONE = 1;
|
|
10
|
+
/**
|
|
11
|
+
* 任务状态:待领取
|
|
12
|
+
*/
|
|
13
|
+
export declare const TO_TAKE = 2;
|
|
14
|
+
/**
|
|
15
|
+
* 任务状态:取消
|
|
16
|
+
*/
|
|
17
|
+
export declare const CANCELED = 3;
|
|
18
|
+
/**
|
|
19
|
+
* 任务状态:终止
|
|
20
|
+
*/
|
|
21
|
+
export declare const TERMINATED = 4;
|
|
22
|
+
/**
|
|
23
|
+
* 任务状态:驳回
|
|
24
|
+
*/
|
|
25
|
+
export declare const REJECTED = 5;
|
|
26
|
+
/**
|
|
27
|
+
* 任务状态:驳回待修改
|
|
28
|
+
*/
|
|
29
|
+
export declare const REJECT_TO_EDIT = 6;
|
|
30
|
+
/**
|
|
31
|
+
* 任务状态:撤回待修改
|
|
32
|
+
*/
|
|
33
|
+
export declare const DRAWBACK_TO_EDIT = 7;
|
|
34
|
+
/**
|
|
35
|
+
* 流程状态:未启动
|
|
36
|
+
*/
|
|
37
|
+
export declare const NOT_STARTED = 1;
|
|
38
|
+
/**
|
|
39
|
+
* 流程状态:审批中
|
|
40
|
+
*/
|
|
41
|
+
export declare const IN_APPROVAL = 2;
|
|
42
|
+
/**
|
|
43
|
+
* 流程状态:已挂起
|
|
44
|
+
*/
|
|
45
|
+
export declare const SUSPENDED = 3;
|
|
46
|
+
/**
|
|
47
|
+
* 流程状态:已办结
|
|
48
|
+
*/
|
|
49
|
+
export declare const PROCESS_DONE = 7;
|
|
50
|
+
/**
|
|
51
|
+
* 流程状态:已废弃
|
|
52
|
+
*/
|
|
53
|
+
export declare const PROCESS_DISCARD = 8;
|
|
54
|
+
/**
|
|
55
|
+
* 流程状态:已驳回
|
|
56
|
+
*/
|
|
57
|
+
export declare const PROCESS_REJECTED = 9;
|
|
58
|
+
/**
|
|
59
|
+
* 流程状态:已撤回
|
|
60
|
+
*/
|
|
61
|
+
export declare const PROCESS_DRAWBACK = 10;
|
|
62
|
+
export interface IProps {
|
|
63
|
+
/** 请求方法 */
|
|
64
|
+
request?: any;
|
|
65
|
+
/** 流程任务id */
|
|
66
|
+
taskId?: string;
|
|
67
|
+
/** 流程实例id */
|
|
68
|
+
processInstId?: string;
|
|
69
|
+
/** 是否是通知 */
|
|
70
|
+
isNotice?: boolean;
|
|
71
|
+
/** 标题是否可勾选展示 */
|
|
72
|
+
titleCheckable?: boolean;
|
|
73
|
+
/** 标题是否默认展示 */
|
|
74
|
+
showTitle?: boolean;
|
|
75
|
+
/** 详情是否可勾选展示 */
|
|
76
|
+
detailCheckable?: boolean;
|
|
77
|
+
/** 详情是否默认展示 */
|
|
78
|
+
showDetail?: boolean;
|
|
79
|
+
/** 审批记录是否可勾选展示 */
|
|
80
|
+
approvalRecordsCheckable?: boolean;
|
|
81
|
+
/** 审批记录是否默认展示 */
|
|
82
|
+
showApprovalRecords?: boolean;
|
|
83
|
+
/** 流程附件是否可勾选展示 */
|
|
84
|
+
attachCheckable?: boolean;
|
|
85
|
+
/** 流程附件是否默认展示 */
|
|
86
|
+
showAttach?: boolean;
|
|
87
|
+
/** 关联流程是否可勾选展示 */
|
|
88
|
+
relatedProcessesCheckable?: boolean;
|
|
89
|
+
/** 关联流程是否默认展示 */
|
|
90
|
+
showRelatedProcesses?: boolean;
|
|
91
|
+
/** 传阅及抄送记录是否可勾选展示 */
|
|
92
|
+
circulationRecordsCheckable?: boolean;
|
|
93
|
+
/** 传阅及抄送记录是否默认展示 */
|
|
94
|
+
showCirculationRecords?: boolean;
|
|
95
|
+
getComponet?: (any: any) => any;
|
|
96
|
+
/** 获得流程的一些信息 */
|
|
97
|
+
getProcessInfo?: (data: any) => any;
|
|
98
|
+
}
|
|
99
|
+
declare const WorkflowPrintContainer: React.FC<IProps>;
|
|
100
|
+
export default WorkflowPrintContainer;
|
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
import i18next from 'ztxkutils/dist/i18next';
|
|
13
|
+
import React from 'react';
|
|
14
|
+
import { Checkbox } from 'antd';
|
|
15
|
+
import { useEffect, useState } from 'react';
|
|
16
|
+
import { Typography } from 'antd';
|
|
17
|
+
import Header from './component/Header';
|
|
18
|
+
import ProcessDetail from './component/ProcessDetail';
|
|
19
|
+
import { detailBatchRequest, detailRequest, fetchTrailList, noticeDetailRequest, } from './service';
|
|
20
|
+
import Container from '../business/Container/container';
|
|
21
|
+
var Title = Typography.Title;
|
|
22
|
+
var Paragraph = Typography.Paragraph;
|
|
23
|
+
/**
|
|
24
|
+
* 任务状态:待办
|
|
25
|
+
*/
|
|
26
|
+
export var TO_DO = 0;
|
|
27
|
+
/**
|
|
28
|
+
* 任务状态:已办
|
|
29
|
+
*/
|
|
30
|
+
export var DONE = 1;
|
|
31
|
+
/**
|
|
32
|
+
* 任务状态:待领取
|
|
33
|
+
*/
|
|
34
|
+
export var TO_TAKE = 2;
|
|
35
|
+
/**
|
|
36
|
+
* 任务状态:取消
|
|
37
|
+
*/
|
|
38
|
+
export var CANCELED = 3;
|
|
39
|
+
/**
|
|
40
|
+
* 任务状态:终止
|
|
41
|
+
*/
|
|
42
|
+
export var TERMINATED = 4;
|
|
43
|
+
/**
|
|
44
|
+
* 任务状态:驳回
|
|
45
|
+
*/
|
|
46
|
+
export var REJECTED = 5;
|
|
47
|
+
/**
|
|
48
|
+
* 任务状态:驳回待修改
|
|
49
|
+
*/
|
|
50
|
+
export var REJECT_TO_EDIT = 6;
|
|
51
|
+
/**
|
|
52
|
+
* 任务状态:撤回待修改
|
|
53
|
+
*/
|
|
54
|
+
export var DRAWBACK_TO_EDIT = 7;
|
|
55
|
+
/**
|
|
56
|
+
* 流程状态:未启动
|
|
57
|
+
*/
|
|
58
|
+
export var NOT_STARTED = 1;
|
|
59
|
+
/**
|
|
60
|
+
* 流程状态:审批中
|
|
61
|
+
*/
|
|
62
|
+
export var IN_APPROVAL = 2;
|
|
63
|
+
/**
|
|
64
|
+
* 流程状态:已挂起
|
|
65
|
+
*/
|
|
66
|
+
export var SUSPENDED = 3;
|
|
67
|
+
/**
|
|
68
|
+
* 流程状态:已办结
|
|
69
|
+
*/
|
|
70
|
+
export var PROCESS_DONE = 7;
|
|
71
|
+
/**
|
|
72
|
+
* 流程状态:已废弃
|
|
73
|
+
*/
|
|
74
|
+
export var PROCESS_DISCARD = 8;
|
|
75
|
+
/**
|
|
76
|
+
* 流程状态:已驳回
|
|
77
|
+
*/
|
|
78
|
+
export var PROCESS_REJECTED = 9;
|
|
79
|
+
/**
|
|
80
|
+
* 流程状态:已撤回
|
|
81
|
+
*/
|
|
82
|
+
export var PROCESS_DRAWBACK = 10;
|
|
83
|
+
var WorkflowPrintContainer = function (_a) {
|
|
84
|
+
var request = _a.request, taskId = _a.taskId, processInstId = _a.processInstId, _b = _a.isNotice, isNotice = _b === void 0 ? false : _b, _c = _a.titleCheckable, titleCheckable = _c === void 0 ? true : _c, _d = _a.showTitle, showTitle = _d === void 0 ? true : _d, _e = _a.detailCheckable, detailCheckable = _e === void 0 ? true : _e, _f = _a.showDetail, showDetail = _f === void 0 ? true : _f, _g = _a.approvalRecordsCheckable, approvalRecordsCheckable = _g === void 0 ? true : _g, _h = _a.showApprovalRecords, showApprovalRecords = _h === void 0 ? true : _h, _j = _a.attachCheckable, attachCheckable = _j === void 0 ? true : _j, _k = _a.showAttach, showAttach = _k === void 0 ? true : _k, _l = _a.relatedProcessesCheckable, relatedProcessesCheckable = _l === void 0 ? true : _l, _m = _a.showRelatedProcesses, showRelatedProcesses = _m === void 0 ? true : _m, _o = _a.circulationRecordsCheckable, circulationRecordsCheckable = _o === void 0 ? true : _o, _p = _a.showCirculationRecords, showCirculationRecords = _p === void 0 ? true : _p, getComponet = _a.getComponet, getProcessInfo = _a.getProcessInfo;
|
|
85
|
+
var _q = useState(isNotice), noticeInfoShown = _q[0], setNoticeInfoShown = _q[1];
|
|
86
|
+
// 标题
|
|
87
|
+
var _r = useState(showTitle), titleShown = _r[0], setTitleShown = _r[1];
|
|
88
|
+
useEffect(function () {
|
|
89
|
+
setTitleShown(showTitle);
|
|
90
|
+
}, [showTitle]);
|
|
91
|
+
// 详情
|
|
92
|
+
var _s = useState(showDetail), detailShown = _s[0], setDetailShown = _s[1];
|
|
93
|
+
useEffect(function () {
|
|
94
|
+
setDetailShown(showDetail);
|
|
95
|
+
}, [showDetail]);
|
|
96
|
+
// 审批记录
|
|
97
|
+
var _t = useState(showApprovalRecords), approvalRecordsShown = _t[0], setApprovalRecordsShown = _t[1];
|
|
98
|
+
useEffect(function () {
|
|
99
|
+
setApprovalRecordsShown(showApprovalRecords);
|
|
100
|
+
}, [showApprovalRecords]);
|
|
101
|
+
// 附件
|
|
102
|
+
var _u = useState(showAttach), attachShown = _u[0], setAttachShown = _u[1];
|
|
103
|
+
useEffect(function () {
|
|
104
|
+
setAttachShown(showAttach);
|
|
105
|
+
}, [showAttach]);
|
|
106
|
+
// 关联流程
|
|
107
|
+
var _v = useState(showRelatedProcesses), relatedProcessesShown = _v[0], setRelatedProcessesShown = _v[1];
|
|
108
|
+
useEffect(function () {
|
|
109
|
+
setRelatedProcessesShown(showRelatedProcesses);
|
|
110
|
+
}, [showRelatedProcesses]);
|
|
111
|
+
// 传阅及抄送记录
|
|
112
|
+
var _w = useState(showCirculationRecords), circulationRecordsShown = _w[0], setCirculationRecordsShown = _w[1];
|
|
113
|
+
useEffect(function () {
|
|
114
|
+
setCirculationRecordsShown(showCirculationRecords);
|
|
115
|
+
}, [showCirculationRecords]);
|
|
116
|
+
var _x = useState([]), batchData = _x[0], setBatchData = _x[1];
|
|
117
|
+
useEffect(function () {
|
|
118
|
+
getProcessInfo && getProcessInfo(batchData);
|
|
119
|
+
}, [batchData, getProcessInfo]);
|
|
120
|
+
useEffect(function () {
|
|
121
|
+
/**详情数据获取 */
|
|
122
|
+
if (isNotice) {
|
|
123
|
+
// 如果是通知类型
|
|
124
|
+
noticeDetailRequest(request, { id: taskId }).then(function (res) {
|
|
125
|
+
var _a;
|
|
126
|
+
setBatchData([__assign({}, (_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.data)] || []);
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
else if (taskId) {
|
|
130
|
+
detailBatchRequest(request, taskId).then(function (res) {
|
|
131
|
+
var _a;
|
|
132
|
+
setBatchData(((_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.data) || []);
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
else if (processInstId) {
|
|
136
|
+
detailRequest(request, { processInstId: processInstId }).then(function (res) {
|
|
137
|
+
fetchTrailList(request, {
|
|
138
|
+
processInstId: processInstId,
|
|
139
|
+
size: 500,
|
|
140
|
+
current: 1,
|
|
141
|
+
}).then(function (res2) {
|
|
142
|
+
var _a, _b, _c;
|
|
143
|
+
setBatchData([
|
|
144
|
+
__assign(__assign({}, (((_a = res === null || res === void 0 ? void 0 : res.data) === null || _a === void 0 ? void 0 : _a.data) || [])), { trailList: ((_c = (_b = res2 === null || res2 === void 0 ? void 0 : res2.data) === null || _b === void 0 ? void 0 : _b.data) === null || _c === void 0 ? void 0 : _c.records) || [] }),
|
|
145
|
+
]);
|
|
146
|
+
});
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
}, [request, taskId, processInstId, isNotice]);
|
|
150
|
+
// const getOutComponent = () => {
|
|
151
|
+
// return getComponet
|
|
152
|
+
// ? getComponet(url)
|
|
153
|
+
// : lazy(() => import(baseUrl + url)) || <></>;
|
|
154
|
+
// };
|
|
155
|
+
var FallbackComponent = function () { return React.createElement("div", null); };
|
|
156
|
+
/**
|
|
157
|
+
* 创建一个懒加载组件
|
|
158
|
+
* @param {Object} data - 包含 url 的数据对象
|
|
159
|
+
* @returns {React.LazyExoticComponent} - 懒加载组件
|
|
160
|
+
*/
|
|
161
|
+
function createLazyComponent(data) {
|
|
162
|
+
if (getComponet) {
|
|
163
|
+
var module_1 = getComponet(data);
|
|
164
|
+
// 返回默认导出或整个模块
|
|
165
|
+
return module_1;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
var getContent = function (data) {
|
|
169
|
+
var _a, _b;
|
|
170
|
+
var needHighlight = (_b = (_a = data === null || data === void 0 ? void 0 : data.noticeTitle) === null || _a === void 0 ? void 0 : _a.startsWith) === null || _b === void 0 ? void 0 : _b.call(_a, i18next.t('请留意审批意见'));
|
|
171
|
+
return (React.createElement("div", null,
|
|
172
|
+
noticeInfoShown && (React.createElement(React.Fragment, null,
|
|
173
|
+
React.createElement(Title, { level: 4 },
|
|
174
|
+
i18next.t('通知类型:'), data === null || data === void 0 ? void 0 :
|
|
175
|
+
data.noticeType),
|
|
176
|
+
React.createElement(Title, { level: 5 },
|
|
177
|
+
i18next.t('主题:'), data === null || data === void 0 ? void 0 :
|
|
178
|
+
data.noticeTitle),
|
|
179
|
+
React.createElement(Paragraph, { style: needHighlight ? { color: 'red' } : undefined },
|
|
180
|
+
i18next.t('内容:'), data === null || data === void 0 ? void 0 :
|
|
181
|
+
data.noticeContent))),
|
|
182
|
+
titleShown && (React.createElement(Header, { data: __assign(__assign({}, data), { taskName: data === null || data === void 0 ? void 0 : data.processInstName }) })),
|
|
183
|
+
React.createElement(ProcessDetail, { request: request, type: 'notice', data: data, showBizForm: true, toEdit: false, OuterComponent: createLazyComponent(data), showCfg: {
|
|
184
|
+
detailShown: detailShown,
|
|
185
|
+
approvalRecordsShown: approvalRecordsShown,
|
|
186
|
+
relatedProcessesShown: relatedProcessesShown,
|
|
187
|
+
attachShown: attachShown,
|
|
188
|
+
circulationRecordsShown: circulationRecordsShown,
|
|
189
|
+
} })));
|
|
190
|
+
};
|
|
191
|
+
return (React.createElement(React.Fragment, null,
|
|
192
|
+
React.createElement(Container, { className: "hr-print-container" },
|
|
193
|
+
React.createElement("div", { id: "printInfoRef", style: { position: 'relative', width: '100%', padding: '0 20px' } },
|
|
194
|
+
React.createElement("div", { className: "hiddenPrint" },
|
|
195
|
+
React.createElement("div", { style: {
|
|
196
|
+
display: 'flex',
|
|
197
|
+
justifyContent: 'space-around',
|
|
198
|
+
margin: '0 auto',
|
|
199
|
+
flexWrap: 'wrap',
|
|
200
|
+
width: '1000px',
|
|
201
|
+
} },
|
|
202
|
+
isNotice && (React.createElement(Checkbox, { onChange: function (e) {
|
|
203
|
+
var _a;
|
|
204
|
+
setNoticeInfoShown((_a = e === null || e === void 0 ? void 0 : e.target) === null || _a === void 0 ? void 0 : _a.checked);
|
|
205
|
+
}, checked: noticeInfoShown }, i18next.t('通知标题'))),
|
|
206
|
+
titleCheckable && (React.createElement(Checkbox, { onChange: function (e) {
|
|
207
|
+
var _a;
|
|
208
|
+
setTitleShown((_a = e === null || e === void 0 ? void 0 : e.target) === null || _a === void 0 ? void 0 : _a.checked);
|
|
209
|
+
}, checked: titleShown }, i18next.t('标题'))),
|
|
210
|
+
detailCheckable && (React.createElement(Checkbox, { onChange: function (e) {
|
|
211
|
+
var _a;
|
|
212
|
+
setDetailShown((_a = e === null || e === void 0 ? void 0 : e.target) === null || _a === void 0 ? void 0 : _a.checked);
|
|
213
|
+
}, checked: detailShown }, i18next.t('详情'))),
|
|
214
|
+
approvalRecordsCheckable && (React.createElement(Checkbox, { onChange: function (e) {
|
|
215
|
+
var _a;
|
|
216
|
+
setApprovalRecordsShown((_a = e === null || e === void 0 ? void 0 : e.target) === null || _a === void 0 ? void 0 : _a.checked);
|
|
217
|
+
}, checked: approvalRecordsShown }, i18next.t('审批记录'))),
|
|
218
|
+
attachCheckable && (React.createElement(Checkbox, { onChange: function (e) {
|
|
219
|
+
var _a;
|
|
220
|
+
setAttachShown((_a = e === null || e === void 0 ? void 0 : e.target) === null || _a === void 0 ? void 0 : _a.checked);
|
|
221
|
+
}, checked: attachShown }, i18next.t('流程附件'))),
|
|
222
|
+
relatedProcessesCheckable && (React.createElement(Checkbox, { onChange: function (e) {
|
|
223
|
+
var _a;
|
|
224
|
+
setRelatedProcessesShown((_a = e === null || e === void 0 ? void 0 : e.target) === null || _a === void 0 ? void 0 : _a.checked);
|
|
225
|
+
}, checked: relatedProcessesShown }, i18next.t('关联流程'))),
|
|
226
|
+
circulationRecordsCheckable && (React.createElement(Checkbox, { onChange: function (e) {
|
|
227
|
+
var _a;
|
|
228
|
+
setCirculationRecordsShown((_a = e === null || e === void 0 ? void 0 : e.target) === null || _a === void 0 ? void 0 : _a.checked);
|
|
229
|
+
}, checked: circulationRecordsShown }, i18next.t('传阅及抄送记录'))))),
|
|
230
|
+
React.createElement("div", { className: "print-detail", style: { width: '1000px', margin: '0px auto' } }, batchData === null || batchData === void 0 ? void 0 : batchData.map(function (item, index) {
|
|
231
|
+
return (React.createElement(React.Fragment, null,
|
|
232
|
+
getContent(item),
|
|
233
|
+
index === batchData.length - 1 ? null : (React.createElement("div", { className: "break-before" }))));
|
|
234
|
+
}))))));
|
|
235
|
+
};
|
|
236
|
+
export default WorkflowPrintContainer;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import i18next from 'ztxkutils/dist/i18next';
|
|
1
2
|
/**
|
|
2
3
|
* @description 一个抽屉组件,提供配置字段展示信息
|
|
3
4
|
*/
|
|
@@ -167,13 +168,13 @@ var Analyse = function (_a) {
|
|
|
167
168
|
* @description 底部按钮
|
|
168
169
|
*/
|
|
169
170
|
var footerDom = function () { return (React.createElement(React.Fragment, null,
|
|
170
|
-
React.createElement(Button, { type: "default", onClick: onCloseHandle },
|
|
171
|
-
React.createElement(Button, { type: "default", onClick: onResetHandle },
|
|
172
|
-
React.createElement(Button, { type: "primary", onClick: onSureHandle },
|
|
173
|
-
return (React.createElement(Drawer, { title:
|
|
171
|
+
React.createElement(Button, { type: "default", onClick: onCloseHandle }, i18next.t('取消')),
|
|
172
|
+
React.createElement(Button, { type: "default", onClick: onResetHandle }, i18next.t('重置')),
|
|
173
|
+
React.createElement(Button, { type: "primary", onClick: onSureHandle }, i18next.t('确定')))); };
|
|
174
|
+
return (React.createElement(Drawer, { title: i18next.t('自定义分析设置'), placement: "right", width: 500, visible: visible, closable: false, maskClosable: false, footer: footerDom(), className: "analyse-drawer" },
|
|
174
175
|
React.createElement("div", { className: "analyse-container" },
|
|
175
176
|
React.createElement("div", { className: "analyse-container__left" },
|
|
176
|
-
React.createElement("div", { className: "analyse-fields--header" },
|
|
177
|
+
React.createElement("div", { className: "analyse-fields--header" }, i18next.t('选择需要展示的字段')),
|
|
177
178
|
React.createElement(Checkbox.Group, { className: "analyse-fields---container", value: checkedList, onChange: onChangeHandle }, Array.isArray(insideFields) &&
|
|
178
179
|
insideFields.map(function (field) { return (React.createElement("div", { key: field.key },
|
|
179
180
|
React.createElement(Checkbox, { value: field.key }, field.title))); }))),
|
|
@@ -181,22 +182,22 @@ var Analyse = function (_a) {
|
|
|
181
182
|
React.createElement("div", { className: "analyse-container__right" },
|
|
182
183
|
React.createElement("div", { className: "analyse-container__right--fields" },
|
|
183
184
|
React.createElement("div", { className: "analyse-fields--header" },
|
|
184
|
-
React.createElement("span", null,
|
|
185
|
-
React.createElement(Button, { type: "primary", size: "small", onClick: function () { return onOrderHandle('row'); } },
|
|
185
|
+
React.createElement("span", null, i18next.t('行字段')),
|
|
186
|
+
React.createElement(Button, { type: "primary", size: "small", onClick: function () { return onOrderHandle('row'); } }, i18next.t('回到初始顺序'))),
|
|
186
187
|
React.createElement("div", { className: "analyse-fields---container" }, Array.isArray(insideRowFields) &&
|
|
187
188
|
insideRowFields.map(function (field, index) { return (React.createElement(Sortable, { key: field.key, id: field.key, type: "row-field", index: index, onMoveItem: onRowMoveItem },
|
|
188
189
|
React.createElement("div", null, field.title))); }))),
|
|
189
190
|
React.createElement("div", { className: "analyse-container__right--fields" },
|
|
190
191
|
React.createElement("div", { className: "analyse-fields--header" },
|
|
191
|
-
React.createElement("span", null,
|
|
192
|
-
React.createElement(Button, { type: "primary", size: "small", onClick: function () { return onOrderHandle('col'); } },
|
|
192
|
+
React.createElement("span", null, i18next.t('列字段')),
|
|
193
|
+
React.createElement(Button, { type: "primary", size: "small", onClick: function () { return onOrderHandle('col'); } }, i18next.t('回到初始顺序'))),
|
|
193
194
|
React.createElement("div", { className: "analyse-fields---container" }, Array.isArray(insideColFields) &&
|
|
194
195
|
insideColFields.map(function (field, index) { return (React.createElement(Sortable, { key: field.key, id: field.key, type: "col-field", index: index, onMoveItem: onColMoveItem },
|
|
195
196
|
React.createElement("div", null, field.title))); }))),
|
|
196
197
|
React.createElement("div", { className: "analyse-container__right--fields" },
|
|
197
198
|
React.createElement("div", { className: "analyse-fields--header" },
|
|
198
|
-
React.createElement("span", null,
|
|
199
|
-
React.createElement(Button, { type: "primary", size: "small", onClick: function () { return onOrderHandle('value'); } },
|
|
199
|
+
React.createElement("span", null, i18next.t('值字段')),
|
|
200
|
+
React.createElement(Button, { type: "primary", size: "small", onClick: function () { return onOrderHandle('value'); } }, i18next.t('回到初始顺序'))),
|
|
200
201
|
React.createElement("div", { className: "analyse-fields---container" }, Array.isArray(insideValueFields) &&
|
|
201
202
|
insideValueFields.map(function (field, index) { return (React.createElement(Sortable, { key: field.key, id: field.key, type: "value-field", index: index, onMoveItem: onValueMoveItem },
|
|
202
203
|
React.createElement("div", null, field.title))); }))))))));
|
|
@@ -34,6 +34,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
34
34
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
35
35
|
}
|
|
36
36
|
};
|
|
37
|
+
import i18next from 'ztxkutils/dist/i18next';
|
|
37
38
|
import React, { memo, useEffect, useCallback, useState } from 'react';
|
|
38
39
|
import { Form, Input, message, EnhanceSelect } from '../../../../index';
|
|
39
40
|
import SearchContainer from '../../SearchContainer';
|
|
@@ -107,9 +108,9 @@ var SearchForm = function (_a) {
|
|
|
107
108
|
return (React.createElement(Form, { name: "codeQuery-making", form: form },
|
|
108
109
|
React.createElement(SearchContainer, null,
|
|
109
110
|
React.createElement(SearchLeft, null,
|
|
110
|
-
React.createElement(Item, { name: "type", label:
|
|
111
|
+
React.createElement(Item, { name: "type", label: i18next.t('编码类型'), width: "double", rules: [{ required: true, message: i18next.t('请填写编码类型') }] },
|
|
111
112
|
React.createElement(EnhanceSelect, { list: list, titleKey: "dictValue", dataKey: "dictKey" })),
|
|
112
|
-
React.createElement(Item, { name: "name", label:
|
|
113
|
+
React.createElement(Item, { name: "name", label: i18next.t('描述'), rules: [{ required: true, message: i18next.t('请填写描述') }] },
|
|
113
114
|
React.createElement(Input, { allowClear: true }))),
|
|
114
115
|
React.createElement(SearchRight, { onSearchHandle: onSearchHandle, onResetHandle: onResetHandle }))));
|
|
115
116
|
};
|
|
@@ -3,6 +3,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from) {
|
|
|
3
3
|
to[j] = from[i];
|
|
4
4
|
return to;
|
|
5
5
|
};
|
|
6
|
+
import i18next from 'ztxkutils/dist/i18next';
|
|
6
7
|
import React from 'react';
|
|
7
8
|
import { Table } from '../../../../index';
|
|
8
9
|
var tableScrollHeight = {
|
|
@@ -21,7 +22,7 @@ var TableList = function (_a) {
|
|
|
21
22
|
// 表格列表配置
|
|
22
23
|
var columns = __spreadArray(__spreadArray([
|
|
23
24
|
{
|
|
24
|
-
title: '序号',
|
|
25
|
+
title: i18next.t('序号'),
|
|
25
26
|
width: 60,
|
|
26
27
|
key: 'index',
|
|
27
28
|
fixed: 'left',
|
|
@@ -29,7 +30,7 @@ var TableList = function (_a) {
|
|
|
29
30
|
render: function (text, record, index) { return "" + (index + 1); },
|
|
30
31
|
},
|
|
31
32
|
{
|
|
32
|
-
title: '编码',
|
|
33
|
+
title: i18next.t('编码'),
|
|
33
34
|
width: 120,
|
|
34
35
|
dataIndex: 'code',
|
|
35
36
|
key: 'code',
|
|
@@ -37,7 +38,7 @@ var TableList = function (_a) {
|
|
|
37
38
|
], (type === '01'
|
|
38
39
|
? [
|
|
39
40
|
{
|
|
40
|
-
title: '国家',
|
|
41
|
+
title: i18next.t('国家'),
|
|
41
42
|
width: 100,
|
|
42
43
|
dataIndex: 'extra',
|
|
43
44
|
key: 'extra',
|
|
@@ -45,7 +46,7 @@ var TableList = function (_a) {
|
|
|
45
46
|
]
|
|
46
47
|
: [])), [
|
|
47
48
|
{
|
|
48
|
-
title: '描述',
|
|
49
|
+
title: i18next.t('描述'),
|
|
49
50
|
// width: 160,
|
|
50
51
|
dataIndex: 'name',
|
|
51
52
|
key: 'name',
|
|
@@ -9,6 +9,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
|
+
import i18next from 'ztxkutils/dist/i18next';
|
|
12
13
|
import { useCallback, useEffect, useState } from 'react';
|
|
13
14
|
import { message } from '../../../index';
|
|
14
15
|
// 每页多少条数据
|
|
@@ -37,7 +38,7 @@ export function useCodeQueryList(params, request) {
|
|
|
37
38
|
setRecords(records_1);
|
|
38
39
|
}
|
|
39
40
|
else {
|
|
40
|
-
message.warning((res === null || res === void 0 ? void 0 : res.msg) || '查询失败!');
|
|
41
|
+
message.warning((res === null || res === void 0 ? void 0 : res.msg) || i18next.t('查询失败!'));
|
|
41
42
|
}
|
|
42
43
|
setLoading(false);
|
|
43
44
|
})
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import i18next from 'ztxkutils/dist/i18next';
|
|
1
2
|
/**
|
|
2
3
|
* @author 柴宇峰
|
|
3
4
|
* @description 编码查询
|
|
@@ -32,7 +33,7 @@ var CodeQuery = function (_a) {
|
|
|
32
33
|
return (React.createElement(React.Fragment, null,
|
|
33
34
|
React.createElement(Drawer, { className: "zt-codeQuery-drawer", visible: visible, closable: false, placement: "right", onClose: onCancel, width: "700", title: React.createElement("div", { className: "zt-codeQuery-drawer-title-wrapper" },
|
|
34
35
|
React.createElement("div", { className: "zt-codeQuery-drawer-title-tag" }),
|
|
35
|
-
React.createElement("div", { className: "zt-codeQuery-drawer-title" },
|
|
36
|
+
React.createElement("div", { className: "zt-codeQuery-drawer-title" }, i18next.t('编码查询工具'))), footer: React.createElement(React.Fragment, null,
|
|
36
37
|
React.createElement(Footer, { footerDom: footerDom })) },
|
|
37
38
|
React.createElement(SearchForm, { codeTypeList: codeTypeList, onSearch: onSearchHandle, request: request }),
|
|
38
39
|
React.createElement(TableList, { records: records, type: params === null || params === void 0 ? void 0 : params.type }))));
|