@zw-team/react-lib 1.0.1
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/README.md +207 -0
- package/dist/components/AccessReport/index.d.ts +29 -0
- package/dist/components/AccessReport/index.js +129 -0
- package/dist/components/Avatar/Avatar.d.ts +3 -0
- package/dist/components/Avatar/Avatar.js +58 -0
- package/dist/components/Avatar/index.d.ts +2 -0
- package/dist/components/Avatar/index.js +2 -0
- package/dist/components/Avatar/types.d.ts +9 -0
- package/dist/components/Avatar/types.js +0 -0
- package/dist/components/Block/Block.css +8 -0
- package/dist/components/Block/Block.d.ts +4 -0
- package/dist/components/Block/Block.js +11 -0
- package/dist/components/Block/index.d.ts +2 -0
- package/dist/components/Block/index.js +2 -0
- package/dist/components/Block/types.d.ts +3 -0
- package/dist/components/Block/types.js +0 -0
- package/dist/components/ConfigProvider/ConfigContext.d.ts +4 -0
- package/dist/components/ConfigProvider/ConfigContext.js +19 -0
- package/dist/components/ConfigProvider/ConfigProvider.d.ts +4 -0
- package/dist/components/ConfigProvider/ConfigProvider.js +57 -0
- package/dist/components/ConfigProvider/index.d.ts +2 -0
- package/dist/components/ConfigProvider/index.js +2 -0
- package/dist/components/ConfigProvider/types.d.ts +19 -0
- package/dist/components/ConfigProvider/types.js +0 -0
- package/dist/components/CustomColumn/CustomColumn.d.ts +4 -0
- package/dist/components/CustomColumn/CustomColumn.js +388 -0
- package/dist/components/CustomColumn/CustomColumn.scss +135 -0
- package/dist/components/CustomColumn/index.d.ts +2 -0
- package/dist/components/CustomColumn/index.js +2 -0
- package/dist/components/CustomColumn/types.d.ts +19 -0
- package/dist/components/CustomColumn/types.js +0 -0
- package/dist/components/DatePicker/DatePicker.d.ts +4 -0
- package/dist/components/DatePicker/DatePicker.js +89 -0
- package/dist/components/DatePicker/datePickerOption.d.ts +14 -0
- package/dist/components/DatePicker/datePickerOption.js +149 -0
- package/dist/components/DatePicker/index.d.ts +2 -0
- package/dist/components/DatePicker/index.js +2 -0
- package/dist/components/DatePicker/types.d.ts +12 -0
- package/dist/components/DatePicker/types.js +0 -0
- package/dist/components/DatePickerPanel/DatePickerPanel.d.ts +6 -0
- package/dist/components/DatePickerPanel/DatePickerPanel.js +397 -0
- package/dist/components/DatePickerPanel/datePickerPanel.scss +362 -0
- package/dist/components/DatePickerPanel/index.d.ts +2 -0
- package/dist/components/DatePickerPanel/index.js +2 -0
- package/dist/components/DatePickerPanel/type.d.ts +23 -0
- package/dist/components/DatePickerPanel/type.js +0 -0
- package/dist/components/DownloadCenter/DownloadCenter.d.ts +5 -0
- package/dist/components/DownloadCenter/DownloadCenter.js +367 -0
- package/dist/components/DownloadCenter/index.css +54 -0
- package/dist/components/DownloadCenter/index.d.ts +2 -0
- package/dist/components/DownloadCenter/index.js +2 -0
- package/dist/components/DownloadCenter/types.d.ts +27 -0
- package/dist/components/DownloadCenter/types.js +0 -0
- package/dist/components/Fireworks/Fireworks.d.ts +11 -0
- package/dist/components/Fireworks/Fireworks.js +415 -0
- package/dist/components/Fireworks/imgs/birthday-cake.svg +180 -0
- package/dist/components/Fireworks/imgs/hb.png +0 -0
- package/dist/components/Fireworks/imgs/sd.png +0 -0
- package/dist/components/Fireworks/imgs/xc.png +0 -0
- package/dist/components/Fireworks/imgs/yd.png +0 -0
- package/dist/components/Fireworks/index.d.ts +2 -0
- package/dist/components/Fireworks/index.js +2 -0
- package/dist/components/Fireworks/index.scss +9 -0
- package/dist/components/Fireworks/types.d.ts +6 -0
- package/dist/components/Fireworks/types.js +0 -0
- package/dist/components/Form/Form.css +4 -0
- package/dist/components/Form/Form.d.ts +9 -0
- package/dist/components/Form/Form.js +18 -0
- package/dist/components/Form/index.d.ts +1 -0
- package/dist/components/Form/index.js +2 -0
- package/dist/components/FormItem/FormItem.css +38 -0
- package/dist/components/FormItem/FormItem.d.ts +9 -0
- package/dist/components/FormItem/FormItem.js +25 -0
- package/dist/components/FormItem/index.d.ts +1 -0
- package/dist/components/FormItem/index.js +2 -0
- package/dist/components/HomeData/HomeData.d.ts +6 -0
- package/dist/components/HomeData/HomeData.js +364 -0
- package/dist/components/HomeData/HomeData.scss +161 -0
- package/dist/components/HomeData/index.d.ts +1 -0
- package/dist/components/HomeData/index.js +2 -0
- package/dist/components/Icon/Icon.d.ts +4 -0
- package/dist/components/Icon/Icon.js +34 -0
- package/dist/components/Icon/index.d.ts +2 -0
- package/dist/components/Icon/index.js +2 -0
- package/dist/components/Icon/types.d.ts +8 -0
- package/dist/components/Icon/types.js +0 -0
- package/dist/components/Log/index.d.ts +2 -0
- package/dist/components/Log/index.js +2 -0
- package/dist/components/Log/src/Detail.d.ts +7 -0
- package/dist/components/Log/src/Detail.js +71 -0
- package/dist/components/Log/src/Detail.scss +27 -0
- package/dist/components/Log/src/Log.d.ts +5 -0
- package/dist/components/Log/src/Log.js +335 -0
- package/dist/components/Log/src/Log.scss +50 -0
- package/dist/components/Log/src/useLogTableColumns.d.ts +2 -0
- package/dist/components/Log/src/useLogTableColumns.js +141 -0
- package/dist/components/Log/types.d.ts +5 -0
- package/dist/components/Log/types.js +0 -0
- package/dist/components/LogButton/LogButton.d.ts +4 -0
- package/dist/components/LogButton/LogButton.js +30 -0
- package/dist/components/LogButton/index.d.ts +2 -0
- package/dist/components/LogButton/index.js +2 -0
- package/dist/components/LogButton/logbutton.css +15 -0
- package/dist/components/LogButton/types.d.ts +10 -0
- package/dist/components/LogButton/types.js +0 -0
- package/dist/components/LogDialog/BiLogManager.d.ts +29 -0
- package/dist/components/LogDialog/BiLogManager.js +78 -0
- package/dist/components/LogDialog/LogDialog.d.ts +8 -0
- package/dist/components/LogDialog/LogDialog.js +106 -0
- package/dist/components/LogDialog/LogDialog.scss +29 -0
- package/dist/components/LogDialog/index.d.ts +3 -0
- package/dist/components/LogDialog/index.js +3 -0
- package/dist/components/LogDialog/types.d.ts +8 -0
- package/dist/components/LogDialog/types.js +0 -0
- package/dist/components/MediaPreview/MediaPreview.d.ts +5 -0
- package/dist/components/MediaPreview/MediaPreview.js +124 -0
- package/dist/components/MediaPreview/hook.d.ts +26 -0
- package/dist/components/MediaPreview/hook.js +174 -0
- package/dist/components/MediaPreview/index.css +202 -0
- package/dist/components/MediaPreview/index.d.ts +2 -0
- package/dist/components/MediaPreview/index.js +2 -0
- package/dist/components/MediaPreview/types.d.ts +24 -0
- package/dist/components/MediaPreview/types.js +0 -0
- package/dist/components/Modal/Modal.d.ts +3 -0
- package/dist/components/Modal/Modal.js +31 -0
- package/dist/components/Modal/index.d.ts +2 -0
- package/dist/components/Modal/index.js +2 -0
- package/dist/components/Modal/types.d.ts +8 -0
- package/dist/components/Modal/types.js +0 -0
- package/dist/components/ModalStore/ModalProvider.d.ts +11 -0
- package/dist/components/ModalStore/ModalProvider.js +15 -0
- package/dist/components/ModalStore/ModalStore.d.ts +78 -0
- package/dist/components/ModalStore/ModalStore.js +188 -0
- package/dist/components/ModalStore/index.d.ts +3 -0
- package/dist/components/ModalStore/index.js +4 -0
- package/dist/components/ModalStore/types.d.ts +73 -0
- package/dist/components/ModalStore/types.js +0 -0
- package/dist/components/MoreButton/MoreButton.d.ts +3 -0
- package/dist/components/MoreButton/MoreButton.js +50 -0
- package/dist/components/MoreButton/index.d.ts +2 -0
- package/dist/components/MoreButton/index.js +2 -0
- package/dist/components/MoreButton/types.d.ts +15 -0
- package/dist/components/MoreButton/types.js +0 -0
- package/dist/components/NavbarTool/NavbarTool.d.ts +5 -0
- package/dist/components/NavbarTool/NavbarTool.js +143 -0
- package/dist/components/NavbarTool/components/index.css +49 -0
- package/dist/components/NavbarTool/components/index.d.ts +5 -0
- package/dist/components/NavbarTool/components/index.js +98 -0
- package/dist/components/NavbarTool/index.css +14 -0
- package/dist/components/NavbarTool/index.d.ts +2 -0
- package/dist/components/NavbarTool/index.js +2 -0
- package/dist/components/NavbarTool/types.d.ts +40 -0
- package/dist/components/NavbarTool/types.js +0 -0
- package/dist/components/NoticeCenter/NoticeCenter.d.ts +4 -0
- package/dist/components/NoticeCenter/NoticeCenter.js +334 -0
- package/dist/components/NoticeCenter/assets/notice.png +0 -0
- package/dist/components/NoticeCenter/assets/tongzhi.png +0 -0
- package/dist/components/NoticeCenter/index.d.ts +2 -0
- package/dist/components/NoticeCenter/index.js +2 -0
- package/dist/components/NoticeCenter/noticeCenter.scss +232 -0
- package/dist/components/NoticeCenter/types.d.ts +6 -0
- package/dist/components/NoticeCenter/types.js +0 -0
- package/dist/components/Pagination/BiPagination.css +152 -0
- package/dist/components/Pagination/Pagination.d.ts +5 -0
- package/dist/components/Pagination/Pagination.js +67 -0
- package/dist/components/Pagination/index.d.ts +2 -0
- package/dist/components/Pagination/index.js +2 -0
- package/dist/components/Pagination/types.d.ts +14 -0
- package/dist/components/Pagination/types.js +0 -0
- package/dist/components/ResponseInterceptor/index.d.ts +17 -0
- package/dist/components/ResponseInterceptor/index.js +43 -0
- package/dist/components/SuperDate/SuperDate.d.ts +6 -0
- package/dist/components/SuperDate/SuperDate.js +113 -0
- package/dist/components/SuperDate/SuperDate.scss +42 -0
- package/dist/components/SuperDate/components/CustomRangPanel/CustomRangPanel.d.ts +5 -0
- package/dist/components/SuperDate/components/CustomRangPanel/CustomRangPanel.js +87 -0
- package/dist/components/SuperDate/components/CustomRangPanel/CustomRangPanel.scss +52 -0
- package/dist/components/SuperDate/components/DynamicTimeCom/DynamicTimeCom.d.ts +6 -0
- package/dist/components/SuperDate/components/DynamicTimeCom/DynamicTimeCom.js +129 -0
- package/dist/components/SuperDate/components/DynamicTimeCom/dynamicTimeCom.scss +70 -0
- package/dist/components/SuperDate/constant.d.ts +35 -0
- package/dist/components/SuperDate/constant.js +27 -0
- package/dist/components/SuperDate/index.d.ts +2 -0
- package/dist/components/SuperDate/index.js +2 -0
- package/dist/components/SuperDate/store.d.ts +68 -0
- package/dist/components/SuperDate/store.js +254 -0
- package/dist/components/SuperDate/types.d.ts +34 -0
- package/dist/components/SuperDate/types.js +0 -0
- package/dist/components/SuperDate/utils.d.ts +18 -0
- package/dist/components/SuperDate/utils.js +14 -0
- package/dist/components/SystemLink/SystemLink.d.ts +4 -0
- package/dist/components/SystemLink/SystemLink.js +85 -0
- package/dist/components/SystemLink/index.d.ts +1 -0
- package/dist/components/SystemLink/index.js +2 -0
- package/dist/components/SystemLink/index.scss +142 -0
- package/dist/components/Table/ResizableTitle.d.ts +3 -0
- package/dist/components/Table/ResizableTitle.js +43 -0
- package/dist/components/Table/Table.d.ts +9 -0
- package/dist/components/Table/Table.js +189 -0
- package/dist/components/Table/index.d.ts +2 -0
- package/dist/components/Table/index.js +2 -0
- package/dist/components/Table/index.scss +42 -0
- package/dist/components/Table/types.d.ts +24 -0
- package/dist/components/Table/types.js +0 -0
- package/dist/components/Table/useHeaderPopper.d.ts +8 -0
- package/dist/components/Table/useHeaderPopper.js +95 -0
- package/dist/components/TableHeaderPopper/EditBox.d.ts +6 -0
- package/dist/components/TableHeaderPopper/EditBox.js +208 -0
- package/dist/components/TableHeaderPopper/Popover.d.ts +6 -0
- package/dist/components/TableHeaderPopper/Popover.js +85 -0
- package/dist/components/TableHeaderPopper/index.d.ts +3 -0
- package/dist/components/TableHeaderPopper/index.js +3 -0
- package/dist/components/TableHeaderPopper/index.scss +96 -0
- package/dist/components/TaskCenter/TaskCenter.d.ts +4 -0
- package/dist/components/TaskCenter/TaskCenter.js +257 -0
- package/dist/components/TaskCenter/TaskCenter.scss +44 -0
- package/dist/components/TaskCenter/api.d.ts +13 -0
- package/dist/components/TaskCenter/api.js +13 -0
- package/dist/components/TaskCenter/index.d.ts +2 -0
- package/dist/components/TaskCenter/index.js +2 -0
- package/dist/components/TaskCenter/types.d.ts +29 -0
- package/dist/components/TaskCenter/types.js +0 -0
- package/dist/components/TooltipIcon/TooltipIcon.d.ts +3 -0
- package/dist/components/TooltipIcon/TooltipIcon.js +43 -0
- package/dist/components/TooltipIcon/index.d.ts +2 -0
- package/dist/components/TooltipIcon/index.js +2 -0
- package/dist/components/TooltipIcon/types.d.ts +14 -0
- package/dist/components/TooltipIcon/types.js +0 -0
- package/dist/components/Verification/content.d.ts +11 -0
- package/dist/components/Verification/content.js +223 -0
- package/dist/components/Verification/index.css +43 -0
- package/dist/components/Verification/index.d.ts +1 -0
- package/dist/components/Verification/index.js +37 -0
- package/dist/components/index.d.ts +32 -0
- package/dist/components/index.js +29 -0
- package/dist/config/index.d.ts +83 -0
- package/dist/config/index.js +115 -0
- package/dist/config/theme/index.d.ts +368 -0
- package/dist/config/theme/index.js +369 -0
- package/dist/hooks/createAlive.d.ts +11 -0
- package/dist/hooks/createAlive.js +22 -0
- package/dist/hooks/createGlobalState.d.ts +7 -0
- package/dist/hooks/createGlobalState.js +28 -0
- package/dist/hooks/index.d.ts +26 -0
- package/dist/hooks/index.js +25 -0
- package/dist/hooks/useAsync.d.ts +27 -0
- package/dist/hooks/useAsync.js +76 -0
- package/dist/hooks/useClickOther.d.ts +10 -0
- package/dist/hooks/useClickOther.js +30 -0
- package/dist/hooks/useCopyToClipboard.d.ts +7 -0
- package/dist/hooks/useCopyToClipboard.js +32 -0
- package/dist/hooks/useCreate.d.ts +7 -0
- package/dist/hooks/useCreate.js +21 -0
- package/dist/hooks/useEventListener.d.ts +22 -0
- package/dist/hooks/useEventListener.js +33 -0
- package/dist/hooks/useHistoryStore.d.ts +16 -0
- package/dist/hooks/useHistoryStore.js +106 -0
- package/dist/hooks/useIntersectionObserver.d.ts +8 -0
- package/dist/hooks/useIntersectionObserver.js +23 -0
- package/dist/hooks/useInterval.d.ts +8 -0
- package/dist/hooks/useInterval.js +19 -0
- package/dist/hooks/useLatest.d.ts +2 -0
- package/dist/hooks/useLatest.js +12 -0
- package/dist/hooks/useLockAsyncFn.d.ts +7 -0
- package/dist/hooks/useLockAsyncFn.js +24 -0
- package/dist/hooks/useLockFn.d.ts +7 -0
- package/dist/hooks/useLockFn.js +17 -0
- package/dist/hooks/useMergedState.d.ts +10 -0
- package/dist/hooks/useMergedState.js +30 -0
- package/dist/hooks/useMountedState.d.ts +4 -0
- package/dist/hooks/useMountedState.js +13 -0
- package/dist/hooks/usePermission.d.ts +8 -0
- package/dist/hooks/usePermission.js +21 -0
- package/dist/hooks/usePersistFn.d.ts +8 -0
- package/dist/hooks/usePersistFn.js +13 -0
- package/dist/hooks/useReactive.d.ts +7 -0
- package/dist/hooks/useReactive.js +34 -0
- package/dist/hooks/useRefresh.d.ts +5 -0
- package/dist/hooks/useRefresh.js +8 -0
- package/dist/hooks/useToggle.d.ts +16 -0
- package/dist/hooks/useToggle.js +20 -0
- package/dist/hooks/useUnmount.d.ts +6 -0
- package/dist/hooks/useUnmount.js +10 -0
- package/dist/hooks/useUpdateEffect.d.ts +9 -0
- package/dist/hooks/useUpdateEffect.js +10 -0
- package/dist/hooks/useWindowSize.d.ts +6 -0
- package/dist/hooks/useWindowSize.js +15 -0
- package/dist/hooks/util.d.ts +9 -0
- package/dist/hooks/util.js +6 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +2 -0
- package/dist/utils/array.d.ts +12 -0
- package/dist/utils/array.js +15 -0
- package/dist/utils/classNames.d.ts +4 -0
- package/dist/utils/classNames.js +19 -0
- package/dist/utils/date.d.ts +98 -0
- package/dist/utils/date.js +101 -0
- package/dist/utils/debounce.d.ts +8 -0
- package/dist/utils/debounce.js +38 -0
- package/dist/utils/deepClone.d.ts +6 -0
- package/dist/utils/deepClone.js +10 -0
- package/dist/utils/empty.d.ts +16 -0
- package/dist/utils/empty.js +24 -0
- package/dist/utils/formatPrice.d.ts +2 -0
- package/dist/utils/formatPrice.js +15 -0
- package/dist/utils/getUUID.d.ts +1 -0
- package/dist/utils/getUUID.js +17 -0
- package/dist/utils/getUrlParams.d.ts +11 -0
- package/dist/utils/getUrlParams.js +10 -0
- package/dist/utils/index.d.ts +20 -0
- package/dist/utils/index.js +19 -0
- package/dist/utils/listToTree.d.ts +12 -0
- package/dist/utils/listToTree.js +14 -0
- package/dist/utils/object.d.ts +6 -0
- package/dist/utils/object.js +5 -0
- package/dist/utils/ossUpload.d.ts +45 -0
- package/dist/utils/ossUpload.js +88 -0
- package/dist/utils/parseTo.d.ts +6 -0
- package/dist/utils/parseTo.js +9 -0
- package/dist/utils/request/accessReport.d.ts +2 -0
- package/dist/utils/request/accessReport.js +27 -0
- package/dist/utils/request/defaultRequest.d.ts +9 -0
- package/dist/utils/request/defaultRequest.js +33 -0
- package/dist/utils/request/exportDownload.d.ts +2 -0
- package/dist/utils/request/exportDownload.js +28 -0
- package/dist/utils/request/index.d.ts +29 -0
- package/dist/utils/request/index.js +40 -0
- package/dist/utils/request/noticeCenter.d.ts +2 -0
- package/dist/utils/request/noticeCenter.js +28 -0
- package/dist/utils/svgIcon/index.d.ts +47 -0
- package/dist/utils/svgIcon/index.js +76 -0
- package/dist/utils/throttle.d.ts +10 -0
- package/dist/utils/throttle.js +21 -0
- package/dist/utils/time/index.d.ts +7 -0
- package/dist/utils/time/index.js +12 -0
- package/dist/utils/tools.d.ts +43 -0
- package/dist/utils/tools.js +57 -0
- package/package.json +116 -0
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Button, Form, Modal, Upload, message } from "antd";
|
|
3
|
+
import { forwardRef, useImperativeHandle, useState } from "react";
|
|
4
|
+
import react_quill_new from "react-quill-new";
|
|
5
|
+
import "react-quill-new/dist/quill.snow.css";
|
|
6
|
+
import { BiIcon } from "../Icon/index.js";
|
|
7
|
+
import { useBiTable } from "../Table/Table.js";
|
|
8
|
+
const EditBox_EditBox = /*#__PURE__*/ forwardRef((props, ref)=>{
|
|
9
|
+
const [isModalOpen, setIsModalOpen] = useState(false);
|
|
10
|
+
const [content, setContent] = useState('');
|
|
11
|
+
const [fileList, setFileList] = useState([]);
|
|
12
|
+
const [uploadLoading, setUploadLoading] = useState(false);
|
|
13
|
+
const [saveLoading, setSaveLoading] = useState(false);
|
|
14
|
+
const [popperData, setPopperData] = useState({
|
|
15
|
+
label: '',
|
|
16
|
+
prop: '',
|
|
17
|
+
content: '',
|
|
18
|
+
imgs: []
|
|
19
|
+
});
|
|
20
|
+
const { headerPopper } = useBiTable();
|
|
21
|
+
const [messageApi, contextHolder] = message.useMessage();
|
|
22
|
+
const handleModalClose = ()=>{
|
|
23
|
+
setFileList([]);
|
|
24
|
+
setContent('');
|
|
25
|
+
};
|
|
26
|
+
const showModal = (prop)=>{
|
|
27
|
+
const popperData = headerPopper.findPopperData(prop) || {
|
|
28
|
+
label: '',
|
|
29
|
+
prop: prop,
|
|
30
|
+
content: '',
|
|
31
|
+
imgs: []
|
|
32
|
+
};
|
|
33
|
+
setPopperData(popperData);
|
|
34
|
+
setIsModalOpen(true);
|
|
35
|
+
setFileList(()=>popperData.imgs.map((i)=>({
|
|
36
|
+
name: i,
|
|
37
|
+
url: i
|
|
38
|
+
})));
|
|
39
|
+
setContent(popperData.content);
|
|
40
|
+
};
|
|
41
|
+
const handleOk = ()=>{
|
|
42
|
+
setSaveLoading(true);
|
|
43
|
+
headerPopper.savePopperData({
|
|
44
|
+
...popperData,
|
|
45
|
+
content,
|
|
46
|
+
imgs: fileList.map((item)=>item.url)
|
|
47
|
+
}).then(()=>{
|
|
48
|
+
setSaveLoading(false);
|
|
49
|
+
setIsModalOpen(false);
|
|
50
|
+
});
|
|
51
|
+
};
|
|
52
|
+
const handleCancel = ()=>{
|
|
53
|
+
setIsModalOpen(false);
|
|
54
|
+
};
|
|
55
|
+
const desMatcher = (node, Delta)=>{
|
|
56
|
+
const ops = [];
|
|
57
|
+
if (Delta && Delta.ops && Array.isArray(Delta.ops)) {
|
|
58
|
+
Delta.ops.forEach((op)=>{
|
|
59
|
+
if (op.insert && 'string' == typeof op.insert) {
|
|
60
|
+
const obj = {
|
|
61
|
+
insert: op.insert
|
|
62
|
+
};
|
|
63
|
+
if (op.attributes) obj.attributes = op.attributes;
|
|
64
|
+
ops.push(obj);
|
|
65
|
+
} else if (op.insert && op.insert.image) console.log('图片不可粘贴,请使用图片上传按钮哦!');
|
|
66
|
+
else if (op.insert && 'object' == typeof op.insert) console.log('检测到复杂内容粘贴,已过滤');
|
|
67
|
+
});
|
|
68
|
+
Delta.ops = ops;
|
|
69
|
+
}
|
|
70
|
+
return Delta;
|
|
71
|
+
};
|
|
72
|
+
const onEditorChange = (e)=>{
|
|
73
|
+
console.log(e, '富文本');
|
|
74
|
+
setContent(e);
|
|
75
|
+
};
|
|
76
|
+
const handleUpload = async (options)=>{
|
|
77
|
+
const { file, onSuccess, onError, onProgress } = options;
|
|
78
|
+
console.log(options, '上传');
|
|
79
|
+
try {
|
|
80
|
+
setTimeout(()=>{
|
|
81
|
+
const result = {
|
|
82
|
+
url: URL.createObjectURL(file),
|
|
83
|
+
id: Date.now().toString(),
|
|
84
|
+
name: file.name
|
|
85
|
+
};
|
|
86
|
+
onSuccess(result, file);
|
|
87
|
+
messageApi.success('上传成功');
|
|
88
|
+
setUploadLoading(false);
|
|
89
|
+
}, 500);
|
|
90
|
+
} catch (error) {
|
|
91
|
+
console.log(error, '上传失败');
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
const handleChangeUpload = (e)=>{
|
|
95
|
+
console.log(e, 'change');
|
|
96
|
+
let newFileList = [
|
|
97
|
+
...e.fileList
|
|
98
|
+
].filter((f)=>'error' !== f.status);
|
|
99
|
+
newFileList = newFileList.map((file)=>{
|
|
100
|
+
if (file.response && 'done' === file.status) return {
|
|
101
|
+
...file.response
|
|
102
|
+
};
|
|
103
|
+
return file;
|
|
104
|
+
});
|
|
105
|
+
console.log(newFileList, 'change:new-fileList');
|
|
106
|
+
setFileList(newFileList);
|
|
107
|
+
};
|
|
108
|
+
const handleRemove = (file)=>{
|
|
109
|
+
const tempFileList = fileList.filter((item)=>item.uid !== file.uid);
|
|
110
|
+
setFileList(tempFileList);
|
|
111
|
+
return true;
|
|
112
|
+
};
|
|
113
|
+
const delePopper = ()=>{
|
|
114
|
+
headerPopper.delPopperItem(popperData.id).then((res)=>{
|
|
115
|
+
if (1 === res.status_code) messageApi.success('清除成功');
|
|
116
|
+
headerPopper.getPopperList();
|
|
117
|
+
setIsModalOpen(false);
|
|
118
|
+
setUploadLoading(false);
|
|
119
|
+
});
|
|
120
|
+
};
|
|
121
|
+
useImperativeHandle(ref, ()=>({
|
|
122
|
+
show: showModal
|
|
123
|
+
}));
|
|
124
|
+
return /*#__PURE__*/ jsxs(Modal, {
|
|
125
|
+
title: "修改字段说明",
|
|
126
|
+
width: 480,
|
|
127
|
+
closable: true,
|
|
128
|
+
afterClose: handleModalClose,
|
|
129
|
+
open: isModalOpen,
|
|
130
|
+
onCancel: handleCancel,
|
|
131
|
+
footer: [
|
|
132
|
+
/*#__PURE__*/ jsx(Button, {
|
|
133
|
+
type: "link",
|
|
134
|
+
onClick: delePopper,
|
|
135
|
+
children: "清除提示"
|
|
136
|
+
}, "back"),
|
|
137
|
+
/*#__PURE__*/ jsx(Button, {
|
|
138
|
+
onClick: handleCancel,
|
|
139
|
+
children: "取消"
|
|
140
|
+
}, "cancel"),
|
|
141
|
+
/*#__PURE__*/ jsx(Button, {
|
|
142
|
+
type: "primary",
|
|
143
|
+
disabled: uploadLoading,
|
|
144
|
+
loading: saveLoading,
|
|
145
|
+
onClick: handleOk,
|
|
146
|
+
children: "确定"
|
|
147
|
+
}, "submit")
|
|
148
|
+
],
|
|
149
|
+
children: [
|
|
150
|
+
contextHolder,
|
|
151
|
+
/*#__PURE__*/ jsx("div", {
|
|
152
|
+
className: "tableheader-popper-editbox",
|
|
153
|
+
children: /*#__PURE__*/ jsxs(Form, {
|
|
154
|
+
children: [
|
|
155
|
+
/*#__PURE__*/ jsx(Form.Item, {
|
|
156
|
+
label: "说明",
|
|
157
|
+
children: /*#__PURE__*/ jsx(react_quill_new, {
|
|
158
|
+
placeholder: "在这里输入....",
|
|
159
|
+
value: content,
|
|
160
|
+
onChange: onEditorChange,
|
|
161
|
+
modules: {
|
|
162
|
+
toolbar: [
|
|
163
|
+
[
|
|
164
|
+
'bold',
|
|
165
|
+
'italic',
|
|
166
|
+
'underline',
|
|
167
|
+
'link',
|
|
168
|
+
{
|
|
169
|
+
align: []
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
color: []
|
|
173
|
+
},
|
|
174
|
+
'clean'
|
|
175
|
+
]
|
|
176
|
+
],
|
|
177
|
+
clipboard: {
|
|
178
|
+
matchers: [
|
|
179
|
+
[
|
|
180
|
+
Node.ELEMENT_NODE,
|
|
181
|
+
desMatcher
|
|
182
|
+
]
|
|
183
|
+
]
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
})
|
|
187
|
+
}),
|
|
188
|
+
/*#__PURE__*/ jsx(Form.Item, {
|
|
189
|
+
label: "截图",
|
|
190
|
+
children: /*#__PURE__*/ jsx(Upload, {
|
|
191
|
+
listType: "picture-card",
|
|
192
|
+
fileList: fileList,
|
|
193
|
+
onRemove: handleRemove,
|
|
194
|
+
customRequest: handleUpload,
|
|
195
|
+
onChange: handleChangeUpload,
|
|
196
|
+
children: /*#__PURE__*/ jsx(BiIcon, {
|
|
197
|
+
name: "PlusOutlined"
|
|
198
|
+
})
|
|
199
|
+
})
|
|
200
|
+
})
|
|
201
|
+
]
|
|
202
|
+
})
|
|
203
|
+
})
|
|
204
|
+
]
|
|
205
|
+
});
|
|
206
|
+
});
|
|
207
|
+
const EditBox = EditBox_EditBox;
|
|
208
|
+
export { EditBox as default };
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Image, Popover } from "antd";
|
|
3
|
+
import { useMemo, useState } from "react";
|
|
4
|
+
import { BiIcon } from "../Icon/index.js";
|
|
5
|
+
import { useBiTable } from "../Table/Table.js";
|
|
6
|
+
import "./index.scss";
|
|
7
|
+
const Popover_Popover = ({ prop })=>{
|
|
8
|
+
const { headerPopper } = useBiTable();
|
|
9
|
+
const [popoperTagNode, setPopoperTagNode] = useState(null);
|
|
10
|
+
const popperData = useMemo(()=>headerPopper?.findPopperData(prop) || {}, [
|
|
11
|
+
headerPopper.popperData,
|
|
12
|
+
prop
|
|
13
|
+
]);
|
|
14
|
+
const { fisrtImg, imgsLength } = useMemo(()=>({
|
|
15
|
+
fisrtImg: Array.isArray(popperData.imgs) ? popperData.imgs[0] || '' : '',
|
|
16
|
+
imgsLength: Array.isArray(popperData.imgs) ? popperData.imgs.length : 0
|
|
17
|
+
}), [
|
|
18
|
+
popperData
|
|
19
|
+
]);
|
|
20
|
+
return /*#__PURE__*/ jsx("span", {
|
|
21
|
+
className: "bi-tableheader",
|
|
22
|
+
children: (popperData.content || popperData.imgs) && /*#__PURE__*/ jsx(Popover, {
|
|
23
|
+
styles: {
|
|
24
|
+
root: {}
|
|
25
|
+
},
|
|
26
|
+
content: /*#__PURE__*/ jsxs("div", {
|
|
27
|
+
className: "tableheader-popper-box",
|
|
28
|
+
children: [
|
|
29
|
+
/*#__PURE__*/ jsxs("div", {
|
|
30
|
+
className: "tableheader-popper-content-box",
|
|
31
|
+
children: [
|
|
32
|
+
/*#__PURE__*/ jsx("div", {
|
|
33
|
+
className: "tableheader-popper-content",
|
|
34
|
+
dangerouslySetInnerHTML: {
|
|
35
|
+
__html: popperData.content || ''
|
|
36
|
+
}
|
|
37
|
+
}),
|
|
38
|
+
fisrtImg && /*#__PURE__*/ jsx("div", {
|
|
39
|
+
className: "tableheader-popper-img-box",
|
|
40
|
+
children: /*#__PURE__*/ jsxs("div", {
|
|
41
|
+
className: "tableheader-popper-img",
|
|
42
|
+
children: [
|
|
43
|
+
/*#__PURE__*/ jsx(Image.PreviewGroup, {
|
|
44
|
+
items: popperData.imgs,
|
|
45
|
+
children: /*#__PURE__*/ jsx(Image, {
|
|
46
|
+
width: 60,
|
|
47
|
+
height: 60,
|
|
48
|
+
alt: "点击查看大图",
|
|
49
|
+
src: fisrtImg
|
|
50
|
+
})
|
|
51
|
+
}),
|
|
52
|
+
/*#__PURE__*/ jsxs("span", {
|
|
53
|
+
children: [
|
|
54
|
+
"(1/",
|
|
55
|
+
imgsLength,
|
|
56
|
+
")"
|
|
57
|
+
]
|
|
58
|
+
})
|
|
59
|
+
]
|
|
60
|
+
})
|
|
61
|
+
})
|
|
62
|
+
]
|
|
63
|
+
}),
|
|
64
|
+
popperData.update_time && /*#__PURE__*/ jsxs("div", {
|
|
65
|
+
className: "tableheader-popper-time",
|
|
66
|
+
children: [
|
|
67
|
+
"更新日期: ",
|
|
68
|
+
popperData.update_time
|
|
69
|
+
]
|
|
70
|
+
})
|
|
71
|
+
]
|
|
72
|
+
}),
|
|
73
|
+
children: /*#__PURE__*/ jsx(BiIcon, {
|
|
74
|
+
name: "QuestionCircleOutlined",
|
|
75
|
+
style: {
|
|
76
|
+
color: 'rgb(134, 144, 156)',
|
|
77
|
+
cursor: 'pointer'
|
|
78
|
+
},
|
|
79
|
+
className: "tableheader-popver-reference el-icon-question-fill"
|
|
80
|
+
})
|
|
81
|
+
})
|
|
82
|
+
});
|
|
83
|
+
};
|
|
84
|
+
const TableHeaderPopper_Popover = Popover_Popover;
|
|
85
|
+
export { TableHeaderPopper_Popover as default };
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
.tableheader-popper-editbox {
|
|
2
|
+
.ql-toolbar.ql-snow {
|
|
3
|
+
padding: 0px 5px;
|
|
4
|
+
}
|
|
5
|
+
.ql-picker-label {
|
|
6
|
+
display: flex;
|
|
7
|
+
}
|
|
8
|
+
.ql-snow .ql-tooltip:not(.ql-hidden) {
|
|
9
|
+
display: flex;
|
|
10
|
+
align-items: center;
|
|
11
|
+
}
|
|
12
|
+
.ql-snow .ql-tooltip[data-mode='link']::before,
|
|
13
|
+
.ql-snow .ql-tooltip::before {
|
|
14
|
+
content: '链接';
|
|
15
|
+
}
|
|
16
|
+
.ql-snow .ql-tooltip.ql-editing a.ql-action::after {
|
|
17
|
+
content: '确定';
|
|
18
|
+
}
|
|
19
|
+
.ql-snow .ql-tooltip a.ql-action::after {
|
|
20
|
+
content: '修改';
|
|
21
|
+
}
|
|
22
|
+
.ql-snow .ql-tooltip a.ql-remove::before {
|
|
23
|
+
content: '清除';
|
|
24
|
+
}
|
|
25
|
+
.ql-container.ql-snow {
|
|
26
|
+
min-height: 60px;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
.tableheader-popper-box {
|
|
30
|
+
padding: 10px;
|
|
31
|
+
max-width: 260px;
|
|
32
|
+
max-height: 260px;
|
|
33
|
+
overflow-y: auto;
|
|
34
|
+
.tableheader-popper-content-box {
|
|
35
|
+
display: flex;
|
|
36
|
+
justify-content: space-between;
|
|
37
|
+
}
|
|
38
|
+
.tableheader-popper-content {
|
|
39
|
+
a {
|
|
40
|
+
color: #3491fa;
|
|
41
|
+
text-decoration: underline;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
.tableheader-popper-img-box {
|
|
45
|
+
display: flex;
|
|
46
|
+
align-items: center;
|
|
47
|
+
}
|
|
48
|
+
.tableheader-popper-img {
|
|
49
|
+
width: 100%;
|
|
50
|
+
display: flex;
|
|
51
|
+
align-items: center;
|
|
52
|
+
flex: 0;
|
|
53
|
+
margin-left: 6px;
|
|
54
|
+
position: relative;
|
|
55
|
+
width: 60px;
|
|
56
|
+
height: 60px;
|
|
57
|
+
img {
|
|
58
|
+
display: block;
|
|
59
|
+
}
|
|
60
|
+
span {
|
|
61
|
+
display: block;
|
|
62
|
+
position: absolute;
|
|
63
|
+
bottom: 0;
|
|
64
|
+
width: 60px;
|
|
65
|
+
height: 14px;
|
|
66
|
+
line-height: 14px;
|
|
67
|
+
left: 0;
|
|
68
|
+
background: #00000059;
|
|
69
|
+
color: white;
|
|
70
|
+
text-align: center;
|
|
71
|
+
font-size: 12px;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
.tableheader-popper-time {
|
|
75
|
+
text-align: right;
|
|
76
|
+
margin-top: 10px;
|
|
77
|
+
font-size: 12px;
|
|
78
|
+
line-height: 12px;
|
|
79
|
+
color: #c9cdd4;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
.tableheader-popper-editdialog {
|
|
83
|
+
.dialog-footer {
|
|
84
|
+
display: flex;
|
|
85
|
+
justify-content: space-between;
|
|
86
|
+
.action-buttons {
|
|
87
|
+
flex: 1;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
.bi-tableheader {
|
|
92
|
+
padding-left: 5px;
|
|
93
|
+
.el-popper__reference-wrapper {
|
|
94
|
+
cursor: help;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect, useState } from "react";
|
|
3
|
+
import "./TaskCenter.scss";
|
|
4
|
+
import { Button, Input, Modal, Popover, Table } from "antd";
|
|
5
|
+
import { getEnv, getSystem } from "../../utils/tools.js";
|
|
6
|
+
import { taskList, taskOption } from "./api.js";
|
|
7
|
+
const TaskCenter_TaskCenter = ({ userId })=>{
|
|
8
|
+
const [taskNo, setTaskNo] = useState('');
|
|
9
|
+
const [searchLoading, setSearchLoading] = useState(false);
|
|
10
|
+
const [taskStatus, setTaskStatus] = useState([]);
|
|
11
|
+
const [taskType, setTaskType] = useState([]);
|
|
12
|
+
const [showInfo, setShowInfo] = useState([]);
|
|
13
|
+
const [pageInfo, setPageInfo] = useState({
|
|
14
|
+
total: 0,
|
|
15
|
+
size: 20,
|
|
16
|
+
num: 1
|
|
17
|
+
});
|
|
18
|
+
const [dataSource, setDataSource] = useState([]);
|
|
19
|
+
const [visible, setVisible] = useState(false);
|
|
20
|
+
const env = getEnv();
|
|
21
|
+
const system = getSystem();
|
|
22
|
+
const search = async ()=>{
|
|
23
|
+
setSearchLoading(true);
|
|
24
|
+
try {
|
|
25
|
+
const res = await taskList(env, {
|
|
26
|
+
user_id: userId,
|
|
27
|
+
task_no: taskNo,
|
|
28
|
+
system: system,
|
|
29
|
+
page_info: {
|
|
30
|
+
size: pageInfo.size,
|
|
31
|
+
num: pageInfo.num
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
if (1 === res.status_code) {
|
|
35
|
+
console.log(res.data);
|
|
36
|
+
setDataSource(res.data.task_list || []);
|
|
37
|
+
setPageInfo(res.data.page_info);
|
|
38
|
+
}
|
|
39
|
+
} catch (error) {} finally{
|
|
40
|
+
setSearchLoading(false);
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
const getOption = async ()=>{
|
|
44
|
+
const res = await taskOption(env);
|
|
45
|
+
if (1 === res.status_code) {
|
|
46
|
+
setTaskStatus(res.data.task_status);
|
|
47
|
+
setTaskType(res.data.task_types);
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
const tableColumns = [
|
|
51
|
+
{
|
|
52
|
+
title: '任务ID',
|
|
53
|
+
key: 'oid',
|
|
54
|
+
width: 132
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
title: '任务页面',
|
|
58
|
+
key: 'page_name',
|
|
59
|
+
width: 92
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
title: '任务状态',
|
|
63
|
+
key: 'task_status',
|
|
64
|
+
width: 92,
|
|
65
|
+
render: (_, { task_status })=>renderTaskStatus(task_status, _)
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
title: '任务类型',
|
|
69
|
+
key: 'type_text',
|
|
70
|
+
width: 92,
|
|
71
|
+
render: (_, { type_text })=>renderTaskType(type_text)
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
title: '任务条件',
|
|
75
|
+
key: 'query_translation',
|
|
76
|
+
minWidth: 200,
|
|
77
|
+
render: (row)=>renderQueryTranslation(row)
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
title: '创建时间',
|
|
81
|
+
key: 'create_time',
|
|
82
|
+
width: 115
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
title: '完成时间',
|
|
86
|
+
key: 'finish_time',
|
|
87
|
+
width: 115,
|
|
88
|
+
render: (_, { finish_time_text })=>finish_time_text || '-'
|
|
89
|
+
}
|
|
90
|
+
];
|
|
91
|
+
const renderTaskStatus = (value, row)=>{
|
|
92
|
+
const item = taskStatus.find((item)=>String(item.value) === String(value));
|
|
93
|
+
const label = item?.name || '-';
|
|
94
|
+
const color = {
|
|
95
|
+
1: '#FF7D00',
|
|
96
|
+
2: '#00B42A',
|
|
97
|
+
3: '#0FC6C2',
|
|
98
|
+
4: '#F53F3F'
|
|
99
|
+
}[value || '1'];
|
|
100
|
+
const child = /*#__PURE__*/ jsxs("div", {
|
|
101
|
+
style: {
|
|
102
|
+
display: 'flex',
|
|
103
|
+
alignItems: 'center'
|
|
104
|
+
},
|
|
105
|
+
children: [
|
|
106
|
+
/*#__PURE__*/ jsx("div", {
|
|
107
|
+
style: {
|
|
108
|
+
width: '6px',
|
|
109
|
+
height: '6px',
|
|
110
|
+
borderRadius: '6px',
|
|
111
|
+
display: 'inline-block',
|
|
112
|
+
background: color,
|
|
113
|
+
marginRight: '5px'
|
|
114
|
+
}
|
|
115
|
+
}),
|
|
116
|
+
/*#__PURE__*/ jsx("span", {
|
|
117
|
+
children: label
|
|
118
|
+
})
|
|
119
|
+
]
|
|
120
|
+
});
|
|
121
|
+
return '3' !== row.task_status ? child : /*#__PURE__*/ jsx(Popover, {
|
|
122
|
+
content: row.remark,
|
|
123
|
+
title: '任务状态',
|
|
124
|
+
children: child
|
|
125
|
+
});
|
|
126
|
+
};
|
|
127
|
+
const renderTaskType = (value)=>{
|
|
128
|
+
const item = taskType.find((item)=>String(item.value) === String(value));
|
|
129
|
+
const label = item?.name || '-';
|
|
130
|
+
return /*#__PURE__*/ jsx("span", {
|
|
131
|
+
children: label
|
|
132
|
+
});
|
|
133
|
+
};
|
|
134
|
+
const renderQueryTranslation = (row)=>row.conditions.map((item)=>/*#__PURE__*/ jsx("div", {
|
|
135
|
+
className: "query_translation",
|
|
136
|
+
onClick: ()=>{
|
|
137
|
+
setShowInfo(row.conditions);
|
|
138
|
+
setVisible(true);
|
|
139
|
+
},
|
|
140
|
+
children: /*#__PURE__*/ jsxs("p", {
|
|
141
|
+
style: {
|
|
142
|
+
margin: 0
|
|
143
|
+
},
|
|
144
|
+
children: [
|
|
145
|
+
/*#__PURE__*/ jsx("span", {
|
|
146
|
+
children: item.field
|
|
147
|
+
}),
|
|
148
|
+
/*#__PURE__*/ jsx("span", {
|
|
149
|
+
children: ":"
|
|
150
|
+
}),
|
|
151
|
+
/*#__PURE__*/ jsx("span", {
|
|
152
|
+
children: item.value
|
|
153
|
+
})
|
|
154
|
+
]
|
|
155
|
+
}, item.field)
|
|
156
|
+
}, item.field));
|
|
157
|
+
useEffect(()=>{
|
|
158
|
+
getOption();
|
|
159
|
+
}, []);
|
|
160
|
+
return /*#__PURE__*/ jsxs("div", {
|
|
161
|
+
className: "task-center",
|
|
162
|
+
children: [
|
|
163
|
+
/*#__PURE__*/ jsxs("div", {
|
|
164
|
+
className: "content-body",
|
|
165
|
+
style: {
|
|
166
|
+
marginTop: '0'
|
|
167
|
+
},
|
|
168
|
+
children: [
|
|
169
|
+
/*#__PURE__*/ jsx("div", {
|
|
170
|
+
className: "content-box",
|
|
171
|
+
children: /*#__PURE__*/ jsx("div", {
|
|
172
|
+
className: "action-row",
|
|
173
|
+
children: /*#__PURE__*/ jsx("div", {
|
|
174
|
+
className: "action-left-row",
|
|
175
|
+
style: {
|
|
176
|
+
display: 'flex',
|
|
177
|
+
alignItems: 'center'
|
|
178
|
+
},
|
|
179
|
+
children: /*#__PURE__*/ jsx("div", {
|
|
180
|
+
children: /*#__PURE__*/ jsx(Input, {
|
|
181
|
+
placeholder: "请输入任务ID",
|
|
182
|
+
value: taskNo,
|
|
183
|
+
onChange: (e)=>setTaskNo(e.target.value),
|
|
184
|
+
suffix: /*#__PURE__*/ jsx(Button, {
|
|
185
|
+
type: "primary",
|
|
186
|
+
onClick: search,
|
|
187
|
+
loading: searchLoading,
|
|
188
|
+
disabled: searchLoading,
|
|
189
|
+
children: "查询"
|
|
190
|
+
})
|
|
191
|
+
})
|
|
192
|
+
})
|
|
193
|
+
})
|
|
194
|
+
})
|
|
195
|
+
}),
|
|
196
|
+
/*#__PURE__*/ jsx("div", {
|
|
197
|
+
className: "content-box",
|
|
198
|
+
children: /*#__PURE__*/ jsx("div", {
|
|
199
|
+
className: "table-box",
|
|
200
|
+
children: /*#__PURE__*/ jsx(Table, {
|
|
201
|
+
columns: tableColumns,
|
|
202
|
+
dataSource: dataSource,
|
|
203
|
+
pagination: {
|
|
204
|
+
total: pageInfo.total,
|
|
205
|
+
current: pageInfo.num,
|
|
206
|
+
pageSize: pageInfo.size,
|
|
207
|
+
onChange: (num)=>{
|
|
208
|
+
setPageInfo({
|
|
209
|
+
...pageInfo,
|
|
210
|
+
num
|
|
211
|
+
});
|
|
212
|
+
search();
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
})
|
|
216
|
+
})
|
|
217
|
+
})
|
|
218
|
+
]
|
|
219
|
+
}),
|
|
220
|
+
/*#__PURE__*/ jsx(Modal, {
|
|
221
|
+
title: "任务条件详情",
|
|
222
|
+
open: visible,
|
|
223
|
+
width: 700,
|
|
224
|
+
onOk: ()=>{
|
|
225
|
+
setShowInfo([]);
|
|
226
|
+
setVisible(false);
|
|
227
|
+
},
|
|
228
|
+
onCancel: ()=>{
|
|
229
|
+
setShowInfo([]);
|
|
230
|
+
setVisible(false);
|
|
231
|
+
},
|
|
232
|
+
children: /*#__PURE__*/ jsx("div", {
|
|
233
|
+
className: "task-detail",
|
|
234
|
+
style: {
|
|
235
|
+
maxHeight: '600px',
|
|
236
|
+
overflow: 'auto'
|
|
237
|
+
},
|
|
238
|
+
children: showInfo.map((item)=>/*#__PURE__*/ jsxs("p", {
|
|
239
|
+
children: [
|
|
240
|
+
/*#__PURE__*/ jsx("span", {
|
|
241
|
+
children: item.field
|
|
242
|
+
}),
|
|
243
|
+
/*#__PURE__*/ jsx("span", {
|
|
244
|
+
children: ":"
|
|
245
|
+
}),
|
|
246
|
+
/*#__PURE__*/ jsx("span", {
|
|
247
|
+
children: item.value
|
|
248
|
+
})
|
|
249
|
+
]
|
|
250
|
+
}, item.field))
|
|
251
|
+
})
|
|
252
|
+
})
|
|
253
|
+
]
|
|
254
|
+
});
|
|
255
|
+
};
|
|
256
|
+
const TaskCenter = TaskCenter_TaskCenter;
|
|
257
|
+
export { TaskCenter as default };
|