super-page-runtime 2.1.932 → 2.2.0
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 +6 -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 +137 -433
- package/dist/es/components/runtime/utils/assemblys-config.js +12 -366
- package/dist/es/components/runtime/utils/barcode-util.js +10 -33
- package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +138 -300
- package/dist/es/components/runtime/utils/charts/chart-gauge-util.js +29 -66
- package/dist/es/components/runtime/utils/charts/chart-pie-util.js +71 -147
- package/dist/es/components/runtime/utils/charts/chart-radar-util.js +52 -122
- package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +40 -98
- package/dist/es/components/runtime/utils/charts/chart-util.js +237 -478
- package/dist/es/components/runtime/utils/common-util.js +82 -152
- package/dist/es/components/runtime/utils/eventBus.js +3 -9
- package/dist/es/components/runtime/utils/events/event-util.js +361 -727
- package/dist/es/components/runtime/utils/events/print-label.js +73 -140
- package/dist/es/components/runtime/utils/events/standard-event.js +838 -2285
- package/dist/es/components/runtime/utils/events/validator-util.js +237 -536
- package/dist/es/components/runtime/utils/form/date-shortcuts.js +29 -88
- package/dist/es/components/runtime/utils/form/scan-util.js +60 -154
- package/dist/es/components/runtime/utils/global-refs.js +45 -69
- package/dist/es/components/runtime/utils/i18n-util.js +12 -20
- package/dist/es/components/runtime/utils/interfaces/page-design-types.js +2 -7
- package/dist/es/components/runtime/utils/page-helper-util.js +298 -628
- package/dist/es/components/runtime/utils/page-init-util.js +134 -368
- package/dist/es/components/runtime/utils/page-permission-util.js +24 -531
- package/dist/es/components/runtime/utils/page-store.js +8 -12
- 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.js +49 -84
- package/dist/es/components/runtime/utils/tree-utils.js +18 -36
- 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 +19 -75
- 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 +37 -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 +54 -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 +48 -169
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.js +2 -2
- 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 -107
- 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 -164
- 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 -115
- 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 -116
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +208 -439
- 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 +63 -226
- 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 +168 -512
- 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 +23 -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 +311 -800
- 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 +251 -592
- 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 +43 -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 +44 -154
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +36 -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 +54 -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 +69 -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 +28 -98
- 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 +22 -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 +52 -173
- 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 +58 -249
- 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 +34 -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 +5 -5
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +13 -50
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue3.js +1 -0
- 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 +66 -189
- 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 +91 -243
- 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 +82 -261
- 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 +41 -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/object-render.vue.js +133 -252
- 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 +19 -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 +22 -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 +21 -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/super-page-dialog.vue.js +18 -134
- package/dist/es/components/runtime/views/super-page-dialog.vue2.js +2 -2
- package/dist/es/components/runtime/views/super-page.vue.js +233 -708
- 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 +74 -73
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent, ref, openBlock, createElementBlock, unref, createBlock } from "vue";
|
|
1
|
+
import { defineComponent as e, ref as t, openBlock as u, createElementBlock as n, unref as i, createBlock as l } from "vue";
|
|
2
2
|
import "agilebuilder-ui";
|
|
3
3
|
import "agilebuilder-ui/src/utils/request";
|
|
4
4
|
import "dayjs";
|
|
@@ -6,120 +6,48 @@ import "agilebuilder-ui/src/utils/calculator/calculator-util";
|
|
|
6
6
|
import "../../../../utils/global-refs.js";
|
|
7
7
|
import "agilebuilder-ui/src/utils/common-util";
|
|
8
8
|
import "agilebuilder-ui/src/utils/util";
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
const pageType = props.pageContext.pageType;
|
|
20
|
-
const tableConfigure = ref(null);
|
|
21
|
-
const tableUuid = props.configure.uuid;
|
|
22
|
-
const superGridItems = props.pageContext.superGridItems;
|
|
23
|
-
const superGridSetting = superGridItems ? superGridItems[tableUuid] : null;
|
|
24
|
-
tableConfigure.value = superGridSetting ? superGridSetting.configure ? JSON.parse(superGridSetting.configure) : null : props.configure;
|
|
25
|
-
const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
|
|
26
|
-
runtimeInfo.style;
|
|
27
|
-
runtimeInfo.class;
|
|
28
|
-
const gridRef = ref(null);
|
|
29
|
-
function validatorSunTableListData() {
|
|
30
|
-
if (pageType && pageType === "form") {
|
|
31
|
-
return gridRef.value.validatorSunTableListData();
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
function setSafeDeleteTableCode(code) {
|
|
35
|
-
if (props.pageContext.entity.data._SAFE_DELETE_TABLE_NAMES) {
|
|
36
|
-
props.pageContext.entity.data._SAFE_DELETE_TABLE_NAMES.push(code);
|
|
37
|
-
} else {
|
|
38
|
-
props.pageContext.entity.data._SAFE_DELETE_TABLE_NAMES = [code];
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
function clearSelections() {
|
|
42
|
-
return gridRef.value.clearSelections();
|
|
43
|
-
}
|
|
44
|
-
function refresh() {
|
|
45
|
-
if (pageType && pageType === "list") {
|
|
46
|
-
return gridRef.value.refresh();
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
function createRow() {
|
|
50
|
-
return gridRef.value.createRow();
|
|
51
|
-
}
|
|
52
|
-
function getSelections() {
|
|
53
|
-
return gridRef.value.getSelections();
|
|
54
|
-
}
|
|
55
|
-
function getSelectionIds() {
|
|
56
|
-
return gridRef.value.getSelectionIds();
|
|
57
|
-
}
|
|
58
|
-
function getTableConfigure() {
|
|
59
|
-
return gridRef.value.getTableConfigure();
|
|
60
|
-
}
|
|
61
|
-
function isDeleteChange(value) {
|
|
62
|
-
if (pageType && pageType === "list") {
|
|
63
|
-
gridRef.value.isDeleteChange(value);
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
function showMobileSearch() {
|
|
67
|
-
gridRef.value.showMobileSearch();
|
|
68
|
-
}
|
|
69
|
-
function getTableSelectOptions() {
|
|
70
|
-
if (gridRef.value) {
|
|
71
|
-
return gridRef.value.getTableSelectOptions();
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
function dynamicControlTableEdit(pageContext, customRules, listCode) {
|
|
75
|
-
if (gridRef.value) {
|
|
76
|
-
gridRef.value.dynamicControlTableEdit(pageContext, customRules, listCode);
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
function getTableUuid() {
|
|
80
|
-
return props.configure.uuid;
|
|
81
|
-
}
|
|
82
|
-
function doLayout(hiddenColumns) {
|
|
83
|
-
if (gridRef.value) {
|
|
84
|
-
gridRef.value.doLayout(hiddenColumns);
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
__expose({
|
|
88
|
-
refresh,
|
|
89
|
-
createRow,
|
|
90
|
-
clearSelections,
|
|
91
|
-
getSelections,
|
|
92
|
-
getSelectionIds,
|
|
93
|
-
getTableConfigure,
|
|
94
|
-
isDeleteChange,
|
|
95
|
-
validatorSunTableListData,
|
|
96
|
-
showMobileSearch,
|
|
97
|
-
getTableSelectOptions,
|
|
98
|
-
dynamicControlTableEdit,
|
|
99
|
-
getTableUuid,
|
|
100
|
-
doLayout
|
|
101
|
-
});
|
|
102
|
-
return (_ctx, _cache) => {
|
|
103
|
-
return openBlock(), createElementBlock("div", null, [
|
|
104
|
-
unref(pageType) && unref(pageType) === "form" ? (openBlock(), createBlock(_sfc_main$1, {
|
|
105
|
-
key: 0,
|
|
106
|
-
ref_key: "gridRef",
|
|
107
|
-
ref: gridRef,
|
|
108
|
-
pageContext: _ctx.pageContext,
|
|
109
|
-
configure: tableConfigure.value,
|
|
110
|
-
onSetSafeDeleteTableCode: setSafeDeleteTableCode
|
|
111
|
-
}, null, 8, ["pageContext", "configure"])) : (openBlock(), createBlock(_sfc_main$2, {
|
|
112
|
-
key: 1,
|
|
113
|
-
ref_key: "gridRef",
|
|
114
|
-
ref: gridRef,
|
|
115
|
-
pageContext: _ctx.pageContext,
|
|
116
|
-
configure: tableConfigure.value,
|
|
117
|
-
onSetSafeDeleteTableCode: setSafeDeleteTableCode
|
|
118
|
-
}, null, 8, ["pageContext", "configure"]))
|
|
119
|
-
]);
|
|
120
|
-
};
|
|
9
|
+
import o from "./sub-table-runtime.vue.js";
|
|
10
|
+
import r from "./main-table-runtime.vue.js";
|
|
11
|
+
const a = e({ __name: "table-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: a2 }) {
|
|
12
|
+
const c = e2, s = c.pageContext.pageType, f = t(null), g = c.configure.uuid, p = c.pageContext.superGridItems, d = p ? p[g] : null;
|
|
13
|
+
f.value = d ? d.configure ? JSON.parse(d.configure) : null : c.configure;
|
|
14
|
+
const m = c.configure.runtime ? c.configure.runtime : {};
|
|
15
|
+
m.style, m.class;
|
|
16
|
+
const v = t(null);
|
|
17
|
+
function b(e3) {
|
|
18
|
+
c.pageContext.entity.data._SAFE_DELETE_TABLE_NAMES ? c.pageContext.entity.data._SAFE_DELETE_TABLE_NAMES.push(e3) : c.pageContext.entity.data._SAFE_DELETE_TABLE_NAMES = [e3];
|
|
121
19
|
}
|
|
122
|
-
|
|
20
|
+
return a2({ refresh: function() {
|
|
21
|
+
if (s && "list" === s)
|
|
22
|
+
return v.value.refresh();
|
|
23
|
+
}, createRow: function() {
|
|
24
|
+
return v.value.createRow();
|
|
25
|
+
}, clearSelections: function() {
|
|
26
|
+
return v.value.clearSelections();
|
|
27
|
+
}, getSelections: function() {
|
|
28
|
+
return v.value.getSelections();
|
|
29
|
+
}, getSelectionIds: function() {
|
|
30
|
+
return v.value.getSelectionIds();
|
|
31
|
+
}, getTableConfigure: function() {
|
|
32
|
+
return v.value.getTableConfigure();
|
|
33
|
+
}, isDeleteChange: function(e3) {
|
|
34
|
+
s && "list" === s && v.value.isDeleteChange(e3);
|
|
35
|
+
}, validatorSunTableListData: function() {
|
|
36
|
+
if (s && "form" === s)
|
|
37
|
+
return v.value.validatorSunTableListData();
|
|
38
|
+
}, showMobileSearch: function() {
|
|
39
|
+
v.value.showMobileSearch();
|
|
40
|
+
}, getTableSelectOptions: function() {
|
|
41
|
+
if (v.value)
|
|
42
|
+
return v.value.getTableSelectOptions();
|
|
43
|
+
}, dynamicControlTableEdit: function(e3, t2, u2) {
|
|
44
|
+
v.value && v.value.dynamicControlTableEdit(e3, t2, u2);
|
|
45
|
+
}, getTableUuid: function() {
|
|
46
|
+
return c.configure.uuid;
|
|
47
|
+
}, doLayout: function(e3) {
|
|
48
|
+
v.value && v.value.doLayout(e3);
|
|
49
|
+
} }), (e3, t2) => (u(), n("div", null, [i(s) && "form" === i(s) ? (u(), l(o, { key: 0, ref_key: "gridRef", ref: v, pageContext: e3.pageContext, configure: f.value, onSetSafeDeleteTableCode: b }, null, 8, ["pageContext", "configure"])) : (u(), l(r, { key: 1, ref_key: "gridRef", ref: v, pageContext: e3.pageContext, configure: f.value, onSetSafeDeleteTableCode: b }, null, 8, ["pageContext", "configure"]))]));
|
|
50
|
+
} });
|
|
123
51
|
export {
|
|
124
|
-
|
|
52
|
+
a as default
|
|
125
53
|
};
|
|
@@ -1,221 +1,62 @@
|
|
|
1
|
-
import { defineComponent, computed, ref, onMounted, nextTick, watch, resolveComponent, openBlock, createElementBlock, normalizeClass, unref, createBlock, createCommentVNode, normalizeStyle, withCtx, createElementVNode, createVNode, toDisplayString } from "vue";
|
|
2
|
-
import { getFormModelFields } from "../../../../utils/page-init-util.js";
|
|
3
|
-
import { getVariableValue, setVariableValue } from "../../../../utils/page-helper-util.js";
|
|
4
|
-
import { getMenuTreeData } from "../../../../utils/tree-utils.js";
|
|
5
|
-
import { handleAfterInitEvent, handleFormEvent } from "../../../../utils/events/event-util.js";
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
},
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
get() {
|
|
20
|
-
return getVariableValue(entity, dynamicFields);
|
|
21
|
-
},
|
|
22
|
-
set(value) {
|
|
23
|
-
setVariableValue(entity, dynamicFields, value);
|
|
24
|
-
}
|
|
1
|
+
import { defineComponent as e, computed as a, ref as n, onMounted as l, nextTick as t, watch as o, resolveComponent as u, openBlock as i, createElementBlock as d, normalizeClass as c, unref as r, createBlock as p, createCommentVNode as s, normalizeStyle as v, withCtx as f, createElementVNode as g, createVNode as y, toDisplayString as h } from "vue";
|
|
2
|
+
import { getFormModelFields as x } from "../../../../utils/page-init-util.js";
|
|
3
|
+
import { getVariableValue as m, setVariableValue as C } from "../../../../utils/page-helper-util.js";
|
|
4
|
+
import { getMenuTreeData as k } from "../../../../utils/tree-utils.js";
|
|
5
|
+
import { handleAfterInitEvent as V, handleFormEvent as T } from "../../../../utils/events/event-util.js";
|
|
6
|
+
const b = ["title"], N = e({ __name: "tree-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: N2 }) {
|
|
7
|
+
var _a, _b;
|
|
8
|
+
const I = e2, S = I.pageContext.entity ? I.pageContext.entity : {};
|
|
9
|
+
let _ = x(I.pageContext, I.configure);
|
|
10
|
+
const j = a({ get: () => m(S, _), set(e3) {
|
|
11
|
+
C(S, _, e3);
|
|
12
|
+
} }), w = n(!!((_b = (_a = I.configure.props) == null ? void 0 : _a.base) == null ? void 0 : _b.lazy)), z = I.configure.runtime ? I.configure.runtime : {}, M = z.style, W = z.class;
|
|
13
|
+
z.headerStyle;
|
|
14
|
+
const A = n(null), D = n(z.props ? z.props : {}), E = n({ id: "nodeId", label: "name", children: "children", isLeaf: "leaf", disabled: "disabled", nodeType: "nodeType", iconType: "iconType", iconValue: "iconValue" }), F = n(false), K = n(null), L = n(null), O = n(""), R = n(false);
|
|
15
|
+
l(() => {
|
|
16
|
+
t(() => {
|
|
17
|
+
const e3 = j.value;
|
|
18
|
+
V(e3, I.pageContext, I.configure, { componentRef: A.value, value: e3, entity: I.pageContext.entity.data, pageData: I.pageContext.entity.page });
|
|
25
19
|
});
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
const selectNode = ref(null);
|
|
48
|
-
const filterText = ref("");
|
|
49
|
-
const isSearch = ref(false);
|
|
50
|
-
onMounted(() => {
|
|
51
|
-
nextTick(() => {
|
|
52
|
-
const value = dynamicModelMethod.value;
|
|
53
|
-
handleAfterInitEvent(value, props.pageContext, props.configure, {
|
|
54
|
-
componentRef: menuTree.value,
|
|
55
|
-
value,
|
|
56
|
-
entity: props.pageContext.entity.data,
|
|
57
|
-
pageData: props.pageContext.entity.page
|
|
58
|
-
});
|
|
59
|
-
});
|
|
60
|
-
});
|
|
61
|
-
if (!isLazy.value) {
|
|
62
|
-
getMenuTreeData(props.pageContext, props.configure).then((treeNodes) => {
|
|
63
|
-
menuData.value = treeNodes;
|
|
64
|
-
isShowTree.value = true;
|
|
65
|
-
});
|
|
66
|
-
} else {
|
|
67
|
-
isShowTree.value = true;
|
|
68
|
-
}
|
|
69
|
-
watch(filterText, (val) => {
|
|
70
|
-
isSearch.value = true;
|
|
71
|
-
menuTree.value.filter(val);
|
|
72
|
-
});
|
|
73
|
-
const filterNode = (value, data) => {
|
|
74
|
-
if (!value) return true;
|
|
75
|
-
return data.name.includes(value);
|
|
76
|
-
};
|
|
77
|
-
function handleNodeClick(data, node, nodeTree) {
|
|
78
|
-
selectNode.value = node;
|
|
79
|
-
handleFormEvent(null, props.pageContext, props.configure, "node-click", {
|
|
80
|
-
data,
|
|
81
|
-
node,
|
|
82
|
-
nodeTree
|
|
83
|
-
});
|
|
84
|
-
}
|
|
85
|
-
function loadNode(node, resolve) {
|
|
86
|
-
const parentId = 0;
|
|
87
|
-
let parentNodeId = "0";
|
|
88
|
-
if (node.level === 0) {
|
|
89
|
-
parentNodeId = parentId + "";
|
|
90
|
-
} else {
|
|
91
|
-
parentNodeId = node.data.nodeId;
|
|
92
|
-
}
|
|
93
|
-
initLoadNode(parentNodeId, node, resolve);
|
|
94
|
-
}
|
|
95
|
-
function initLoadNode(parentNodeId, node, resolve) {
|
|
96
|
-
const param = {
|
|
97
|
-
parentNodeId,
|
|
98
|
-
data: node.data,
|
|
99
|
-
// 节点详细信息,json字符串
|
|
100
|
-
searchValue: filterText,
|
|
101
|
-
// 查询条件
|
|
102
|
-
isSearch: isSearch.value
|
|
103
|
-
// 是否是查询
|
|
104
|
-
};
|
|
105
|
-
getMenuTreeData(props.pageContext, props.configure, parentNodeId, node, param).then(
|
|
106
|
-
(treeNodes) => {
|
|
107
|
-
isSearch.value = false;
|
|
108
|
-
resolve(treeNodes);
|
|
109
|
-
if (parentNodeId === "0") {
|
|
110
|
-
const rootNodeId = treeNodes[0].nodeId;
|
|
111
|
-
loadRootNode(rootNodeId, node);
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
);
|
|
115
|
-
}
|
|
116
|
-
function loadRootNode(rootNodeId, node) {
|
|
117
|
-
const param = {
|
|
118
|
-
parentNodeId: rootNodeId,
|
|
119
|
-
data: node.data,
|
|
120
|
-
// 节点详细信息,json字符串
|
|
121
|
-
searchValue: filterText,
|
|
122
|
-
// 查询条件
|
|
123
|
-
isSearch: isSearch.value
|
|
124
|
-
// 是否是查询
|
|
125
|
-
};
|
|
126
|
-
getMenuTreeData(props.pageContext, props.configure, rootNodeId, node, param).then((children) => {
|
|
127
|
-
isSearch.value = false;
|
|
128
|
-
menuTree.value.updateKeyChildren(rootNodeId, children);
|
|
129
|
-
if (menuTree.value.store.nodesMap[rootNodeId]) {
|
|
130
|
-
menuTree.value.store.nodesMap[rootNodeId].expanded = true;
|
|
20
|
+
}), w.value ? F.value = true : k(I.pageContext, I.configure).then((e3) => {
|
|
21
|
+
K.value = e3, F.value = true;
|
|
22
|
+
}), o(O, (e3) => {
|
|
23
|
+
R.value = true, A.value.filter(e3);
|
|
24
|
+
});
|
|
25
|
+
const U = (e3, a2) => !e3 || a2.name.includes(e3);
|
|
26
|
+
function q(e3, a2, n2) {
|
|
27
|
+
L.value = a2, T(null, I.pageContext, I.configure, "node-click", { data: e3, node: a2, nodeTree: n2 });
|
|
28
|
+
}
|
|
29
|
+
function B(e3, a2) {
|
|
30
|
+
let n2 = "0";
|
|
31
|
+
n2 = 0 === e3.level ? "0" : e3.data.nodeId, function(e4, a3, n3) {
|
|
32
|
+
const l2 = { parentNodeId: e4, data: a3.data, searchValue: O, isSearch: R.value };
|
|
33
|
+
k(I.pageContext, I.configure, e4, a3, l2).then((l3) => {
|
|
34
|
+
if (R.value = false, n3(l3), "0" === e4) {
|
|
35
|
+
!function(e5, a4) {
|
|
36
|
+
const n4 = { parentNodeId: e5, data: a4.data, searchValue: O, isSearch: R.value };
|
|
37
|
+
k(I.pageContext, I.configure, e5, a4, n4).then((a5) => {
|
|
38
|
+
R.value = false, A.value.updateKeyChildren(e5, a5), A.value.store.nodesMap[e5] && (A.value.store.nodesMap[e5].expanded = true);
|
|
39
|
+
});
|
|
40
|
+
}(l3[0].nodeId, a3);
|
|
131
41
|
}
|
|
132
42
|
});
|
|
133
|
-
}
|
|
134
|
-
function getSelectNode() {
|
|
135
|
-
return selectNode.value;
|
|
136
|
-
}
|
|
137
|
-
function expandNode(node) {
|
|
138
|
-
node.loaded = false;
|
|
139
|
-
node.expand();
|
|
140
|
-
}
|
|
141
|
-
function loadTreeNodes() {
|
|
142
|
-
getMenuTreeData(props.pageContext, props.configure).then((treeNodes) => {
|
|
143
|
-
isSearch.value = false;
|
|
144
|
-
menuData.value = treeNodes;
|
|
145
|
-
});
|
|
146
|
-
}
|
|
147
|
-
function getNode(node) {
|
|
148
|
-
menuTree.value.getNode(node);
|
|
149
|
-
}
|
|
150
|
-
__expose({
|
|
151
|
-
getSelectNode,
|
|
152
|
-
expandNode,
|
|
153
|
-
loadTreeNodes,
|
|
154
|
-
getNode
|
|
155
|
-
});
|
|
156
|
-
return (_ctx, _cache) => {
|
|
157
|
-
const _component_el_input = resolveComponent("el-input");
|
|
158
|
-
const _component_SuperIcon = resolveComponent("SuperIcon");
|
|
159
|
-
const _component_Folder = resolveComponent("Folder");
|
|
160
|
-
const _component_el_icon = resolveComponent("el-icon");
|
|
161
|
-
const _component_el_tree = resolveComponent("el-tree");
|
|
162
|
-
return openBlock(), createElementBlock("div", {
|
|
163
|
-
class: normalizeClass(unref(runtimeClass))
|
|
164
|
-
}, [
|
|
165
|
-
designProperty.value.filter ? (openBlock(), createBlock(_component_el_input, {
|
|
166
|
-
key: 0,
|
|
167
|
-
modelValue: filterText.value,
|
|
168
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => filterText.value = $event),
|
|
169
|
-
style: { "width": "240px" },
|
|
170
|
-
placeholder: "请输入查询条件"
|
|
171
|
-
}, null, 8, ["modelValue"])) : createCommentVNode("", true),
|
|
172
|
-
isShowTree.value ? (openBlock(), createBlock(_component_el_tree, {
|
|
173
|
-
key: 1,
|
|
174
|
-
ref_key: "menuTree",
|
|
175
|
-
ref: menuTree,
|
|
176
|
-
style: normalizeStyle(unref(runtimeStyle)),
|
|
177
|
-
load: loadNode,
|
|
178
|
-
data: menuData.value,
|
|
179
|
-
props: defaultProps.value,
|
|
180
|
-
"default-expand-all": designProperty.value.defaultExpandAll,
|
|
181
|
-
"expand-on-click-node": designProperty.value.expandOnClickNode,
|
|
182
|
-
indent: designProperty.value.retractWidth ? designProperty.value.retractWidth : 18,
|
|
183
|
-
accordion: designProperty.value.accordion,
|
|
184
|
-
"show-checkbox": designProperty.value.showCheckbox ? true : false,
|
|
185
|
-
"highlight-current": "",
|
|
186
|
-
lazy: isLazy.value,
|
|
187
|
-
"node-key": "nodeId",
|
|
188
|
-
"filter-node-method": filterNode,
|
|
189
|
-
onNodeClick: handleNodeClick
|
|
190
|
-
}, {
|
|
191
|
-
default: withCtx(({ node, data }) => [
|
|
192
|
-
createElementVNode("span", {
|
|
193
|
-
title: node.label,
|
|
194
|
-
class: "ellipsis"
|
|
195
|
-
}, [
|
|
196
|
-
data.iconValue ? (openBlock(), createBlock(_component_SuperIcon, {
|
|
197
|
-
key: 0,
|
|
198
|
-
iconType: data.iconType,
|
|
199
|
-
iconValue: data.iconValue
|
|
200
|
-
}, null, 8, ["iconType", "iconValue"])) : designProperty.value.iconValue ? (openBlock(), createBlock(_component_SuperIcon, {
|
|
201
|
-
key: 1,
|
|
202
|
-
iconType: designProperty.value.iconType,
|
|
203
|
-
iconValue: designProperty.value.iconValue
|
|
204
|
-
}, null, 8, ["iconType", "iconValue"])) : (openBlock(), createBlock(_component_el_icon, { key: 2 }, {
|
|
205
|
-
default: withCtx(() => [
|
|
206
|
-
createVNode(_component_Folder)
|
|
207
|
-
]),
|
|
208
|
-
_: 1
|
|
209
|
-
})),
|
|
210
|
-
createElementVNode("span", null, toDisplayString(node.label), 1)
|
|
211
|
-
], 8, _hoisted_1)
|
|
212
|
-
]),
|
|
213
|
-
_: 1
|
|
214
|
-
}, 8, ["style", "data", "props", "default-expand-all", "expand-on-click-node", "indent", "accordion", "show-checkbox", "lazy"])) : createCommentVNode("", true)
|
|
215
|
-
], 2);
|
|
216
|
-
};
|
|
43
|
+
}(n2, e3, a2);
|
|
217
44
|
}
|
|
218
|
-
|
|
45
|
+
return N2({ getSelectNode: function() {
|
|
46
|
+
return L.value;
|
|
47
|
+
}, expandNode: function(e3) {
|
|
48
|
+
e3.loaded = false, e3.expand();
|
|
49
|
+
}, loadTreeNodes: function() {
|
|
50
|
+
k(I.pageContext, I.configure).then((e3) => {
|
|
51
|
+
R.value = false, K.value = e3;
|
|
52
|
+
});
|
|
53
|
+
}, getNode: function(e3) {
|
|
54
|
+
A.value.getNode(e3);
|
|
55
|
+
} }), (e3, a2) => {
|
|
56
|
+
const n2 = u("el-input"), l2 = u("SuperIcon"), t2 = u("Folder"), o2 = u("el-icon"), x2 = u("el-tree");
|
|
57
|
+
return i(), d("div", { class: c(r(W)) }, [D.value.filter ? (i(), p(n2, { key: 0, modelValue: O.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e4) => O.value = e4), style: { width: "240px" }, placeholder: "请输入查询条件" }, null, 8, ["modelValue"])) : s("", true), F.value ? (i(), p(x2, { key: 1, ref_key: "menuTree", ref: A, style: v(r(M)), load: B, data: K.value, props: E.value, "default-expand-all": D.value.defaultExpandAll, "expand-on-click-node": D.value.expandOnClickNode, indent: D.value.retractWidth ? D.value.retractWidth : 18, accordion: D.value.accordion, "show-checkbox": !!D.value.showCheckbox, "highlight-current": "", lazy: w.value, "node-key": "nodeId", "filter-node-method": U, onNodeClick: q }, { default: f(({ node: e4, data: a3 }) => [g("span", { title: e4.label, class: "ellipsis" }, [a3.iconValue ? (i(), p(l2, { key: 0, iconType: a3.iconType, iconValue: a3.iconValue }, null, 8, ["iconType", "iconValue"])) : D.value.iconValue ? (i(), p(l2, { key: 1, iconType: D.value.iconType, iconValue: D.value.iconValue }, null, 8, ["iconType", "iconValue"])) : (i(), p(o2, { key: 2 }, { default: f(() => [y(t2)]), _: 1 })), g("span", null, h(e4.label), 1)], 8, b)]), _: 1 }, 8, ["style", "data", "props", "default-expand-all", "expand-on-click-node", "indent", "accordion", "show-checkbox", "lazy"])) : s("", true)], 2);
|
|
58
|
+
};
|
|
59
|
+
} });
|
|
219
60
|
export {
|
|
220
|
-
|
|
61
|
+
N as default
|
|
221
62
|
};
|
|
@@ -1,23 +1,5 @@
|
|
|
1
|
-
import { defineComponent, openBlock, createElementBlock, toDisplayString } from "vue";
|
|
2
|
-
const
|
|
3
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
|
-
__name: "error-render",
|
|
5
|
-
props: {
|
|
6
|
-
configure: {
|
|
7
|
-
type: Object,
|
|
8
|
-
default: {
|
|
9
|
-
name: "未知"
|
|
10
|
-
}
|
|
11
|
-
},
|
|
12
|
-
selectWidget: Object,
|
|
13
|
-
indexObj: Object
|
|
14
|
-
},
|
|
15
|
-
setup(__props) {
|
|
16
|
-
return (_ctx, _cache) => {
|
|
17
|
-
return openBlock(), createElementBlock("div", _hoisted_1, " 不能识别的组件类型【" + toDisplayString(__props.configure.name) + "】 ", 1);
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
});
|
|
1
|
+
import { defineComponent as e, openBlock as t, createElementBlock as r, toDisplayString as n } from "vue";
|
|
2
|
+
const o = { style: { "text-align": "center", color: "red" } }, c = e({ __name: "error-render", props: { configure: { type: Object, default: { name: "未知" } }, selectWidget: Object, indexObj: Object }, setup: (e2) => (c2, a) => (t(), r("div", o, " 不能识别的组件类型【" + n(e2.configure.name) + "】 ", 1)) });
|
|
21
3
|
export {
|
|
22
|
-
|
|
4
|
+
c as default
|
|
23
5
|
};
|