@cloudbase/weda-ui 3.4.3 → 3.4.5
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/configs/components/chart/bar.json +117 -8
- package/dist/configs/components/chart/line.js +127 -18
- package/dist/configs/components/chart/pie.json +117 -8
- package/dist/configs/components/chart/statisticsCard.json +57 -0
- package/dist/configs/components/dataView.js +507 -0
- package/dist/configs/components/form/location.json +2 -1
- package/dist/configs/components/form/userTreeSelect.json +55 -0
- package/dist/configs/components/formdetail.json +12 -2
- package/dist/configs/components/graphicCard.json +1 -1
- package/dist/configs/components/grid/col.js +125 -0
- package/dist/configs/components/grid/grid.js +131 -0
- package/dist/configs/components/grid/row.js +143 -0
- package/dist/configs/components/image.js +11 -1
- package/dist/configs/components/link.js +11 -1
- package/dist/configs/components/listView.js +1092 -0
- package/dist/configs/components/navLayout.json +1 -1
- package/dist/configs/components/navigationBar.json +9 -1
- package/dist/configs/components/repeater-item.json +17 -0
- package/dist/configs/components/repeater.js +125 -0
- package/dist/configs/components/table.json +187 -29
- package/dist/configs/components/text.js +12 -1
- package/dist/configs/components/wd-bubble.js +204 -0
- package/dist/configs/components/wd-button.js +417 -0
- package/dist/configs/components/wd-divider.js +89 -0
- package/dist/configs/components/wd-icon.js +126 -0
- package/dist/configs/components/wd-image.js +164 -0
- package/dist/configs/components/wd-link.js +234 -0
- package/dist/configs/components/wd-table.js +59 -0
- package/dist/configs/components/wd-text.js +142 -0
- package/dist/configs/components/wxOpenApi/phone.js +2 -2
- package/dist/configs/components/wxOpenApi/phoneCode.js +2 -2
- package/dist/configs/index.js +34 -3
- package/dist/configs/type-utils/index.js +4 -1
- package/dist/docs/common/componentList.js +144 -0
- package/dist/docs/common/components/classes-view.js +34 -0
- package/dist/docs/common/components/event-view.js +46 -0
- package/dist/docs/common/components/json-schema-view.js +18 -0
- package/dist/docs/common/components/methods-view.js +32 -0
- package/dist/docs/common/components/properties-view.js +45 -0
- package/dist/docs/common/format.js +60 -35
- package/dist/docs/common/helper.js +1 -0
- package/dist/docs/common/tableView.js +61 -50
- package/dist/enum/index.js +521 -0
- package/dist/index.js +1 -1
- package/dist/style/index.scss +1 -0
- package/dist/web/actions/showMessage/index.css +0 -3
- package/dist/web/actions/showMessage/index.js +1 -1
- package/dist/web/actions/showModal/index.css +0 -3
- package/dist/web/components/button/index.css +2 -5
- package/dist/web/components/button/index.js +3 -3
- package/dist/web/components/calendar/index.css +29 -32
- package/dist/web/components/calendar/index.js +37 -35
- package/dist/web/components/carousel/index.css +11 -14
- package/dist/web/components/carousel/index.js +3 -1
- package/dist/web/components/chart/common/core/eChartBar.js +10 -2
- package/dist/web/components/chart/common/core/eChartLine.js +16 -8
- package/dist/web/components/chart/common/core/eChartPie.js +2 -1
- package/dist/web/components/chart/common/data-transform.js +1 -1
- package/dist/web/components/chart/statisticsCard/index.css +12 -15
- package/dist/web/components/chart/statisticsCard/index.js +7 -2
- package/dist/web/components/dataView/index.js +3 -3
- package/dist/web/components/emptyContent/index.css +26 -0
- package/dist/web/components/emptyContent/index.js +46 -0
- package/dist/web/components/flow/components/FlowModuleText/index.css +1 -4
- package/dist/web/components/flow/components/FlowUserSelect/index.css +29 -32
- package/dist/web/components/flow/components/HighlightTextarea/index.css +5 -8
- package/dist/web/components/flow/components/UserSelectModel/UserSelect.js +9 -8
- package/dist/web/components/flow/components/UserSelectModel/UserSelectMobile.css +1 -4
- package/dist/web/components/flow/components/UserSelectModel/UserSelectMobile.js +3 -4
- package/dist/web/components/flow/components/WedaUserTransfer/index.css +0 -3
- package/dist/web/components/flow/frame/getCommonFlowData.js +3 -1
- package/dist/web/components/flow/frame/index.js +18 -1
- package/dist/web/components/flow/frame/types.js +6 -0
- package/dist/web/components/flow/frame/utils.js +20 -11
- package/dist/web/components/flow/modules/basic/Basic.css +3 -6
- package/dist/web/components/flow/modules/basic/BasicMobile.css +9 -12
- package/dist/web/components/flow/modules/chart/Chart.js +2 -2
- package/dist/web/components/flow/modules/chart/index.css +23 -29
- package/dist/web/components/flow/modules/chart/isString.js +5 -0
- package/dist/web/components/flow/modules/control/ApprovalDrawer.css +44 -47
- package/dist/web/components/flow/modules/control/ApprovalPopup.css +34 -37
- package/dist/web/components/flow/modules/control/ApprovalPopup.js +12 -9
- package/dist/web/components/flow/modules/control/Control.css +7 -10
- package/dist/web/components/flow/modules/control/Control.js +31 -16
- package/dist/web/components/flow/modules/control/ControlMobile.css +41 -12
- package/dist/web/components/flow/modules/control/ControlMobile.js +28 -13
- package/dist/web/components/flow/modules/control/FlowTaskInfoModal.css +0 -3
- package/dist/web/components/flow/modules/control/FlowTaskInfoModal.js +4 -4
- package/dist/web/components/flow/modules/control/provider/useControlModel.js +20 -11
- package/dist/web/components/flow/modules/control/provider/useMobileModel.js +0 -2
- package/dist/web/components/flow/modules/control/provider/useRevokeAndBackHook.js +2 -0
- package/dist/web/components/flow/modules/control/utils/index.js +1 -0
- package/dist/web/components/flow/modules/control/utils/tools.js +3 -0
- package/dist/web/components/flow/modules/layout/index.css +0 -3
- package/dist/web/components/flow/modules/process/Process.js +1 -1
- package/dist/web/components/flow/modules/process/ProcessMobile.js +1 -1
- package/dist/web/components/flow/modules/process/index.css +49 -43
- package/dist/web/components/form/form/index.css +2 -5
- package/dist/web/components/form/form/index.js +48 -4
- package/dist/web/components/form/formcell/index.css +29 -17
- package/dist/web/components/form/input/index.css +5 -8
- package/dist/web/components/form/input/index.js +11 -0
- package/dist/web/components/form/location/common/mapChoose.css +88 -91
- package/dist/web/components/form/location/common/selectModal.css +10 -13
- package/dist/web/components/form/location/components/LocationH5/index.css +17 -20
- package/dist/web/components/form/location/components/LocationH5/location.h5.js +2 -3
- package/dist/web/components/form/location/components/LocationH5/location.module.css +0 -3
- package/dist/web/components/form/location/components/LocationPC/index.css +10 -13
- package/dist/web/components/form/location/components/LocationPC/location.PC.js +2 -3
- package/dist/web/components/form/location/index.css +0 -3
- package/dist/web/components/form/radio/index.css +0 -3
- package/dist/web/components/form/select/allTimePicker/calendar.css +15 -18
- package/dist/web/components/form/select/allTimePicker/index.css +53 -27
- package/dist/web/components/form/select/dropdown-select/h5.js +23 -12
- package/dist/web/components/form/select/dropdown-select/index.css +34 -27
- package/dist/web/components/form/select/dropdown-select/index.js +37 -4
- package/dist/web/components/form/select/dropdown-select/pc.js +57 -17
- package/dist/web/components/form/select/dropdown-select/ui.js +5 -2
- package/dist/web/components/form/select/index.css +12 -8
- package/dist/web/components/form/select/index.js +4 -9
- package/dist/web/components/form/select/status/index.css +10 -13
- package/dist/web/components/form/switch/switch.module.css +0 -3
- package/dist/web/components/form/textarea/index.css +1 -4
- package/dist/web/components/form/textarea/index.js +1 -1
- package/dist/web/components/form/tips/index.css +11 -2
- package/dist/web/components/form/uploader/index.css +14 -17
- package/dist/web/components/form/uploaderFile/index.css +64 -66
- package/dist/web/components/form/uploaderFile/uploadFile.h5.js +10 -11
- package/dist/web/components/form/uploaderFile/uploadFile.pc.js +3 -2
- package/dist/web/components/form/userOrgSelect/common/fetch-data-service.js +120 -38
- package/dist/web/components/form/userOrgSelect/common/utils.js +89 -1
- package/dist/web/components/form/userOrgSelect/component/depart-breadcrumb.js +15 -0
- package/dist/web/components/form/userOrgSelect/component/depart-select/depart-select-pc.js +63 -0
- package/dist/web/components/form/userOrgSelect/component/depart-select/index.js +96 -0
- package/dist/web/components/form/userOrgSelect/component/depart-select/org-modal-pc.js +69 -0
- package/dist/web/components/form/userOrgSelect/{user-select-pc → component}/error-tips.js +0 -0
- package/dist/web/components/form/userOrgSelect/component/index.css +323 -0
- package/dist/web/components/form/userOrgSelect/component/input-tags.js +21 -0
- package/dist/web/components/form/userOrgSelect/component/modal-search-h5.js +25 -0
- package/dist/web/components/form/userOrgSelect/component/modal-search.js +11 -0
- package/dist/web/components/form/userOrgSelect/component/modal-select-h5.js +201 -0
- package/dist/web/components/form/userOrgSelect/component/org-tree-h5.js +19 -0
- package/dist/web/components/form/userOrgSelect/component/org-tree.js +33 -0
- package/dist/web/components/form/userOrgSelect/component/selected-list-h5.js +44 -0
- package/dist/web/components/form/userOrgSelect/component/selected-list.js +15 -0
- package/dist/web/components/form/userOrgSelect/component/user-org-list.js +55 -0
- package/dist/web/components/form/userOrgSelect/component/user-select-h5/index.js +168 -0
- package/dist/web/components/form/userOrgSelect/component/user-select-h5/user-list-h5.js +107 -0
- package/dist/web/components/form/userOrgSelect/component/user-select-h5/user-select-h5.js +59 -0
- package/dist/web/components/form/userOrgSelect/component/user-select-pc/error-tips.js +11 -0
- package/dist/web/components/form/userOrgSelect/{user-select-pc → component/user-select-pc}/model-user-list.js +9 -9
- package/dist/web/components/form/userOrgSelect/component/user-select-pc/org-tree.js +10 -0
- package/dist/web/components/form/userOrgSelect/component/user-select-pc/user-model.js +75 -0
- package/dist/web/components/form/userOrgSelect/component/user-select-pc/user-select-pc.js +65 -0
- package/dist/web/components/form/userOrgSelect/component/userOrgSelect.css +1160 -0
- package/dist/web/components/form/userOrgSelect/departTreeSelect/departTreeSelect.h5.js +54 -87
- package/dist/web/components/form/userOrgSelect/hooks/use-depart-data.js +30 -35
- package/dist/web/components/form/userOrgSelect/hooks/use-views-data.js +48 -0
- package/dist/web/components/formdetail/index.css +34 -31
- package/dist/web/components/formdetail/index.js +12 -3
- package/dist/web/components/graphicCard/index.css +15 -18
- package/dist/web/components/grid/_utils.css +67 -0
- package/dist/web/components/grid/col.js +33 -0
- package/dist/web/components/grid/grid.css +1185 -0
- package/dist/web/components/grid/grid.js +19 -0
- package/dist/web/components/grid/row.js +14 -0
- package/dist/web/components/image/image.js +9 -1
- package/dist/web/components/image/index.css +2 -5
- package/dist/web/components/index.js +17 -3
- package/dist/web/components/link/index.css +0 -3
- package/dist/web/components/listView/index.css +21 -23
- package/dist/web/components/listView/index.js +215 -81
- package/dist/web/components/lottery/index.css +72 -75
- package/dist/web/components/modal/h5.css +19 -21
- package/dist/web/components/modal/modal.h5.js +11 -10
- package/dist/web/components/navLayout/index.css +14 -139
- package/dist/web/components/navigationBar/common.js +5 -4
- package/dist/web/components/navigationBar/h5Menu.js +12 -10
- package/dist/web/components/navigationBar/horizontalMenu.js +42 -35
- package/dist/web/components/navigationBar/index.css +130 -86
- package/dist/web/components/navigationBar/index.js +6 -4
- package/dist/web/components/navigationBar/verticalMenu.js +13 -9
- package/dist/web/components/pageLayout/PageContent/index.css +7 -10
- package/dist/web/components/pageLayout/index.css +0 -3
- package/dist/web/components/pageLayout/index.js +2 -1
- package/dist/web/components/repeater/index.js +17 -0
- package/dist/web/components/repeater-item/index.js +9 -0
- package/dist/web/components/richText/index.css +5 -8
- package/dist/web/components/richText/index.js +4 -2
- package/dist/web/components/richText/richtext.module.css +1 -4
- package/dist/web/components/richTextView/index.css +9 -10
- package/dist/web/components/swiper/index.css +10 -13
- package/dist/web/components/swiper/index.js +25 -5
- package/dist/web/components/table/BaseTable.js +355 -286
- package/dist/web/components/table/ExportFileModalByApi/index.css +9 -0
- package/dist/web/components/table/ExportFileModalByApi/index.js +150 -0
- package/dist/web/components/table/FieldRender.js +25 -18
- package/dist/web/components/table/FilterFields.js +17 -11
- package/dist/web/components/table/Form/Location.css +2 -5
- package/dist/web/components/table/ImportFileModal/csvTemplate.json +65 -6
- package/dist/web/components/table/ImportFileModalByApi/index.css +130 -0
- package/dist/web/components/table/ImportFileModalByApi/index.js +321 -0
- package/dist/web/components/table/ImportFileModalByApi/uploadCSVFile.js +115 -0
- package/dist/web/components/table/InOrOutRecordModeal.js +139 -0
- package/dist/web/components/table/SelectableBlock/index.css +0 -2
- package/dist/web/components/table/UserDepartment/viewCell.css +3 -6
- package/dist/web/components/table/baseTable.css +579 -0
- package/dist/web/components/table/hooks/useImportingStatus.js +69 -0
- package/dist/web/components/table/hooks/useInOutFieldsRecords.js +23 -0
- package/dist/web/components/table/index.css +275 -508
- package/dist/web/components/table/index.js +6 -4
- package/dist/web/components/tabs/index.css +19 -18
- package/dist/web/components/tabs/tabs.h5.js +7 -16
- package/dist/web/components/text/index.css +6 -9
- package/dist/web/components/uploaderFileView/index.css +0 -3
- package/dist/web/components/uploaderView/index.css +5 -8
- package/dist/web/components/wd-bubble/index.js +3 -17
- package/dist/web/components/wd-bubble/wd-bubble.js +17 -0
- package/dist/web/components/wd-button/convert-legacy-props.js +14 -0
- package/dist/web/components/wd-button/index.js +3 -0
- package/dist/web/components/wd-button/wd-button.js +89 -0
- package/dist/web/components/wd-config-provider/index.js +1 -0
- package/dist/web/components/wd-config-provider/wd-config-context.js +5 -0
- package/dist/web/components/wd-config-provider/wd-config-provider.js +12 -0
- package/dist/web/components/wd-divider/index.js +3 -0
- package/dist/web/components/wd-divider/wd-divider.js +29 -0
- package/dist/web/components/wd-icon/convert-legacy-props.js +14 -0
- package/dist/web/components/wd-icon/index.js +3 -0
- package/dist/web/components/wd-icon/wd-icon.js +63 -0
- package/dist/web/components/wd-image/image.js +171 -0
- package/dist/web/components/wd-image/index.js +82 -0
- package/dist/web/components/wd-link/index.js +3 -0
- package/dist/web/components/wd-link/wd-link.js +105 -0
- package/dist/web/components/wd-table/index.js +3 -0
- package/dist/web/components/wd-table/wd-table.js +24 -0
- package/dist/web/components/wd-text/convert-legacy-props.js +14 -0
- package/dist/web/components/wd-text/index.js +3 -0
- package/dist/web/components/wd-text/wd-text.js +91 -0
- package/dist/web/components/wedaVideo/index.css +2 -5
- package/dist/web/components/wedaVideo/index.js +8 -6
- package/dist/web/index.js +1 -1
- package/dist/web/utils/config-context/index.js +1 -0
- package/dist/web/utils/config-context/use-config.js +9 -0
- package/dist/web/utils/constant.js +1 -0
- package/dist/web/utils/datasource.js +19 -7
- package/dist/web/utils/file.js +22 -0
- package/dist/web/utils/hooks/CreatePortal.js +6 -0
- package/dist/web/utils/hooks/EnumHoc.js +23 -3
- package/dist/web/utils/hooks/context.js +5 -1
- package/dist/web/utils/hooks/use-cloud-id-temp-url.js +2 -1
- package/dist/web/utils/platform.js +40 -12
- package/dist/web/utils/pollingInterface.js +61 -0
- package/dist/web/utils/tcb.js +16 -0
- package/dist/web/utils/tool.js +88 -0
- package/dist/web/utils/widget-api/index.js +18 -0
- package/dist/web/weda-ui.css +128 -4
- package/package.json +51 -33
- package/dist/configs/components/dataView.json +0 -305
- package/dist/configs/components/listView.json +0 -515
- package/dist/configs/components/wd-bubble.json +0 -170
- package/dist/web/components/form/userOrgSelect/comTool.js +0 -102
- package/dist/web/components/form/userOrgSelect/departTreeSelect/departTreeSelect.pc.js +0 -155
- package/dist/web/components/form/userOrgSelect/departTreeSelect/index.js +0 -17
- package/dist/web/components/form/userOrgSelect/getUserService.js +0 -165
- package/dist/web/components/form/userOrgSelect/index.js +0 -17
- package/dist/web/components/form/userOrgSelect/user-select-pc/index.css +0 -216
- package/dist/web/components/form/userOrgSelect/user-select-pc/index.js +0 -195
- package/dist/web/components/form/userOrgSelect/user-select-pc/org-tree.js +0 -15
- package/dist/web/components/form/userOrgSelect/user-select-pc/search-user.js +0 -80
- package/dist/web/components/form/userOrgSelect/user-select-pc/selected-user-list.js +0 -12
- package/dist/web/components/form/userOrgSelect/user-select-pc/user-model.js +0 -36
- package/dist/web/components/form/userOrgSelect/userOrgSelect.css +0 -824
- package/dist/web/components/form/userOrgSelect/userTreeSelect.h5.js +0 -302
- package/dist/web/components/form/userOrgSelect/utils.js +0 -95
- package/dist/web/components/table/ImportFileModal/index.css +0 -263
- package/dist/web/components/wd-bubble/index.css +0 -21
- package/dist/web/utils/hooks/useRequest.js +0 -25
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import React, { useState, useEffect, useCallback } from 'react';
|
|
2
|
-
import { emptyObject } from '../../../../utils/constant';
|
|
3
2
|
import { renderDecorator } from '../../renderDecorator';
|
|
4
3
|
import { IconFont } from 'tdesign-icons-react';
|
|
5
4
|
import classNames from '../../../../utils/classnames';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { Modal, Button, ConfigProvider, Radio, Status } from 'tea-component';
|
|
9
|
-
import
|
|
10
|
-
import '../
|
|
11
|
-
|
|
12
|
-
|
|
5
|
+
import { defaultRequest } from '../common/fetch-data-service';
|
|
6
|
+
import { dealOrgDataH5 } from '../common/utils';
|
|
7
|
+
import { Modal, Button, ConfigProvider, Radio, Status, Bubble, } from 'tea-component';
|
|
8
|
+
import { ModalSearchH5 } from '../component/modal-search-h5';
|
|
9
|
+
import { LoadingStatus, ErrorStatus } from '../component/error-tips';
|
|
10
|
+
export function DepartTreeSelectH5({ id, className, style, label = '部门选择', labelVisible = true, name = 'formDepartTreeSelect', placeholder = '请选择部门', disabled = false, layout = 'horizontal', requiredFlag = false, size = 'l', decorator, request = defaultRequest, multiple = true, focus: autoFocus = false, confirmOrgList, setConfirmOrgList, selectedOrgList, setSelectedOrgList, errorInfo, setErrorInfo, }) {
|
|
11
|
+
var _a;
|
|
13
12
|
const cls = classNames({
|
|
14
13
|
'weda-ui': true,
|
|
15
14
|
'weda-select-user-dept': true,
|
|
@@ -21,29 +20,20 @@ export function DepartTreeSelectH5({ id, className, style, events = emptyObject,
|
|
|
21
20
|
'weui-cell_form': true,
|
|
22
21
|
'weui-cell_disabled': disabled,
|
|
23
22
|
});
|
|
24
|
-
// 两次默认值不同, 需要刷新
|
|
25
|
-
const prevDefaultRef = React.useRef(null);
|
|
26
|
-
const prevConfirmRef = React.useRef(null);
|
|
27
|
-
const [value, setValue] = useState(null);
|
|
28
23
|
const [visible, setVisible] = React.useState(false);
|
|
29
24
|
const [isSearch, setIsSearch] = useState(false);
|
|
30
25
|
const [orgsTreeData, setOrgsTreeData] = useState([]);
|
|
31
26
|
const [originalOrgData, setOriginalOrgData] = useState([]);
|
|
32
27
|
const [count, setCount] = useState(1); //计数弹窗显示层级
|
|
33
|
-
const [selectItem, setSelectItem] = useState(null);
|
|
34
28
|
const [searchValue, setSearchValue] = useState('');
|
|
35
29
|
const [loading, setLoading] = useState({ id: null, status: false });
|
|
36
30
|
const [titleText, setTitleText] = useState('');
|
|
37
|
-
const [errorInfo, setErrorInfo] = useState({
|
|
38
|
-
errorStatus: false,
|
|
39
|
-
errorMessage: null,
|
|
40
|
-
});
|
|
41
31
|
// 初始化数据
|
|
42
32
|
const initOrgsData = useCallback(async () => {
|
|
43
33
|
try {
|
|
44
34
|
setTitleText('选择部门');
|
|
45
35
|
const resData = (await request('InitRootOrgs', {})) || [];
|
|
46
|
-
const data =
|
|
36
|
+
const data = dealOrgDataH5(resData);
|
|
47
37
|
//初始化数据时,默认返回第一层组织结构
|
|
48
38
|
setCount(1);
|
|
49
39
|
setOrgsTreeData(data);
|
|
@@ -62,7 +52,7 @@ export function DepartTreeSelectH5({ id, className, style, events = emptyObject,
|
|
|
62
52
|
setSearchValue('');
|
|
63
53
|
initOrgsData();
|
|
64
54
|
};
|
|
65
|
-
const
|
|
55
|
+
const onSearch = async (event) => {
|
|
66
56
|
var _a;
|
|
67
57
|
try {
|
|
68
58
|
setErrorInfo({ errorStatus: false, errorMessage: null });
|
|
@@ -76,7 +66,7 @@ export function DepartTreeSelectH5({ id, className, style, events = emptyObject,
|
|
|
76
66
|
NeedUser: false,
|
|
77
67
|
},
|
|
78
68
|
});
|
|
79
|
-
setOrgsTreeData(
|
|
69
|
+
setOrgsTreeData(dealOrgDataH5(Orgs));
|
|
80
70
|
}
|
|
81
71
|
else {
|
|
82
72
|
setSearchValue('');
|
|
@@ -87,13 +77,6 @@ export function DepartTreeSelectH5({ id, className, style, events = emptyObject,
|
|
|
87
77
|
setErrorInfo({ errorStatus: true, errorMessage: e });
|
|
88
78
|
}
|
|
89
79
|
};
|
|
90
|
-
const onInputChange = function (e) {
|
|
91
|
-
const text = typeof e === 'string' ? e : e.target.value;
|
|
92
|
-
const newValue = text;
|
|
93
|
-
setValue(newValue);
|
|
94
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(newValue);
|
|
95
|
-
events.change({ value: newValue }, { originEvent: e });
|
|
96
|
-
};
|
|
97
80
|
const onFocus = function () {
|
|
98
81
|
setSearchValue('');
|
|
99
82
|
initOrgsData();
|
|
@@ -105,48 +88,16 @@ export function DepartTreeSelectH5({ id, className, style, events = emptyObject,
|
|
|
105
88
|
setOrgsTreeData([]);
|
|
106
89
|
initOrgsData();
|
|
107
90
|
};
|
|
108
|
-
const onConfirm = (
|
|
109
|
-
|
|
91
|
+
const onConfirm = (selectedOrgList = []) => {
|
|
92
|
+
setConfirmOrgList(selectedOrgList);
|
|
110
93
|
setErrorInfo({ errorStatus: false, errorMessage: null });
|
|
111
|
-
setValue(selectItem === null || selectItem === void 0 ? void 0 : selectItem.content);
|
|
112
94
|
setOrgsTreeData([]);
|
|
113
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(selectItem === null || selectItem === void 0 ? void 0 : selectItem.orgId);
|
|
114
|
-
(_a = events === null || events === void 0 ? void 0 : events.change) === null || _a === void 0 ? void 0 : _a.call(events, { value: selectItem === null || selectItem === void 0 ? void 0 : selectItem.orgId, data: selectItem });
|
|
115
95
|
setVisible(false);
|
|
116
96
|
};
|
|
117
97
|
//获取组织结构
|
|
118
98
|
useEffect(() => {
|
|
119
99
|
initOrgsData();
|
|
120
|
-
|
|
121
|
-
(confirmValue && !isObjectEqual(prevConfirmRef.current, confirmValue))) {
|
|
122
|
-
const getdefaultUser = async () => {
|
|
123
|
-
var _a;
|
|
124
|
-
try {
|
|
125
|
-
if ((defaultValueType === 'confirmDepart' &&
|
|
126
|
-
confirmValue.length !== 0) ||
|
|
127
|
-
defaultValue.length !== 0) {
|
|
128
|
-
const orgId = defaultValue.length !== 0 ? defaultValue : confirmValue;
|
|
129
|
-
const defaultDepart = await getDepartById({
|
|
130
|
-
_id: orgId,
|
|
131
|
-
});
|
|
132
|
-
setValue(defaultDepart);
|
|
133
|
-
onChange === null || onChange === void 0 ? void 0 : onChange(orgId);
|
|
134
|
-
(_a = events === null || events === void 0 ? void 0 : events.change) === null || _a === void 0 ? void 0 : _a.call(events, {
|
|
135
|
-
value: orgId,
|
|
136
|
-
data: { content: defaultDepart },
|
|
137
|
-
});
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
catch (e) {
|
|
141
|
-
setErrorInfo({ errorStatus: true, errorMessage: e });
|
|
142
|
-
}
|
|
143
|
-
};
|
|
144
|
-
getdefaultUser();
|
|
145
|
-
prevDefaultRef.current = defaultValue;
|
|
146
|
-
prevConfirmRef.current = confirmValue;
|
|
147
|
-
}
|
|
148
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
149
|
-
}, [defaultValueType, confirmValue, defaultValue]);
|
|
100
|
+
}, []);
|
|
150
101
|
//点击部门节点,获取子部门节点
|
|
151
102
|
const loadDepartData = async (node, count) => {
|
|
152
103
|
try {
|
|
@@ -167,7 +118,7 @@ export function DepartTreeSelectH5({ id, className, style, events = emptyObject,
|
|
|
167
118
|
setOrgsTreeData([...orgsTreeData]);
|
|
168
119
|
}
|
|
169
120
|
else {
|
|
170
|
-
const children =
|
|
121
|
+
const children = dealOrgDataH5(Orgs);
|
|
171
122
|
setTitleText(node === null || node === void 0 ? void 0 : node.content);
|
|
172
123
|
setOrgsTreeData(children);
|
|
173
124
|
originalOrgData.push({
|
|
@@ -210,42 +161,58 @@ export function DepartTreeSelectH5({ id, className, style, events = emptyObject,
|
|
|
210
161
|
return renderDecorator(React.createElement(ConfigProvider, { classPrefix: "wedatea2td" },
|
|
211
162
|
React.createElement("div", { className: subCls },
|
|
212
163
|
React.createElement("div", { className: "weui-cell__bd weui-flex" },
|
|
213
|
-
React.createElement("input", { className: "weui-input", placeholder: placeholder,
|
|
164
|
+
React.createElement("input", { className: "weui-input", placeholder: placeholder,
|
|
165
|
+
//value={value}
|
|
166
|
+
value: (confirmOrgList || []).map((e) => e === null || e === void 0 ? void 0 : e.content).join(','), disabled: disabled, name: name, autoFocus: autoFocus, onClick: onFocus, readOnly: true, role: "input" })),
|
|
214
167
|
React.createElement(Modal, { visible: visible, onClose: onClose, destroyOnClose: true, className: `weda-ui weda-select-user-dept__dialog` },
|
|
215
|
-
React.createElement(Modal.Body, { className: (
|
|
168
|
+
React.createElement(Modal.Body, { className: ((_a = selectedOrgList[0]) === null || _a === void 0 ? void 0 : _a.orgId) ? 'is-selected-value' : '' },
|
|
216
169
|
React.createElement("div", { className: "weda-select-user-dept__dialog-header", id: count.toString() },
|
|
217
170
|
React.createElement("div", { className: count == 1 ? '' : 'arrow-left', onClick: () => retLevel(count) }),
|
|
218
171
|
titleText),
|
|
219
|
-
React.createElement(
|
|
172
|
+
React.createElement(ModalSearchH5, { value: searchValue, onChange: (key) => onSearch(key), onCancel: cancleSearch, isSearch: isSearch, onFocus: () => {
|
|
220
173
|
handleFocus(true);
|
|
221
174
|
} }),
|
|
222
|
-
(errorInfo === null || errorInfo === void 0 ? void 0 : errorInfo.errorStatus) ? (React.createElement(ErrorStatus, {
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
175
|
+
(errorInfo === null || errorInfo === void 0 ? void 0 : errorInfo.errorStatus) ? (React.createElement(ErrorStatus, { description: (errorInfo === null || errorInfo === void 0 ? void 0 : errorInfo.errorMessage) || null })) : !(loading === null || loading === void 0 ? void 0 : loading.status) ? (React.createElement(React.Fragment, null, orgsTreeData && orgsTreeData.length > 0 ? (React.createElement("div", { className: classNames('weda-select-user-dept__dialog-list') }, orgsTreeData.map((item) => {
|
|
176
|
+
var _a;
|
|
177
|
+
return (React.createElement("div", { className: "weda-select-user-dept__list-item", key: item === null || item === void 0 ? void 0 : item.id },
|
|
178
|
+
React.createElement("div", { className: "weda-select-user-dept__list-item-wrap" },
|
|
179
|
+
React.createElement(Radio.Group, { value: (_a = selectedOrgList.filter((e) => (e === null || e === void 0 ? void 0 : e.orgId) === (item === null || item === void 0 ? void 0 : item.orgId))[0]) === null || _a === void 0 ? void 0 : _a.orgId, onChange: (value) => {
|
|
180
|
+
const ids = selectedOrgList.map((item) => item === null || item === void 0 ? void 0 : item.orgId);
|
|
181
|
+
// 多选情况,取消选中某元素时
|
|
182
|
+
if (ids.indexOf(value) !== -1) {
|
|
183
|
+
setSelectedOrgList(selectedOrgList.filter((e) => e.orgId !== value));
|
|
184
|
+
}
|
|
185
|
+
else {
|
|
186
|
+
selectedOrgList.push(item);
|
|
187
|
+
setSelectedOrgList(multiple ? [...selectedOrgList] : [item]);
|
|
188
|
+
}
|
|
189
|
+
}, layout: "column" },
|
|
190
|
+
React.createElement(Radio, { name: item === null || item === void 0 ? void 0 : item.orgId },
|
|
191
|
+
React.createElement("div", { className: "weda-select-user-dept__item-detail", onClick: () => {
|
|
231
192
|
loadDepartData(item, count);
|
|
232
|
-
} }
|
|
233
|
-
|
|
234
|
-
|
|
193
|
+
} },
|
|
194
|
+
React.createElement("div", { className: "item-name" }, item === null || item === void 0 ? void 0 : item.content),
|
|
195
|
+
(item === null || item === void 0 ? void 0 : item.expandable) &&
|
|
196
|
+
loading.id !== item.orgId && (React.createElement("div", { className: "lcap-icon lcap-icon-chevronright" }))))),
|
|
197
|
+
loading.id === item.orgId && (loading === null || loading === void 0 ? void 0 : loading.status) && (React.createElement("div", null,
|
|
198
|
+
React.createElement(IconFont, { name: "loading", className: `weda-grid-navigation__fonticon depart_loading` }))))));
|
|
199
|
+
}))) : (React.createElement(Status, { className: "dim-tree-select--blank", icon: 'blank', size: 's', title: `暂无部门数据` })))) : (React.createElement(LoadingStatus, null))),
|
|
235
200
|
React.createElement(Modal.Footer, null,
|
|
236
201
|
React.createElement("div", null,
|
|
237
|
-
|
|
202
|
+
selectedOrgList.length > 0 && (React.createElement("div", { className: "weda-select-user-dept__select-result" },
|
|
238
203
|
React.createElement("div", { className: "weda-select-user-dept__select-label" }, "\u5DF2\u9009\u62E9"),
|
|
239
|
-
React.createElement("div", { className: "weda-select-user-dept__result-list" },
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
selectItem.content,
|
|
245
|
-
React.createElement("div", { className: "close" }))))),
|
|
204
|
+
React.createElement("div", { className: "weda-select-user-dept__result-list" }, selectedOrgList.map((d) => (React.createElement("div", { key: (d === null || d === void 0 ? void 0 : d.orgId) || (d === null || d === void 0 ? void 0 : d.value), className: "weda-select-user-dept__result-item", onClick: () => {
|
|
205
|
+
setSelectedOrgList(selectedOrgList.filter((e) => (e === null || e === void 0 ? void 0 : e.orgId) !== (d === null || d === void 0 ? void 0 : d.orgId)));
|
|
206
|
+
} }, d === null || d === void 0 ? void 0 :
|
|
207
|
+
d.content,
|
|
208
|
+
React.createElement("div", { className: "close" }))))))),
|
|
246
209
|
React.createElement("div", { className: "weda-select-user-dept__btn-group" },
|
|
247
210
|
React.createElement(Button, { type: "weak", onClick: onClose }, "\u53D6\u6D88"),
|
|
248
|
-
React.createElement(
|
|
211
|
+
React.createElement(Bubble, { content: selectedOrgList.length === 0 && confirmOrgList.length === 0
|
|
212
|
+
? '请选择部门'
|
|
213
|
+
: null, className: "weda-select-user-dept__bubble" },
|
|
214
|
+
React.createElement(Button, { type: "primary", onClick: () => onConfirm(selectedOrgList), disabled: selectedOrgList.length === 0 &&
|
|
215
|
+
confirmOrgList.length === 0 }, "\u786E\u5B9A")))))))))({
|
|
249
216
|
id,
|
|
250
217
|
className: cls,
|
|
251
218
|
style,
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import destr from 'destr';
|
|
3
|
+
import useSWR from 'swr';
|
|
3
4
|
import { fetchUserData, DescribeOrgs } from '../common/fetch-data-service';
|
|
4
5
|
const Icon = (React.createElement("img", { src: "https://qcloudimg.tencent-cloud.cn/raw/794436ec3d598c50f771e346a8fce4e0.svg" }));
|
|
5
6
|
const buildTreeData = (list) => {
|
|
6
7
|
let res = [];
|
|
7
|
-
|
|
8
|
+
let tempOrgList = [];
|
|
9
|
+
if ((list === null || list === void 0 ? void 0 : list.length) > 0) {
|
|
8
10
|
const all = list.map((i) => JSON.parse(i.DataRecord));
|
|
9
|
-
|
|
11
|
+
tempOrgList = all
|
|
10
12
|
.filter((i) => i.departmentName)
|
|
11
|
-
.filter((i) => i.depth === 1)
|
|
12
13
|
.map((i) => {
|
|
13
14
|
return {
|
|
14
15
|
id: i._id,
|
|
@@ -22,6 +23,7 @@ const buildTreeData = (list) => {
|
|
|
22
23
|
disableSelect: i.disableSelect,
|
|
23
24
|
};
|
|
24
25
|
});
|
|
26
|
+
const tempAll = tempOrgList.filter((i) => i.depth === 1);
|
|
25
27
|
res = [...tempAll];
|
|
26
28
|
if (res.length > 0) {
|
|
27
29
|
res.forEach((v) => {
|
|
@@ -29,7 +31,7 @@ const buildTreeData = (list) => {
|
|
|
29
31
|
});
|
|
30
32
|
}
|
|
31
33
|
}
|
|
32
|
-
return res;
|
|
34
|
+
return { res, tempOrgList };
|
|
33
35
|
};
|
|
34
36
|
// 递归,构建树结构
|
|
35
37
|
const getChildren = (all, item) => {
|
|
@@ -54,40 +56,33 @@ const getChildren = (all, item) => {
|
|
|
54
56
|
getChildren(all, n);
|
|
55
57
|
});
|
|
56
58
|
};
|
|
59
|
+
const isNoOrgList = {
|
|
60
|
+
id: 'isNoOrgList',
|
|
61
|
+
content: '未关联部门用户',
|
|
62
|
+
icon: Icon,
|
|
63
|
+
};
|
|
57
64
|
export const useDepartData = (props) => {
|
|
58
65
|
const { request } = props;
|
|
59
|
-
const
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
// .map((i: IDepartTreeItem) => JSON.parse(i.DataRecord))
|
|
64
|
-
// .filter((i: IDepartItem) => i.departmentName) as IDepartItem[];
|
|
65
|
-
const tempTreeData = buildTreeData(datalist);
|
|
66
|
+
const { data: treeData, error } = useSWR('DescribeOrgs', async () => {
|
|
67
|
+
const tempList = await DescribeOrgs(request);
|
|
68
|
+
const orgsData = destr(tempList);
|
|
69
|
+
const { res: tempTreeData, tempOrgList } = buildTreeData(orgsData);
|
|
66
70
|
//是否展示非组织节点
|
|
67
|
-
fetchUserData({ pageNo: 1, pageSize: 1 }, request)
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
const fetchDescribeOrgs = (request) => {
|
|
80
|
-
DescribeOrgs(request).then((res) => {
|
|
81
|
-
const tempList = destr(res);
|
|
82
|
-
//setList(tempList);
|
|
83
|
-
formatSetData(tempList);
|
|
84
|
-
});
|
|
85
|
-
};
|
|
86
|
-
useEffect(() => {
|
|
87
|
-
fetchDescribeOrgs(request);
|
|
88
|
-
}, [request]);
|
|
71
|
+
const res = await fetchUserData({ pageNo: 1, pageSize: 1 }, request);
|
|
72
|
+
const finalTempTreeData = (res === null || res === void 0 ? void 0 : res.total) > 0
|
|
73
|
+
? (tempTreeData || []).concat(isNoOrgList)
|
|
74
|
+
: tempTreeData;
|
|
75
|
+
return {
|
|
76
|
+
treeData: finalTempTreeData,
|
|
77
|
+
orgTreeData: tempTreeData,
|
|
78
|
+
orgList: tempOrgList,
|
|
79
|
+
};
|
|
80
|
+
},
|
|
81
|
+
// 30秒dedupe
|
|
82
|
+
{ dedupingInterval: 30 * 1000 });
|
|
89
83
|
/**
|
|
84
|
+
* orgList:jsonstr 转化后的数据
|
|
90
85
|
* treeData: 结构化之后的tree数据可直接用于 <Tree/> 组件
|
|
91
86
|
*/
|
|
92
|
-
return { treeData };
|
|
87
|
+
return { ...treeData, error };
|
|
93
88
|
};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import React, { useEffect, useState } from 'react';
|
|
2
|
+
import { getWhereList } from '../../../../utils/platform';
|
|
3
|
+
import { fetchViewList } from '../common/fetch-data-service';
|
|
4
|
+
import isObjectEqual from '../../../../utils/isObjectEqual';
|
|
5
|
+
/**
|
|
6
|
+
* 获取用户表标准视图中排序规则
|
|
7
|
+
*/
|
|
8
|
+
export const useViewData = (where) => {
|
|
9
|
+
const whereRef = React.useRef(undefined);
|
|
10
|
+
//视图排序
|
|
11
|
+
const [filterParams, setFilterParam] = useState({
|
|
12
|
+
orderBy: null,
|
|
13
|
+
orderType: null,
|
|
14
|
+
where: null,
|
|
15
|
+
});
|
|
16
|
+
const fetchData = async ({ where }) => {
|
|
17
|
+
var _a, _b;
|
|
18
|
+
const whereEffected = Array.isArray(where) && where.length > 0
|
|
19
|
+
? [].concat(getWhereList(where))[0]
|
|
20
|
+
: null;
|
|
21
|
+
const { Count, Rows } = await fetchViewList();
|
|
22
|
+
const params = {
|
|
23
|
+
orderBy: null,
|
|
24
|
+
orderType: null,
|
|
25
|
+
where: whereEffected,
|
|
26
|
+
};
|
|
27
|
+
if (Count) {
|
|
28
|
+
const properties = (_b = (_a = Rows === null || Rows === void 0 ? void 0 : Rows.filter((item) => item.ViewType === 'STANDARD')[0]) === null || _a === void 0 ? void 0 : _a.Properties) === null || _b === void 0 ? void 0 : _b.map((itemProperties) => {
|
|
29
|
+
itemProperties = JSON.parse(itemProperties);
|
|
30
|
+
return itemProperties;
|
|
31
|
+
});
|
|
32
|
+
// 排序
|
|
33
|
+
const sortItem = properties === null || properties === void 0 ? void 0 : properties.filter((item) => item['x-sortable'])[0];
|
|
34
|
+
if (sortItem) {
|
|
35
|
+
params.orderBy = sortItem.name;
|
|
36
|
+
params.orderType = sortItem['x-defaultSort'];
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
setFilterParam(params);
|
|
40
|
+
};
|
|
41
|
+
useEffect(() => {
|
|
42
|
+
if (!isObjectEqual(whereRef.current, where)) {
|
|
43
|
+
fetchData({ where });
|
|
44
|
+
whereRef.current = where;
|
|
45
|
+
}
|
|
46
|
+
}, [where]);
|
|
47
|
+
return { filterParams };
|
|
48
|
+
};
|
|
@@ -2,19 +2,19 @@
|
|
|
2
2
|
width: 100%;
|
|
3
3
|
}
|
|
4
4
|
.form-detail-wrap .form-detail-content-wrap {
|
|
5
|
-
border:
|
|
6
|
-
margin-top:
|
|
5
|
+
border: 1px solid #dcdcdc;
|
|
6
|
+
margin-top: 12px;
|
|
7
7
|
}
|
|
8
8
|
.form-detail-wrap
|
|
9
9
|
.form-detail-content-wrap
|
|
10
10
|
.form-detail-group-header-container {
|
|
11
|
-
height:
|
|
11
|
+
height: 48px;
|
|
12
12
|
display: flex;
|
|
13
13
|
align-items: center;
|
|
14
14
|
justify-content: space-between;
|
|
15
15
|
background: #f1f2f5;
|
|
16
|
-
padding:
|
|
17
|
-
border-bottom:
|
|
16
|
+
padding: 13px 20px;
|
|
17
|
+
border-bottom: 1px solid #dcdcdc;
|
|
18
18
|
}
|
|
19
19
|
.form-detail-wrap
|
|
20
20
|
.form-detail-content-wrap
|
|
@@ -33,23 +33,23 @@
|
|
|
33
33
|
.form-detail-wrap
|
|
34
34
|
.form-detail-content-wrap
|
|
35
35
|
.form-detail-group-content-container {
|
|
36
|
-
padding:
|
|
36
|
+
padding: 15px 16px;
|
|
37
37
|
}
|
|
38
38
|
.form-detail-wrap .form-detail-add-button,
|
|
39
39
|
.form-detail-wrap .form-detail-delete-button {
|
|
40
40
|
cursor: pointer;
|
|
41
41
|
color: #0052d9;
|
|
42
|
-
font-size:
|
|
42
|
+
font-size: 14px;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
.form-detail-wrap .form-detail-add-button {
|
|
46
|
-
padding:
|
|
46
|
+
padding: 8px 16px 16px 16px;
|
|
47
47
|
display: inline-flex;
|
|
48
48
|
align-items: center;
|
|
49
49
|
}
|
|
50
50
|
.form-detail-wrap .form-detail-add-button > .weda-ui {
|
|
51
51
|
vertical-align: baseline;
|
|
52
|
-
padding-right:
|
|
52
|
+
padding-right: 5px;
|
|
53
53
|
line-height: 1;
|
|
54
54
|
}
|
|
55
55
|
.h5-form-detail-wrap {
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
.h5-form-detail-wrap
|
|
63
63
|
.form-detail-content-wrap
|
|
64
64
|
.form-detail-group-header-container {
|
|
65
|
-
height:
|
|
65
|
+
height: 40px;
|
|
66
66
|
border: none;
|
|
67
67
|
}
|
|
68
68
|
.h5-form-detail-wrap
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
padding: 0;
|
|
73
73
|
}
|
|
74
74
|
.form-detail-wrap .form-detail-title-index {
|
|
75
|
-
padding-left:
|
|
75
|
+
padding-left: 5px;
|
|
76
76
|
}
|
|
77
77
|
.form-detail-wrap .form-detail-title-index::before {
|
|
78
78
|
content: '(';
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
content: ')';
|
|
82
82
|
}
|
|
83
83
|
.h5-form-detail-wrap .form-detail-add-button {
|
|
84
|
-
font-size:
|
|
84
|
+
font-size: 16px;
|
|
85
85
|
line-height: 1;
|
|
86
86
|
}
|
|
87
87
|
.h5-form-detail-wrap
|
|
@@ -95,9 +95,9 @@
|
|
|
95
95
|
content: '';
|
|
96
96
|
width: 100%;
|
|
97
97
|
position: absolute;
|
|
98
|
-
height:
|
|
98
|
+
height: 1px;
|
|
99
99
|
background: #f1f2f5;
|
|
100
|
-
top: -
|
|
100
|
+
top: -1px;
|
|
101
101
|
left: 0;
|
|
102
102
|
z-index: 5;
|
|
103
103
|
}
|
|
@@ -107,9 +107,9 @@
|
|
|
107
107
|
content: '';
|
|
108
108
|
width: 100%;
|
|
109
109
|
position: absolute;
|
|
110
|
-
height:
|
|
110
|
+
height: 1px;
|
|
111
111
|
background: #f1f2f5;
|
|
112
|
-
bottom: -
|
|
112
|
+
bottom: -1px;
|
|
113
113
|
left: 0;
|
|
114
114
|
z-index: 5;
|
|
115
115
|
}
|
|
@@ -119,24 +119,24 @@
|
|
|
119
119
|
overflow: auto;
|
|
120
120
|
}
|
|
121
121
|
.form-detail-wrap.h5-form-detail-wrap {
|
|
122
|
-
padding: 0
|
|
122
|
+
padding: 0 5px;
|
|
123
123
|
}
|
|
124
124
|
.form-detail-wrap.h5-form-detail-wrap .form-detail-content-wrap {
|
|
125
|
-
border:
|
|
125
|
+
border: 1px solid #dcdcdc;
|
|
126
126
|
border-bottom: none;
|
|
127
127
|
border-top: none;
|
|
128
128
|
position: relative;
|
|
129
129
|
}
|
|
130
130
|
.form-detail-wrap.h5-form-detail-wrap .form-detail-content-wrap:first-child {
|
|
131
|
-
border-top:
|
|
131
|
+
border-top: 1px solid #dcdcdc;
|
|
132
132
|
}
|
|
133
133
|
.form-detail-wrap.h5-form-detail-wrap .form-detail-content-wrap::after {
|
|
134
134
|
content: '';
|
|
135
135
|
width: 100%;
|
|
136
136
|
position: absolute;
|
|
137
|
-
height:
|
|
137
|
+
height: 1px;
|
|
138
138
|
background: #dcdcdc;
|
|
139
|
-
bottom:
|
|
139
|
+
bottom: 0px;
|
|
140
140
|
left: 0;
|
|
141
141
|
z-index: 5;
|
|
142
142
|
}
|
|
@@ -149,21 +149,21 @@
|
|
|
149
149
|
flex: 1;
|
|
150
150
|
}
|
|
151
151
|
.form-detail-wrap.h5-form-detail-wrap .form-detail-group-label-container {
|
|
152
|
-
padding:
|
|
152
|
+
padding: 16px 16px 16px 11px;
|
|
153
153
|
display: flex;
|
|
154
154
|
align-items: center;
|
|
155
|
-
font-size:
|
|
155
|
+
font-size: 16px;
|
|
156
156
|
width: auto;
|
|
157
157
|
}
|
|
158
158
|
|
|
159
159
|
.form-detail-group-label-container {
|
|
160
|
-
padding:
|
|
161
|
-
width:
|
|
160
|
+
padding: 7px 4px 7px 0;
|
|
161
|
+
width: 102px;
|
|
162
162
|
}
|
|
163
163
|
.form-detail-wrap
|
|
164
164
|
.form-detail-content-wrap
|
|
165
165
|
.form-detail-group-header-container {
|
|
166
|
-
padding:
|
|
166
|
+
padding: 13px 15px;
|
|
167
167
|
}
|
|
168
168
|
.form-detail-wrap .form-detail-title-index {
|
|
169
169
|
padding-left: 0;
|
|
@@ -208,11 +208,11 @@
|
|
|
208
208
|
|
|
209
209
|
.pc-form-detail-wrap .form-detail-group-parent-container {
|
|
210
210
|
float: right;
|
|
211
|
-
width: calc(100% -
|
|
211
|
+
width: calc(100% - 102px);
|
|
212
212
|
}
|
|
213
213
|
.pc-form-detail-wrap .form-detail-group-label-container {
|
|
214
214
|
float: left;
|
|
215
|
-
width:
|
|
215
|
+
width: 102px;
|
|
216
216
|
}
|
|
217
217
|
.wedatea2td-form--vertical
|
|
218
218
|
.form-detail-wrap.pc-form-detail-wrap
|
|
@@ -226,6 +226,9 @@
|
|
|
226
226
|
float: unset;
|
|
227
227
|
width: 100%;
|
|
228
228
|
}
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8uL3NyYy93ZWIvY29tcG9uZW50cy9mb3JtZGV0YWlsL2luZGV4LmNzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtFQUNFLFdBQVc7QUFDYjtBQUNBO0VBQ0UsZ0NBQWdDO0VBQ2hDLHNCQUFzQjtBQUN4QjtBQUNBOzs7RUFHRSxrQkFBa0I7RUFDbEIsYUFBYTtFQUNiLG1CQUFtQjtFQUNuQiw4QkFBOEI7RUFDOUIsbUJBQW1CO0VBQ25CLDhCQUE4QjtFQUM5Qix1Q0FBdUM7QUFDekM7QUFDQTs7OztFQUlFLGFBQWE7RUFDYix5QkFBeUI7QUFDM0I7QUFDQTtFQUNFLGFBQWE7RUFDYixtQkFBbUI7RUFDbkIsOEJBQThCO0VBQzlCLHlCQUF5QjtFQUN6QixPQUFPO0FBQ1Q7QUFDQTs7O0VBR0UsOEJBQThCO0FBQ2hDO0FBQ0E7O0VBRUUsZUFBZTtFQUNmLGNBQWM7RUFDZCxlQUFlO0FBQ2pCOztBQUVBO0VBQ0Usb0RBQW9EO0VBQ3BELG9CQUFvQjtFQUNwQixtQkFBbUI7QUFDckI7QUFDQTtFQUNFLHdCQUF3QjtFQUN4Qix5QkFBeUI7RUFDekIsY0FBYztBQUNoQjtBQUNBO0VBQ0UsV0FBVztBQUNiO0FBQ0E7RUFDRSxTQUFTO0VBQ1QsWUFBWTtBQUNkO0FBQ0E7OztFQUdFLGtCQUFrQjtFQUNsQixZQUFZO0FBQ2Q7QUFDQTs7O0VBR0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ucGMtZm9ybS1kZXRhaWwtd3JhcCAuZm9ybS1kZXRhaWwtZ3JvdXAtbGFiZWwtY29udGFpbmVyIHtcbiAgZmxvYXQ6IGxlZnQ7XG4gIHdpZHRoOiA3LjI4NTcxcmVtO1xufVxuLndlZGF0ZWEydGQtZm9ybS0tdmVydGljYWxcbiAgLmZvcm0tZGV0YWlsLXdyYXAucGMtZm9ybS1kZXRhaWwtd3JhcFxuICAuZm9ybS1kZXRhaWwtZ3JvdXAtcGFyZW50LWNvbnRhaW5lciB7XG4gIGZsb2F0OiB1bnNldDtcbiAgd2lkdGg6IDEwMCU7XG59XG4ud2VkYXRlYTJ0ZC1mb3JtLS12ZXJ0aWNhbFxuICAuZm9ybS1kZXRhaWwtd3JhcC5wYy1mb3JtLWRldGFpbC13cmFwXG4gIC5mb3JtLWRldGFpbC1ncm91cC1sYWJlbC1jb250YWluZXIge1xuICBmbG9hdDogdW5zZXQ7XG4gIHdpZHRoOiAxMDAlO1xufVxuIl0sInNvdXJjZVJvb3QiOiIifQ== */
|
|
229
|
+
/* 升级后组件样式兼容 */
|
|
230
|
+
.form-detail-wrap .form-detail-add-button .wd-typography,
|
|
231
|
+
.form-detail-wrap .form-detail-delete-button .wd-typography {
|
|
232
|
+
color: #0052d9;
|
|
233
|
+
margin-bottom: 0;
|
|
234
|
+
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React, { useEffect, forwardRef, useImperativeHandle, useState, useCallback, } from 'react';
|
|
2
2
|
import classNames from '../../utils/classnames';
|
|
3
|
-
import { usePlatform, randomStr } from '../../utils/platform';
|
|
3
|
+
import { usePlatform, randomStr, isInIde } from '../../utils/platform';
|
|
4
4
|
import isObjectEqual from '../../utils/isObjectEqual';
|
|
5
5
|
import './index.css';
|
|
6
|
+
import { getParentForm } from '../../utils/widget-api';
|
|
6
7
|
export const reorderContext = (data, name, isPureArray) => data.map((i, index) => {
|
|
7
8
|
const item = { ...i };
|
|
8
9
|
Object.keys(i).forEach((j) => {
|
|
@@ -58,11 +59,12 @@ export const changeHandle = ({ type, name, data, childFormItem, isPureArray, par
|
|
|
58
59
|
return data;
|
|
59
60
|
};
|
|
60
61
|
const FormDetailCom = forwardRef(function FormDetail(props, ref) {
|
|
61
|
-
const { className, id, style, children, events, name, value: initDetailValue, isPureArray, disabled, readOnly, fieldAuth = 'rw',
|
|
62
|
+
const { className, id, style, children, events, name, value: initDetailValue, isPureArray, disabled, readOnly, fieldAuth = 'rw', $node, hasInitValue = false, } = props;
|
|
62
63
|
const [defaultValue, setDetailValue] = useState([]);
|
|
63
64
|
const [contextData, setContextData] = useState([]);
|
|
64
65
|
const [childFormItem, setCildFormItem] = useState([]);
|
|
65
66
|
const platform = usePlatform();
|
|
67
|
+
const parent = getParentForm($node);
|
|
66
68
|
const init = useCallback((defaultValue, childFormItem) => {
|
|
67
69
|
var _a;
|
|
68
70
|
const formDetailItemValue = {};
|
|
@@ -111,6 +113,7 @@ const FormDetailCom = forwardRef(function FormDetail(props, ref) {
|
|
|
111
113
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
112
114
|
}, [initDetailValue]);
|
|
113
115
|
useEffect(() => {
|
|
116
|
+
var _a;
|
|
114
117
|
let childFormItem = initDetailValue[0]
|
|
115
118
|
? Object.keys(initDetailValue[0])
|
|
116
119
|
: [];
|
|
@@ -119,7 +122,13 @@ const FormDetailCom = forwardRef(function FormDetail(props, ref) {
|
|
|
119
122
|
childFormItem = ['arrayItem'];
|
|
120
123
|
}
|
|
121
124
|
setCildFormItem(childFormItem);
|
|
122
|
-
|
|
125
|
+
// 只有在编辑器里,或存在初始值的时候,才初始化明细单项
|
|
126
|
+
if (isInIde() || hasInitValue) {
|
|
127
|
+
init(initDetailValue, childFormItem);
|
|
128
|
+
}
|
|
129
|
+
else {
|
|
130
|
+
(_a = events === null || events === void 0 ? void 0 : events.onDataChange) === null || _a === void 0 ? void 0 : _a.call(events, { data: [] });
|
|
131
|
+
}
|
|
123
132
|
// 组件卸载时触发
|
|
124
133
|
return () => {
|
|
125
134
|
var _a;
|