super-page-runtime 2.3.3-tmp2 → 2.3.4-sit1
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/components/runtime/utils/api/page-expose-util.js +53 -53
- package/dist/es/components/runtime/utils/barcode-util.js +5 -5
- package/dist/es/components/runtime/utils/charts/chart-pie-util.js +45 -46
- package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +14 -16
- package/dist/es/components/runtime/utils/charts/chart-util.js +24 -26
- package/dist/es/components/runtime/utils/events/event-util.js +119 -119
- package/dist/es/components/runtime/utils/events/print-label.js +25 -27
- package/dist/es/components/runtime/utils/events/standard-event.js +469 -481
- package/dist/es/components/runtime/utils/events/validator-util.js +2 -2
- package/dist/es/components/runtime/utils/form/scan-util.js +3 -4
- package/dist/es/components/runtime/utils/page-helper-util.js +275 -275
- package/dist/es/components/runtime/utils/page-init-util.js +44 -48
- package/dist/es/components/runtime/utils/page-store.js +1 -1
- package/dist/es/components/runtime/utils/table-utils.js +30 -30
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +12 -16
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +6 -10
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +9 -11
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +14 -15
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +11 -12
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +17 -18
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +18 -19
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +7 -12
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +18 -19
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +22 -26
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +1 -3
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +63 -63
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +10 -12
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +40 -43
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +120 -123
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +57 -58
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +0 -1
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +29 -29
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +32 -32
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +24 -24
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +53 -51
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +6 -8
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +9 -10
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +0 -1
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +0 -1
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +8 -8
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +15 -15
- package/dist/es/components/runtime/views/home-chart.vue.d.ts +3 -3
- package/dist/es/components/runtime/views/home-chart.vue.js +25 -23
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +6 -7
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +137 -140
- package/dist/es/i18n/langs/cn.js +1 -1
- package/dist/es/i18n/langs/en.js +1 -1
- package/dist/es/style.css +87 -87
- package/package.json +2 -2
|
@@ -1,36 +1,35 @@
|
|
|
1
|
-
import { defineComponent as e, ref as r, onMounted as
|
|
2
|
-
import { getCustomTheme as
|
|
1
|
+
import { defineComponent as e, ref as r, onMounted as t, watch as o, createElementBlock as a, openBlock as n, normalizeClass as u, normalizeStyle as i, unref as s, withDirectives as p, createVNode as c, vShow as f } from "vue";
|
|
2
|
+
import { getCustomTheme as m, initChartOption as h, exportCommonChart as l } from "../../../../utils/charts/chart-util.js";
|
|
3
3
|
import { getChartDatasFromPage as g, updateChartDatasources as d, monitorFieldChange as x } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import { updateChartOption as C } from "../../../../utils/charts/chart-radar-util.js";
|
|
5
|
-
import
|
|
6
|
-
import { use as
|
|
5
|
+
import y from "../common/common-chart-header.vue.js";
|
|
6
|
+
import { use as v } from "echarts/core";
|
|
7
7
|
import { CanvasRenderer as R } from "echarts/renderers";
|
|
8
8
|
import { RadarChart as V } from "echarts/charts";
|
|
9
9
|
import { GridComponent as _, TitleComponent as j, TooltipComponent as w, ToolboxComponent as I, LegendComponent as k } from "echarts/components";
|
|
10
|
-
import
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
const e3 = g(
|
|
10
|
+
import b from "vue-echarts";
|
|
11
|
+
const A = e({ __name: "radar-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: A2 }) {
|
|
12
|
+
v([R, V, _, j, w, I, k]);
|
|
13
|
+
const H = e2, z = r(null), D = r(null), F = r(null), O = H.configure.runtime ? H.configure.runtime : {}, P = O.style, S = O.class, T = O.dataConfig, q = O.headerInfo ? O.headerInfo : {}, B = O.chartOption, E = H.configure.props ? H.configure.props : {}, G = m(E.customTheme);
|
|
14
|
+
h(H.configure, B), t(() => {
|
|
15
|
+
const e3 = g(H.pageContext, H.configure);
|
|
16
16
|
e3 && M(e3);
|
|
17
17
|
});
|
|
18
18
|
let J = q.groupValue;
|
|
19
19
|
function K() {
|
|
20
|
-
T
|
|
20
|
+
T && d(H.pageContext, [T], q.drillParams);
|
|
21
21
|
}
|
|
22
|
-
|
|
22
|
+
o(q, () => {
|
|
23
23
|
J != q.groupValue && (J = q.groupValue, T && (T.services[0].groupValue = q.groupValue), K());
|
|
24
24
|
});
|
|
25
25
|
const L = q.monitorFields;
|
|
26
26
|
function M(e3) {
|
|
27
|
-
|
|
28
|
-
e3.hasRender = true, C(A.pageContext, A.configure, B, e3), console.log("chartOption", B);
|
|
27
|
+
e3 || (e3 = []), Array.isArray(e3) && (e3 = e3.length > 0 ? e3[0] : {}), e3 || (e3 = {}), e3.hasRender ? e3.hasRender = true : (e3.hasRender = true, C(H.pageContext, H.configure, B, e3));
|
|
29
28
|
}
|
|
30
|
-
return x(
|
|
31
|
-
return
|
|
32
|
-
} }), (e3, r2) => (n(), a("div", { style: s(
|
|
29
|
+
return x(H.pageContext, L, K), A2({ updateChartDatas: M, exportChart: function() {
|
|
30
|
+
return l(D.value);
|
|
31
|
+
} }), (e3, r2) => (n(), a("div", { style: i(s(P)), class: u([s(S), "amb-widget-chart amb-widget-flex"]), ref_key: "thisRef", ref: z }, [p(c(y, { ref_key: "headerRef", ref: F, headerInfo: s(q), configure: e3.configure, pageContext: e3.pageContext }, null, 8, ["headerInfo", "configure", "pageContext"]), [[f, s(q).showHeader || e3.pageContext.showHomepageSearch]]), c(s(b), { ref_key: "chartRef", ref: D, theme: s(G), option: s(B), autoresize: "" }, null, 8, ["theme", "option"])], 6));
|
|
33
32
|
} });
|
|
34
33
|
export {
|
|
35
|
-
|
|
34
|
+
A as default
|
|
36
35
|
};
|
|
@@ -1,36 +1,35 @@
|
|
|
1
|
-
import { defineComponent as e, ref as r, onMounted as
|
|
2
|
-
import { getCustomTheme as
|
|
1
|
+
import { defineComponent as e, ref as r, onMounted as t, watch as o, createElementBlock as a, openBlock as n, normalizeClass as s, normalizeStyle as u, unref as i, withDirectives as c, createVNode as p, vShow as f } from "vue";
|
|
2
|
+
import { getCustomTheme as m, initChartOption as h, exportCommonChart as l } from "../../../../utils/charts/chart-util.js";
|
|
3
3
|
import { getChartDatasFromPage as g, updateChartDatasources as d, monitorFieldChange as x } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import { updateChartOption as C } from "../../../../utils/charts/chart-scatter-util.js";
|
|
5
|
-
import
|
|
6
|
-
import { use as
|
|
5
|
+
import y from "../common/common-chart-header.vue.js";
|
|
6
|
+
import { use as v } from "echarts/core";
|
|
7
7
|
import { CanvasRenderer as R } from "echarts/renderers";
|
|
8
8
|
import { ScatterChart as V } from "echarts/charts";
|
|
9
|
-
import { GridComponent as _, LegendComponent as j, TitleComponent as w, TooltipComponent as I, ToolboxComponent as k, DataZoomComponent as
|
|
10
|
-
import
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
const e3 = g(
|
|
9
|
+
import { GridComponent as _, LegendComponent as j, TitleComponent as w, TooltipComponent as I, ToolboxComponent as k, DataZoomComponent as b } from "echarts/components";
|
|
10
|
+
import A from "vue-echarts";
|
|
11
|
+
const H = e({ __name: "scatter-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: H2 }) {
|
|
12
|
+
v([R, V, _, j, w, I, k, b]);
|
|
13
|
+
const z = e2, D = r(null), F = r(null), O = r(null), P = z.configure.runtime ? z.configure.runtime : {}, S = P.style, T = P.class, q = P.dataConfig, B = P.headerInfo ? P.headerInfo : {}, E = P.chartOption, G = z.configure.props ? z.configure.props : {}, J = m(G.customTheme);
|
|
14
|
+
h(z.configure, E), t(() => {
|
|
15
|
+
const e3 = g(z.pageContext, z.configure);
|
|
16
16
|
e3 && N(e3);
|
|
17
17
|
});
|
|
18
18
|
let K = B.groupValue;
|
|
19
19
|
function L() {
|
|
20
|
-
q
|
|
20
|
+
q && d(z.pageContext, [q], B.drillParams);
|
|
21
21
|
}
|
|
22
|
-
|
|
22
|
+
o(B, () => {
|
|
23
23
|
K != B.groupValue && (K = B.groupValue, q && (q.services[0].groupValue = B.groupValue), L());
|
|
24
24
|
});
|
|
25
25
|
const M = B.monitorFields;
|
|
26
26
|
function N(e3) {
|
|
27
|
-
|
|
28
|
-
e3.hasRender = true, C(H.pageContext, H.configure, E, e3), console.log("chartOption scatter", E);
|
|
27
|
+
e3 || (e3 = []), Array.isArray(e3) && (e3 = e3.length > 0 ? e3[0] : {}), e3 || (e3 = {}), e3.hasRender ? e3.hasRender = true : (e3.hasRender = true, C(z.pageContext, z.configure, E, e3));
|
|
29
28
|
}
|
|
30
|
-
return x(
|
|
31
|
-
return
|
|
32
|
-
} }), (e3, r2) => (n(), a("div", { style: i(
|
|
29
|
+
return x(z.pageContext, M, L), H2({ updateChartDatas: N, exportChart: function() {
|
|
30
|
+
return l(F.value);
|
|
31
|
+
} }), (e3, r2) => (n(), a("div", { style: u(i(S)), class: s([i(T), "amb-widget-chart amb-widget-flex"]), ref_key: "thisRef", ref: D }, [c(p(y, { ref_key: "headerRef", ref: O, headerInfo: i(B), configure: e3.configure, pageContext: e3.pageContext }, null, 8, ["headerInfo", "configure", "pageContext"]), [[f, i(B).showHeader || e3.pageContext.showHomepageSearch]]), p(i(A), { ref_key: "chartRef", ref: F, theme: i(J), option: i(E), autoresize: "" }, null, 8, ["theme", "option"])], 6));
|
|
33
32
|
} });
|
|
34
33
|
export {
|
|
35
|
-
|
|
34
|
+
H as default
|
|
36
35
|
};
|
|
@@ -74,7 +74,7 @@ class ExpressionEvaluator {
|
|
|
74
74
|
try {
|
|
75
75
|
return eval(expression);
|
|
76
76
|
} catch (e) {
|
|
77
|
-
return
|
|
77
|
+
return false;
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
}
|
|
@@ -115,7 +115,6 @@ function summaryStatistics(e, t, r, o) {
|
|
|
115
115
|
const e2 = n2.apply(n2, [{ data: t, prop: r }]);
|
|
116
116
|
a = e2 ? ` ${e2}` : " N/A";
|
|
117
117
|
} catch (e2) {
|
|
118
|
-
console.error("自定义函数脚本错误:", t, e2);
|
|
119
118
|
}
|
|
120
119
|
else a = " N/A";
|
|
121
120
|
} else switch (n) {
|
|
@@ -148,8 +147,7 @@ function getHeaderCellStyleUtil(e, t, r) {
|
|
|
148
147
|
const a2 = getCustomFunc(r.pageContext, t2.scopeFunc);
|
|
149
148
|
if (a2) try {
|
|
150
149
|
false !== a2.apply(a2, [{ item: t2, data: e }]) && copyStyle(o, t2);
|
|
151
|
-
} catch (
|
|
152
|
-
console.error("自定义函数脚本错误:", t2, e, r2);
|
|
150
|
+
} catch (e2) {
|
|
153
151
|
}
|
|
154
152
|
} else copyStyle(o, t2);
|
|
155
153
|
}));
|
|
@@ -165,8 +163,7 @@ function getRowStyleUtil(e, t, r) {
|
|
|
165
163
|
if (t3) try {
|
|
166
164
|
const r2 = t3.apply(t3, [{ data: e }]);
|
|
167
165
|
null != r2 && false !== r2 && copyStyle(o, a);
|
|
168
|
-
} catch (
|
|
169
|
-
console.error("自定义函数脚本错误:", e, t4);
|
|
166
|
+
} catch (e2) {
|
|
170
167
|
}
|
|
171
168
|
} else if (a.matchingCondition) {
|
|
172
169
|
const t3 = ExpressionEvaluator.evaluate(r.pageContext, a.matchingCondition, e.row);
|
|
@@ -190,8 +187,7 @@ function getCellStyleUtil(e, t, r) {
|
|
|
190
187
|
const t2 = getCustomFunc(r.pageContext, n.scopeFunc);
|
|
191
188
|
if (t2) try {
|
|
192
189
|
false !== t2.apply(t2, [{ data: e }]) && copyStyle(o, n);
|
|
193
|
-
} catch (
|
|
194
|
-
console.error("自定义函数脚本错误:", e, t3);
|
|
190
|
+
} catch (e2) {
|
|
195
191
|
}
|
|
196
192
|
} else if (n.matchingCondition) {
|
|
197
193
|
const t2 = ExpressionEvaluator.evaluate(r.pageContext, n.matchingCondition, e.row);
|
|
@@ -315,7 +311,7 @@ function computeFormula(itemConfs, datas, entity) {
|
|
|
315
311
|
r += Number(e2[t]);
|
|
316
312
|
});
|
|
317
313
|
} catch (e2) {
|
|
318
|
-
|
|
314
|
+
r = 0;
|
|
319
315
|
}
|
|
320
316
|
totalValueMap[e] = r;
|
|
321
317
|
} else (e.startsWith("${page.") || e.startsWith("${data.") || e.startsWith("${row.") || e.startsWith("${request.") || e.startsWith("${context.") || e.startsWith("${system.") || e.startsWith("${fixed.")) && (totalValueMap[e] = getValueFromVariable(entity, e, data));
|
|
@@ -327,7 +323,7 @@ function computeFormula(itemConfs, datas, entity) {
|
|
|
327
323
|
try {
|
|
328
324
|
data[key] = eval(expr);
|
|
329
325
|
} catch (e) {
|
|
330
|
-
|
|
326
|
+
data[key] = 0;
|
|
331
327
|
}
|
|
332
328
|
});
|
|
333
329
|
});
|
|
@@ -367,8 +363,7 @@ function formatCustomFunc(e, t, r, o, a) {
|
|
|
367
363
|
if (n) {
|
|
368
364
|
try {
|
|
369
365
|
return n.apply(n, [{ pageContext: o, configureObj: a, row: e, prop: r.props.base.prop }]);
|
|
370
|
-
} catch (
|
|
371
|
-
console.error("自定义函数脚本错误:", e, t2);
|
|
366
|
+
} catch (e2) {
|
|
372
367
|
}
|
|
373
368
|
return "";
|
|
374
369
|
}
|
|
@@ -5,7 +5,7 @@ import { getCustomFunc as $ } from "../../../../utils/events/event-util.js";
|
|
|
5
5
|
import F from "./group-column.vue.js";
|
|
6
6
|
import k from "./normal-column.vue.js";
|
|
7
7
|
import I from "./table-pageination.vue.js";
|
|
8
|
-
import { getSummaryTitleColumn as N, getSummaryDataColumn as R, rowDataToColumn as T, getColumnToRowTableConfig as H, colDataToRow as
|
|
8
|
+
import { getSummaryTitleColumn as N, getSummaryDataColumn as R, rowDataToColumn as T, getColumnToRowTableConfig as H, colDataToRow as _, computeFormula as z, getNewColumnConfig as A, summaryStatistics as D, replacePlaceholders as J, getIndexColumn as P, getHeaderCellStyleUtil as U, getRowStyleUtil as V, getCellStyleUtil as G, formatColContent as K } from "./chart-table-util.js";
|
|
9
9
|
import { deepCopy as L } from "../../../../utils/common-util.js";
|
|
10
10
|
const q = e({ __name: "table-runtime", props: { configure: { type: Object, default: () => ({}) }, pageContext: { type: Object, default: () => ({}) } }, setup(e2, { expose: q2 }) {
|
|
11
11
|
var _a;
|
|
@@ -19,7 +19,7 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
19
19
|
}), e3.sort((e4, o2) => e4.displayOrder - o2.displayOrder), re.value = e3, function() {
|
|
20
20
|
if (B.configure.props.base.showIndex) {
|
|
21
21
|
re.value.unshift({ columnUuid: "$index", displayOrder: 0, isLeaf: true, prop: "$index", titleText: "序号", uuid: "$index" });
|
|
22
|
-
const e4 =
|
|
22
|
+
const e4 = P();
|
|
23
23
|
e4 && (te.value.$index = e4);
|
|
24
24
|
}
|
|
25
25
|
}();
|
|
@@ -31,8 +31,7 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
31
31
|
ie.value = B.configure.props.base.showSummary, (ie.value || B.configure.props.highOrder.groupField && B.configure.props.highOrder.groupField.length > 0) && (ae.value = N(B.configure), ie.value && (ue.value = R(B.configure, "table")), B.configure.props.highOrder.groupField && B.configure.props.highOrder.groupField.length > 0 && (pe.value = R(B.configure, "group")));
|
|
32
32
|
let de = 300, he = b(B.pageContext, B.configure);
|
|
33
33
|
function ve(e3) {
|
|
34
|
-
|
|
35
|
-
!function(e4) {
|
|
34
|
+
e3 || (e3 = []), Array.isArray(e3) && (e3 = e3.length > 0 ? e3[0] : {}), e3 || (e3 = {}), e3.hasRender ? e3.hasRender = true : (!function(e4) {
|
|
36
35
|
var _a2;
|
|
37
36
|
Ne(e4), "service" === B.configure.props.dataOrigin.dataSource && e4.result ? me = e4.result[B.configure.props.dataOrigin.service.serviceDataField] : "variable" === B.configure.props.dataOrigin.dataSource && (me = O(B.pageContext.entity, B.configure.props.dataOrigin.variable));
|
|
38
37
|
if (me) if (((_a2 = B.configure.props) == null ? void 0 : _a2.dataOrigin.limitEnable) && B.configure.props.dataOrigin.itemNumSource) {
|
|
@@ -42,12 +41,12 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
42
41
|
o2 = Number(O(B.pageContext.entity, B.configure.props.dataOrigin.itemNumVariable));
|
|
43
42
|
const n2 = B.configure.props.dataOrigin.itemNumVariable.match(/\${(.*?)}/), t2 = n2 ? n2[1].split(".") : [], i2 = JSON.parse(JSON.stringify(me));
|
|
44
43
|
r(() => t2.reduce((e5, o3) => e5[o3], B.pageContext.entity), (o3) => {
|
|
45
|
-
|
|
44
|
+
ye(o3, i2, e4);
|
|
46
45
|
});
|
|
47
46
|
}
|
|
48
47
|
ye(o2, me, e4);
|
|
49
48
|
} else Ce(me, e4);
|
|
50
|
-
}(e3), e3.hasRender = true, X && (X.autoRefresh = false);
|
|
49
|
+
}(e3), e3.hasRender = true, X && (X.autoRefresh = false));
|
|
51
50
|
}
|
|
52
51
|
function ye(e3, o2, n2) {
|
|
53
52
|
var _a2;
|
|
@@ -79,9 +78,9 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
79
78
|
const r2 = B.configure.props.dataOrigin.rowToColumn.titleColumns, t2 = B.configure.props.dataOrigin.rowToColumn.dataColumns, i2 = e4.props.dataOrigin.groupField;
|
|
80
79
|
if ((!i2 || 0 === i2.length) && n2.length > 0) {
|
|
81
80
|
const e5 = [];
|
|
82
|
-
return e5.push(
|
|
81
|
+
return e5.push(A("$GroupColumn", B.configure.props.dataOrigin.rowToColumn.firstColumnTitle, 0, "string")), Object.keys(n2[0]).forEach((o5, n3) => {
|
|
83
82
|
if ("$GroupColumn" === o5) return;
|
|
84
|
-
const r3 =
|
|
83
|
+
const r3 = A(o5, o5, n3 + 1, "string");
|
|
85
84
|
e5.push(r3);
|
|
86
85
|
}), e5;
|
|
87
86
|
}
|
|
@@ -97,7 +96,7 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
97
96
|
}), a2.forEach((o5) => {
|
|
98
97
|
t2.forEach((r3) => {
|
|
99
98
|
var _a3;
|
|
100
|
-
const t3 = (_a3 = ne.value.find((e6) => e6.props.base.prop === r3)) == null ? void 0 : _a3.props.base.name, i4 =
|
|
99
|
+
const t3 = (_a3 = ne.value.find((e6) => e6.props.base.prop === r3)) == null ? void 0 : _a3.props.base.name, i4 = A(`${o5}${r3}`, `${o5}${t3}`, e5.length + 1, "number" == typeof n2[0][`${o5}${r3}`] ? "number" : "string");
|
|
101
100
|
e5.push(i4);
|
|
102
101
|
});
|
|
103
102
|
}), e5;
|
|
@@ -105,7 +104,7 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
105
104
|
}(B.configure, ne.value, e3);
|
|
106
105
|
ne.value = o3;
|
|
107
106
|
}
|
|
108
|
-
} else be("columnToRow") && (ee.value || (ne.value = H(B.configure)), e3 =
|
|
107
|
+
} else be("columnToRow") && (ee.value || (ne.value = H(B.configure)), e3 = _(e3, B.configure));
|
|
109
108
|
if (B.configure.props.dataOrigin.dataFormatting) {
|
|
110
109
|
const o3 = $(B.pageContext, B.configure.props.dataOrigin.dataFormatting);
|
|
111
110
|
if (o3) {
|
|
@@ -113,7 +112,7 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
113
112
|
n2 && (e3 = n2);
|
|
114
113
|
}
|
|
115
114
|
}
|
|
116
|
-
if (Object.keys(ce.value).length > 0 && e3 && e3.length > 0 &&
|
|
115
|
+
if (Object.keys(ce.value).length > 0 && e3 && e3.length > 0 && z(ce.value, e3, B.pageContext.entity), ((_a2 = B.configure.pageination) == null ? void 0 : _a2.enable) ? function(e4) {
|
|
117
116
|
"frontend" === B.configure.pageination.type ? (fe.value = me.length, Fe(1, B.configure.pageination.pageSize)) : "backend" === B.configure.pageination.type && (oe.value = me, B.configure.pageination.totalFrom && (fe.value = e4.result[B.configure.pageination.totalFrom]));
|
|
118
117
|
}(o2) : oe.value = e3, B.configure.props.highOrder.groupField && B.configure.props.highOrder.groupField.length > 0) {
|
|
119
118
|
const e4 = B.configure.props.highOrder.groupField;
|
|
@@ -129,11 +128,11 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
129
128
|
for (let e6 = 0; e6 < a2.length; e6++) {
|
|
130
129
|
const o4 = a2[e6], i3 = {};
|
|
131
130
|
t2 == null ? void 0 : t2.forEach((e7) => {
|
|
132
|
-
const n3 = e7.props.base.prop, r3 =
|
|
131
|
+
const n3 = e7.props.base.prop, r3 = D(pe.value[n3], o4, n3, B.pageContext);
|
|
133
132
|
i3[n3] = r3;
|
|
134
133
|
}), n2.push(...o4), r2 == null ? void 0 : r2.forEach((e7) => {
|
|
135
134
|
const n3 = e7.props.base.prop;
|
|
136
|
-
i3[n3] =
|
|
135
|
+
i3[n3] = J(e7.props.base.summaryTitle, o4[0]);
|
|
137
136
|
}), n2.push(i3), le.push(n2.length - 1);
|
|
138
137
|
}
|
|
139
138
|
return n2;
|
|
@@ -141,7 +140,7 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
141
140
|
}
|
|
142
141
|
!function(e4) {
|
|
143
142
|
if (B.configure.props.base.showIndex && -1 === e4.findIndex((e5) => "$index" === e5.props.base.prop)) {
|
|
144
|
-
const o3 =
|
|
143
|
+
const o3 = P();
|
|
145
144
|
o3 && e4.unshift(o3);
|
|
146
145
|
}
|
|
147
146
|
}(ne.value);
|
|
@@ -151,10 +150,10 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
151
150
|
}
|
|
152
151
|
function xe(e3) {
|
|
153
152
|
const o2 = se.value[e3.column.property] ? se.value[e3.column.property].titleStyle : null, n2 = Q == null ? void 0 : Q.titleStyle;
|
|
154
|
-
return
|
|
153
|
+
return U(e3, { cellTitleStyle: o2, titleStyle: n2 }, B);
|
|
155
154
|
}
|
|
156
155
|
function Oe(e3) {
|
|
157
|
-
return
|
|
156
|
+
return V(e3, le, B);
|
|
158
157
|
}
|
|
159
158
|
function Se(e3) {
|
|
160
159
|
const o2 = se.value[e3.column.property] ? se.value[e3.column.property].cellStyle : null;
|
|
@@ -167,7 +166,7 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
167
166
|
!function() {
|
|
168
167
|
const e4 = B.configure.props.dataOrigin.variable.match(/\${(.*?)}/), o3 = e4 ? e4[1].split(".") : [];
|
|
169
168
|
r(() => o3.reduce((e5, o4) => e5[o4], B.pageContext.entity), (e5) => {
|
|
170
|
-
|
|
169
|
+
e5 ? ve(JSON.parse(JSON.stringify(e5))) : (oe.value = [], B.configure.props.modelCustom ? Ne(null) : ee.value ? re.value = B.configure.props.groupHeaders : ne.value = B.configure.items);
|
|
171
170
|
});
|
|
172
171
|
}();
|
|
173
172
|
const o2 = O(B.pageContext.entity, B.configure.props.dataOrigin.variable);
|
|
@@ -179,10 +178,10 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
179
178
|
return o2.forEach((e4, o3) => {
|
|
180
179
|
if (ae.value[e4.property]) {
|
|
181
180
|
const t2 = ae.value[e4.property].label;
|
|
182
|
-
r2[o3] = y("div", {}, [
|
|
181
|
+
r2[o3] = y("div", {}, [J(t2, n2)]);
|
|
183
182
|
} else if (ue.value[e4.property]) {
|
|
184
183
|
const t2 = n2.filter((e5, o4) => !le.includes(o4));
|
|
185
|
-
r2[o3] =
|
|
184
|
+
r2[o3] = D(ue.value[e4.property], t2, e4.property, B.pageContext);
|
|
186
185
|
}
|
|
187
186
|
}), r2;
|
|
188
187
|
};
|
|
@@ -1,36 +1,32 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, onMounted as
|
|
2
|
-
import { packageTemplateFiles as
|
|
3
|
-
const m = "${",
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as e, ref as t, onMounted as a, resolveComponent as l, createBlock as o, openBlock as p, withCtx as r, createVNode as s, createTextVNode as u, toDisplayString as i } from "vue";
|
|
2
|
+
import { packageTemplateFiles as n } from "../../../utils/common-util.js";
|
|
3
|
+
const m = "${", d = "}", c = e({ __name: "export-form-report-dialog", props: { configure: { type: Object, required: true }, pageContext: { type: Object } }, emits: ["export", "close"], setup(e2, { emit: c2 }) {
|
|
4
|
+
const g = e2, f = c2, b = t([]), h = t([]), x = g.configure.props.base, v = g.pageContext.entity.data;
|
|
5
5
|
function w(e3) {
|
|
6
|
-
let t2, l2;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
const a2 = o2.indexOf(m), n2 = o2.indexOf(c);
|
|
10
|
-
return console.log("prefixIndex", a2), console.log("suffixIndex", n2), -1 !== a2 && -1 !== n2 ? (a2 > n2 ? (o2 = o2.substring(0, n2) + o2.substring(n2 + 1), console.log("non replacement value === newValue", o2)) : (t2 = o2.substring(a2 + 2, n2), l2 = o2.substring(a2, n2 + 1), console.log("field", t2), console.log("formatStr", l2), b.value.push(t2), console.log("fields", b.value), o2 = o2.replace(l2, ""), console.log("newValue", o2)), w(o2)) : b.value;
|
|
6
|
+
let t2, a2, l2 = e3;
|
|
7
|
+
const o2 = l2.indexOf(m), p2 = l2.indexOf(d);
|
|
8
|
+
return -1 !== o2 && -1 !== p2 ? (o2 > p2 ? l2 = l2.substring(0, p2) + l2.substring(p2 + 1) : (t2 = l2.substring(o2 + 2, p2), a2 = l2.substring(o2, p2 + 1), h.value.push(t2), l2 = l2.replace(a2, "")), w(l2)) : h.value;
|
|
11
9
|
}
|
|
12
|
-
function
|
|
10
|
+
function y() {
|
|
13
11
|
f("close");
|
|
14
12
|
}
|
|
15
|
-
return
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}), e4;
|
|
24
|
-
}(e3.templateName));
|
|
13
|
+
return a(() => {
|
|
14
|
+
x.templateFiles && x.templateFiles.length > 0 ? b.value = n(x.templateFiles) : x.templateUuid && x.templateName && b.value.push({ templateUuid: x.templateUuid, templateName: x.templateName }), b.value.forEach((e3) => {
|
|
15
|
+
var t2;
|
|
16
|
+
e3 && e3.templateName && (e3.templateName = (w(t2 = e3.templateName).forEach((e4) => {
|
|
17
|
+
const a2 = m + e4 + d;
|
|
18
|
+
let l2;
|
|
19
|
+
-1 !== t2.indexOf(a2) && v.hasOwnProperty(e4) && (l2 = v[e4] ? v[e4] : "", t2 = t2.replace(a2, l2));
|
|
20
|
+
}), t2));
|
|
25
21
|
});
|
|
26
22
|
}), (e3, t2) => {
|
|
27
|
-
const
|
|
28
|
-
return
|
|
29
|
-
return
|
|
30
|
-
var
|
|
31
|
-
} }, { default:
|
|
23
|
+
const a2 = l("el-table-column"), n2 = l("el-button"), m2 = l("el-table"), d2 = l("el-dialog");
|
|
24
|
+
return p(), o(d2, { "show-close": true, "append-to-body": true, title: e3.$t("superPageRuntimeMessage.selectTemplate"), "model-value": "", onClose: y }, { default: r(() => [s(m2, { data: b.value, style: { width: "100%" } }, { default: r(() => [s(a2, { label: e3.$t("superPageRuntimeMessage.temlpate"), prop: "templateShowPath" }, { default: r((e4) => [u(i(e4.row.templateName), 1)]), _: 1 }, 8, ["label"]), s(a2, { label: e3.$t("superPageRuntimeMessage.operating"), width: "200", fixed: "right" }, { default: r((t3) => [s(n2, { type: "text", size: "small", onClick: (e4) => {
|
|
25
|
+
return a3 = t3.row, void f("export", g.configure, a3);
|
|
26
|
+
var a3;
|
|
27
|
+
} }, { default: r(() => [u(i(e3.$t("superPageRuntimeMessage.export")), 1)]), _: 2 }, 1032, ["onClick"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["data"])]), _: 1 }, 8, ["title"]);
|
|
32
28
|
};
|
|
33
29
|
} });
|
|
34
30
|
export {
|
|
35
|
-
|
|
31
|
+
c as default
|
|
36
32
|
};
|
|
@@ -19,7 +19,6 @@ const p = e({ __name: "YxAffix", props: { offset: { type: Number, default: 0 },
|
|
|
19
19
|
B.value = l2 ?? 0, R(n2 || i2 || false, e3);
|
|
20
20
|
}
|
|
21
21
|
} catch (e3) {
|
|
22
|
-
console.error(e3);
|
|
23
22
|
}
|
|
24
23
|
}, R = (e3, t2) => {
|
|
25
24
|
var _a;
|
|
@@ -54,9 +53,8 @@ const p = e({ __name: "YxAffix", props: { offset: { type: Number, default: 0 },
|
|
|
54
53
|
}
|
|
55
54
|
return [window];
|
|
56
55
|
})();
|
|
57
|
-
|
|
56
|
+
b.value = e3, T.value = e3[0], b.value.forEach((e4) => e4.addEventListener("scroll", z)), window.addEventListener("resize", L), S();
|
|
58
57
|
} catch (e3) {
|
|
59
|
-
console.error(e3);
|
|
60
58
|
}
|
|
61
59
|
});
|
|
62
60
|
}, 100);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from "./tabs-runtime.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const r = e
|
|
3
|
+
import t from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const r = t(e, [["__scopeId", "data-v-df9efce2"]]);
|
|
5
5
|
export {
|
|
6
6
|
r as default
|
|
7
7
|
};
|
|
@@ -1,96 +1,96 @@
|
|
|
1
|
-
import { defineComponent as e, ref as
|
|
1
|
+
import { defineComponent as e, ref as t, watch as n, onMounted as o, nextTick as a, resolveComponent as i, createBlock as c, openBlock as u, unref as l, normalizeClass as r, normalizeStyle as s, withCtx as p, createElementBlock as f, createCommentVNode as g, Fragment as d, renderList as m, createElementVNode as b, toDisplayString as y, withModifiers as v, createTextVNode as h } from "vue";
|
|
2
2
|
import { ElTabs as x, ElTabPane as C } from "element-plus";
|
|
3
3
|
import T from "../../object-render.vue.js";
|
|
4
4
|
import { SuperIcon as E } from "agilebuilder-ui";
|
|
5
|
-
import { handleAfterInitEvent as k, handleEvent as
|
|
6
|
-
import { $t as
|
|
7
|
-
import { isPromise as
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
|
|
5
|
+
import { handleAfterInitEvent as k, handleEvent as N } from "../../../../utils/events/event-util.js";
|
|
6
|
+
import { $t as V } from "../../../../utils/i18n-util.js";
|
|
7
|
+
import { isPromise as _ } from "../../../../utils/page-helper-util.js";
|
|
8
|
+
const A = e({ __name: "tabs-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: A2 }) {
|
|
9
|
+
const P = e2, j = t(""), w = t([]);
|
|
10
|
+
P.configure.items.forEach((e3) => {
|
|
11
11
|
e3.code || (e3.code = e3.index);
|
|
12
|
-
}),
|
|
13
|
-
const O =
|
|
14
|
-
function S(e3,
|
|
15
|
-
return
|
|
12
|
+
}), j.value = P.configure.props.defaultOpen ? P.configure.props.defaultOpen : 1;
|
|
13
|
+
const O = t(null), R = P.configure.runtime ? P.configure.runtime : {}, B = R.style, z = R.class, I = R.headerStyle;
|
|
14
|
+
function S(e3, t2) {
|
|
15
|
+
return N(e3, P.pageContext, P.configure, "before-leave", { activeName: e3, oldActiveName: t2 }) ?? true;
|
|
16
16
|
}
|
|
17
|
-
function D(e3,
|
|
18
|
-
const
|
|
19
|
-
return
|
|
17
|
+
function D(e3, t2) {
|
|
18
|
+
const n2 = { pane: e3, ev: t2 }, o2 = e3.paneName;
|
|
19
|
+
return P.pageContext.activeTab = o2, P.pageContext.activeLabel = n2.label, N(o2, P.pageContext, P.configure, "tab-click", n2);
|
|
20
20
|
}
|
|
21
21
|
function F(e3) {
|
|
22
|
-
const
|
|
23
|
-
return
|
|
22
|
+
const t2 = { paneName: e3 };
|
|
23
|
+
return P.pageContext.activeTab = e3, N(e3, P.pageContext, P.configure, "tab-change", t2);
|
|
24
24
|
}
|
|
25
25
|
function L(e3) {
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
false !==
|
|
29
|
-
}) : false !==
|
|
26
|
+
const t2 = { paneName: e3 }, n2 = N(e3, P.pageContext, P.configure, "tab-remove", t2);
|
|
27
|
+
_(n2) ? n2.then((t3) => {
|
|
28
|
+
false !== t3 && U(e3);
|
|
29
|
+
}) : false !== n2 && U(e3);
|
|
30
30
|
}
|
|
31
31
|
function U(e3) {
|
|
32
|
-
|
|
33
|
-
if (
|
|
34
|
-
const e4 =
|
|
35
|
-
e4 && void 0 !== e4.code && (
|
|
32
|
+
j.value === e3 && P.configure.items.forEach((t2, n2) => {
|
|
33
|
+
if (t2.code === e3) {
|
|
34
|
+
const e4 = P.configure.items[n2 + 1] || P.configure.items[n2 - 1];
|
|
35
|
+
e4 && void 0 !== e4.code && (j.value = e4.code);
|
|
36
36
|
}
|
|
37
|
-
}),
|
|
37
|
+
}), w.value.includes(e3) || w.value.push(e3);
|
|
38
38
|
}
|
|
39
39
|
function q() {
|
|
40
|
-
return
|
|
40
|
+
return N(null, P.pageContext, P.configure, "tab-add");
|
|
41
41
|
}
|
|
42
|
-
function G(e3,
|
|
43
|
-
const
|
|
44
|
-
return
|
|
42
|
+
function G(e3, t2) {
|
|
43
|
+
const n2 = { paneName: e3, action: t2 };
|
|
44
|
+
return N(e3, P.pageContext, P.configure, "edit", n2);
|
|
45
45
|
}
|
|
46
46
|
function H() {
|
|
47
|
-
const e3 =
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
}) : false !== e3 && (
|
|
47
|
+
const e3 = N(P.configure.items, P.pageContext, P.configure, "tab-reset");
|
|
48
|
+
_(e3) ? e3.then((e4) => {
|
|
49
|
+
w.value = [];
|
|
50
|
+
}) : false !== e3 && (w.value = []);
|
|
51
51
|
}
|
|
52
|
-
return
|
|
52
|
+
return n(w, (e3) => {
|
|
53
53
|
e3 && e3.length > 0 ? e3.forEach((e4) => {
|
|
54
|
-
const
|
|
55
|
-
|
|
56
|
-
}) :
|
|
57
|
-
const
|
|
58
|
-
|
|
54
|
+
const t2 = document.getElementById("tab-" + e4);
|
|
55
|
+
t2 && (t2.style.display = "none");
|
|
56
|
+
}) : P.configure.items.forEach((e4) => {
|
|
57
|
+
const t2 = document.getElementById("tab-" + e4.code);
|
|
58
|
+
t2 && (t2.style.display = "");
|
|
59
59
|
});
|
|
60
60
|
}, { deep: true }), o(() => {
|
|
61
61
|
a(() => {
|
|
62
62
|
let e3 = [];
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}), k(null,
|
|
63
|
+
P.configure.items.forEach((t2) => {
|
|
64
|
+
t2.code && e3.push(document.getElementById("tab-" + t2.code));
|
|
65
|
+
}), k(null, P.pageContext, P.configure, { componentRef: O.value, tabsDom: e3, entity: P.pageContext.entity.data, pageData: P.pageContext.entity.page });
|
|
66
66
|
});
|
|
67
|
-
}),
|
|
67
|
+
}), A2({ thisRef: O, activeName: j, hiddenPanes: w, resetTab: H, hiddenTabPanes: function(e3) {
|
|
68
68
|
if (Array.isArray(e3)) {
|
|
69
|
-
const
|
|
69
|
+
const t2 = [];
|
|
70
70
|
e3.forEach((e4) => {
|
|
71
|
-
|
|
72
|
-
}),
|
|
73
|
-
}
|
|
71
|
+
w.value.includes(e4) || t2.push(e4);
|
|
72
|
+
}), t2.length > 0 && w.value.push(...t2);
|
|
73
|
+
}
|
|
74
74
|
}, showTabPanes: function(e3) {
|
|
75
|
-
Array.isArray(e3)
|
|
76
|
-
const
|
|
77
|
-
|
|
78
|
-
})
|
|
75
|
+
Array.isArray(e3) && e3.forEach((e4) => {
|
|
76
|
+
const t2 = w.value.indexOf(e4);
|
|
77
|
+
t2 > -1 && w.value.splice(t2, 1);
|
|
78
|
+
});
|
|
79
79
|
}, showTabPanesOnly: function(e3) {
|
|
80
|
-
const
|
|
81
|
-
|
|
82
|
-
e3.includes(
|
|
83
|
-
}),
|
|
80
|
+
const t2 = [];
|
|
81
|
+
P.configure.items.forEach((n2) => {
|
|
82
|
+
e3.includes(n2.code) || t2.push(n2.code);
|
|
83
|
+
}), w.value = [...new Set(t2)];
|
|
84
84
|
}, hiddenTabPanesOnly: function(e3) {
|
|
85
|
-
const
|
|
86
|
-
|
|
87
|
-
e3.includes(
|
|
88
|
-
}),
|
|
89
|
-
} }), (e3,
|
|
90
|
-
const
|
|
91
|
-
return
|
|
85
|
+
const t2 = [];
|
|
86
|
+
P.configure.items.forEach((n2) => {
|
|
87
|
+
e3.includes(n2.code) && t2.push(n2.code);
|
|
88
|
+
}), w.value = [...new Set(t2)];
|
|
89
|
+
} }), (e3, t2) => {
|
|
90
|
+
const n2 = i("el-button");
|
|
91
|
+
return u(), c(l(x), { ref_key: "thisRef", ref: O, modelValue: j.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => j.value = e4), type: e3.configure.props.cardType, "tab-position": e3.configure.props.tabPosition, style: s(l(B)), class: r([l(z), "runtime-page-container-tabs-view"]), closable: e3.configure.props.closable, "before-leave": S, onTabClick: D, onTabChange: F, onTabRemove: L, onTabAdd: q, onEdit: G }, { default: p(() => [(u(true), f(d, null, m(P.configure.items, (t3, n3) => (u(), c(l(C), { key: n3, label: t3.label, name: t3.code, lazy: !!e3.configure.props.lazy }, { label: p(() => [t3.iconType && t3.iconValue ? (u(), c(l(E), { key: 0, iconType: t3.iconType, iconValue: t3.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : g("", true), b("span", { style: s(l(I)) }, y(l(V)(t3.label)), 5)]), default: p(() => [(e3.configure.props.isFullyRendered ?? 1) || t3.code === j.value ? (u(true), f(d, { key: 0 }, m(t3.items, (t4) => (u(), c(T, { key: t4.uuid, pageContext: e3.pageContext, configure: t4 }, null, 8, ["pageContext", "configure"]))), 128)) : g("", true)]), _: 2 }, 1032, ["label", "name", "lazy"]))), 128)), e3.configure.props.resetable ? (u(), c(l(C), { key: 0, disabled: "", name: "-1" }, { label: p(() => [e3.configure.props.resetable ? (u(), c(n2, { key: 0, type: "text", circle: "", onClick: v(H, ["stop"]) }, { default: p(() => [h(y(e3.configure.props.resetButtonName || "重置"), 1)]), _: 1 })) : g("", true)]), _: 1 })) : g("", true)]), _: 1 }, 8, ["modelValue", "type", "tab-position", "style", "class", "closable"]);
|
|
92
92
|
};
|
|
93
93
|
} });
|
|
94
94
|
export {
|
|
95
|
-
|
|
95
|
+
A as default
|
|
96
96
|
};
|