super-page-runtime 2.2.86 → 2.2.89-sit10
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 +56 -56
- 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 +2 -4
- package/dist/es/components/runtime/utils/events/event-util.js +113 -113
- package/dist/es/components/runtime/utils/events/print-label.js +42 -43
- package/dist/es/components/runtime/utils/events/standard-event.js +541 -543
- package/dist/es/components/runtime/utils/events/validator-util.js +32 -32
- package/dist/es/components/runtime/utils/form/scan-util.js +3 -4
- package/dist/es/components/runtime/utils/page-helper-util.js +210 -210
- package/dist/es/components/runtime/utils/page-init-util.js +43 -47
- package/dist/es/components/runtime/utils/page-store.js +1 -1
- package/dist/es/components/runtime/utils/table-utils.js +32 -27
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +6 -6
- 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 +12 -13
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +13 -14
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +14 -15
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +16 -17
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +19 -13
- 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.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +2 -4
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +11 -8
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +1 -1
- 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 +85 -88
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +108 -111
- 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 +50 -49
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +59 -51
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +41 -42
- 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/object-render.vue.js +1 -1
- package/dist/es/components/runtime/views/home-chart.vue.js +7 -7
- 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 +123 -125
- package/dist/es/style.css +101 -92
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
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
5
|
import v from "../common/common-chart-header.vue.js";
|
|
@@ -7,30 +7,29 @@ import { use as R } from "echarts/core";
|
|
|
7
7
|
import { CanvasRenderer as y } 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
|
|
10
|
+
import b from "vue-echarts";
|
|
11
|
+
const H = e({ __name: "radar-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: H2 }) {
|
|
12
12
|
R([y, V, _, j, w, I, k]);
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
const e3 = g(
|
|
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, A = P.headerInfo ? P.headerInfo : {}, B = P.chartOption, E = z.configure.props ? z.configure.props : {}, G = m(E.customTheme);
|
|
14
|
+
h(z.configure, B), t(() => {
|
|
15
|
+
const e3 = g(z.pageContext, z.configure);
|
|
16
16
|
e3 && M(e3);
|
|
17
17
|
});
|
|
18
18
|
let J = A.groupValue;
|
|
19
19
|
function K() {
|
|
20
|
-
q
|
|
20
|
+
q && d(z.pageContext, [q], A.drillParams);
|
|
21
21
|
}
|
|
22
|
-
|
|
22
|
+
o(A, () => {
|
|
23
23
|
J != A.groupValue && (J = A.groupValue, q && (q.services[0].groupValue = A.groupValue), K());
|
|
24
24
|
});
|
|
25
25
|
const L = A.monitorFields;
|
|
26
26
|
function M(e3) {
|
|
27
|
-
|
|
28
|
-
e3.hasRender = true, C(H.pageContext, H.configure, B, e3), console.log("chartOption", B);
|
|
27
|
+
e3 || (e3 = []), (e3 = e3.length > 0 ? e3[0] : {}) || (e3 = {}), e3.hasRender ? e3.hasRender = true : (e3.hasRender = true, C(z.pageContext, z.configure, B, e3));
|
|
29
28
|
}
|
|
30
|
-
return x(
|
|
31
|
-
return
|
|
32
|
-
} }), (e3, r2) => (
|
|
29
|
+
return x(z.pageContext, L, K), H2({ updateChartDatas: M, exportChart: function() {
|
|
30
|
+
return l(F.value);
|
|
31
|
+
} }), (e3, r2) => (n(), a("div", { style: i(s(S)), class: u([s(T), "amb-widget-chart amb-widget-flex"]), ref_key: "thisRef", ref: D }, [p(c(v, { ref_key: "headerRef", ref: O, headerInfo: s(A), configure: e3.configure, pageContext: e3.pageContext }, null, 8, ["headerInfo", "configure", "pageContext"]), [[f, s(A).showHeader || e3.pageContext.showHomepageSearch]]), c(s(b), { ref_key: "chartRef", ref: F, theme: s(G), option: s(B), autoresize: "" }, null, 8, ["theme", "option"])], 6));
|
|
33
32
|
} });
|
|
34
33
|
export {
|
|
35
|
-
|
|
34
|
+
H 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 u, normalizeStyle as s, 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
5
|
import v from "../common/common-chart-header.vue.js";
|
|
6
6
|
import { use as R } from "echarts/core";
|
|
7
7
|
import { CanvasRenderer as y } 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
|
-
R([y, V, _, j, w, I, k,
|
|
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 H from "vue-echarts";
|
|
11
|
+
const z = e({ __name: "scatter-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: z2 }) {
|
|
12
|
+
R([y, V, _, j, w, I, k, b]);
|
|
13
|
+
const D = e2, F = r(null), O = r(null), P = r(null), S = D.configure.runtime ? D.configure.runtime : {}, T = S.style, q = S.class, A = S.dataConfig, B = S.headerInfo ? S.headerInfo : {}, E = S.chartOption, G = D.configure.props ? D.configure.props : {}, J = m(G.customTheme);
|
|
14
|
+
h(D.configure, E), t(() => {
|
|
15
|
+
const e3 = g(D.pageContext, D.configure);
|
|
16
16
|
e3 && N(e3);
|
|
17
17
|
});
|
|
18
18
|
let K = B.groupValue;
|
|
19
19
|
function L() {
|
|
20
|
-
A
|
|
20
|
+
A && d(D.pageContext, [A], B.drillParams);
|
|
21
21
|
}
|
|
22
|
-
|
|
22
|
+
o(B, () => {
|
|
23
23
|
K != B.groupValue && (K = B.groupValue, A && (A.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(z.pageContext, z.configure, E, e3), console.log("chartOption scatter", E);
|
|
27
|
+
e3 || (e3 = []), (e3 = e3.length > 0 ? e3[0] : {}) || (e3 = {}), e3.hasRender ? e3.hasRender = true : (e3.hasRender = true, C(D.pageContext, D.configure, E, e3));
|
|
29
28
|
}
|
|
30
|
-
return x(
|
|
31
|
-
return
|
|
32
|
-
} }), (e3, r2) => (
|
|
29
|
+
return x(D.pageContext, M, L), z2({ updateChartDatas: N, exportChart: function() {
|
|
30
|
+
return l(O.value);
|
|
31
|
+
} }), (e3, r2) => (n(), a("div", { style: s(i(T)), class: u([i(q), "amb-widget-chart amb-widget-flex"]), ref_key: "thisRef", ref: F }, [c(p(v, { ref_key: "headerRef", ref: P, headerInfo: i(B), configure: e3.configure, pageContext: e3.pageContext }, null, 8, ["headerInfo", "configure", "pageContext"]), [[f, i(B).showHeader || e3.pageContext.showHomepageSearch]]), p(i(H), { ref_key: "chartRef", ref: O, theme: i(J), option: i(E), autoresize: "" }, null, 8, ["theme", "option"])], 6));
|
|
33
32
|
} });
|
|
34
33
|
export {
|
|
35
|
-
|
|
34
|
+
z as default
|
|
36
35
|
};
|
|
@@ -38,6 +38,9 @@ class ExpressionEvaluator {
|
|
|
38
38
|
case "IS_NOT_NULL":
|
|
39
39
|
return `${a} !== null`;
|
|
40
40
|
case "IN":
|
|
41
|
+
if ("TEXT" === o) {
|
|
42
|
+
return `${n.split(",")}.includes(${a})`;
|
|
43
|
+
}
|
|
41
44
|
return `[${n}].includes(${a})`;
|
|
42
45
|
default:
|
|
43
46
|
throw new Error(`比较符号不匹配: ${t}`);
|
|
@@ -45,7 +48,13 @@ class ExpressionEvaluator {
|
|
|
45
48
|
}
|
|
46
49
|
static changeDataType(e) {
|
|
47
50
|
let t = e;
|
|
48
|
-
|
|
51
|
+
if (e) {
|
|
52
|
+
if ("TEXT" === e) t = "string";
|
|
53
|
+
else if ("DATE" === e || "TIME" === e) t = "date";
|
|
54
|
+
else if ("DOUBLE" === e || "FLOAT" === e || "INTEGER" === e || "LONG" === e) t = "number";
|
|
55
|
+
else if ("BOOLEAN" === e) return "boolean";
|
|
56
|
+
}
|
|
57
|
+
return t;
|
|
49
58
|
}
|
|
50
59
|
static parseValue(e, t) {
|
|
51
60
|
switch (t = this.changeDataType(t)) {
|
|
@@ -55,6 +64,8 @@ class ExpressionEvaluator {
|
|
|
55
64
|
return new Date(e).getTime();
|
|
56
65
|
case "string":
|
|
57
66
|
return `"${e}"`;
|
|
67
|
+
case "boolean":
|
|
68
|
+
return "true" === e || true === e || 1 === e;
|
|
58
69
|
default:
|
|
59
70
|
throw new Error(`数据类型解析错误: ${t}`);
|
|
60
71
|
}
|
|
@@ -63,7 +74,7 @@ class ExpressionEvaluator {
|
|
|
63
74
|
try {
|
|
64
75
|
return eval(expression);
|
|
65
76
|
} catch (e) {
|
|
66
|
-
return
|
|
77
|
+
return false;
|
|
67
78
|
}
|
|
68
79
|
}
|
|
69
80
|
}
|
|
@@ -104,7 +115,6 @@ function summaryStatistics(e, t, r, o) {
|
|
|
104
115
|
const e2 = n2.apply(n2, [{ data: t, prop: r }]);
|
|
105
116
|
a = e2 ? ` ${e2}` : " N/A";
|
|
106
117
|
} catch (e2) {
|
|
107
|
-
console.error("自定义函数脚本错误:", t, e2);
|
|
108
118
|
}
|
|
109
119
|
else a = " N/A";
|
|
110
120
|
} else switch (n) {
|
|
@@ -137,8 +147,7 @@ function getHeaderCellStyleUtil(e, t, r) {
|
|
|
137
147
|
const a2 = getCustomFunc(r.pageContext, t2.scopeFunc);
|
|
138
148
|
if (a2) try {
|
|
139
149
|
false !== a2.apply(a2, [{ item: t2, data: e }]) && copyStyle(o, t2);
|
|
140
|
-
} catch (
|
|
141
|
-
console.error("自定义函数脚本错误:", t2, e, r2);
|
|
150
|
+
} catch (e2) {
|
|
142
151
|
}
|
|
143
152
|
} else copyStyle(o, t2);
|
|
144
153
|
}));
|
|
@@ -154,8 +163,7 @@ function getRowStyleUtil(e, t, r) {
|
|
|
154
163
|
if (t3) try {
|
|
155
164
|
const r2 = t3.apply(t3, [{ data: e }]);
|
|
156
165
|
null != r2 && false !== r2 && copyStyle(o, a);
|
|
157
|
-
} catch (
|
|
158
|
-
console.error("自定义函数脚本错误:", e, t4);
|
|
166
|
+
} catch (e2) {
|
|
159
167
|
}
|
|
160
168
|
} else if (a.matchingCondition) {
|
|
161
169
|
const t3 = ExpressionEvaluator.evaluate(r.pageContext, a.matchingCondition, e.row);
|
|
@@ -179,8 +187,7 @@ function getCellStyleUtil(e, t, r) {
|
|
|
179
187
|
const t2 = getCustomFunc(r.pageContext, n.scopeFunc);
|
|
180
188
|
if (t2) try {
|
|
181
189
|
false !== t2.apply(t2, [{ data: e }]) && copyStyle(o, n);
|
|
182
|
-
} catch (
|
|
183
|
-
console.error("自定义函数脚本错误:", e, t3);
|
|
190
|
+
} catch (e2) {
|
|
184
191
|
}
|
|
185
192
|
} else if (n.matchingCondition) {
|
|
186
193
|
const t2 = ExpressionEvaluator.evaluate(r.pageContext, n.matchingCondition, e.row);
|
|
@@ -304,7 +311,7 @@ function computeFormula(itemConfs, datas, entity) {
|
|
|
304
311
|
r += Number(e2[t]);
|
|
305
312
|
});
|
|
306
313
|
} catch (e2) {
|
|
307
|
-
|
|
314
|
+
r = 0;
|
|
308
315
|
}
|
|
309
316
|
totalValueMap[e] = r;
|
|
310
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));
|
|
@@ -316,7 +323,7 @@ function computeFormula(itemConfs, datas, entity) {
|
|
|
316
323
|
try {
|
|
317
324
|
data[key] = eval(expr);
|
|
318
325
|
} catch (e) {
|
|
319
|
-
|
|
326
|
+
data[key] = 0;
|
|
320
327
|
}
|
|
321
328
|
});
|
|
322
329
|
});
|
|
@@ -356,8 +363,7 @@ function formatCustomFunc(e, t, r, o, a) {
|
|
|
356
363
|
if (n) {
|
|
357
364
|
try {
|
|
358
365
|
return n.apply(n, [{ pageContext: o, configureObj: a, row: e, prop: r.props.base.prop }]);
|
|
359
|
-
} catch (
|
|
360
|
-
console.error("自定义函数脚本错误:", e, t2);
|
|
366
|
+
} catch (e2) {
|
|
361
367
|
}
|
|
362
368
|
return "";
|
|
363
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 D, summaryStatistics as J, replacePlaceholders as P, getIndexColumn as U, getHeaderCellStyleUtil as V, getRowStyleUtil as G, getCellStyleUtil as K, formatColContent as A } 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 = U();
|
|
23
23
|
e4 && (te.value.$index = e4);
|
|
24
24
|
}
|
|
25
25
|
}();
|
|
@@ -33,12 +33,11 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
33
33
|
function ve() {
|
|
34
34
|
const e3 = B.configure.props.dataOrigin.variable.match(/\${(.*?)}/), o2 = e3 ? e3[1].split(".") : [];
|
|
35
35
|
r(() => o2.reduce((e4, o3) => e4[o3], B.pageContext.entity), (e4) => {
|
|
36
|
-
|
|
36
|
+
e4 ? ye(JSON.parse(JSON.stringify(e4))) : (oe.value = [], B.configure.props.modelCustom ? Re(null) : ee.value ? re.value = B.configure.props.groupHeaders : ne.value = B.configure.items);
|
|
37
37
|
});
|
|
38
38
|
}
|
|
39
39
|
function ye(e3) {
|
|
40
|
-
|
|
41
|
-
!function(e4) {
|
|
40
|
+
e3 || (e3 = []), (e3 = e3.length > 0 ? e3[0] : {}) || (e3 = {}), e3.hasRender ? e3.hasRender = true : (!function(e4) {
|
|
42
41
|
var _a2;
|
|
43
42
|
Re(e4), "service" === B.configure.props.dataOrigin.dataSource && e4.result ? me = e4.result[B.configure.props.dataOrigin.service.serviceDataField] : "variable" === B.configure.props.dataOrigin.dataSource && (ve(), me = O(B.pageContext.entity, B.configure.props.dataOrigin.variable));
|
|
44
43
|
if (me) if (((_a2 = B.configure.props) == null ? void 0 : _a2.dataOrigin.limitEnable) && B.configure.props.dataOrigin.itemNumSource) {
|
|
@@ -48,12 +47,12 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
48
47
|
o2 = Number(O(B.pageContext.entity, B.configure.props.dataOrigin.itemNumVariable));
|
|
49
48
|
const n2 = B.configure.props.dataOrigin.itemNumVariable.match(/\${(.*?)}/), t2 = n2 ? n2[1].split(".") : [], i2 = JSON.parse(JSON.stringify(me));
|
|
50
49
|
r(() => t2.reduce((e5, o3) => e5[o3], B.pageContext.entity), (o3) => {
|
|
51
|
-
|
|
50
|
+
Ce(o3, i2, e4);
|
|
52
51
|
});
|
|
53
52
|
}
|
|
54
53
|
Ce(o2, me, e4);
|
|
55
54
|
} else be(me, e4);
|
|
56
|
-
}(e3), e3.hasRender = true, X && (X.autoRefresh = false);
|
|
55
|
+
}(e3), e3.hasRender = true, X && (X.autoRefresh = false));
|
|
57
56
|
}
|
|
58
57
|
function Ce(e3, o2, n2) {
|
|
59
58
|
var _a2;
|
|
@@ -85,9 +84,9 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
85
84
|
const r2 = B.configure.props.dataOrigin.rowToColumn.titleColumns, t2 = B.configure.props.dataOrigin.rowToColumn.dataColumns, i2 = e4.props.dataOrigin.groupField;
|
|
86
85
|
if ((!i2 || 0 === i2.length) && n2.length > 0) {
|
|
87
86
|
const e5 = [];
|
|
88
|
-
return e5.push(
|
|
87
|
+
return e5.push(D("$GroupColumn", B.configure.props.dataOrigin.rowToColumn.firstColumnTitle, 0, "string")), Object.keys(n2[0]).forEach((o5, n3) => {
|
|
89
88
|
if ("$GroupColumn" === o5) return;
|
|
90
|
-
const r3 =
|
|
89
|
+
const r3 = D(o5, o5, n3 + 1, "string");
|
|
91
90
|
e5.push(r3);
|
|
92
91
|
}), e5;
|
|
93
92
|
}
|
|
@@ -103,7 +102,7 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
103
102
|
}), a2.forEach((o5) => {
|
|
104
103
|
t2.forEach((r3) => {
|
|
105
104
|
var _a3;
|
|
106
|
-
const t3 = (_a3 = ne.value.find((e6) => e6.props.base.prop === r3)) == null ? void 0 : _a3.props.base.name, i4 =
|
|
105
|
+
const t3 = (_a3 = ne.value.find((e6) => e6.props.base.prop === r3)) == null ? void 0 : _a3.props.base.name, i4 = D(`${o5}${r3}`, `${o5}${t3}`, e5.length + 1, "number" == typeof n2[0][`${o5}${r3}`] ? "number" : "string");
|
|
107
106
|
e5.push(i4);
|
|
108
107
|
});
|
|
109
108
|
}), e5;
|
|
@@ -111,7 +110,7 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
111
110
|
}(B.configure, ne.value, e3);
|
|
112
111
|
ne.value = o3;
|
|
113
112
|
}
|
|
114
|
-
} else xe("columnToRow") && (ee.value || (ne.value = H(B.configure)), e3 =
|
|
113
|
+
} else xe("columnToRow") && (ee.value || (ne.value = H(B.configure)), e3 = _(e3, B.configure));
|
|
115
114
|
if (B.configure.props.dataOrigin.dataFormatting) {
|
|
116
115
|
const o3 = $(B.pageContext, B.configure.props.dataOrigin.dataFormatting);
|
|
117
116
|
if (o3) {
|
|
@@ -119,7 +118,7 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
119
118
|
n2 && (e3 = n2);
|
|
120
119
|
}
|
|
121
120
|
}
|
|
122
|
-
if (Object.keys(ce.value).length > 0 && e3 && e3.length > 0 &&
|
|
121
|
+
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) {
|
|
123
122
|
"frontend" === B.configure.pageination.type ? (fe.value = me.length, ke(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]));
|
|
124
123
|
}(o2) : oe.value = e3, B.configure.props.highOrder.groupField && B.configure.props.highOrder.groupField.length > 0) {
|
|
125
124
|
const e4 = B.configure.props.highOrder.groupField;
|
|
@@ -135,11 +134,11 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
135
134
|
for (let e6 = 0; e6 < a2.length; e6++) {
|
|
136
135
|
const o4 = a2[e6], i3 = {};
|
|
137
136
|
t2 == null ? void 0 : t2.forEach((e7) => {
|
|
138
|
-
const n3 = e7.props.base.prop, r3 =
|
|
137
|
+
const n3 = e7.props.base.prop, r3 = J(pe.value[n3], o4, n3, B.pageContext);
|
|
139
138
|
i3[n3] = r3;
|
|
140
139
|
}), n2.push(...o4), r2 == null ? void 0 : r2.forEach((e7) => {
|
|
141
140
|
const n3 = e7.props.base.prop;
|
|
142
|
-
i3[n3] =
|
|
141
|
+
i3[n3] = P(e7.props.base.summaryTitle, o4[0]);
|
|
143
142
|
}), n2.push(i3), le.push(n2.length - 1);
|
|
144
143
|
}
|
|
145
144
|
return n2;
|
|
@@ -147,7 +146,7 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
147
146
|
}
|
|
148
147
|
!function(e4) {
|
|
149
148
|
if (B.configure.props.base.showIndex && -1 === e4.findIndex((e5) => "$index" === e5.props.base.prop)) {
|
|
150
|
-
const o3 =
|
|
149
|
+
const o3 = U();
|
|
151
150
|
o3 && e4.unshift(o3);
|
|
152
151
|
}
|
|
153
152
|
}(ne.value);
|
|
@@ -157,7 +156,7 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
157
156
|
}
|
|
158
157
|
function Oe(e3) {
|
|
159
158
|
const o2 = se.value[e3.column.property] ? se.value[e3.column.property].titleStyle : null, n2 = Q == null ? void 0 : Q.titleStyle;
|
|
160
|
-
return
|
|
159
|
+
return V(e3, { cellTitleStyle: o2, titleStyle: n2 }, B);
|
|
161
160
|
}
|
|
162
161
|
function Se(e3) {
|
|
163
162
|
return G(e3, le, B);
|
|
@@ -180,10 +179,10 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
180
179
|
return o2.forEach((e4, o3) => {
|
|
181
180
|
if (ae.value[e4.property]) {
|
|
182
181
|
const t2 = ae.value[e4.property].label;
|
|
183
|
-
r2[o3] = y("div", {}, [
|
|
182
|
+
r2[o3] = y("div", {}, [P(t2, n2)]);
|
|
184
183
|
} else if (ue.value[e4.property]) {
|
|
185
184
|
const t2 = n2.filter((e5, o4) => !le.includes(o4));
|
|
186
|
-
r2[o3] =
|
|
185
|
+
r2[o3] = J(ue.value[e4.property], t2, e4.property, B.pageContext);
|
|
187
186
|
}
|
|
188
187
|
}), r2;
|
|
189
188
|
};
|
|
@@ -248,7 +247,7 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
248
247
|
}(n2), columns: e3 };
|
|
249
248
|
} }), (o2, n2) => {
|
|
250
249
|
const r2 = t("el-table");
|
|
251
|
-
return a(), i("div", { style: p(
|
|
250
|
+
return a(), i("div", { style: p(l(Q)), class: u([l(W), "amb-widget-chart amb-widget-flex"]), ref: "thisRef" }, [s(c(C, { ref_key: "headerRef", ref: Z, headerInfo: l(Y), configure: e2.configure, pageContext: e2.pageContext }, null, 8, ["headerInfo", "configure", "pageContext"]), [[m, l(Y).showHeader || e2.pageContext.showHomepageSearch]]), c(r2, { ref_key: "gridRef", ref: ge, data: oe.value, style: { width: "100%" }, "max-height": l(de), "header-cell-style": Oe, "row-style": Se, "cell-style": we, "show-summary": ie.value, stripe: e2.configure.props.base.stripe, "summary-method": Ee, "span-method": je }, { default: d(() => [ee.value ? (a(true), i(h, { key: 0 }, v(re.value, (o3, n3) => (a(), i(h, { key: n3 }, [o3.isLeaf ? Ne(te.value[o3.columnUuid]) ? (a(), g(k, { key: 1, configure: e2.configure, pageContext: e2.pageContext, column: te.value[o3.columnUuid] }, null, 8, ["configure", "pageContext", "column"])) : f("", true) : (a(), g(F, { key: 0, configure: e2.configure, pageContext: e2.pageContext, groupColumn: o3, columnsConfigKeyValues: te.value }, null, 8, ["configure", "pageContext", "groupColumn", "columnsConfigKeyValues"]))], 64))), 128)) : (a(true), i(h, { key: 1 }, v(ne.value, (o3, n3) => (a(), i(h, { key: n3 }, [Ne(o3) ? (a(), g(k, { key: 0, column: o3, configure: e2.configure, pageContext: e2.pageContext }, null, 8, ["column", "configure", "pageContext"])) : f("", true)], 64))), 128))]), _: 1 }, 8, ["data", "max-height", "show-summary", "stripe"]), e2.configure.pageination && e2.configure.pageination.enable ? (a(), g(I, { key: 0, configure: e2.configure, "table-data": oe.value, total: fe.value, onPageChange: $e, onPageSizeChange: Fe }, null, 8, ["configure", "table-data", "total"])) : f("", true)], 6);
|
|
252
251
|
};
|
|
253
252
|
} });
|
|
254
253
|
export {
|
|
@@ -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
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "./YxAffix.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import o from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const r = o(e, [["__scopeId", "data-v-
|
|
4
|
+
const r = o(e, [["__scopeId", "data-v-a994b02d"]]);
|
|
5
5
|
export {
|
|
6
6
|
r as default
|
|
7
7
|
};
|
|
@@ -14,12 +14,11 @@ const p = e({ __name: "YxAffix", props: { offset: { type: Number, default: 0 },
|
|
|
14
14
|
const t3 = ["top"].includes(h.position), o3 = ["bottom"].includes(h.position);
|
|
15
15
|
if (!g.value) return { isTop: t3, isBottom: o3 };
|
|
16
16
|
const n3 = g.value.getBoundingClientRect(), i3 = n3.top - e4.top, l3 = n3.left - e4.left, a2 = e4.height - n3.height - i3, r2 = e4.top, s2 = window.innerHeight - e4.bottom;
|
|
17
|
-
return { isTop: t3, isBottom: o3, containerTop: r2, containerBottom: s2, containerOffset: t3 ? r2 : o3 ? s2 : 0, offsetTop: i3, offsetLeft: l3, offsetBottom: a2, isFixTop: t3 && i3
|
|
17
|
+
return { isTop: t3, isBottom: o3, containerTop: r2, containerBottom: s2, containerOffset: t3 ? r2 : o3 ? s2 : 0, offsetTop: i3, offsetLeft: l3, offsetBottom: a2, isFixTop: t3 && i3 < 0, isFixBottom: o3 && a2 < 0 };
|
|
18
18
|
})(o2);
|
|
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
1
|
import t from "./tabs-runtime.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import e from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const r = e(t, [["__scopeId", "data-v-
|
|
4
|
+
const r = e(t, [["__scopeId", "data-v-9d724974"]]);
|
|
5
5
|
export {
|
|
6
6
|
r as default
|
|
7
7
|
};
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, onMounted as n, nextTick as o, createBlock as a, openBlock as i, unref as l, normalizeClass as u, normalizeStyle as r, withCtx as
|
|
2
|
-
import { ElTabs as
|
|
3
|
-
import
|
|
4
|
-
import { SuperIcon as
|
|
5
|
-
import { handleAfterInitEvent as
|
|
1
|
+
import { defineComponent as e, ref as t, onMounted as n, nextTick as o, createBlock as a, openBlock as i, unref as l, normalizeClass as u, normalizeStyle as r, withCtx as c, createElementBlock as p, Fragment as s, renderList as f, createCommentVNode as g, createElementVNode as m, toDisplayString as d } from "vue";
|
|
2
|
+
import { ElTabs as b, ElTabPane as y } from "element-plus";
|
|
3
|
+
import v from "../../object-render.vue.js";
|
|
4
|
+
import { SuperIcon as x } from "agilebuilder-ui";
|
|
5
|
+
import { handleAfterInitEvent as C, handleEvent as T } from "../../../../utils/events/event-util.js";
|
|
6
6
|
import { $t as h } from "../../../../utils/i18n-util.js";
|
|
7
7
|
const k = e({ __name: "tabs-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
|
|
8
8
|
const k2 = e2, V = t(null);
|
|
9
9
|
V.value = k2.configure.props.defaultOpen ? k2.configure.props.defaultOpen : 1;
|
|
10
|
-
const
|
|
10
|
+
const N = t(null), _ = k2.configure.runtime ? k2.configure.runtime : {}, j = _.style, R = _.class, z = _.headerStyle;
|
|
11
|
+
function A(e3, t2) {
|
|
12
|
+
return T(e3, k2.pageContext, k2.configure, "before-leave", { activeName: e3, oldActiveName: t2 }) ?? true;
|
|
13
|
+
}
|
|
11
14
|
function D(e3, t2) {
|
|
12
15
|
const n2 = { pane: e3, ev: t2 }, o2 = e3.paneName;
|
|
13
16
|
return k2.pageContext.activeTab = o2, k2.pageContext.activeLabel = n2.label, T(o2, k2.pageContext, k2.configure, "tab-click", n2);
|
|
@@ -32,9 +35,9 @@ const k = e({ __name: "tabs-runtime", props: { pageContext: {}, configure: {} },
|
|
|
32
35
|
let e3 = [];
|
|
33
36
|
k2.configure.items.forEach((t2) => {
|
|
34
37
|
t2.code && e3.push(document.querySelector("." + t2.code));
|
|
35
|
-
}),
|
|
38
|
+
}), C(null, k2.pageContext, k2.configure, { componentRef: N.value, tabsDom: e3, entity: k2.pageContext.entity.data, pageData: k2.pageContext.entity.page });
|
|
36
39
|
});
|
|
37
|
-
}), (e3, t2) => (i(), a(l(
|
|
40
|
+
}), (e3, t2) => (i(), a(l(b), { ref_key: "thisRef", ref: N, modelValue: V.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => V.value = e4), type: e3.configure.props.cardType, "tab-position": e3.configure.props.tabPosition, style: r(l(j)), class: u([l(R), "runtime-page-container-tabs-view"]), "before-leave": A, onTabClick: D, onTabChange: E, onTabRemove: O, onTabAdd: S, onEdit: q }, { default: c(() => [(i(true), p(s, null, f(e3.configure.items, (t3, n2) => (i(), a(l(y), { key: n2, label: t3.label, name: t3.index, lazy: !!e3.configure.props.lazy }, { label: c(() => [m("span", { class: u(t3.code) }, [t3.iconType && t3.iconValue ? (i(), a(l(x), { key: 0, iconType: t3.iconType, iconValue: t3.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : g("", true), m("span", { style: r(l(z)) }, d(l(h)(t3.label)), 5)], 2)]), default: c(() => [(e3.configure.props.isFullyRendered ?? 1) || t3.index === V.value ? (i(true), p(s, { key: 0 }, f(t3.items, (t4, n3) => (i(), a(v, { key: t4.uuid, pageContext: e3.pageContext, configure: t4 }, null, 8, ["pageContext", "configure"]))), 128)) : g("", true)]), _: 2 }, 1032, ["label", "name", "lazy"]))), 128))]), _: 1 }, 8, ["modelValue", "type", "tab-position", "style", "class"]));
|
|
38
41
|
} });
|
|
39
42
|
export {
|
|
40
43
|
k as default
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./tools-runtime.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const e = t(o, [["__scopeId", "data-v-
|
|
4
|
+
const e = t(o, [["__scopeId", "data-v-03be39c3"]]);
|
|
5
5
|
export {
|
|
6
6
|
e as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, computed as t, ref as
|
|
1
|
+
import { defineComponent as e, computed as t, ref as a, onMounted as r, watch as l, resolveComponent as o, createBlock as u, openBlock as n, normalizeStyle as i, normalizeClass as s, unref as p, withCtx as c, createElementBlock as m, createCommentVNode as f, toDisplayString as g } from "vue";
|
|
2
2
|
import d from "qrcode";
|
|
3
3
|
import v from "jsbarcode";
|
|
4
4
|
import { getFormModelFields as y } from "../../../../utils/page-init-util.js";
|
|
@@ -12,7 +12,7 @@ const j = ["src"], D = e({ __name: "barcode-runtime", props: { pageContext: {},
|
|
|
12
12
|
let k = y(q.pageContext, q.configure);
|
|
13
13
|
const A = t({ get: () => x(N, k), set(e3) {
|
|
14
14
|
h(N, k, e3);
|
|
15
|
-
} }), E = q.configure.runtime ? q.configure.runtime : {}, _ =
|
|
15
|
+
} }), E = q.configure.runtime ? q.configure.runtime : {}, _ = a(E.props ? E.props : {}), O = E.style, P = E.class, S = E.headerStyle, $ = a(""), I = a(null), Q = a(_.value.brCodeFormat ?? "CODE128"), V = a([]);
|
|
16
16
|
function F(e3) {
|
|
17
17
|
return h(N, k, e3);
|
|
18
18
|
}
|
|
@@ -22,32 +22,31 @@ const j = ["src"], D = e({ __name: "barcode-runtime", props: { pageContext: {},
|
|
|
22
22
|
function L(e3) {
|
|
23
23
|
var t2;
|
|
24
24
|
"QR-code" === _.value.type ? (t2 = e3, d.toDataURL(t2, (e4, t3) => {
|
|
25
|
-
e4
|
|
25
|
+
e4 || ($.value = t3);
|
|
26
26
|
})) : function(e4) {
|
|
27
27
|
try {
|
|
28
28
|
v(I.value, e4, { format: Q.value });
|
|
29
29
|
} catch (e5) {
|
|
30
|
-
console.error("生成条形码时发生错误:", e5);
|
|
31
30
|
}
|
|
32
31
|
}(e3);
|
|
33
32
|
}
|
|
34
|
-
return
|
|
33
|
+
return r(() => {
|
|
35
34
|
_.value.generateRule && ("fixed" === _.value.generateRuleType ? (V.value = Array.from(_.value.generateRule.matchAll(/\$\{(\w+)\}/g), (e3) => e3[1]), V.value.forEach((e3) => {
|
|
36
|
-
|
|
35
|
+
l(() => q.pageContext.entity.data[e3], (e4, t2) => {
|
|
37
36
|
null != e4 && function() {
|
|
38
37
|
let e5 = true;
|
|
39
38
|
V.value.forEach((t3) => {
|
|
40
39
|
q.pageContext.entity.data[t3] || (e5 = false);
|
|
41
40
|
}), e5 && J(function(e6, t3) {
|
|
42
|
-
const
|
|
43
|
-
return e6.replace(
|
|
41
|
+
const a2 = /\$\{(\w+)\}/g;
|
|
42
|
+
return e6.replace(a2, (e7, a3) => t3.hasOwnProperty(a3) ? t3[a3] : e7);
|
|
44
43
|
}(_.value.generateRule, q.pageContext.entity.data));
|
|
45
44
|
}();
|
|
46
45
|
});
|
|
47
46
|
})) : w.get(window.$vueApp.config.globalProperties.baseAPI + "/dc/setting-barcode-models/by-code/" + _.value.generateRule).then((e3) => {
|
|
48
47
|
const t2 = JSON.parse(e3.barcodeModelItems);
|
|
49
48
|
t2.forEach((e4) => {
|
|
50
|
-
"-1" !== e4.propDbName && -1 !== e4.propDbName && (V.value.push(e4.propDbName),
|
|
49
|
+
"-1" !== e4.propDbName && -1 !== e4.propDbName && (V.value.push(e4.propDbName), l(() => q.pageContext.entity.data[e4.propDbName], (e5, a2) => {
|
|
51
50
|
if (null != e5) {
|
|
52
51
|
const e6 = b(t2, q.pageContext.entity.data);
|
|
53
52
|
e6 && J(e6);
|
|
@@ -55,13 +54,12 @@ const j = ["src"], D = e({ __name: "barcode-runtime", props: { pageContext: {},
|
|
|
55
54
|
}));
|
|
56
55
|
});
|
|
57
56
|
}).catch((e3) => {
|
|
58
|
-
console.error("获取条码规则失败:", e3);
|
|
59
57
|
})), A.value && L(A.value);
|
|
60
58
|
}), D2({ getValue: function() {
|
|
61
59
|
return x(N, k);
|
|
62
60
|
}, setValue: F }), (e3, t2) => {
|
|
63
|
-
const
|
|
64
|
-
return
|
|
61
|
+
const a2 = o("el-form-item");
|
|
62
|
+
return n(), u(a2, { required: !!_.value.required, class: s(p(P)), "label-width": _.value.labelWidth, style: i(p(O)) }, { label: c(() => [_.value.tittleShow ? (n(), m("div", { key: 0, style: i({ ...p(S) }) }, g(p(R)(_.value.title)), 5)) : f("", true)]), default: c(() => ["QR-code" === _.value.type ? (n(), m("img", { key: 0, src: $.value }, null, 8, j)) : (n(), m("canvas", { key: 1, ref_key: "barcode", ref: I }, null, 512))]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
65
63
|
};
|
|
66
64
|
} });
|
|
67
65
|
export {
|