@cloudbase/weda-ui 3.4.3 → 3.4.4
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 +4 -0
- package/dist/configs/components/chart/line.js +14 -10
- package/dist/configs/components/chart/pie.json +4 -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/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 +988 -0
- 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 +67 -24
- 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/statisticsCard/index.css +12 -15
- package/dist/web/components/chart/statisticsCard/index.js +6 -1
- 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 +5 -2
- package/dist/web/components/flow/components/UserSelectModel/UserSelectMobile.css +1 -4
- package/dist/web/components/flow/components/UserSelectModel/UserSelectMobile.js +8 -5
- 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 -26
- 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 +10 -6
- package/dist/web/components/flow/modules/control/Control.css +7 -10
- package/dist/web/components/flow/modules/control/Control.js +4 -1
- package/dist/web/components/flow/modules/control/ControlMobile.css +10 -13
- package/dist/web/components/flow/modules/control/FlowTaskInfoModal.css +0 -3
- package/dist/web/components/flow/modules/control/provider/useControlModel.js +18 -5
- 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 +22 -11
- package/dist/web/components/form/select/dropdown-select/index.css +28 -28
- 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 +2 -2
- 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/tips/index.css +11 -2
- package/dist/web/components/form/uploader/index.css +14 -17
- package/dist/web/components/form/uploaderFile/index.css +61 -64
- 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 +151 -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 +50 -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 +171 -34
- 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 +7 -10
- package/dist/web/components/swiper/index.css +10 -13
- package/dist/web/components/swiper/index.js +19 -5
- package/dist/web/components/table/BaseTable.js +352 -283
- 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/platform.js +31 -11
- 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 +50 -32
- 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
|
@@ -43,17 +43,17 @@ class EchartLine extends EchartBase {
|
|
|
43
43
|
data: [],
|
|
44
44
|
};
|
|
45
45
|
sortedXAxisData.forEach((itemSource, index) => {
|
|
46
|
-
var _a, _b;
|
|
46
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
47
47
|
this.config.series[j].name =
|
|
48
|
-
(_b = (_a = itemSource.YLabels[j]) === null || _a === void 0 ? void 0 : _a.Cn_Name) !== null && _b !== void 0 ? _b : itemSource.YLabels[j].Name;
|
|
49
|
-
if ((itemSource.YLabels[j].Value === undefined ||
|
|
50
|
-
itemSource.YLabels[j].Value === null) &&
|
|
48
|
+
(_b = (_a = itemSource.YLabels[j]) === null || _a === void 0 ? void 0 : _a.Cn_Name) !== null && _b !== void 0 ? _b : (_c = itemSource.YLabels[j]) === null || _c === void 0 ? void 0 : _c.Name;
|
|
49
|
+
if ((((_d = itemSource.YLabels[j]) === null || _d === void 0 ? void 0 : _d.Value) === undefined ||
|
|
50
|
+
((_e = itemSource.YLabels[j]) === null || _e === void 0 ? void 0 : _e.Value) === null) &&
|
|
51
51
|
!xIsCountEmpty) {
|
|
52
52
|
arrXisCountEmptyIndex.push(index);
|
|
53
53
|
}
|
|
54
54
|
else {
|
|
55
|
-
const value = itemSource.YLabels[j].Value
|
|
56
|
-
? itemSource.YLabels[j].Value
|
|
55
|
+
const value = ((_f = itemSource.YLabels[j]) === null || _f === void 0 ? void 0 : _f.Value)
|
|
56
|
+
? (_g = itemSource.YLabels[j]) === null || _g === void 0 ? void 0 : _g.Value
|
|
57
57
|
: 0;
|
|
58
58
|
this.config.series[j].data.push(value);
|
|
59
59
|
}
|
|
@@ -80,8 +80,16 @@ class EchartLine extends EchartBase {
|
|
|
80
80
|
});
|
|
81
81
|
});
|
|
82
82
|
// 组装图表需要的数据
|
|
83
|
-
const
|
|
84
|
-
|
|
83
|
+
const groups = [];
|
|
84
|
+
sortedXAxisData.forEach((eachAxis) => {
|
|
85
|
+
eachAxis.YLabels.forEach((yLabel) => {
|
|
86
|
+
if (yLabel.Group_Name && groups.indexOf(yLabel.Group_Name) < 0) {
|
|
87
|
+
// 去重且保留顺序
|
|
88
|
+
groups.push(yLabel.Group_Name);
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
});
|
|
92
|
+
this.config.series = groups.map((groupKey) => {
|
|
85
93
|
// groupKey分组字段中文名
|
|
86
94
|
const serie = {
|
|
87
95
|
name: groupKey,
|
|
@@ -28,10 +28,11 @@ class EchartPie extends EchartBase {
|
|
|
28
28
|
const arrData = [];
|
|
29
29
|
let i = 0;
|
|
30
30
|
arrSourData.forEach((itemSource) => {
|
|
31
|
+
var _a;
|
|
31
32
|
const numc = setColor ? setColor.length : 0;
|
|
32
33
|
const strColor = numc > 0 ? { color: setColor[i % numc] } : {};
|
|
33
34
|
arrData.push({
|
|
34
|
-
value: itemSource.YLabels[0].Value,
|
|
35
|
+
value: (_a = itemSource.YLabels[0]) === null || _a === void 0 ? void 0 : _a.Value,
|
|
35
36
|
name: itemSource.XLabel.Value,
|
|
36
37
|
tooltip: {},
|
|
37
38
|
itemStyle: strColor,
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
/* pc style */
|
|
2
2
|
.weda-statistics-card {
|
|
3
3
|
background: #ffffff;
|
|
4
|
-
border:
|
|
4
|
+
border: 1px solid #f1f2f5;
|
|
5
5
|
box-sizing: border-box;
|
|
6
|
-
box-shadow:
|
|
7
|
-
border-radius:
|
|
6
|
+
box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.1);
|
|
7
|
+
border-radius: 6px;
|
|
8
8
|
box-sizing: border-box;
|
|
9
|
-
font-size:
|
|
9
|
+
font-size: 14px;
|
|
10
10
|
}
|
|
11
11
|
.weda-statistics-card.weda-statistics-card-pc {
|
|
12
|
-
width:
|
|
13
|
-
min-height:
|
|
12
|
+
width: 276px;
|
|
13
|
+
min-height: 128px;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
.weda-statistics-card .weda-statistics-card__wrapper {
|
|
17
17
|
width: 100%;
|
|
18
|
-
padding:
|
|
18
|
+
padding: 28px 24px;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
.weda-statistics-card .weda-statistics-card__title {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
.weda-statistics-card .weda-statistics-card__detail {
|
|
28
|
-
margin-top:
|
|
28
|
+
margin-top: 8px;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
.weda-statistics-card .weda-statistics-card__count {
|
|
@@ -39,28 +39,25 @@
|
|
|
39
39
|
font-size: 1em;
|
|
40
40
|
line-height: 1.57142em;
|
|
41
41
|
color: rgba(0, 0, 0, 0.4);
|
|
42
|
-
margin-left:
|
|
42
|
+
margin-left: 4px;
|
|
43
43
|
vertical-align: middle;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
/* h5 style */
|
|
47
47
|
.weda-statistics-card.weda-statistics-card-mobile {
|
|
48
48
|
max-width: 100%;
|
|
49
|
-
min-height:
|
|
49
|
+
min-height: 140px;
|
|
50
50
|
}
|
|
51
51
|
.weda-statistics-card-mobile .weda-statistics-card__wrapper {
|
|
52
52
|
width: 100%;
|
|
53
|
-
padding:
|
|
53
|
+
padding: 40px 24px;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
.weda-statistics-card-mobile .weda-statistics-card__detail {
|
|
57
|
-
margin-top:
|
|
57
|
+
margin-top: 4px;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
.weda-statistics-card-mobile .weda-statistics-card__count {
|
|
61
61
|
font-size: 2em;
|
|
62
62
|
line-height: 2.42857em;
|
|
63
63
|
}
|
|
64
|
-
|
|
65
|
-
/*# sourceURL=webpack://./src/web/components/chart/statisticsCard/index.css */
|
|
66
|
-
/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8uL3NyYy93ZWIvY29tcG9uZW50cy9jaGFydC9zdGF0aXN0aWNzQ2FyZC9pbmRleC5jc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsYUFBYTtBQUNiO0VBQ0UsbUJBQW1CO0VBQ25CLGdDQUFnQztFQUNoQyxzQkFBc0I7RUFDdEIsc0RBQXNEO0VBQ3RELHlCQUF5QjtFQUN6QixzQkFBc0I7RUFDdEIsZUFBZTtBQUNqQjtBQUNBO0VBQ0Usa0JBQWtCO0VBQ2xCLHNCQUFzQjtBQUN4Qjs7QUFFQTtFQUNFLFdBQVc7RUFDWCx3QkFBd0I7QUFDMUI7O0FBRUE7RUFDRSxjQUFjO0VBQ2Qsc0JBQXNCO0VBQ3RCLHlCQUF5QjtBQUMzQjs7QUFFQTtFQUNFLHNCQUFzQjtBQUN4Qjs7QUFFQTtFQUNFLG9CQUFvQjtFQUNwQixzQkFBc0I7RUFDdEIseUJBQXlCO0VBQ3pCLHFCQUFxQjtBQUN2Qjs7QUFFQTtFQUNFLGNBQWM7RUFDZCxzQkFBc0I7RUFDdEIseUJBQXlCO0VBQ3pCLHVCQUF1QjtFQUN2QixzQkFBc0I7QUFDeEI7O0FBRUEsYUFBYTtBQUNiO0VBQ0UsZUFBZTtFQUNmLGlCQUFpQjtBQUNuQjtBQUNBO0VBQ0UsV0FBVztFQUNYLDhCQUE4QjtBQUNoQzs7QUFFQTtFQUNFLHNCQUFzQjtBQUN4Qjs7QUFFQTtFQUNF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U6IDIuMjg1NzFlbTtcbiAgbGluZS1oZWlnaHQ6IDMuMTQyODVlbTtcbiAgY29sb3I6IHJnYmEoMCwgMCwgMCwgMC45KTtcbiAgd29yZC1icmVhazogYnJlYWstYWxsO1xufVxuXG4ud2VkYS1zdGF0aXN0aWNzLWNhcmQgLndlZGEtc3RhdGlzdGljcy1jYXJkX191bml0IHtcbiAgZm9udC1zaXplOiAxZW07XG4gIGxpbmUtaGVpZ2h0OiAxLjU3MTQyZW07XG4gIGNvbG9yOiByZ2JhKDAsIDAsIDAsIDAuNCk7XG4gIG1hcmdpbi1sZWZ0OiAwLjI4NTcxcmVtO1xuICB2ZXJ0aWNhbC1hbGlnbjogbWlkZGxlO1xufVxuXG4vKiBoNSBzdHlsZSAqL1xuLndlZGEtc3RhdGlzdGljcy1jYXJkLndlZGEtc3RhdGlzdGljcy1jYXJkLW1vYmlsZSB7XG4gIG1heC13aWR0aDogMTAwJTtcbiAgbWluLWhlaWdodDogMTByZW07XG59XG4ud2VkYS1zdGF0aXN0aWNzLWNhcmQtbW9iaWxlIC53ZWRhLXN0YXRpc3RpY3MtY2FyZF9fd3JhcHBlciB7XG4gIHdpZHRoOiAxMDAlO1xuICBwYWRkaW5nOiAyLjg1NzE0cmVtIDEuNzE0MjlyZW07XG59XG5cbi53ZWRhLXN0YXRpc3RpY3MtY2FyZC1tb2JpbGUgLndlZGEtc3RhdGlzdGljcy1jYXJkX19kZXRhaWwge1xuICBtYXJnaW4tdG9wOiAwLjI4NTcxcmVtO1xufVxuXG4ud2VkYS1zdGF0aXN0aWNzLWNhcmQtbW9iaWxlIC53ZWRhLXN0YXRpc3RpY3MtY2FyZF9fY291bnQge1xuICBmb250LXNpemU6IDJlbTtcbiAgbGluZS1oZWlnaHQ6IDIuNDI4NTdlbTtcbn1cbiJdLCJzb3VyY2VSb290IjoiIn0= */
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import React, { useState } from 'react';
|
|
1
|
+
import React, { useState, useRef } from 'react';
|
|
2
2
|
import './index.css';
|
|
3
3
|
import classNames from '../../../utils/classnames';
|
|
4
4
|
import { ConfigProvider } from 'tea-component';
|
|
5
5
|
import { usePlatform } from '../../../utils/platform';
|
|
6
6
|
import { useDeepCompareEffect, useIsMounted } from '@react-hookz/web';
|
|
7
7
|
import { callDataSource, callWedaApi } from '../../../utils/tcb';
|
|
8
|
+
import { getUuid } from '../../../utils/tool';
|
|
8
9
|
const CLASS_PREFIX = 'weda-statistics-card';
|
|
9
10
|
// 默认显示值
|
|
10
11
|
const defaultVal = 1000;
|
|
@@ -109,6 +110,7 @@ const formatNumber = (val, digits = 0) => {
|
|
|
109
110
|
const defaultAppCloud = { callDataSource, callWedaApi };
|
|
110
111
|
export default function StatisticsCard({ dataSource, filterData, field, operationType, label, isCountEmpty, isShowUnit, unit, decimalDigits, suffix, className, style, events, id, role, appCloud = defaultAppCloud, }) {
|
|
111
112
|
const [val, setVal] = useState(defaultVal);
|
|
113
|
+
const delayRef = useRef({ version: null });
|
|
112
114
|
const isMounted = useIsMounted();
|
|
113
115
|
async function getSourceData(dataSource, filterData, field, operationType, isCountEmpty) {
|
|
114
116
|
const where = (filterData === null || filterData === void 0 ? void 0 : filterData.map)
|
|
@@ -162,7 +164,10 @@ export default function StatisticsCard({ dataSource, filterData, field, operatio
|
|
|
162
164
|
// 内部数据源需要字段和统计方式,外部数据源不需要
|
|
163
165
|
if (((dataSource === null || dataSource === void 0 ? void 0 : dataSource.type) === 'database' && field && operationType) ||
|
|
164
166
|
(dataSource && (dataSource === null || dataSource === void 0 ? void 0 : dataSource.type) !== 'database')) {
|
|
167
|
+
const fetchVersion = (delayRef.current.version = getUuid());
|
|
165
168
|
let data = await getSourceData(dataSource, filterData, field, operationType, isCountEmpty);
|
|
169
|
+
if (fetchVersion !== delayRef.current.version)
|
|
170
|
+
return;
|
|
166
171
|
// 自定义APIs 返回处理
|
|
167
172
|
if ((dataSource === null || dataSource === void 0 ? void 0 : dataSource.type) !== 'database' && (data === null || data === void 0 ? void 0 : data.result)) {
|
|
168
173
|
data = data === null || data === void 0 ? void 0 : data.result;
|
|
@@ -3,6 +3,6 @@ import ListView from '../listView';
|
|
|
3
3
|
/**
|
|
4
4
|
* 数据容器-列表视图
|
|
5
5
|
*/
|
|
6
|
-
export default function DataView(props) {
|
|
7
|
-
return (React.createElement(ListView, { ...props, isRecords: false, orderBy: undefined, orderType: undefined, template: "none", pageSize: 1, pagination: "none", beforeDataChange: (values) => values === null || values === void 0 ? void 0 : values[0] }));
|
|
8
|
-
}
|
|
6
|
+
export default React.forwardRef(function DataView(props, ref) {
|
|
7
|
+
return (React.createElement(ListView, { ...props, ref: ref, isRecords: false, orderBy: undefined, orderType: undefined, template: "none", pageSize: 1, pagination: "none", beforeDataChange: (values) => (values === null || values === void 0 ? void 0 : values[0]) || {} }));
|
|
8
|
+
});
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
.weda-list-view__empty {
|
|
2
|
+
width: 100%;
|
|
3
|
+
padding: 16px;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.weda-list-view__empty .weda-list-view__empty__content {
|
|
7
|
+
color: rgba(0, 0, 0, 0.9);
|
|
8
|
+
width: 100%;
|
|
9
|
+
height: 200px;
|
|
10
|
+
background-color: #f2f2f2;
|
|
11
|
+
display: flex;
|
|
12
|
+
align-items: center;
|
|
13
|
+
justify-content: center;
|
|
14
|
+
flex-direction: column;
|
|
15
|
+
font-size: 14px;
|
|
16
|
+
border-radius: 6px;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.weda-list-view__empty .weda-list-view__empty__content.table {
|
|
20
|
+
background-color: unset;
|
|
21
|
+
height: 140px;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.weda-list-view__empty .weda-list-view__empty__content.table.isH5 {
|
|
25
|
+
height: 548px;
|
|
26
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.css';
|
|
3
|
+
const BLOCK_NAME = 'weda-list-view';
|
|
4
|
+
export default function EmptyContent(props) {
|
|
5
|
+
const { emptyText, component, isH5 } = props;
|
|
6
|
+
return (React.createElement("div", { className: `${BLOCK_NAME}__empty` },
|
|
7
|
+
React.createElement("div", { className: `${BLOCK_NAME}__empty__content test
|
|
8
|
+
${component === 'table' && 'table'}
|
|
9
|
+
${isH5 && 'isH5'}` },
|
|
10
|
+
React.createElement("svg", { width: "120", height: "80", viewBox: "0 0 120 80", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
11
|
+
React.createElement("rect", { x: "14", y: "8", width: "80", height: "50", fill: "url(#paint0_linear_810_13830)" }),
|
|
12
|
+
React.createElement("path", { d: "M28 22H20", stroke: "black", strokeOpacity: "0.9" }),
|
|
13
|
+
React.createElement("path", { d: "M44 27H20", stroke: "black", strokeOpacity: "0.9" }),
|
|
14
|
+
React.createElement("path", { d: "M44 32H20", stroke: "black", strokeOpacity: "0.9" }),
|
|
15
|
+
React.createElement("g", { filter: "url(#filter0_b_810_13830)" },
|
|
16
|
+
React.createElement("path", { d: "M14 8H94V14H14V8Z", fill: "black", fillOpacity: "0.9" })),
|
|
17
|
+
React.createElement("path", { d: "M19 11H18", stroke: "white" }),
|
|
18
|
+
React.createElement("path", { d: "M23 11H22", stroke: "white" }),
|
|
19
|
+
React.createElement("path", { d: "M27 11H26", stroke: "white" }),
|
|
20
|
+
React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M78 18H62V34H78V18ZM97 18H81V34H97V18Z", fill: "url(#paint1_linear_810_13830)" }),
|
|
21
|
+
React.createElement("g", { filter: "url(#filter1_b_810_13830)" },
|
|
22
|
+
React.createElement("path", { d: "M50 72H105V32H50V72Z", fill: "url(#paint2_linear_810_13830)", fillOpacity: "0.9" })),
|
|
23
|
+
React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M79.5244 57.9636C79.5244 58.483 79.2697 58.9325 78.9038 59.2929C78.5397 59.6516 78.0384 59.9517 77.4594 60.1929C76.2991 60.6764 74.7308 60.9636 73.0244 60.9636C71.318 60.9636 69.7498 60.6764 68.5895 60.1929C68.0104 59.9517 67.5092 59.6516 67.145 59.2929C66.7791 58.9325 66.5244 58.483 66.5244 57.9636V50.9636C66.5244 50.4443 66.7791 49.9948 67.145 49.6343C67.5092 49.2756 68.0104 48.9756 68.5895 48.7343C69.7498 48.2509 71.318 47.9636 73.0244 47.9636C74.7308 47.9636 76.2991 48.2509 77.4594 48.7343C78.0384 48.9756 78.5397 49.2756 78.9038 49.6343C79.2697 49.9948 79.5244 50.4443 79.5244 50.9636V57.9636ZM67.8468 50.3467C67.6055 50.5845 67.5244 50.7926 67.5244 50.9636C67.5244 51.1346 67.6055 51.3428 67.8468 51.5805C68.0899 51.82 68.4674 52.0587 68.9741 52.2699C69.9854 52.6912 71.4171 52.9636 73.0244 52.9636C74.6318 52.9636 76.0635 52.6912 77.0747 52.2699C77.5815 52.0587 77.9589 51.82 78.202 51.5805C78.4434 51.3428 78.5244 51.1346 78.5244 50.9636C78.5244 50.7926 78.4434 50.5845 78.202 50.3467C77.9589 50.1072 77.5815 49.8685 77.0747 49.6574C76.0635 49.236 74.6318 48.9636 73.0244 48.9636C71.4171 48.9636 69.9854 49.236 68.9741 49.6574C68.4674 49.8685 68.0899 50.1072 67.8468 50.3467ZM78.5244 52.6118V54.4636C78.5244 54.6346 78.4434 54.8428 78.202 55.0805C77.9589 55.32 77.5815 55.5587 77.0747 55.7699C76.0635 56.1912 74.6318 56.4636 73.0244 56.4636C71.4171 56.4636 69.9854 56.1912 68.9741 55.7699C68.4674 55.5587 68.0899 55.32 67.8468 55.0805C67.6055 54.8428 67.5244 54.6346 67.5244 54.4636V52.6118C67.8298 52.8333 68.1912 53.027 68.5895 53.1929C69.7498 53.6764 71.318 53.9636 73.0244 53.9636C74.7308 53.9636 76.2991 53.6764 77.4594 53.1929C77.8576 53.027 78.2191 52.8333 78.5244 52.6118ZM78.5244 57.9636V56.1118C78.2191 56.3333 77.8576 56.527 77.4594 56.6929C76.2991 57.1764 74.7308 57.4636 73.0244 57.4636C71.318 57.4636 69.7498 57.1764 68.5895 56.6929C68.1912 56.527 67.8298 56.3333 67.5244 56.1118V57.9636C67.5244 58.1346 67.6055 58.3428 67.8468 58.5805C68.0899 58.82 68.4674 59.0587 68.9741 59.2699C69.9854 59.6912 71.4171 59.9636 73.0244 59.9636C74.6318 59.9636 76.0635 59.6912 77.0747 59.2699C77.5815 59.0587 77.9589 58.82 78.202 58.5805C78.4434 58.3428 78.5244 58.1346 78.5244 57.9636Z", fill: "white" }),
|
|
24
|
+
React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M86.9038 53.2932C87.2697 52.9327 87.5244 52.4832 87.5244 51.9639V44.9639C87.5244 44.4445 87.2697 43.995 86.9038 43.6346C86.5397 43.2759 86.0384 42.9758 85.4594 42.7346C84.2991 42.2511 82.7308 41.9639 81.0244 41.9639C79.318 41.9639 77.7498 42.2511 76.5895 42.7346C76.0104 42.9758 75.5092 43.2759 75.145 43.6346C74.7791 43.995 74.5244 44.4445 74.5244 44.9639V48.0786C74.8689 48.1148 75.2032 48.1631 75.5244 48.2225V46.612C75.8298 46.8335 76.1912 47.0272 76.5895 47.1932C77.7498 47.6766 79.318 47.9639 81.0244 47.9639C82.7308 47.9639 84.2991 47.6766 85.4594 47.1932C85.8576 47.0272 86.2191 46.8335 86.5244 46.612V48.4639C86.5244 48.6349 86.4434 48.843 86.202 49.0808C85.9589 49.3203 85.5815 49.559 85.0747 49.7701C84.0635 50.1915 82.6318 50.4639 81.0244 50.4639C80.4454 50.4639 79.8891 50.4285 79.3671 50.3636C79.4517 50.5615 79.4999 50.7741 79.4999 51V51.3853C79.9898 51.4368 80.5006 51.4639 81.0244 51.4639C82.7308 51.4639 84.2991 51.1766 85.4594 50.6932C85.8576 50.5272 86.2191 50.3335 86.5244 50.112V51.9639C86.5244 52.1349 86.4434 52.343 86.202 52.5808C85.9589 52.8203 85.5815 53.059 85.0747 53.2701C84.0635 53.6915 82.6318 53.9639 81.0244 53.9639C80.4942 53.9639 79.9831 53.9342 79.4999 53.8794V54.8853C79.9898 54.9368 80.5006 54.9639 81.0244 54.9639C82.7308 54.9639 84.2991 54.6766 85.4594 54.1932C86.0384 53.9519 86.5397 53.6519 86.9038 53.2932ZM75.5244 44.9639C75.5244 44.7929 75.6055 44.5847 75.8468 44.3469C76.0899 44.1075 76.4674 43.8688 76.9741 43.6576C77.9854 43.2363 79.4171 42.9639 81.0244 42.9639C82.6318 42.9639 84.0635 43.2363 85.0747 43.6576C85.5815 43.8688 85.9589 44.1075 86.202 44.3469C86.4434 44.5847 86.5244 44.7929 86.5244 44.9639C86.5244 45.1349 86.4434 45.343 86.202 45.5808C85.9589 45.8203 85.5815 46.059 85.0747 46.2701C84.0635 46.6915 82.6318 46.9639 81.0244 46.9639C79.4171 46.9639 77.9854 46.6915 76.9741 46.2701C76.4674 46.059 76.0899 45.8203 75.8468 45.5808C75.6055 45.343 75.5244 45.1349 75.5244 44.9639Z", fill: "white" }),
|
|
25
|
+
React.createElement("defs", null,
|
|
26
|
+
React.createElement("filter", { id: "filter0_b_810_13830", x: "10", y: "4", width: "88", height: "14", filterUnits: "userSpaceOnUse", colorInterpolationFilters: "sRGB" },
|
|
27
|
+
React.createElement("feFlood", { floodOpacity: "0", result: "BackgroundImageFix" }),
|
|
28
|
+
React.createElement("feGaussianBlur", { in: "BackgroundImageFix", stdDeviation: "2" }),
|
|
29
|
+
React.createElement("feComposite", { in2: "SourceAlpha", operator: "in", result: "effect1_backgroundBlur_810_13830" }),
|
|
30
|
+
React.createElement("feBlend", { mode: "normal", in: "SourceGraphic", in2: "effect1_backgroundBlur_810_13830", result: "shape" })),
|
|
31
|
+
React.createElement("filter", { id: "filter1_b_810_13830", x: "44.6667", y: "26.6667", width: "65.6667", height: "50.6667", filterUnits: "userSpaceOnUse", colorInterpolationFilters: "sRGB" },
|
|
32
|
+
React.createElement("feFlood", { floodOpacity: "0", result: "BackgroundImageFix" }),
|
|
33
|
+
React.createElement("feGaussianBlur", { in: "BackgroundImageFix", stdDeviation: "2.66667" }),
|
|
34
|
+
React.createElement("feComposite", { in2: "SourceAlpha", operator: "in", result: "effect1_backgroundBlur_810_13830" }),
|
|
35
|
+
React.createElement("feBlend", { mode: "normal", in: "SourceGraphic", in2: "effect1_backgroundBlur_810_13830", result: "shape" })),
|
|
36
|
+
React.createElement("linearGradient", { id: "paint0_linear_810_13830", x1: "54", y1: "8", x2: "54", y2: "58", gradientUnits: "userSpaceOnUse" },
|
|
37
|
+
React.createElement("stop", { stopColor: "#E7E7E7" }),
|
|
38
|
+
React.createElement("stop", { offset: "1", stopColor: "#DCDCDC" })),
|
|
39
|
+
React.createElement("linearGradient", { id: "paint1_linear_810_13830", x1: "84.6042", y1: "18", x2: "84.6042", y2: "34", gradientUnits: "userSpaceOnUse" },
|
|
40
|
+
React.createElement("stop", { stopColor: "white" }),
|
|
41
|
+
React.createElement("stop", { offset: "1", stopColor: "white", stopOpacity: "0.2" })),
|
|
42
|
+
React.createElement("linearGradient", { id: "paint2_linear_810_13830", x1: "74.8387", y1: "66.7826", x2: "74.8387", y2: "33.6563", gradientUnits: "userSpaceOnUse" },
|
|
43
|
+
React.createElement("stop", { stopColor: "#939393", stopOpacity: "0.7" }),
|
|
44
|
+
React.createElement("stop", { offset: "1", stopColor: "#939393" })))),
|
|
45
|
+
emptyText)));
|
|
46
|
+
}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
.model-flow-module-title {
|
|
2
|
-
font-size:
|
|
2
|
+
font-size: 16px;
|
|
3
3
|
font-weight: 700;
|
|
4
4
|
}
|
|
5
|
-
|
|
6
|
-
/*# sourceURL=webpack://./src/web/components/flow/components/FlowModuleText/index.css */
|
|
7
|
-
/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8uL3NyYy93ZWIvY29tcG9uZW50cy9mbG93L2NvbXBvbmVudHMvRmxvd01vZHVsZVRleHQvaW5kZXguY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0UscUJBQXFCO0VBQ3JCLGdCQUFnQjtBQUNsQiIsInNvdXJjZXNDb250ZW50IjpbIi5tb2RlbC1mbG93LW1vZHVsZS10aXRsZSB7XG4gIGZvbnQtc2l6ZTogMS4xNDI4NnJlbTtcbiAgZm9udC13ZWlnaHQ6IDcwMDtcbn1cbiJdLCJzb3VyY2VSb290IjoiIn0= */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
.flow-user-select-mobile {
|
|
2
|
-
height: calc(100% -
|
|
2
|
+
height: calc(100% - 52px);
|
|
3
3
|
}
|
|
4
4
|
.flow-user-select-mobile .page-info__wrapper-mobile {
|
|
5
5
|
position: relative;
|
|
@@ -7,21 +7,21 @@
|
|
|
7
7
|
background: #f2f2f2;
|
|
8
8
|
}
|
|
9
9
|
.flow-user-select-mobile .page-info__wrapper-mobile .wedatea2td-table {
|
|
10
|
-
height: calc(100% -
|
|
10
|
+
height: calc(100% - 200px) !important;
|
|
11
11
|
}
|
|
12
12
|
.flow-user-select-mobile
|
|
13
13
|
.page-info__wrapper-mobile
|
|
14
14
|
.wedatea2td-table
|
|
15
15
|
.wedatea2td-table__body {
|
|
16
|
-
max-height: calc(100% -
|
|
16
|
+
max-height: calc(100% - 50px) !important;
|
|
17
17
|
}
|
|
18
18
|
.flow-user-select-mobile .page-info__wrapper-mobile footer.selected-info {
|
|
19
19
|
position: absolute;
|
|
20
20
|
bottom: 0;
|
|
21
21
|
left: 0;
|
|
22
22
|
right: 0;
|
|
23
|
-
height:
|
|
24
|
-
padding:
|
|
23
|
+
height: 90px;
|
|
24
|
+
padding: 12px 16px 0 20px;
|
|
25
25
|
box-sizing: border-box;
|
|
26
26
|
background: #fff;
|
|
27
27
|
}
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
footer.selected-info
|
|
31
31
|
.selected-info__left
|
|
32
32
|
.selected-count {
|
|
33
|
-
font-size:
|
|
33
|
+
font-size: 14px;
|
|
34
34
|
color: #2473f2;
|
|
35
35
|
}
|
|
36
36
|
.flow-user-select-mobile
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
footer.selected-info
|
|
39
39
|
.selected-info__left
|
|
40
40
|
.selected-people {
|
|
41
|
-
font-size:
|
|
41
|
+
font-size: 12px;
|
|
42
42
|
color: #c2c2c2;
|
|
43
|
-
max-width:
|
|
43
|
+
max-width: 200px;
|
|
44
44
|
text-overflow: ellipsis;
|
|
45
45
|
overflow: hidden;
|
|
46
46
|
white-space: nowrap;
|
|
@@ -51,12 +51,12 @@
|
|
|
51
51
|
.selected-info__left
|
|
52
52
|
.collapse-spread {
|
|
53
53
|
display: inline-block;
|
|
54
|
-
margin-left:
|
|
55
|
-
width:
|
|
56
|
-
height:
|
|
54
|
+
margin-left: 16px;
|
|
55
|
+
width: 8px;
|
|
56
|
+
height: 8px;
|
|
57
57
|
border: none;
|
|
58
|
-
border-top:
|
|
59
|
-
border-right:
|
|
58
|
+
border-top: 2px solid #2473f2;
|
|
59
|
+
border-right: 2px solid #2473f2;
|
|
60
60
|
transform: rotate(-45deg);
|
|
61
61
|
vertical-align: middle;
|
|
62
62
|
}
|
|
@@ -64,13 +64,13 @@
|
|
|
64
64
|
.page-info__wrapper-mobile
|
|
65
65
|
footer.selected-info
|
|
66
66
|
.submit-btn {
|
|
67
|
-
width:
|
|
68
|
-
height:
|
|
69
|
-
border-radius:
|
|
67
|
+
width: 94px;
|
|
68
|
+
height: 40px;
|
|
69
|
+
border-radius: 4px;
|
|
70
70
|
background: #2473f2;
|
|
71
71
|
}
|
|
72
72
|
.flow-user-select-mobile .page-info__wrapper-mobile .loading-dom__wrapper {
|
|
73
|
-
height: calc(100% -
|
|
73
|
+
height: calc(100% - 150px);
|
|
74
74
|
display: flex;
|
|
75
75
|
justify-content: space-around;
|
|
76
76
|
align-items: center;
|
|
@@ -79,15 +79,15 @@
|
|
|
79
79
|
.SelectPersonOrg-popup .selected-title {
|
|
80
80
|
position: sticky;
|
|
81
81
|
top: 0;
|
|
82
|
-
padding: 0
|
|
83
|
-
height:
|
|
84
|
-
line-height:
|
|
82
|
+
padding: 0 20px;
|
|
83
|
+
height: 40px;
|
|
84
|
+
line-height: 40px;
|
|
85
85
|
display: flex;
|
|
86
86
|
justify-content: space-between;
|
|
87
|
-
border-bottom:
|
|
87
|
+
border-bottom: 1px solid #dcdee6;
|
|
88
88
|
}
|
|
89
89
|
.SelectPersonOrg-popup .selected-title .tea-btn {
|
|
90
|
-
font-size:
|
|
90
|
+
font-size: 16px;
|
|
91
91
|
}
|
|
92
92
|
.SelectPersonOrg-popup .selected-title .tea-btn--text {
|
|
93
93
|
color: #666;
|
|
@@ -96,24 +96,21 @@
|
|
|
96
96
|
color: #006eff;
|
|
97
97
|
}
|
|
98
98
|
.SelectPersonOrg-popup .selected-title span {
|
|
99
|
-
font-size:
|
|
99
|
+
font-size: 14px;
|
|
100
100
|
}
|
|
101
101
|
.SelectPersonOrg-popup .selected-person {
|
|
102
|
-
height: calc(100% -
|
|
103
|
-
padding: 0
|
|
102
|
+
height: calc(100% - 41px);
|
|
103
|
+
padding: 0 20px;
|
|
104
104
|
overflow-y: auto;
|
|
105
105
|
}
|
|
106
106
|
.SelectPersonOrg-popup .selected-person .tea-justify-grid {
|
|
107
|
-
height:
|
|
108
|
-
line-height:
|
|
109
|
-
border-bottom:
|
|
107
|
+
height: 40px;
|
|
108
|
+
line-height: 40px;
|
|
109
|
+
border-bottom: 1px solid #dcdee6;
|
|
110
110
|
}
|
|
111
111
|
.SelectPersonOrg-popup
|
|
112
112
|
.selected-person
|
|
113
113
|
.tea-justify-grid
|
|
114
114
|
.selected-person__name {
|
|
115
|
-
font-size:
|
|
115
|
+
font-size: 14px;
|
|
116
116
|
}
|
|
117
|
-
|
|
118
|
-
/*# sourceURL=webpack://./src/web/components/flow/components/FlowUserSelect/index.css */
|
|
119
|
-
/*# sourceMappingURL=data:application/json;char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Vyc29uX19uYW1lIHtcbiAgZm9udC1zaXplOiAxcmVtO1xufVxuIl0sInNvdXJjZVJvb3QiOiIifQ== */
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
}
|
|
5
5
|
.highlight-textarea {
|
|
6
6
|
position: relative;
|
|
7
|
-
height:
|
|
8
|
-
border:
|
|
7
|
+
height: 100px;
|
|
8
|
+
border: 1px solid #dcdee6;
|
|
9
9
|
text-align: left;
|
|
10
10
|
overflow: scroll;
|
|
11
11
|
display: inline-block;
|
|
12
12
|
width: 99%;
|
|
13
|
-
margin-bottom: -
|
|
13
|
+
margin-bottom: -5px;
|
|
14
14
|
}
|
|
15
15
|
.highlight-textarea .public-DraftEditorPlaceholder-root {
|
|
16
16
|
display: none;
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
z-index: 1;
|
|
22
22
|
}
|
|
23
23
|
.highlight-textarea .DraftEditor-root .DraftEditor-editorContainer {
|
|
24
|
-
padding:
|
|
24
|
+
padding: 5px;
|
|
25
25
|
height: 6em;
|
|
26
26
|
}
|
|
27
27
|
.highlight-textarea
|
|
@@ -37,9 +37,6 @@
|
|
|
37
37
|
.highlight-textarea .highlight-textarea-placeholder {
|
|
38
38
|
position: absolute;
|
|
39
39
|
z-index: 0;
|
|
40
|
-
margin:
|
|
40
|
+
margin: 5px;
|
|
41
41
|
color: #999999;
|
|
42
42
|
}
|
|
43
|
-
|
|
44
|
-
/*# sourceURL=webpack://./src/web/components/flow/components/HighlightTextarea/index.css */
|
|
45
|
-
/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8uL3NyYy93ZWIvY29tcG9uZW50cy9mbG93L2NvbXBvbmVudHMvSGlnaGxpZ2h0VGV4dGFyZWEvaW5kZXguY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0UscUJBQXFCO0VBQ3JCLFdBQVc7QUFDYjtBQUNBO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OiAxMDAlO1xuICB6LWluZGV4OiAxO1xufVxuLmhpZ2hsaWdodC10ZXh0YXJlYSAuRHJhZnRFZGl0b3Itcm9vdCAuRHJhZnRFZGl0b3ItZWRpdG9yQ29udGFpbmVyIHtcbiAgcGFkZGluZzogMC4zNTcxNHJlbTtcbiAgaGVpZ2h0OiA2ZW07XG59XG4uaGlnaGxpZ2h0LXRleHRhcmVhXG4gIC5EcmFmdEVkaXRvci1yb290XG4gIC5EcmFmdEVkaXRvci1lZGl0b3JDb250YWluZXJcbiAgLnB1YmxpYy1EcmFmdEVkaXRvci1jb250ZW50IHtcbiAgaGVpZ2h0OiAxMDAlO1xufVxuLmhpZ2hsaWdodC10ZXh0YXJlYSAuRHJhZnRFZGl0b3Itcm9vdCAuRHJhZnRFZGl0b3ItZWRpdG9yQ29udGFpbmVyIG1hcmsge1xuICBjb2xvcjogIzg4ODg4ODtcbiAgYmFja2dyb3VuZDogdHJhbnNwYXJlbnQ7XG59XG4uaGlnaGxpZ2h0LXRleHRhcmVhIC5oaWdobGlnaHQtdGV4dGFyZWEtcGxhY2Vob2xkZXIge1xuICBwb3NpdGlvbjogYWJzb2x1dGU7XG4gIHotaW5kZXg6IDA7XG4gIG1hcmdpbjogMC4zNTcxNHJlbTtcbiAgY29sb3I6ICM5OTk5OTk7XG59XG4iXSwic291cmNlUm9vdCI6IiJ9 */
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React, { useEffect, useRef } from 'react';
|
|
2
|
-
import UserTreeSelect from '../../../form/userOrgSelect';
|
|
2
|
+
import UserTreeSelect from '../../../form/userOrgSelect/component/user-select-h5';
|
|
3
3
|
export function UserSelect(props) {
|
|
4
4
|
const { multiple = true, isMobile = false, placeholder, visible = false, onClose, } = props;
|
|
5
|
+
const visibleRef = useRef(visible);
|
|
5
6
|
useEffect(() => {
|
|
6
7
|
const onBodyClick = (e) => {
|
|
7
8
|
const element = e.target;
|
|
@@ -26,7 +27,9 @@ export function UserSelect(props) {
|
|
|
26
27
|
}));
|
|
27
28
|
(_a = props === null || props === void 0 ? void 0 : props.onChange) === null || _a === void 0 ? void 0 : _a.call(props, userList || []);
|
|
28
29
|
(_b = props === null || props === void 0 ? void 0 : props.originOnChange) === null || _b === void 0 ? void 0 : _b.call(props, value);
|
|
29
|
-
|
|
30
|
+
if (visibleRef.current !== true) {
|
|
31
|
+
onClose === null || onClose === void 0 ? void 0 : onClose();
|
|
32
|
+
}
|
|
30
33
|
};
|
|
31
34
|
const commonProps = {
|
|
32
35
|
labelVisible: false,
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
.flow-user-select-mobile {
|
|
2
|
-
height: calc(100% -
|
|
2
|
+
height: calc(100% - 52px);
|
|
3
3
|
}
|
|
4
4
|
.flow-user-select-mobile .page-info__wrapper-mobile {
|
|
5
5
|
position: relative;
|
|
6
6
|
height: 100%;
|
|
7
7
|
background: #f2f2f2;
|
|
8
8
|
}
|
|
9
|
-
|
|
10
|
-
/*# sourceURL=webpack://./src/web/components/flow/components/UserSelectModel/UserSelectMobile.css */
|
|
11
|
-
/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8uL3NyYy93ZWIvY29tcG9uZW50cy9mbG93L2NvbXBvbmVudHMvVXNlclNlbGVjdE1vZGVsL1VzZXJTZWxlY3RNb2JpbGUuY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0UsK0JBQStCO0FBQ2pDO0FBQ0E7RUFDRSxrQkFBa0I7RUFDbEIsWUFBWTtFQUNaLG1CQUFtQjtBQUNyQiIsInNvdXJjZXNDb250ZW50IjpbIi5mbG93LXVzZXItc2VsZWN0LW1vYmlsZSB7XG4gIGhlaWdodDogY2FsYygxMDAlIC0gMy43MTQyOXJlbSk7XG59XG4uZmxvdy11c2VyLXNlbGVjdC1tb2JpbGUgLnBhZ2UtaW5mb19fd3JhcHBlci1tb2JpbGUge1xuICBwb3NpdGlvbjogcmVsYXRpdmU7XG4gIGhlaWdodDogMTAwJTtcbiAgYmFja2dyb3VuZDogI2YyZjJmMjtcbn1cbiJdLCJzb3VyY2VSb290IjoiIn0= */
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import React, { useState, useEffect } from 'react';
|
|
1
|
+
import React, { useState, useEffect, useRef } from 'react';
|
|
2
2
|
import { safeJsonParse } from '../../../../utils/tool';
|
|
3
3
|
import { UserSelect } from './UserSelect';
|
|
4
4
|
import './UserSelectMobile.css';
|
|
5
5
|
export const UserSelectMobile = (props) => {
|
|
6
6
|
const { visible, approveField, mode, close, values } = props;
|
|
7
7
|
const [selected, setSelected] = useState(values);
|
|
8
|
+
const visibleRef = useRef(visible);
|
|
8
9
|
useEffect(() => {
|
|
9
10
|
const selectedAvatar = sessionStorage.getItem('selected');
|
|
10
11
|
selectedAvatar && setSelected(safeJsonParse(selectedAvatar));
|
|
@@ -31,22 +32,24 @@ export const UserSelectMobile = (props) => {
|
|
|
31
32
|
sessionStorage.setItem('hasSignSubmit', 'hasSignSubmit');
|
|
32
33
|
}
|
|
33
34
|
else if (approveField === 'highLightApprovers') {
|
|
34
|
-
handleHighLightSelected(selectedIds, selectedUser, flowData);
|
|
35
|
+
handleHighLightSelected(selectedIds || [], selectedUser, flowData);
|
|
35
36
|
}
|
|
36
37
|
else {
|
|
37
38
|
flowData[approveField] = selectedIds;
|
|
38
39
|
}
|
|
39
40
|
sessionStorage.setItem('FlowActionsMobile', JSON.stringify(flowData));
|
|
40
41
|
sessionStorage.setItem(approveField, JSON.stringify(selectedUser));
|
|
41
|
-
|
|
42
|
+
if (visibleRef.current !== true) {
|
|
43
|
+
close === null || close === void 0 ? void 0 : close();
|
|
44
|
+
}
|
|
42
45
|
};
|
|
43
46
|
const onUserSelectChange = (rows) => {
|
|
44
47
|
var _a;
|
|
45
48
|
const isMultiple = mode === 'multiple';
|
|
46
49
|
const ids = isMultiple ? rows.value : [rows.value];
|
|
47
50
|
const users = (_a = rows.data) === null || _a === void 0 ? void 0 : _a.map((user) => ({
|
|
48
|
-
Name: user.content,
|
|
49
|
-
UserId: user.
|
|
51
|
+
Name: (user === null || user === void 0 ? void 0 : user.userName) || (user === null || user === void 0 ? void 0 : user.content) || '-',
|
|
52
|
+
UserId: user.userId,
|
|
50
53
|
}));
|
|
51
54
|
saveSelect(ids, users);
|
|
52
55
|
};
|
|
@@ -1,6 +1,3 @@
|
|
|
1
1
|
.weda-workbench__flow-user-search {
|
|
2
2
|
background-color: #fff !important;
|
|
3
3
|
}
|
|
4
|
-
|
|
5
|
-
/*# sourceURL=webpack://./src/web/components/flow/components/WedaUserTransfer/index.css */
|
|
6
|
-
/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8uL3NyYy93ZWIvY29tcG9uZW50cy9mbG93L2NvbXBvbmVudHMvV2VkYVVzZXJUcmFuc2Zlci9pbmRleC5jc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7RUFDRSxpQ0FBaUM7QUFDbkMiLCJzb3VyY2VzQ29udGVudCI6WyIud2VkYS13b3JrYmVuY2hfX2Zsb3ctdXNlci1zZWFyY2gge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjZmZmICFpbXBvcnRhbnQ7XG59XG4iXSwic291cmNlUm9vdCI6IiJ9 */
|
|
@@ -44,9 +44,11 @@ export async function getPageInfo(config, flowDetail, pageType) {
|
|
|
44
44
|
const [err, res] = await to(getApprovalPageDetail(params, config));
|
|
45
45
|
if (!err) {
|
|
46
46
|
const initialValues = CommonFlowDataUtils.translateObjectMap(res);
|
|
47
|
+
const objectListValues = CommonFlowDataUtils.translateObjectListMap(res);
|
|
47
48
|
const { isReadonly } = CommonFlowDataUtils.getFormState(config);
|
|
48
49
|
const flowLoadData = {
|
|
49
|
-
initialValues,
|
|
50
|
+
initialValues: initialValues || {},
|
|
51
|
+
objectListValues: objectListValues || {},
|
|
50
52
|
formType: isReadonly ? 'read' : 'create',
|
|
51
53
|
};
|
|
52
54
|
return {
|
|
@@ -4,6 +4,8 @@ import { useMediaQuery } from '@react-hookz/web';
|
|
|
4
4
|
import { useGlobalContext } from '../../../utils/hooks/context';
|
|
5
5
|
import { globalContextConnect } from '../../../utils/hooks/globalConnect';
|
|
6
6
|
import { safeJsonParse } from '../../../utils/tool';
|
|
7
|
+
import { ControlModelUtils } from '../modules/control/utils';
|
|
8
|
+
import { PAGE_TYPE } from '../constants';
|
|
7
9
|
import { getCommonFlowData } from './getCommonFlowData';
|
|
8
10
|
import { ICommonFlowDataProps } from './types';
|
|
9
11
|
import { CommonFlowDataUtils } from './utils';
|
|
@@ -35,6 +37,14 @@ export function createModuleFrame(Component, moduleName) {
|
|
|
35
37
|
.currentPageType,
|
|
36
38
|
}, flowTaskId);
|
|
37
39
|
setLoading(false);
|
|
40
|
+
// 当页面类型为TODO时判断任务状态,如果大于1说明当前任务不是待办状态
|
|
41
|
+
if (currentPageType === PAGE_TYPE.TO_DO &&
|
|
42
|
+
data.flowDetail.taskStatus > 1) {
|
|
43
|
+
// 将url参数中的pageType更新成Done
|
|
44
|
+
ControlModelUtils.updateUrlSearch({ pageType: PAGE_TYPE.DONE });
|
|
45
|
+
// 设置表单状态为只读
|
|
46
|
+
data.flowLoadData.formType = 'read';
|
|
47
|
+
}
|
|
38
48
|
(_a = events === null || events === void 0 ? void 0 : events.flowLoad) === null || _a === void 0 ? void 0 : _a.call(events, data.flowLoadData);
|
|
39
49
|
return data;
|
|
40
50
|
},
|
|
@@ -42,6 +52,13 @@ export function createModuleFrame(Component, moduleName) {
|
|
|
42
52
|
setCommonFlowData(data);
|
|
43
53
|
},
|
|
44
54
|
});
|
|
55
|
+
const setFormType = (type) => {
|
|
56
|
+
var _a;
|
|
57
|
+
(_a = events === null || events === void 0 ? void 0 : events.flowLoad) === null || _a === void 0 ? void 0 : _a.call(events, {
|
|
58
|
+
...commonFlowData.flowLoadData,
|
|
59
|
+
formType: type,
|
|
60
|
+
});
|
|
61
|
+
};
|
|
45
62
|
const flowLocalProps = {
|
|
46
63
|
isH5,
|
|
47
64
|
isNarrowElement,
|
|
@@ -52,7 +69,7 @@ export function createModuleFrame(Component, moduleName) {
|
|
|
52
69
|
};
|
|
53
70
|
return (React.createElement(ConfigProvider, { classPrefix: "wedatea2td" },
|
|
54
71
|
React.createElement("div", { ...props, ref: containerRef },
|
|
55
|
-
React.createElement(Component, { ide: props, flowLocalProps: flowLocalProps, commonFlowData: commonFlowData, loading: loading, reload: reload }))));
|
|
72
|
+
React.createElement(Component, { ide: props, flowLocalProps: flowLocalProps, commonFlowData: commonFlowData, loading: loading, reload: reload, setFormType: setFormType }))));
|
|
56
73
|
};
|
|
57
74
|
return globalContextConnect(BaseModuleContainer);
|
|
58
75
|
}
|
|
@@ -179,6 +179,12 @@ export class IFlowDetailProps {
|
|
|
179
179
|
writable: true,
|
|
180
180
|
value: 0
|
|
181
181
|
});
|
|
182
|
+
Object.defineProperty(this, "taskStatus", {
|
|
183
|
+
enumerable: true,
|
|
184
|
+
configurable: true,
|
|
185
|
+
writable: true,
|
|
186
|
+
value: void 0
|
|
187
|
+
});
|
|
182
188
|
}
|
|
183
189
|
}
|
|
184
190
|
export class IPageInfoProps {
|