super-page-runtime 2.2.3 → 2.2.9
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 +1 -2
- package/dist/es/components/runtime/index.d.ts +2 -1
- package/dist/es/components/runtime/utils/api/page-expose-util.js +70 -72
- package/dist/es/components/runtime/utils/assemblys-config.js +2 -4
- package/dist/es/components/runtime/utils/barcode-util.js +1 -2
- package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +59 -81
- package/dist/es/components/runtime/utils/charts/chart-gauge-util.js +2 -4
- package/dist/es/components/runtime/utils/charts/chart-pie-util.js +8 -16
- package/dist/es/components/runtime/utils/charts/chart-radar-util.js +10 -18
- package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +20 -25
- package/dist/es/components/runtime/utils/charts/chart-util.d.ts +1 -0
- package/dist/es/components/runtime/utils/charts/chart-util.js +200 -218
- package/dist/es/components/runtime/utils/common-util.js +7 -14
- package/dist/es/components/runtime/utils/events/event-util.js +97 -115
- package/dist/es/components/runtime/utils/events/print-label.js +20 -21
- package/dist/es/components/runtime/utils/events/standard-event.js +276 -326
- package/dist/es/components/runtime/utils/events/validator-util.js +85 -116
- package/dist/es/components/runtime/utils/form/date-shortcuts.js +1 -2
- package/dist/es/components/runtime/utils/form/scan-util.js +10 -17
- package/dist/es/components/runtime/utils/global-refs.js +7 -14
- package/dist/es/components/runtime/utils/i18n-util.js +1 -2
- package/dist/es/components/runtime/utils/page-helper-util.js +58 -104
- package/dist/es/components/runtime/utils/page-init-util.js +30 -37
- package/dist/es/components/runtime/utils/page-permission-util.js +2 -4
- package/dist/es/components/runtime/utils/page-store.d.ts +2 -2
- package/dist/es/components/runtime/utils/table-utils.js +4 -8
- package/dist/es/components/runtime/utils/tree-utils.js +13 -15
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +3 -4
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +24 -28
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +44 -40
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.js +44 -0
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +20 -20
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +20 -20
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +20 -20
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +22 -22
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.d.ts +33 -1
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +114 -113
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +123 -116
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +4 -4
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +6 -6
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +9 -11
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +6 -6
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +7 -7
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +46 -57
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +13 -21
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +6 -9
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +5 -5
- package/dist/es/components/runtime/views/assemblys/error-render.vue.d.ts +4 -4
- package/dist/es/components/runtime/views/assemblys/error-render.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +6 -8
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +4 -6
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +7 -9
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +10 -13
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +5 -5
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +3 -4
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +3 -4
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +5 -5
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +9 -10
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +9 -11
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +15 -20
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +20 -25
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +15 -20
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +4 -5
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +5 -5
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.d.ts +17 -0
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +97 -0
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/object-render.vue.d.ts +1 -1
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +15 -25
- package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue2.js +3 -4
- package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.js +3 -4
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +3 -4
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/home-chart.vue.d.ts +23 -0
- package/dist/es/components/runtime/views/home-chart.vue.js +36 -0
- package/dist/es/components/runtime/views/home-chart.vue2.js +4 -0
- package/dist/es/components/runtime/views/super-page-dialog.vue.d.ts +3 -3
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +2 -2
- package/dist/es/components/runtime/views/super-page.vue.d.ts +6 -6
- package/dist/es/components/runtime/views/super-page.vue.js +25 -38
- package/dist/es/index.d.ts +2 -2
- package/dist/es/index.js +6 -4
- package/package.json +74 -74
- package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue3.js +0 -1
|
@@ -5,15 +5,11 @@ import { getComponentRef } from "./global-refs.js";
|
|
|
5
5
|
import { watch } from "vue";
|
|
6
6
|
import { deepCopy, getBaseUrl } from "./common-util.js";
|
|
7
7
|
function getComponentOptionConfigs(t, e) {
|
|
8
|
-
if (!t.props || !t.props.dataOrigin)
|
|
9
|
-
|
|
10
|
-
if (t.name && "table" === t.name)
|
|
11
|
-
return;
|
|
8
|
+
if (!t.props || !t.props.dataOrigin) return;
|
|
9
|
+
if (t.name && "table" === t.name) return;
|
|
12
10
|
const o = t.props.dataOrigin, n = { uuid: t.uuid };
|
|
13
|
-
if ("optionGroup" == o.optionValueSetType)
|
|
14
|
-
|
|
15
|
-
else if ("dynamicData" == o.optionValueSetType)
|
|
16
|
-
n.type = "dynamicData", n.filterType = o.filterType, n.props = { code: o.dynamicDataSourceCode };
|
|
11
|
+
if ("optionGroup" == o.optionValueSetType) n.type = "optionGroup", n.props = { code: o.optionGroup };
|
|
12
|
+
else if ("dynamicData" == o.optionValueSetType) n.type = "dynamicData", n.filterType = o.filterType, n.props = { code: o.dynamicDataSourceCode };
|
|
17
13
|
else if ("dataTable" == o.optionValueSetType) {
|
|
18
14
|
n.filterType = o.filterType;
|
|
19
15
|
const t2 = getTableQueryInfo(o, e);
|
|
@@ -29,31 +25,26 @@ function getTableQueryInfo(t, e) {
|
|
|
29
25
|
const o = { type: "dataTable" };
|
|
30
26
|
if (o.props = { tableName: t.tableName, systemCode: t.tableSysCode ? t.tableSysCode : e.systemCode, systemVersion: t.tableSysCode ? t.tableSysVersion : e.systemVersion }, t.sortFields) {
|
|
31
27
|
const e2 = [];
|
|
32
|
-
for (const o2 of t.sortFields)
|
|
33
|
-
o2.name && e2.push({ prop: o2.name, order: o2.type ? o2.type : "asc" });
|
|
28
|
+
for (const o2 of t.sortFields) o2.name && e2.push({ prop: o2.name, order: o2.type ? o2.type : "asc" });
|
|
34
29
|
o.props.sorts = e2;
|
|
35
30
|
}
|
|
36
31
|
const n = [];
|
|
37
32
|
if (t.filterList) {
|
|
38
33
|
const e2 = [];
|
|
39
34
|
for (const o2 of t.filterList) {
|
|
40
|
-
if (!o2.propName)
|
|
41
|
-
continue;
|
|
35
|
+
if (!o2.propName) continue;
|
|
42
36
|
o2.propDbName || (o2.propDbName = o2.propName);
|
|
43
37
|
const t2 = {};
|
|
44
38
|
Object.assign(t2, o2);
|
|
45
39
|
const a2 = getParamNames(o2.propValue);
|
|
46
|
-
for (const t3 of a2)
|
|
47
|
-
t3 && (t3.startsWith("${data.") || t3.startsWith("${task.") || t3.startsWith("${page.")) && (n.includes(t3) || n.push(t3));
|
|
40
|
+
for (const t3 of a2) t3 && (t3.startsWith("${data.") || t3.startsWith("${task.") || t3.startsWith("${page.")) && (n.includes(t3) || n.push(t3));
|
|
48
41
|
o2.propValue, e2.push(t2);
|
|
49
42
|
}
|
|
50
43
|
o.props.searchForm = e2;
|
|
51
44
|
}
|
|
52
45
|
o.props.monitorFields = n;
|
|
53
46
|
const a = [];
|
|
54
|
-
if (t.tableValueField && (o.props.valueField = t.tableValueField), t.tableLableField && -1 == a.indexOf(t.tableLableField) && (o.props.lableField = t.tableLableField), t.autoSets)
|
|
55
|
-
for (const e2 of t.autoSets)
|
|
56
|
-
e2.source && -1 == a.indexOf(e2.source) && a.push(e2.source);
|
|
47
|
+
if (t.tableValueField && (o.props.valueField = t.tableValueField), t.tableLableField && -1 == a.indexOf(t.tableLableField) && (o.props.lableField = t.tableLableField), t.autoSets) for (const e2 of t.autoSets) e2.source && -1 == a.indexOf(e2.source) && a.push(e2.source);
|
|
57
48
|
return o.props.queryFields = a, o.props.pageSize = t.displayQuantity, o;
|
|
58
49
|
}
|
|
59
50
|
function getServiceQueryInfo(t, e) {
|
|
@@ -61,8 +52,7 @@ function getServiceQueryInfo(t, e) {
|
|
|
61
52
|
if (o.props = { serivceCode: t.serviceCode, systemCode: t.tableSysCode ? t.tableSysCode : e.systemCode, systemVersion: t.tableSysCode ? t.tableSysCode : e.systemCode }, t.serviceInputs) {
|
|
62
53
|
const e2 = [];
|
|
63
54
|
for (const o2 of t.serviceInputs) {
|
|
64
|
-
if (!o2.name || o2.value)
|
|
65
|
-
continue;
|
|
55
|
+
if (!o2.name || o2.value) continue;
|
|
66
56
|
const t2 = {};
|
|
67
57
|
Object.assign(t2, o2), e2.push(t2);
|
|
68
58
|
}
|
|
@@ -72,8 +62,7 @@ function getServiceQueryInfo(t, e) {
|
|
|
72
62
|
}
|
|
73
63
|
function updateChartDatasources(t, e, o, n) {
|
|
74
64
|
return new Promise((a, r) => {
|
|
75
|
-
if (!e || 0 == e.length)
|
|
76
|
-
return void r(new Error("无需查询的统计图配置!"));
|
|
65
|
+
if (!e || 0 == e.length) return void r(new Error("无需查询的统计图配置!"));
|
|
77
66
|
const s = deepCopy(e);
|
|
78
67
|
s.forEach((e2) => {
|
|
79
68
|
const o2 = e2.services;
|
|
@@ -117,8 +106,7 @@ function updateChartDatasourcesByComponent(t, e) {
|
|
|
117
106
|
}
|
|
118
107
|
function updateOptionDatasources(t, e, o) {
|
|
119
108
|
return new Promise((n, a) => {
|
|
120
|
-
if (!e || 0 == e.length)
|
|
121
|
-
return void a(new Error("无需查询的配置!"));
|
|
109
|
+
if (!e || 0 == e.length) return void a(new Error("无需查询的配置!"));
|
|
122
110
|
const r = t.entity ? t.entity : {}, s = {};
|
|
123
111
|
r.request && Object.assign(s, r.request), r.page && Object.assign(s, r.page), s.query = o;
|
|
124
112
|
const i = { entityMap: r.data, additionalParamMap: s, dataSourceList: e, systemCode: t.systemCode, query: o }, u = t.backendUrl, l = getBaseUrl(u, t.isTest) + "/common/common-data/find-datas";
|
|
@@ -143,30 +131,25 @@ function getComponentOptionDatasFromPage(t, e) {
|
|
|
143
131
|
return o || [];
|
|
144
132
|
}
|
|
145
133
|
function getOptionDatasSourceMap(t) {
|
|
146
|
-
if (!t || !t.optionSourceMap)
|
|
147
|
-
return {};
|
|
134
|
+
if (!t || !t.optionSourceMap) return {};
|
|
148
135
|
const e = t.optionSourceMap;
|
|
149
136
|
return e || {};
|
|
150
137
|
}
|
|
151
138
|
function getChartDatasFromPage(t, e) {
|
|
152
|
-
if (!t || !t.chartDataSourceMap || !e)
|
|
153
|
-
return null;
|
|
139
|
+
if (!t || !t.chartDataSourceMap || !e) return null;
|
|
154
140
|
return t.chartDataSourceMap[e.uuid];
|
|
155
141
|
}
|
|
156
142
|
function queryOptionDatasources(t, e, o) {
|
|
157
143
|
return updateOptionDatasources(t, e ? [e] : [], o);
|
|
158
144
|
}
|
|
159
145
|
function autoSetAfterSelect(t, e, o, n) {
|
|
160
|
-
if (!o || 0 == o.length)
|
|
161
|
-
return;
|
|
146
|
+
if (!o || 0 == o.length) return;
|
|
162
147
|
const a = e.entity ? e.entity : {};
|
|
163
148
|
for (const t2 of o) {
|
|
164
|
-
if (!t2.source || !t2.target)
|
|
165
|
-
continue;
|
|
149
|
+
if (!t2.source || !t2.target) continue;
|
|
166
150
|
const e2 = getValuesByField(n, t2.source);
|
|
167
151
|
let o2 = t2.target;
|
|
168
|
-
if (!o2 || !o2.startsWith("${"))
|
|
169
|
-
continue;
|
|
152
|
+
if (!o2 || !o2.startsWith("${")) continue;
|
|
170
153
|
o2 = o2.substring(2, o2.length - 1);
|
|
171
154
|
setVariableValue(a, o2.split("."), e2.join(","));
|
|
172
155
|
}
|
|
@@ -183,24 +166,20 @@ function getValuesByField(t, e) {
|
|
|
183
166
|
return [""];
|
|
184
167
|
}
|
|
185
168
|
function getVariableValue(t, e) {
|
|
186
|
-
if (!t || !e || 0 == e.length)
|
|
187
|
-
return;
|
|
169
|
+
if (!t || !e || 0 == e.length) return;
|
|
188
170
|
let o = t;
|
|
189
171
|
for (let t2 = 0; t2 < e.length; t2++) {
|
|
190
|
-
if (null == o)
|
|
191
|
-
return o;
|
|
172
|
+
if (null == o) return o;
|
|
192
173
|
o = o[e[t2]];
|
|
193
174
|
}
|
|
194
175
|
return o;
|
|
195
176
|
}
|
|
196
177
|
function setValueForVariableName(t, e, o) {
|
|
197
|
-
if (!e || !e.startsWith("${"))
|
|
198
|
-
return;
|
|
178
|
+
if (!e || !e.startsWith("${")) return;
|
|
199
179
|
setVariableValue(t, (e = e.substring(2, e.length - 1)).split("."), o);
|
|
200
180
|
}
|
|
201
181
|
function setVariableValue(t, e, o) {
|
|
202
|
-
if (!t || !e || 0 == e.length)
|
|
203
|
-
return;
|
|
182
|
+
if (!t || !e || 0 == e.length) return;
|
|
204
183
|
let n = t;
|
|
205
184
|
for (let t2 = 0; t2 < e.length; t2++) {
|
|
206
185
|
const a = e[t2];
|
|
@@ -208,13 +187,11 @@ function setVariableValue(t, e, o) {
|
|
|
208
187
|
}
|
|
209
188
|
}
|
|
210
189
|
function setVariableValueWithProp(t, e, o) {
|
|
211
|
-
if (!t || !e)
|
|
212
|
-
return;
|
|
190
|
+
if (!t || !e) return;
|
|
213
191
|
setVariableValue(t, e.split("."), o);
|
|
214
192
|
}
|
|
215
193
|
function formatVariableValue(t, e) {
|
|
216
|
-
if (!t || "" == e || null == e || null == e)
|
|
217
|
-
return e;
|
|
194
|
+
if (!t || "" == e || null == e || null == e) return e;
|
|
218
195
|
const o = t.entity ? t.entity : {}, n = getParamNames(e);
|
|
219
196
|
for (const t2 in n) {
|
|
220
197
|
const a = n[t2], r = getValueFromVariable(o, a);
|
|
@@ -223,20 +200,16 @@ function formatVariableValue(t, e) {
|
|
|
223
200
|
return e;
|
|
224
201
|
}
|
|
225
202
|
function getParamNames(t) {
|
|
226
|
-
if (!t)
|
|
227
|
-
return [];
|
|
203
|
+
if (!t) return [];
|
|
228
204
|
const e = t.match(/\$\{[^\{|\}]+\}/g);
|
|
229
205
|
return e || [];
|
|
230
206
|
}
|
|
231
207
|
function formatValueByType(t, e, o) {
|
|
232
|
-
if (!e || "" == t || null == t || null == t)
|
|
233
|
-
return t;
|
|
208
|
+
if (!e || "" == t || null == t || null == t) return t;
|
|
234
209
|
if (o = o || {}, "number" == e || "percent" == e) {
|
|
235
|
-
if (isNaN(t))
|
|
236
|
-
return t;
|
|
210
|
+
if (isNaN(t)) return t;
|
|
237
211
|
let n = parseInt(o.decimalDigit);
|
|
238
|
-
if ((null == n || isNaN(n)) && (n = -1), t = parseFloat(t), "percent" == e && (t *= 100), n > -1 && (t = parseFloat(t.toFixed(n))), "percent" == e)
|
|
239
|
-
t += "%";
|
|
212
|
+
if ((null == n || isNaN(n)) && (n = -1), t = parseFloat(t), "percent" == e && (t *= 100), n > -1 && (t = parseFloat(t.toFixed(n))), "percent" == e) t += "%";
|
|
240
213
|
else {
|
|
241
214
|
if (o.thousandsSeparator) {
|
|
242
215
|
const e2 = t.toString().split(".");
|
|
@@ -253,25 +226,17 @@ function formatValueByType(t, e, o) {
|
|
|
253
226
|
return "custom" == e && o.formatEventUuid, t;
|
|
254
227
|
}
|
|
255
228
|
function getValueFromVariable(t, e, o) {
|
|
256
|
-
if (null == e || null == e)
|
|
257
|
-
return e;
|
|
229
|
+
if (null == e || null == e) return e;
|
|
258
230
|
if (e.startsWith("${") && e.endsWith("}")) {
|
|
259
231
|
let n = e.substring(2, e.length - 1), a = null, r = null;
|
|
260
|
-
if (n.startsWith("data."))
|
|
261
|
-
|
|
262
|
-
else if (n.startsWith("
|
|
263
|
-
|
|
264
|
-
else if (n.startsWith("
|
|
265
|
-
|
|
266
|
-
else if (n.startsWith("request."))
|
|
267
|
-
n = n.substring(8), a = "request", r = t.request;
|
|
268
|
-
else if (n.startsWith("context."))
|
|
269
|
-
n = n.substring(8), a = "context", r = t.context;
|
|
270
|
-
else if (n.startsWith("system."))
|
|
271
|
-
n = n.substring(7), a = "system", r = t.system;
|
|
232
|
+
if (n.startsWith("data.")) n = n.substring(5), r = t.data, a = "data";
|
|
233
|
+
else if (n.startsWith("page.")) n = n.substring(5), a = "page", r = t.page;
|
|
234
|
+
else if (n.startsWith("task.")) n = n.substring(5), a = "task", r = t.task;
|
|
235
|
+
else if (n.startsWith("request.")) n = n.substring(8), a = "request", r = t.request;
|
|
236
|
+
else if (n.startsWith("context.")) n = n.substring(8), a = "context", r = t.context;
|
|
237
|
+
else if (n.startsWith("system.")) n = n.substring(7), a = "system", r = t.system;
|
|
272
238
|
else {
|
|
273
|
-
if (n.startsWith("fixed."))
|
|
274
|
-
return n.substring(6);
|
|
239
|
+
if (n.startsWith("fixed.")) return n.substring(6);
|
|
275
240
|
n.startsWith("row.") && (n = n.substring(4), r = o, a = "row");
|
|
276
241
|
}
|
|
277
242
|
return n ? getValueFromSource(r, n, a) : "";
|
|
@@ -279,8 +244,7 @@ function getValueFromVariable(t, e, o) {
|
|
|
279
244
|
return e;
|
|
280
245
|
}
|
|
281
246
|
function getValueFromSource(t, e, o) {
|
|
282
|
-
if ("context" != o && !t || !e)
|
|
283
|
-
return;
|
|
247
|
+
if ("context" != o && !t || !e) return;
|
|
284
248
|
const n = e.indexOf(".");
|
|
285
249
|
if (n > -1) {
|
|
286
250
|
const a = e.substring(0, n), r = e.substring(n + 1);
|
|
@@ -288,42 +252,37 @@ function getValueFromSource(t, e, o) {
|
|
|
288
252
|
return s && Array.isArray(s) && s.length > 0 && (s = s[0]), getValueFromSource(s, r, o);
|
|
289
253
|
}
|
|
290
254
|
if ("context" == o) {
|
|
291
|
-
if ("currentDate" == e || "currentTime" == e)
|
|
292
|
-
return /* @__PURE__ */ new Date();
|
|
255
|
+
if ("currentDate" == e || "currentTime" == e) return /* @__PURE__ */ new Date();
|
|
293
256
|
if (e.startsWith("currentDate") && e.length > 11) {
|
|
294
257
|
const t2 = e.substring(11), o2 = t2.substring(0, 1);
|
|
295
258
|
let n2 = parseInt(t2.substring(1, t2.length - 1), 10);
|
|
296
259
|
const a = t2.substring(t2.length - 1), r = /* @__PURE__ */ new Date();
|
|
297
260
|
return n2 = "+" === o2 ? n2 : -n2, "d" === a || "w" === a ? (n2 = "w" === a ? 7 * n2 : n2, r.setDate(r.getDate() + n2)) : "m" === a ? r.setMonth(r.getMonth() + n2) : "y" === a && r.setFullYear(r.getFullYear() + n2), r;
|
|
298
261
|
}
|
|
299
|
-
if (!t)
|
|
300
|
-
return;
|
|
262
|
+
if (!t) return;
|
|
301
263
|
}
|
|
302
264
|
return t[e];
|
|
303
265
|
}
|
|
304
266
|
function caculateShowCondition(pageContext, showConditions, row) {
|
|
305
|
-
if (!showConditions || 0 == showConditions.length || !pageContext || !pageContext.entity)
|
|
306
|
-
return true;
|
|
267
|
+
if (!showConditions || 0 == showConditions.length || !pageContext || !pageContext.entity) return true;
|
|
307
268
|
const entityData = pageContext.entity;
|
|
308
269
|
let conditions = "";
|
|
309
270
|
const maxLen = showConditions.length;
|
|
310
271
|
for (let t = 0; t < maxLen; t++) {
|
|
311
272
|
const e = showConditions[t], o = e.propName;
|
|
312
273
|
let n = e.operator;
|
|
313
|
-
if (!o || "" === o)
|
|
314
|
-
continue;
|
|
274
|
+
if (!o || "" === o) continue;
|
|
315
275
|
n || (n = "EQ");
|
|
316
276
|
const a = getValueFromVariable(entityData, o, row);
|
|
317
277
|
let r = getValueFromVariable(entityData, e.propValue, row);
|
|
318
278
|
const s = e.dataType;
|
|
319
279
|
"CONTAIN" != n && "NOT_CONTAIN" != n || a && !a.includes && (n = "CONTAIN" == n ? "EQ" : "NET");
|
|
320
280
|
let i = e.variableIsNull, u;
|
|
321
|
-
if (i || (i = "null"), void 0 !== r && "" !== r || (r = null, "null" === i ? n = "IS_NULL" : "notequal" === i ? n = "IS_NOT_NULL" : u = true), null == u)
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
}
|
|
281
|
+
if (i || (i = "null"), void 0 !== r && "" !== r || (r = null, "null" === i ? n = "IS_NULL" : "notequal" === i ? n = "IS_NOT_NULL" : u = true), null == u) try {
|
|
282
|
+
u = executeExpression(a, n, r, s);
|
|
283
|
+
} catch (t2) {
|
|
284
|
+
u = false;
|
|
285
|
+
}
|
|
327
286
|
const l = e.leftBracket, c = e.rightBracket;
|
|
328
287
|
let p = e.joinSign;
|
|
329
288
|
if (l && null !== l && "" !== l && (conditions += l, conditions += " "), conditions += u + " ", c && null !== c && "" !== c && (conditions += c, conditions += " "), t < maxLen - 1 && p && null !== p && "" !== p) {
|
|
@@ -334,29 +293,25 @@ function caculateShowCondition(pageContext, showConditions, row) {
|
|
|
334
293
|
return !conditions || eval("(" + conditions + ")");
|
|
335
294
|
}
|
|
336
295
|
function monitorFieldChange(t, e, o) {
|
|
337
|
-
if (!o || !t || !e || 0 == e.length)
|
|
338
|
-
return;
|
|
296
|
+
if (!o || !t || !e || 0 == e.length) return;
|
|
339
297
|
const n = [], a = [];
|
|
340
|
-
for (let t2 of e)
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
}
|
|
298
|
+
for (let t2 of e) if (t2.startsWith("${")) {
|
|
299
|
+
t2 = t2.substring(2, t2.length - 1);
|
|
300
|
+
const e2 = t2.split(".");
|
|
301
|
+
"page" !== e2[0] && "task" !== e2[0] && "data" !== e2[0] || (n.push(e2), a.includes(e2[0]) || a.push(e2[0]));
|
|
302
|
+
}
|
|
346
303
|
const r = t.entity;
|
|
347
304
|
let s = getMonitorFieldValues(n, r), i = false;
|
|
348
|
-
for (const t2 of a)
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
});
|
|
305
|
+
for (const t2 of a) watch(r[t2], () => {
|
|
306
|
+
i && clearTimeout(i), i = setTimeout(function() {
|
|
307
|
+
const t3 = getMonitorFieldValues(n, r);
|
|
308
|
+
s != t3 && (s = t3, o());
|
|
309
|
+
}, 200);
|
|
310
|
+
});
|
|
355
311
|
}
|
|
356
312
|
function getMonitorFieldValues(t, e) {
|
|
357
313
|
let o = "";
|
|
358
|
-
for (const n of t)
|
|
359
|
-
o += "_" + getVariableValue(e, n);
|
|
314
|
+
for (const n of t) o += "_" + getVariableValue(e, n);
|
|
360
315
|
return o;
|
|
361
316
|
}
|
|
362
317
|
function getFormPropName(t) {
|
|
@@ -375,8 +330,7 @@ function isPromise(t) {
|
|
|
375
330
|
return t && "[object Promise]" === Object.prototype.toString.call(t);
|
|
376
331
|
}
|
|
377
332
|
function decomposeVariable(t) {
|
|
378
|
-
if (!t)
|
|
379
|
-
return [];
|
|
333
|
+
if (!t) return [];
|
|
380
334
|
const e = t.match(/\${(.*?)}/);
|
|
381
335
|
return e ? e[1].split(".") : [];
|
|
382
336
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "agilebuilder-ui/src/utils/request";
|
|
2
2
|
import { getAdditionalParamMap as t } from "./events/standard-event.js";
|
|
3
3
|
import { PageDimensions as s } from "./interfaces/page-design-types.js";
|
|
4
|
-
import {
|
|
4
|
+
import { getFormPropName as n, setVariableValue as i, formatVariableValue as o } from "./page-helper-util.js";
|
|
5
5
|
import { getSessionCache as r } from "agilebuilder-ui/src/utils/auth";
|
|
6
6
|
import { functions as l } from "./api/page-expose-util.js";
|
|
7
7
|
import { isWorkflowPage as a, deepCopy as p } from "./common-util.js";
|
|
@@ -11,8 +11,7 @@ function d(t2) {
|
|
|
11
11
|
}
|
|
12
12
|
function m(e2) {
|
|
13
13
|
var _a;
|
|
14
|
-
if (null == e2)
|
|
15
|
-
return null;
|
|
14
|
+
if (null == e2) return null;
|
|
16
15
|
const t2 = { uuid: e2.uuid, name: e2.name, label: e2.label, code: e2.code, version: e2.version, dimensions: e2.dimensions, systemCode: e2.systemCode, systemVersion: e2.systemVersion, backendUrl: e2.backendUrl, rules: {}, tableUuids: e2.tableUuids, listCodesMap: e2.listCodesMap, formNoRuleCode: e2.props ? e2.props.formNoRuleCode : null, judgeHeavyList: c(e2), pageType: e2.pageType, beanName: e2.props ? e2.props.beanName : null, importBeanName: e2.props ? e2.props.importBeanName : null, subTablePageInfo: e2.subTablePageInfo, workflowCode: e2.workflowCode, workflowVersion: e2.workflowVersion, refercePropMap: (_a = e2.runtime) == null ? void 0 : _a.refercePropMap, subTableWatchProps: e2.subTableWatchProps, dataTypeMaps: e2.dataTypeMaps, isWorkflowEntity: e2.isWorkflowEntity, allChartUuids: e2.allChartUuids, entity: { data: {}, task: {}, request: {}, page: {}, context: e2.contextParam, system: e2.systemParam } };
|
|
17
16
|
if (e2.props && e2.props.notIdInitializationList) {
|
|
18
17
|
let s2 = e2.props.notIdInitializationList;
|
|
@@ -20,13 +19,11 @@ function m(e2) {
|
|
|
20
19
|
}
|
|
21
20
|
if (e2.variables) {
|
|
22
21
|
const s2 = t2.entity.page;
|
|
23
|
-
for (const t3 of e2.variables)
|
|
24
|
-
t3.name && (t3.isArrayElement ? s2[t3.name] = [] : t3.defaultValue ? s2[t3.name] = t3.defaultValue : s2[t3.name] = void 0);
|
|
22
|
+
for (const t3 of e2.variables) t3.name && (t3.isArrayElement ? s2[t3.name] = [] : t3.defaultValue ? s2[t3.name] = t3.defaultValue : s2[t3.name] = void 0);
|
|
25
23
|
}
|
|
26
24
|
return Object.assign(t2, e2), t2.dimensions = function() {
|
|
27
25
|
const e3 = window.outerWidth;
|
|
28
|
-
if (!e3)
|
|
29
|
-
return s.PC;
|
|
26
|
+
if (!e3) return s.PC;
|
|
30
27
|
return e3 > 768 ? s.PC : e3 > 414 ? s.IPAD : s.PHONE;
|
|
31
28
|
}(), t2.events = e2.runtime && e2.runtime.events ? e2.runtime.events : [], t2;
|
|
32
29
|
}
|
|
@@ -52,7 +49,8 @@ function f(e2) {
|
|
|
52
49
|
}
|
|
53
50
|
function g(e2, t2) {
|
|
54
51
|
if (e2) {
|
|
55
|
-
|
|
52
|
+
Object.assign(t2, e2);
|
|
53
|
+
h(e2.paramStoreId, t2), delete e2.paramStoreId;
|
|
56
54
|
}
|
|
57
55
|
}
|
|
58
56
|
function b(e2, t2) {
|
|
@@ -77,30 +75,27 @@ function y(e2, t2) {
|
|
|
77
75
|
return t2 && !t2.startsWith("${") ? i2 = ["data", t2] : !e2 || n2 && n2.startsWith("${") ? n2.startsWith("${") ? (n2 = n2.substring(2, n2.length - 1), i2 = n2.split("."), e2 && i2.length < 2 && (i2 = [e2.uuid])) : e2 && (i2 = ["page", e2.uuid]) : i2 = ["page", e2.uuid], i2 || e2 ? i2 : ["temp"];
|
|
78
76
|
}
|
|
79
77
|
function E(e2, t2, s2) {
|
|
80
|
-
const
|
|
78
|
+
const n2 = y(t2, s2), o2 = e2.entity;
|
|
81
79
|
if (null == o2.data.ID && null == o2.data.id) {
|
|
82
80
|
let s3, r2, l2 = false;
|
|
83
81
|
t2 && (s3 = t2.props.base ? t2.props.base : {}, r2 = t2.name, l2 = s3.multiple);
|
|
84
82
|
const a2 = v(e2, s3 ? s3.defaultValue : null, r2, l2);
|
|
85
|
-
null != a2 &&
|
|
83
|
+
null != a2 && i(o2, n2, a2);
|
|
86
84
|
}
|
|
87
|
-
return
|
|
85
|
+
return n2;
|
|
88
86
|
}
|
|
89
87
|
function v(e2, t2, s2, n2) {
|
|
90
|
-
let
|
|
91
|
-
if (t2 && (
|
|
88
|
+
let i2;
|
|
89
|
+
if (t2 && (i2 = o(e2, t2), null != i2 && null != i2 && s2)) {
|
|
92
90
|
let e3 = false;
|
|
93
|
-
"checkbox" == s2 ? e3 = true : "select" == s2 && (e3 = n2), e3 && (
|
|
91
|
+
"checkbox" == s2 ? e3 = true : "select" == s2 && (e3 = n2), e3 && (i2 = (i2 + "").split(","));
|
|
94
92
|
}
|
|
95
|
-
return
|
|
93
|
+
return i2;
|
|
96
94
|
}
|
|
97
95
|
function P(e2, t2) {
|
|
98
|
-
if (!t2 || !e2 || t2.isTest)
|
|
99
|
-
return "true";
|
|
96
|
+
if (!t2 || !e2 || t2.isTest) return "true";
|
|
100
97
|
const s2 = [];
|
|
101
|
-
if (e2.autoPermissions)
|
|
102
|
-
for (const n2 of e2.autoPermissions)
|
|
103
|
-
s2.push(t2.code + "." + n2.simpleCode);
|
|
98
|
+
if (e2.autoPermissions) for (const n2 of e2.autoPermissions) s2.push(t2.code + "." + n2.simpleCode);
|
|
104
99
|
if (e2.functionCodes) {
|
|
105
100
|
const n2 = e2.sourceTypes ? e2.sourceTypes : [], i2 = e2.functionCodes;
|
|
106
101
|
for (let e3 = 0; e3 < i2.length; e3++) {
|
|
@@ -120,36 +115,34 @@ function w(s2, n2, i2) {
|
|
|
120
115
|
function C(e2, t2) {
|
|
121
116
|
var _a, _b;
|
|
122
117
|
const s2 = t2.props && t2.props.base ? t2.props.base.prop : null;
|
|
123
|
-
let
|
|
118
|
+
let i2 = false;
|
|
124
119
|
if (a(e2) && "button-detail" !== t2.name && e2.fieldPermissionMap) {
|
|
125
120
|
const s3 = e2.fieldPermissionMap.get("all_fields");
|
|
126
|
-
false === (s3 == null ? void 0 : s3.canEdit) && ((_a = t2.runtime) == null ? void 0 : _a.props) && (t2.runtime.props.state = "disabled",
|
|
121
|
+
false === (s3 == null ? void 0 : s3.canEdit) && ((_a = t2.runtime) == null ? void 0 : _a.props) && (t2.runtime.props.state = "disabled", i2 = true);
|
|
127
122
|
}
|
|
128
123
|
if (s2) {
|
|
129
|
-
const
|
|
130
|
-
if (e2.rules || (e2.rules = {}), t2.props.rules && t2.props.rules.length > 0 && (e2.rules[
|
|
124
|
+
const o2 = n(s2);
|
|
125
|
+
if (e2.rules || (e2.rules = {}), t2.props.rules && t2.props.rules.length > 0 && (e2.rules[o2] || (e2.rules[o2] = []), t2.props.rules.forEach((e3) => {
|
|
131
126
|
u(e3);
|
|
132
|
-
}), e2.rules[
|
|
133
|
-
const s3 = e2.fieldPermissionMap.get(
|
|
127
|
+
}), e2.rules[o2] = t2.props.rules), !i2 && "button-detail" !== t2.name && e2.fieldPermissionMap) {
|
|
128
|
+
const s3 = e2.fieldPermissionMap.get(o2);
|
|
134
129
|
t2.runtime.props || (t2.runtime.props = {}), s3 ? false === s3.canEdit ? t2.runtime.props.state = "disabled" : s3.canEdit && (t2.runtime.props.state = "", t2.runtime.props.required = true) : t2.runtime.props.state = "";
|
|
135
130
|
}
|
|
136
|
-
((_b = t2.props) == null ? void 0 : _b.customRuleEvents) && (e2.customRuleEvents || (e2.customRuleEvents = []), e2.customRuleEvents.push({ prop:
|
|
131
|
+
((_b = t2.props) == null ? void 0 : _b.customRuleEvents) && (e2.customRuleEvents || (e2.customRuleEvents = []), e2.customRuleEvents.push({ prop: o2, events: t2.props.customRuleEvents }));
|
|
137
132
|
}
|
|
138
133
|
}
|
|
139
134
|
function I(e2, t2) {
|
|
140
135
|
if (e2.initInfo) {
|
|
141
136
|
["dynamicControlFormEdit", "disableElement", "enableElement", "hideElement", "showElement"].forEach((s2) => {
|
|
142
137
|
const n2 = e2.initInfo[s2];
|
|
143
|
-
if (n2)
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
} else
|
|
152
|
-
"disableElement" === s2 ? n2.indexOf(t2) >= 0 && l.disableElement(e2, [t2], false) : "enableElement" === s2 ? n2.indexOf(t2) >= 0 && l.enableElement(e2, [t2], false) : "hideElement" === s2 ? n2.indexOf(t2) >= 0 && l.hideElement(e2, [t2], false) : "showElement" === s2 && n2.indexOf(t2) >= 0 && l.showElement(e2, [t2], false);
|
|
138
|
+
if (n2) if ("dynamicControlFormEdit" === s2) {
|
|
139
|
+
let s3 = n2.filter((e3) => "_all_fields" === e3.name || e3.name === t2);
|
|
140
|
+
if (s3 && s3.length > 0 && (s3 = s3.filter((e3) => "_all_fields" === e3.name), s3 && s3.length > 0)) {
|
|
141
|
+
const e3 = p(s3[0]);
|
|
142
|
+
e3.name = t2, s3 = [e3];
|
|
143
|
+
}
|
|
144
|
+
l.dynamicControlFormEdit(e2, s3, false);
|
|
145
|
+
} else "disableElement" === s2 ? n2.indexOf(t2) >= 0 && l.disableElement(e2, [t2], false) : "enableElement" === s2 ? n2.indexOf(t2) >= 0 && l.enableElement(e2, [t2], false) : "hideElement" === s2 ? n2.indexOf(t2) >= 0 && l.hideElement(e2, [t2], false) : "showElement" === s2 && n2.indexOf(t2) >= 0 && l.showElement(e2, [t2], false);
|
|
153
146
|
});
|
|
154
147
|
}
|
|
155
148
|
}
|
|
@@ -4,8 +4,7 @@ function t(o2) {
|
|
|
4
4
|
return o2 ? e[o2] : void 0;
|
|
5
5
|
}
|
|
6
6
|
function a(o2) {
|
|
7
|
-
if (!o2)
|
|
8
|
-
return;
|
|
7
|
+
if (!o2) return;
|
|
9
8
|
let t2 = n[o2];
|
|
10
9
|
if (null == t2) {
|
|
11
10
|
for (const n2 in e) {
|
|
@@ -17,8 +16,7 @@ function a(o2) {
|
|
|
17
16
|
break;
|
|
18
17
|
}
|
|
19
18
|
}
|
|
20
|
-
if (t2)
|
|
21
|
-
break;
|
|
19
|
+
if (t2) break;
|
|
22
20
|
}
|
|
23
21
|
}
|
|
24
22
|
n[o2] = t2 || "";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export declare const usePageContextStore: import('pinia').StoreDefinition<"pageContextUtil",
|
|
1
|
+
export declare const usePageContextStore: import('pinia').StoreDefinition<"pageContextUtil", Pick<{
|
|
2
2
|
pageContext: any;
|
|
3
3
|
setPageContext: (newPageContext: any) => void;
|
|
4
|
-
}, "pageContext"
|
|
4
|
+
}, "pageContext">, Pick<{
|
|
5
5
|
pageContext: any;
|
|
6
6
|
setPageContext: (newPageContext: any) => void;
|
|
7
7
|
}, "pageContext">, Pick<{
|
|
@@ -12,8 +12,7 @@ function r(e2) {
|
|
|
12
12
|
}
|
|
13
13
|
function u(t2, e2) {
|
|
14
14
|
const i2 = t2.tableName;
|
|
15
|
-
if (!e2 && i2)
|
|
16
|
-
return i2;
|
|
15
|
+
if (!e2 && i2) return i2;
|
|
17
16
|
let o2;
|
|
18
17
|
return t2.tableRuntimes && e2 && t2.tableRuntimes[e2] && (o2 = JSON.parse(t2.tableRuntimes[e2].configure)), o2 && o2.props && o2.props.dataOrigin ? o2.props.dataOrigin.tableName : null;
|
|
19
18
|
}
|
|
@@ -25,8 +24,7 @@ function l(t2, o2, n2, r2) {
|
|
|
25
24
|
const i2 = e(o3, t2);
|
|
26
25
|
i2 && (l3.permission = i2);
|
|
27
26
|
}
|
|
28
|
-
if (l3.label = s(l3.title), l3.sourceButton = { uuid: o3.uuid }, u3.props = l3, void 0 !== r2)
|
|
29
|
-
u3.onClick = r2(o3);
|
|
27
|
+
if (l3.label = s(l3.title), l3.sourceButton = { uuid: o3.uuid }, u3.props = l3, void 0 !== r2) u3.onClick = r2(o3);
|
|
30
28
|
else {
|
|
31
29
|
const e2 = i(t2, o3.events, "click");
|
|
32
30
|
u3.onClick = e2;
|
|
@@ -45,10 +43,8 @@ function p(t2, e2, i2, s2) {
|
|
|
45
43
|
}
|
|
46
44
|
} else if (i3.showCondition && i3.showCondition.length > 0) {
|
|
47
45
|
n.evaluate(t2, i3.showCondition, s2) && (u3 = true);
|
|
48
|
-
} else
|
|
49
|
-
|
|
50
|
-
if (u3)
|
|
51
|
-
return r2 = i3, true;
|
|
46
|
+
} else u3 = true;
|
|
47
|
+
if (u3) return r2 = i3, true;
|
|
52
48
|
});
|
|
53
49
|
return { show: u2, toPage: r2 };
|
|
54
50
|
}
|
|
@@ -19,21 +19,19 @@ import "async-validator";
|
|
|
19
19
|
function r(r2, s, a, l, u) {
|
|
20
20
|
return new Promise((a2, l2) => {
|
|
21
21
|
var _a, _b;
|
|
22
|
-
if (s && ((_a = s.props.dataOrigin) == null ? void 0 : _a.optionValueSetType))
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
else
|
|
36
|
-
a2([]);
|
|
22
|
+
if (s && ((_a = s.props.dataOrigin) == null ? void 0 : _a.optionValueSetType)) if ("beanName" === ((_b = s.props.dataOrigin) == null ? void 0 : _b.optionValueSetType)) {
|
|
23
|
+
const l3 = r2.backendUrl, m = r2.systemCode, p = o(s, r2);
|
|
24
|
+
let n = i(l3, r2.isTest) + "/dsc/commons/load-tree-node";
|
|
25
|
+
n = e(n, m, l3, r2.isTest);
|
|
26
|
+
const c = { pageCode: r2.code, pageVersion: r2.version, tableName: r2.tableName, systemCode: m, functionCode: p, beanName: r2.beanName };
|
|
27
|
+
u && Object.assign(c, u), t.post(n, c).then((i2) => {
|
|
28
|
+
a2(i2);
|
|
29
|
+
});
|
|
30
|
+
} else {
|
|
31
|
+
const i2 = (s.runtime ? s.runtime : {}).props;
|
|
32
|
+
i2 && i2.staticData ? a2(i2.staticData) : a2([]);
|
|
33
|
+
}
|
|
34
|
+
else a2([]);
|
|
37
35
|
});
|
|
38
36
|
}
|
|
39
37
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, onMounted as n, nextTick as i, resolveComponent as l,
|
|
1
|
+
import { defineComponent as e, ref as t, onMounted as n, nextTick as i, resolveComponent as l, createElementBlock as a, openBlock as o, createVNode as u, unref as c, normalizeStyle as p, normalizeClass as r, withCtx as s, createCommentVNode as v, createBlock as g, Fragment as d, createTextVNode as y, toDisplayString as f } from "vue";
|
|
2
2
|
import { SuperIcon as m } from "agilebuilder-ui";
|
|
3
3
|
import { handleAfterInitEvent as x, handleEvent as k } from "../../../../utils/events/event-util.js";
|
|
4
4
|
import { $t as C } from "../../../../utils/i18n-util.js";
|
|
@@ -14,7 +14,7 @@ const b = { class: "page-runtime-header-btn" }, V = e({ __name: "button-runtime"
|
|
|
14
14
|
});
|
|
15
15
|
}), (e3, t2) => {
|
|
16
16
|
const n2 = l("el-button");
|
|
17
|
-
return
|
|
17
|
+
return o(), a("span", b, [u(n2, { ref_key: "componentRef", ref: P, disabled: "disabled" === _.value.state || j(), class: r(c(z)), style: p(c(h)), type: _.value.type, size: _.value.size, text: _.value.text, round: _.value.round, plain: _.value.plain, loading: j(), onClick: t2[0] || (t2[0] = (t3) => c(k)(t3, e3.pageContext, e3.configure, "click")) }, { default: s(() => [_.value.title && "right" == _.value.iconPosition ? (o(), a(d, { key: 0 }, [y(f(c(C)(_.value.title)) + " ", 1), _.value.iconValue ? (o(), a(d, { key: 0 }, [y(" ")], 64)) : v("", true)], 64)) : v("", true), _.value.iconType && _.value.iconValue ? (o(), g(c(m), { key: 1, iconType: _.value.iconType, iconValue: _.value.iconValue }, null, 8, ["iconType", "iconValue"])) : v("", true), _.value.title && "right" != _.value.iconPosition ? (o(), a(d, { key: 2 }, [_.value.iconValue ? (o(), a(d, { key: 0 }, [y(" ")], 64)) : v("", true), y(" " + f(c(C)(_.value.title)), 1)], 64)) : v("", true)]), _: 1 }, 8, ["disabled", "class", "style", "type", "size", "text", "round", "plain", "loading"])]);
|
|
18
18
|
};
|
|
19
19
|
} });
|
|
20
20
|
export {
|
package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, onMounted as n, nextTick as o, resolveComponent as u,
|
|
1
|
+
import { defineComponent as e, ref as t, onMounted as n, nextTick as o, resolveComponent as u, createBlock as r, openBlock as a, normalizeStyle as i, normalizeClass as l, unref as p, withCtx as s, createElementBlock as g, Fragment as c, renderList as f } from "vue";
|
|
2
2
|
import m from "../../object-render.vue.js";
|
|
3
3
|
import { handleAfterInitEvent as x } from "../../../../utils/events/event-util.js";
|
|
4
4
|
const y = e({ __name: "buttongroup-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
|
|
@@ -9,7 +9,7 @@ const y = e({ __name: "buttongroup-runtime", props: { pageContext: {}, configure
|
|
|
9
9
|
});
|
|
10
10
|
}), (e3, t2) => {
|
|
11
11
|
const n2 = u("el-button-group");
|
|
12
|
-
return
|
|
12
|
+
return a(), r(n2, { ref_key: "componentRef", ref: _, class: l(p(v)), style: i(p(d)) }, { default: s(() => [(a(true), g(c, null, f(e3.configure.items, (t3, n3) => (a(), r(m, { key: t3.uuid, pageContext: e3.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["class", "style"]);
|
|
13
13
|
};
|
|
14
14
|
} });
|
|
15
15
|
export {
|