super-page-runtime 2.2.29-tmp2 → 2.2.32
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/es/_virtual/_plugin-vue_export-helper.js +5 -7
- package/dist/es/assets/chart-themes/theme1.js +2 -6
- package/dist/es/assets/chart-themes/theme2.js +2 -6
- package/dist/es/assets/chart-themes/theme3.js +2 -6
- package/dist/es/components/runtime/utils/api/api-util.js +4 -7
- package/dist/es/components/runtime/utils/api/page-expose-util.js +135 -443
- package/dist/es/components/runtime/utils/assemblys-config.js +13 -369
- package/dist/es/components/runtime/utils/barcode-util.js +9 -33
- package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +122 -306
- package/dist/es/components/runtime/utils/charts/chart-gauge-util.js +29 -68
- package/dist/es/components/runtime/utils/charts/chart-pie-util.js +68 -152
- package/dist/es/components/runtime/utils/charts/chart-radar-util.js +46 -124
- package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +36 -99
- package/dist/es/components/runtime/utils/charts/chart-util.js +224 -522
- package/dist/es/components/runtime/utils/common-util.js +76 -156
- package/dist/es/components/runtime/utils/eventBus.js +3 -8
- package/dist/es/components/runtime/utils/events/event-util.js +362 -775
- package/dist/es/components/runtime/utils/events/print-label.js +72 -140
- package/dist/es/components/runtime/utils/events/standard-event.js +808 -2320
- package/dist/es/components/runtime/utils/events/validator-util.js +224 -560
- package/dist/es/components/runtime/utils/form/date-shortcuts.js +28 -88
- package/dist/es/components/runtime/utils/form/scan-util.js +61 -162
- package/dist/es/components/runtime/utils/global-refs.js +53 -84
- package/dist/es/components/runtime/utils/i18n-util.js +11 -20
- package/dist/es/components/runtime/utils/interfaces/page-design-types.d.ts +6 -0
- package/dist/es/components/runtime/utils/interfaces/page-design-types.js +2 -7
- package/dist/es/components/runtime/utils/page-helper-util.js +280 -660
- package/dist/es/components/runtime/utils/page-init-util.js +141 -406
- package/dist/es/components/runtime/utils/page-permission-util.js +22 -531
- package/dist/es/components/runtime/utils/page-store.js +23 -68
- package/dist/es/components/runtime/utils/store-util.js +9 -13
- package/dist/es/components/runtime/utils/store.js +2 -2
- package/dist/es/components/runtime/utils/table-utils.d.ts +4 -0
- package/dist/es/components/runtime/utils/table-utils.js +40 -81
- package/dist/es/components/runtime/utils/tree-utils.js +17 -37
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +21 -83
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +14 -46
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +36 -132
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +4 -18
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +17 -107
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +50 -198
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +12 -42
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +7 -60
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +52 -203
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.js +4 -4
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +46 -162
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +32 -109
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +43 -166
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +32 -117
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +32 -118
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +246 -597
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue.js +4 -42
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue.js +8 -62
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +29 -160
- package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue.js +13 -62
- package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +212 -594
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +29 -139
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +21 -125
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +16 -102
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +18 -81
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +17 -82
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +14 -86
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +21 -79
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +16 -61
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +10 -37
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +38 -127
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +28 -76
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +61 -178
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +317 -810
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +262 -635
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +40 -115
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +56 -215
- package/dist/es/components/runtime/views/assemblys/error-render.vue.js +3 -21
- package/dist/es/components/runtime/views/assemblys/error-render.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +42 -154
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +34 -98
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +52 -200
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +68 -239
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +31 -109
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +21 -59
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +56 -188
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +22 -103
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +57 -245
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +32 -174
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +28 -107
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +4 -4
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +13 -50
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +64 -194
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +88 -249
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +80 -263
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +13 -57
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +30 -155
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +40 -129
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +22 -107
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +89 -188
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +133 -272
- package/dist/es/components/runtime/views/assemblys/object-render.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue2.js +18 -46
- package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.js +21 -49
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +20 -58
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.js +16 -53
- package/dist/es/components/runtime/views/home-chart.vue.js +41 -160
- package/dist/es/components/runtime/views/home-chart.vue2.js +2 -2
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +20 -139
- package/dist/es/components/runtime/views/super-page-dialog.vue2.js +2 -2
- package/dist/es/components/runtime/views/super-page.vue.js +226 -754
- package/dist/es/components/runtime/views/super-page.vue2.js +2 -2
- package/dist/es/i18n/langs/cn.js +2 -55
- package/dist/es/i18n/langs/en.js +2 -55
- package/package.json +2 -2
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
const
|
|
2
|
-
const
|
|
3
|
-
for (const [
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
return target;
|
|
1
|
+
const t = (t2, o) => {
|
|
2
|
+
const c = t2.__vccOpts || t2;
|
|
3
|
+
for (const [t3, s] of o) c[t3] = s;
|
|
4
|
+
return c;
|
|
7
5
|
};
|
|
8
6
|
export {
|
|
9
|
-
|
|
7
|
+
t as default
|
|
10
8
|
};
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
const
|
|
2
|
-
// 全局样式变量
|
|
3
|
-
color: ["red", "#91cc75", "#fac858", "#ee6666", "#73c0de", "#3ba272", "#fc8452", "#9a60b4", "#ea7ccc"]
|
|
4
|
-
// 其他样式设置...
|
|
5
|
-
};
|
|
1
|
+
const c = { color: ["red", "#91cc75", "#fac858", "#ee6666", "#73c0de", "#3ba272", "#fc8452", "#9a60b4", "#ea7ccc"] };
|
|
6
2
|
export {
|
|
7
|
-
|
|
3
|
+
c as default
|
|
8
4
|
};
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
const
|
|
2
|
-
// 全局样式变量
|
|
3
|
-
color: ["yellow", "#91cc75", "#fac858", "#ee6666", "#73c0de", "#3ba272", "#fc8452", "#9a60b4", "#ea7ccc"]
|
|
4
|
-
// 其他样式设置...
|
|
5
|
-
};
|
|
1
|
+
const c = { color: ["yellow", "#91cc75", "#fac858", "#ee6666", "#73c0de", "#3ba272", "#fc8452", "#9a60b4", "#ea7ccc"] };
|
|
6
2
|
export {
|
|
7
|
-
|
|
3
|
+
c as default
|
|
8
4
|
};
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
const
|
|
2
|
-
// 全局样式变量
|
|
3
|
-
color: ["green", "#91cc75", "#fac858", "#ee6666", "#73c0de", "#3ba272", "#fc8452", "#9a60b4", "#ea7ccc"]
|
|
4
|
-
// 其他样式设置...
|
|
5
|
-
};
|
|
1
|
+
const c = { color: ["green", "#91cc75", "#fac858", "#ee6666", "#73c0de", "#3ba272", "#fc8452", "#9a60b4", "#ea7ccc"] };
|
|
6
2
|
export {
|
|
7
|
-
|
|
3
|
+
c as default
|
|
8
4
|
};
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
import { ElMessage, ElMessageBox } from "element-plus";
|
|
2
|
-
import { functions } from "./page-expose-util.js";
|
|
3
|
-
import { standardEvents } from "../events/standard-event.js";
|
|
4
|
-
|
|
5
|
-
window["$PageUtil"] = functions;
|
|
6
|
-
window["$message"] = ElMessage;
|
|
7
|
-
window["$messageBox"] = ElMessageBox;
|
|
1
|
+
import { ElMessage as e, ElMessageBox as s } from "element-plus";
|
|
2
|
+
import { functions as o } from "./page-expose-util.js";
|
|
3
|
+
import { standardEvents as t } from "../events/standard-event.js";
|
|
4
|
+
o.standardEvents = t, window.$PageUtil = o, window.$message = e, window.$messageBox = s;
|
|
@@ -1,459 +1,151 @@
|
|
|
1
|
-
import { getOptionDatasSourceMap, getComponentOptionDatasFromPage, getVariableValue, setVariableValue, setValueForVariableName } from "../page-helper-util.js";
|
|
2
|
-
import { getComponentRef, getComponentRefByCode } from "../global-refs.js";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { getFormData, getAdditionalParamMap, refreshPage } from "../events/standard-event.js";
|
|
6
|
-
import { dynamicControlTableEdit, disabledAllFields, updateFormItemEditState } from "../events/validator-util.js";
|
|
7
|
-
import { deepCopy, getBaseUrl } from "../common-util.js";
|
|
8
|
-
import { isMobileBrowser } from "agilebuilder-ui/src/utils/common-util";
|
|
9
|
-
import { getFormModelFields, getModelFields } from "../page-init-util.js";
|
|
10
|
-
import { getCustomFunc } from "../events/event-util.js";
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
* 设置值
|
|
96
|
-
* @param pageDesign 页面设计对象
|
|
97
|
-
* @param keyValue {"name":"xxx",age:1,addr:"bj"} 展示组件所绑定的变量或者是绑定的code值, 绑定变量时传递变量名, 如果绑定的变量为${data.xxx}则传递xxx
|
|
98
|
-
*/
|
|
99
|
-
setEntityDataValue: function(pageContext, keyValue) {
|
|
100
|
-
Object.keys(keyValue).forEach((key) => {
|
|
101
|
-
setValueForVariableName(
|
|
102
|
-
pageContext.entity,
|
|
103
|
-
key.startsWith("${") ? key : "${data." + key + "}",
|
|
104
|
-
keyValue[key]
|
|
105
|
-
);
|
|
106
|
-
});
|
|
107
|
-
},
|
|
108
|
-
/**
|
|
109
|
-
* 设置值
|
|
110
|
-
* @param pageDesign 页面设计对象
|
|
111
|
-
* @param keyValue {"name":"xxx",age:1,addr:"bj"} 展示组件所绑定的变量或者是绑定的code值, 绑定变量时传递变量名, 如果绑定的变量为${data.xxx}则传递xxx
|
|
112
|
-
*/
|
|
113
|
-
setEntityPageValue: function(pageContext, keyValue) {
|
|
114
|
-
Object.keys(keyValue).forEach((key) => {
|
|
115
|
-
setValueForVariableName(
|
|
116
|
-
pageContext.entity,
|
|
117
|
-
key.startsWith("${") ? key : "${page." + key + "}",
|
|
118
|
-
keyValue[key]
|
|
119
|
-
);
|
|
120
|
-
});
|
|
121
|
-
},
|
|
122
|
-
setEntityValueByType: function(pageContext, type, keyValue) {
|
|
123
|
-
Object.keys(keyValue).forEach((key) => {
|
|
124
|
-
setValueForVariableName(
|
|
125
|
-
pageContext.entity,
|
|
126
|
-
key.startsWith("${") ? key : "${" + type + "." + key + "}",
|
|
127
|
-
keyValue[key]
|
|
128
|
-
);
|
|
129
|
-
});
|
|
130
|
-
},
|
|
131
|
-
/**
|
|
132
|
-
* 表单编辑权限动态控制
|
|
133
|
-
* @param pageContext
|
|
134
|
-
* @param keyValue [
|
|
135
|
-
{
|
|
136
|
-
name: '_all_fields', // _all_fields 表示所有字段
|
|
137
|
-
show: true,
|
|
138
|
-
readonly: true,
|
|
139
|
-
disabled: true,
|
|
140
|
-
required: true,
|
|
141
|
-
rules: [
|
|
142
|
-
{
|
|
143
|
-
required: true,
|
|
144
|
-
trigger: 'blur'
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
type: 'email',
|
|
148
|
-
trigger: ['blur', 'change']
|
|
149
|
-
}
|
|
150
|
-
]
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
name: 'xxxx',
|
|
154
|
-
show: true,
|
|
155
|
-
readonly: true,
|
|
156
|
-
disabled: true,
|
|
157
|
-
required: true,
|
|
158
|
-
rules: [
|
|
159
|
-
{
|
|
160
|
-
required: true,
|
|
161
|
-
message: 'Please input email address',
|
|
162
|
-
trigger: 'blur'
|
|
163
|
-
},
|
|
164
|
-
{
|
|
165
|
-
type: 'email',
|
|
166
|
-
message: 'Please input correct email address',
|
|
167
|
-
trigger: ['blur', 'change']
|
|
168
|
-
}
|
|
169
|
-
]
|
|
170
|
-
}
|
|
171
|
-
]
|
|
172
|
-
*/
|
|
173
|
-
dynamicControlFormEdit: function(pageContext, rules, isInit) {
|
|
174
|
-
if (isInit) {
|
|
175
|
-
packageInitInfo(pageContext, "dynamicControlFormEdit", rules);
|
|
176
|
-
} else {
|
|
177
|
-
updateFormItemEditState(pageContext, rules);
|
|
178
|
-
}
|
|
179
|
-
},
|
|
180
|
-
/**
|
|
181
|
-
* 禁用所有字段
|
|
182
|
-
* @param pageContext 页面上下文
|
|
183
|
-
*/
|
|
184
|
-
disabledAllFields(pageContext) {
|
|
185
|
-
disabledAllFields(pageContext);
|
|
186
|
-
},
|
|
187
|
-
/**
|
|
188
|
-
* 控制表格编辑权限
|
|
189
|
-
* @param pageContext 页面上下文
|
|
190
|
-
* @param rules
|
|
191
|
-
* @param tableCode 列表的“自定义编码”配置
|
|
192
|
-
*/
|
|
193
|
-
dynamicControlTableEdit(pageContext, rules, tableCode) {
|
|
194
|
-
dynamicControlTableEdit(pageContext, rules, tableCode);
|
|
195
|
-
},
|
|
196
|
-
/**
|
|
197
|
-
* 调用服务流,
|
|
198
|
-
* @param pageContext
|
|
199
|
-
* @param flowCode
|
|
200
|
-
* @returns
|
|
201
|
-
*/
|
|
202
|
-
executeServiceFlow: function(pageContext, flowCode, params) {
|
|
203
|
-
const pageCode = pageContext.code;
|
|
204
|
-
if (!params) {
|
|
205
|
-
params = {
|
|
206
|
-
entity: pageContext.entity.data,
|
|
207
|
-
serviceVariables: {},
|
|
208
|
-
requestParams: getAdditionalParamMap(pageContext),
|
|
209
|
-
taskParamMap: pageContext.entity.task,
|
|
210
|
-
dynamicDimensionValue: [],
|
|
211
|
-
dynamicSortValue: ""
|
|
212
|
-
};
|
|
213
|
-
}
|
|
214
|
-
if (!params.entity) {
|
|
215
|
-
params.entity = pageContext.entity.data;
|
|
216
|
-
}
|
|
217
|
-
if (!params.requestParams) {
|
|
218
|
-
params.requestParams = getAdditionalParamMap(pageContext);
|
|
219
|
-
}
|
|
220
|
-
if (!params.taskParamMap) {
|
|
221
|
-
params.taskParamMap = pageContext.entity.task;
|
|
222
|
-
}
|
|
223
|
-
const backendUrl = pageContext.backendUrl;
|
|
224
|
-
const baseUrl = getBaseUrl(backendUrl, pageContext.isTest);
|
|
225
|
-
return http.post(`${baseUrl}/dsc/service-flow/execute/${pageCode}/${flowCode}`, params);
|
|
226
|
-
},
|
|
227
|
-
openPage: function(pageContext, openParam) {
|
|
228
|
-
bus.$emit(pageContext.code + "_open-dialog", {
|
|
229
|
-
pageContext,
|
|
230
|
-
eventParams: openParam.eventParams,
|
|
231
|
-
configureObj: { props: { linkPage: openParam } }
|
|
232
|
-
});
|
|
233
|
-
},
|
|
234
|
-
/**
|
|
235
|
-
* 刷新页面
|
|
236
|
-
* @param pageContext
|
|
237
|
-
*/
|
|
238
|
-
refreshPage: function(pageContext, id) {
|
|
239
|
-
refreshPage(pageContext, id);
|
|
240
|
-
},
|
|
241
|
-
/**
|
|
242
|
-
* 刷新表单中子表内容
|
|
243
|
-
* @param {*} pageContext 页面配置信息
|
|
244
|
-
* @param {*} tableCode 表格组件中“自定义编码”的值
|
|
245
|
-
*/
|
|
246
|
-
refreshSubTableHandle: function(pageContext, tableCode) {
|
|
247
|
-
let tableUuid;
|
|
248
|
-
const ref = getComponentRefByCode(pageContext, tableCode);
|
|
249
|
-
if (ref) {
|
|
250
|
-
const configure = ref.getConfigure();
|
|
251
|
-
if (configure && configure.uuid && configure.name && configure.name === "table") {
|
|
252
|
-
tableUuid = configure.uuid;
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
if (tableUuid) {
|
|
256
|
-
bus.$emit("_refreshSubTableHandle_" + tableUuid);
|
|
257
|
-
} else {
|
|
258
|
-
console.error("tableUUid is undefined");
|
|
259
|
-
}
|
|
260
|
-
},
|
|
261
|
-
// 对外开放的api方法更新子表集合
|
|
262
|
-
refreshChildData(pageContext, tableCode, data) {
|
|
263
|
-
let tableUuid;
|
|
264
|
-
const ref = getComponentRefByCode(pageContext, tableCode);
|
|
265
|
-
if (ref) {
|
|
266
|
-
const configure = ref.getConfigure();
|
|
267
|
-
if (configure && configure.uuid && configure.name && configure.name === "table") {
|
|
268
|
-
tableUuid = configure.uuid;
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
if (tableUuid) {
|
|
272
|
-
bus.$emit("_refreshChildData_" + tableUuid, data);
|
|
273
|
-
} else {
|
|
274
|
-
console.error("tableUUid is undefined");
|
|
275
|
-
}
|
|
276
|
-
},
|
|
277
|
-
// 根据key获得serverConfig中配置的信息
|
|
278
|
-
getServerConfigValue(key) {
|
|
279
|
-
return window["$vueApp"].config.globalProperties[key];
|
|
280
|
-
},
|
|
281
|
-
// 获得当前系统的后端访问路径
|
|
282
|
-
getBackendUrl(pageContext) {
|
|
283
|
-
return getBaseUrl(pageContext.backendUrl, false);
|
|
284
|
-
},
|
|
285
|
-
// 获得平台后端访问路径
|
|
286
|
-
getPlateBackendUrl() {
|
|
287
|
-
return window["$vueApp"].config.globalProperties.baseAPI;
|
|
288
|
-
},
|
|
289
|
-
// 获得实体
|
|
290
|
-
getEntity(pageContext) {
|
|
291
|
-
return pageContext.entity.data;
|
|
292
|
-
},
|
|
293
|
-
// 获得实体属性值
|
|
294
|
-
getEntityValue(pageContext, key) {
|
|
295
|
-
return pageContext.entity.data ? pageContext.entity.data[key] : null;
|
|
296
|
-
},
|
|
297
|
-
// 获得页面变量
|
|
298
|
-
getPageData(pageContext) {
|
|
299
|
-
return pageContext.entity.page;
|
|
300
|
-
},
|
|
301
|
-
// 获得页面变量属性值
|
|
302
|
-
getPageDataValue(pageContext, key) {
|
|
303
|
-
return pageContext.entity.page ? pageContext.entity.page[key] : null;
|
|
304
|
-
},
|
|
305
|
-
// 获得附加参数对象
|
|
306
|
-
getAdditionalParams(pageContext) {
|
|
307
|
-
return getAdditionalParamMap(pageContext);
|
|
308
|
-
},
|
|
309
|
-
// 获得某附加参数值
|
|
310
|
-
getAdditionalParamValue(pageContext, key) {
|
|
311
|
-
const param = getAdditionalParamMap(pageContext);
|
|
312
|
-
return param ? param[key] : null;
|
|
313
|
-
},
|
|
314
|
-
// 是否是移动端
|
|
315
|
-
isMobile() {
|
|
316
|
-
return isMobileBrowser();
|
|
317
|
-
},
|
|
318
|
-
// 根据获取组件引用对象
|
|
319
|
-
getComponentRefByProp(pageContext, prop) {
|
|
320
|
-
return getComponentRefByCode(pageContext, prop);
|
|
321
|
-
},
|
|
322
|
-
// 根据组件唯一编码获取组件引用对象
|
|
323
|
-
getComponentRefByCode(pageContext, code) {
|
|
324
|
-
return getComponentRef(pageContext, code);
|
|
325
|
-
},
|
|
326
|
-
// 获得表单数据查看信息,例如:下拉框选项名等
|
|
327
|
-
getFormViewData(pageContext) {
|
|
328
|
-
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
329
|
-
const entity = pageContext.entity ? pageContext.entity : {};
|
|
330
|
-
const viewEntity = deepCopy(entity);
|
|
331
|
-
const optionSourceMap = getOptionDatasSourceMap(pageContext);
|
|
332
|
-
for (const uuid in optionSourceMap) {
|
|
333
|
-
const cacheOptions = getComponentOptionDatasFromPage(pageContext, uuid);
|
|
334
|
-
const componentRef = getComponentRef(pageContext, uuid);
|
|
335
|
-
if (componentRef) {
|
|
336
|
-
const componentConfigure = componentRef.getConfigure();
|
|
337
|
-
if (componentConfigure) {
|
|
338
|
-
if (((_b = (_a = componentConfigure.props) == null ? void 0 : _a.dataOrigin) == null ? void 0 : _b.optionValueSetType) && (((_d = (_c = componentConfigure.props) == null ? void 0 : _c.dataOrigin) == null ? void 0 : _d.optionValueSetType) === "static" || ((_f = (_e = componentConfigure.props) == null ? void 0 : _e.dataOrigin) == null ? void 0 : _f.optionValueSetType) === "optionGroup")) {
|
|
339
|
-
if (componentConfigure.name && (componentConfigure.name === "select" && ((_h = (_g = componentConfigure.props) == null ? void 0 : _g.base) == null ? void 0 : _h.multiple) || componentConfigure.name === "checkbox")) {
|
|
340
|
-
const dynamicFields = getFormModelFields(pageContext, componentConfigure);
|
|
341
|
-
const propValue = getVariableValue(viewEntity, dynamicFields);
|
|
342
|
-
if (propValue) {
|
|
343
|
-
const propValues = propValue.split(",");
|
|
344
|
-
const label = getSelectShowLable(propValues, cacheOptions);
|
|
345
|
-
setVariableValue(viewEntity, dynamicFields, label);
|
|
346
|
-
}
|
|
347
|
-
} else {
|
|
348
|
-
const dynamicFields = getFormModelFields(pageContext, componentConfigure);
|
|
349
|
-
const propValue = getVariableValue(viewEntity, dynamicFields);
|
|
350
|
-
const label = getSelectShowLable(propValue, cacheOptions);
|
|
351
|
-
setVariableValue(viewEntity, dynamicFields, label);
|
|
352
|
-
}
|
|
353
|
-
}
|
|
1
|
+
import { getOptionDatasSourceMap as e, getComponentOptionDatasFromPage as t, getVariableValue as n, setVariableValue as i, setValueForVariableName as o } from "../page-helper-util.js";
|
|
2
|
+
import { getComponentRef as a, getComponentRefByCode as r } from "../global-refs.js";
|
|
3
|
+
import s from "../eventBus.js";
|
|
4
|
+
import l from "agilebuilder-ui/src/utils/request";
|
|
5
|
+
import { getFormData as c, getAdditionalParamMap as u, refreshPage as f } from "../events/standard-event.js";
|
|
6
|
+
import { dynamicControlTableEdit as m, disabledAllFields as p, updateFormItemEditState as d } from "../events/validator-util.js";
|
|
7
|
+
import { deepCopy as g, getBaseUrl as y } from "../common-util.js";
|
|
8
|
+
import { isMobileBrowser as b } from "agilebuilder-ui/src/utils/common-util";
|
|
9
|
+
import { getFormModelFields as h, getModelFields as E } from "../page-init-util.js";
|
|
10
|
+
import { getCustomFunc as P } from "../events/event-util.js";
|
|
11
|
+
const C = { showElement: function(e2, t2, n2) {
|
|
12
|
+
n2 ? $(e2, "showElement", t2) : t2.forEach((t3) => {
|
|
13
|
+
const n3 = r(e2, t3);
|
|
14
|
+
n3 && n3.show();
|
|
15
|
+
});
|
|
16
|
+
}, hideElement: function(e2, t2, n2) {
|
|
17
|
+
n2 ? $(e2, "hideElement", t2) : t2.forEach((t3) => {
|
|
18
|
+
const n3 = r(e2, t3);
|
|
19
|
+
n3 && n3.hide();
|
|
20
|
+
});
|
|
21
|
+
}, enableElement: function(e2, t2, n2) {
|
|
22
|
+
n2 ? $(e2, "enableElement", t2) : t2.forEach((t3) => {
|
|
23
|
+
const n3 = r(e2, t3);
|
|
24
|
+
if (n3) {
|
|
25
|
+
const e3 = n3.getConfigure();
|
|
26
|
+
e3 && e3.runtime.props && (e3.runtime.props.state = "enabled");
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
}, disableElement: function(e2, t2, n2) {
|
|
30
|
+
n2 ? $(e2, "disableElement", t2) : t2.forEach((t3) => {
|
|
31
|
+
const n3 = r(e2, t3);
|
|
32
|
+
if (n3) {
|
|
33
|
+
const e3 = n3.getConfigure();
|
|
34
|
+
e3 && e3.runtime.props && (e3.runtime.props.state = "disabled");
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
}, setEntityDataValue: function(e2, t2) {
|
|
38
|
+
Object.keys(t2).forEach((n2) => {
|
|
39
|
+
o(e2.entity, n2.startsWith("${") ? n2 : "${data." + n2 + "}", t2[n2]);
|
|
40
|
+
});
|
|
41
|
+
}, setEntityPageValue: function(e2, t2) {
|
|
42
|
+
Object.keys(t2).forEach((n2) => {
|
|
43
|
+
o(e2.entity, n2.startsWith("${") ? n2 : "${page." + n2 + "}", t2[n2]);
|
|
44
|
+
});
|
|
45
|
+
}, setEntityValueByType: function(e2, t2, n2) {
|
|
46
|
+
Object.keys(n2).forEach((i2) => {
|
|
47
|
+
o(e2.entity, i2.startsWith("${") ? i2 : "${" + t2 + "." + i2 + "}", n2[i2]);
|
|
48
|
+
});
|
|
49
|
+
}, dynamicControlFormEdit: function(e2, t2, n2) {
|
|
50
|
+
n2 ? $(e2, "dynamicControlFormEdit", t2) : d(e2, t2);
|
|
51
|
+
}, disabledAllFields(e2) {
|
|
52
|
+
p(e2);
|
|
53
|
+
}, dynamicControlTableEdit(e2, t2, n2) {
|
|
54
|
+
m(e2, t2, n2);
|
|
55
|
+
}, executeServiceFlow: function(e2, t2, n2) {
|
|
56
|
+
const i2 = e2.code;
|
|
57
|
+
n2 || (n2 = { entity: e2.entity.data, serviceVariables: {}, requestParams: u(e2), taskParamMap: e2.entity.task, dynamicDimensionValue: [], dynamicSortValue: "" }), n2.entity || (n2.entity = e2.entity.data), n2.requestParams || (n2.requestParams = u(e2)), n2.taskParamMap || (n2.taskParamMap = e2.entity.task);
|
|
58
|
+
const o2 = e2.backendUrl, a2 = y(o2, e2.isTest);
|
|
59
|
+
return l.post(`${a2}/dsc/service-flow/execute/${i2}/${t2}`, n2);
|
|
60
|
+
}, openPage: function(e2, t2) {
|
|
61
|
+
s.$emit(e2.code + "_open-dialog", { pageContext: e2, eventParams: t2.eventParams, configureObj: { props: { linkPage: t2 } } });
|
|
62
|
+
}, refreshPage: function(e2, t2) {
|
|
63
|
+
f(e2, t2);
|
|
64
|
+
}, refreshSubTableHandle: function(e2, t2) {
|
|
65
|
+
let n2;
|
|
66
|
+
const i2 = r(e2, t2);
|
|
67
|
+
if (i2) {
|
|
68
|
+
const e3 = i2.getConfigure();
|
|
69
|
+
e3 && e3.uuid && e3.name && "table" === e3.name && (n2 = e3.uuid);
|
|
70
|
+
}
|
|
71
|
+
n2 && s.$emit("_refreshSubTableHandle_" + n2);
|
|
72
|
+
}, refreshChildData(e2, t2, n2) {
|
|
73
|
+
let i2;
|
|
74
|
+
const o2 = r(e2, t2);
|
|
75
|
+
if (o2) {
|
|
76
|
+
const e3 = o2.getConfigure();
|
|
77
|
+
e3 && e3.uuid && e3.name && "table" === e3.name && (i2 = e3.uuid);
|
|
78
|
+
}
|
|
79
|
+
i2 && s.$emit("_refreshChildData_" + i2, n2);
|
|
80
|
+
}, getServerConfigValue: (e2) => window.$vueApp.config.globalProperties[e2], getBackendUrl: (e2) => y(e2.backendUrl, false), getPlateBackendUrl: () => window.$vueApp.config.globalProperties.baseAPI, getEntity: (e2) => e2.entity.data, getEntityValue: (e2, t2) => e2.entity.data ? e2.entity.data[t2] : null, getPageData: (e2) => e2.entity.page, getPageDataValue: (e2, t2) => e2.entity.page ? e2.entity.page[t2] : null, getAdditionalParams: (e2) => u(e2), getAdditionalParamValue(e2, t2) {
|
|
81
|
+
const n2 = u(e2);
|
|
82
|
+
return n2 ? n2[t2] : null;
|
|
83
|
+
}, isMobile: () => b(), getComponentRefByProp: (e2, t2) => r(e2, t2), getComponentRefByCode: (e2, t2) => a(e2, t2), getFormViewData(o2) {
|
|
84
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
85
|
+
const r2 = o2.entity ? o2.entity : {}, s2 = g(r2), l2 = e(o2);
|
|
86
|
+
for (const e2 in l2) {
|
|
87
|
+
const r3 = t(o2, e2), l3 = a(o2, e2);
|
|
88
|
+
if (l3) {
|
|
89
|
+
const e3 = l3.getConfigure();
|
|
90
|
+
if (e3 && ((_b = (_a = e3.props) == null ? void 0 : _a.dataOrigin) == null ? void 0 : _b.optionValueSetType) && ("static" === ((_d = (_c = e3.props) == null ? void 0 : _c.dataOrigin) == null ? void 0 : _d.optionValueSetType) || "optionGroup" === ((_f = (_e = e3.props) == null ? void 0 : _e.dataOrigin) == null ? void 0 : _f.optionValueSetType))) if (e3.name && ("select" === e3.name && ((_h = (_g = e3.props) == null ? void 0 : _g.base) == null ? void 0 : _h.multiple) || "checkbox" === e3.name)) {
|
|
91
|
+
const t2 = h(o2, e3), a2 = n(s2, t2);
|
|
92
|
+
if (a2) {
|
|
93
|
+
const e4 = v(a2.split(","), r3);
|
|
94
|
+
i(s2, t2, e4);
|
|
354
95
|
}
|
|
96
|
+
} else {
|
|
97
|
+
const t2 = h(o2, e3), a2 = v(n(s2, t2), r3);
|
|
98
|
+
i(s2, t2, a2);
|
|
355
99
|
}
|
|
356
100
|
}
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
if (
|
|
364
|
-
const
|
|
365
|
-
|
|
366
|
-
const componentConfigure = componentRef.getConfigure();
|
|
367
|
-
const prop = componentConfigure.code ? componentConfigure.code : listCode;
|
|
368
|
-
const dynamicFields = getModelFields(componentConfigure, prop);
|
|
369
|
-
const gridData = getVariableValue(viewEntity, dynamicFields);
|
|
370
|
-
const subTableOptions = componentRef.getTableSelectOptions(listCode);
|
|
371
|
-
packageSubTableShowLable(subTableOptions, gridData);
|
|
372
|
-
}
|
|
101
|
+
}
|
|
102
|
+
const c2 = o2.listCodesMap;
|
|
103
|
+
for (const e2 in c2) {
|
|
104
|
+
let t2;
|
|
105
|
+
if (e2.indexOf("__") > 0 && (t2 = e2.substring(e2.lastIndexOf("__") + 2)), t2) {
|
|
106
|
+
const i2 = a(o2, t2);
|
|
107
|
+
if (i2) {
|
|
108
|
+
const t3 = i2.getConfigure(), o3 = t3.code ? t3.code : e2, a2 = E(t3, o3), r3 = n(s2, a2);
|
|
109
|
+
k(i2.getTableSelectOptions(e2), r3);
|
|
373
110
|
}
|
|
374
111
|
}
|
|
375
|
-
return viewEntity.data;
|
|
376
|
-
},
|
|
377
|
-
/**
|
|
378
|
-
* 重新走gets请求获得表单数据
|
|
379
|
-
* @param pageContext
|
|
380
|
-
* @param id
|
|
381
|
-
* @returns commonEntity数据
|
|
382
|
-
*/
|
|
383
|
-
getFormData(pageContext, id) {
|
|
384
|
-
return getFormData(pageContext, id);
|
|
385
|
-
},
|
|
386
|
-
/**
|
|
387
|
-
* 获取自定义方法
|
|
388
|
-
* @param pageContext 页面上下文
|
|
389
|
-
* @param funcName 自定义方法名
|
|
390
|
-
* @returns
|
|
391
|
-
*/
|
|
392
|
-
getCustomFunc(pageContext, funcName) {
|
|
393
|
-
return getCustomFunc(pageContext, funcName);
|
|
394
112
|
}
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
let propLabel;
|
|
406
|
-
if (column && column.componentType && (column.componentType === "multiselect" || column.componentType === "checkbox")) {
|
|
407
|
-
if (propValue) {
|
|
408
|
-
const propValues = propValue.split(",");
|
|
409
|
-
propLabel = getSelectShowLable(propValues, propSelectOptions);
|
|
410
|
-
}
|
|
411
|
-
} else {
|
|
412
|
-
propLabel = getSelectShowLable(propValue, propSelectOptions);
|
|
113
|
+
return s2.data;
|
|
114
|
+
}, getFormData: (e2, t2) => c(e2, t2), getCustomFunc: (e2, t2) => P(e2, t2) };
|
|
115
|
+
function k(e2, t2) {
|
|
116
|
+
e2 && t2 && t2.forEach((t3) => {
|
|
117
|
+
Object.keys(e2).forEach((n2) => {
|
|
118
|
+
const i2 = t3[n2], o2 = e2[n2], a2 = o2.options, r2 = o2.column;
|
|
119
|
+
let s2;
|
|
120
|
+
if (r2 && r2.componentType && ("multiselect" === r2.componentType || "checkbox" === r2.componentType)) {
|
|
121
|
+
if (i2) {
|
|
122
|
+
s2 = v(i2.split(","), a2);
|
|
413
123
|
}
|
|
414
|
-
|
|
415
|
-
|
|
124
|
+
} else s2 = v(i2, a2);
|
|
125
|
+
t3[n2] = s2;
|
|
416
126
|
});
|
|
417
|
-
}
|
|
127
|
+
});
|
|
418
128
|
}
|
|
419
|
-
function
|
|
420
|
-
let
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
propValue.forEach((val) => {
|
|
425
|
-
showLabel = showLabel + getSingleSelectShowLable(propValue, propSelectOptions) + ",";
|
|
426
|
-
});
|
|
427
|
-
if (showLabel.indexOf(",") > 0) {
|
|
428
|
-
showLabel = showLabel.substring(0, showLabel.lastIndexOf(","));
|
|
429
|
-
}
|
|
430
|
-
} else {
|
|
431
|
-
showLabel = propValue;
|
|
432
|
-
showLabel = getSingleSelectShowLable(propValue, propSelectOptions);
|
|
433
|
-
}
|
|
434
|
-
}
|
|
435
|
-
return showLabel;
|
|
129
|
+
function v(e2, t2) {
|
|
130
|
+
let n2;
|
|
131
|
+
return null != e2 && t2 && (Array.isArray(e2) ? (n2 = "", e2.forEach((i2) => {
|
|
132
|
+
n2 = n2 + V(e2, t2) + ",";
|
|
133
|
+
}), n2.indexOf(",") > 0 && (n2 = n2.substring(0, n2.lastIndexOf(",")))) : (n2 = e2, n2 = V(e2, t2))), n2;
|
|
436
134
|
}
|
|
437
|
-
function
|
|
438
|
-
let
|
|
439
|
-
if (
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
showLabel = optLabel;
|
|
445
|
-
break;
|
|
446
|
-
}
|
|
135
|
+
function V(e2, t2) {
|
|
136
|
+
let n2 = e2;
|
|
137
|
+
if (null != e2 && t2) for (let i2 = 0; i2 < t2.length; i2++) {
|
|
138
|
+
const o2 = t2[i2].value, a2 = t2[i2].label ? t2[i2].label : t2[i2].name;
|
|
139
|
+
if (e2 + "" == o2 + "" && null != a2) {
|
|
140
|
+
n2 = a2;
|
|
141
|
+
break;
|
|
447
142
|
}
|
|
448
143
|
}
|
|
449
|
-
return
|
|
144
|
+
return n2;
|
|
450
145
|
}
|
|
451
|
-
function
|
|
452
|
-
|
|
453
|
-
pageContext.initInfo = {};
|
|
454
|
-
}
|
|
455
|
-
pageContext.initInfo[type] = settings;
|
|
146
|
+
function $(e2, t2, n2) {
|
|
147
|
+
e2.initInfo || (e2.initInfo = {}), e2.initInfo[t2] = n2;
|
|
456
148
|
}
|
|
457
149
|
export {
|
|
458
|
-
functions
|
|
150
|
+
C as functions
|
|
459
151
|
};
|