super-page-runtime 2.3.4 → 2.3.5-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 +78 -70
- 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/common-util.d.ts +1 -1
- package/dist/es/components/runtime/utils/common-util.js +62 -47
- 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 +471 -481
- package/dist/es/components/runtime/utils/events/validator-util.js +24 -24
- 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.d.ts +1 -1
- package/dist/es/components/runtime/utils/page-init-util.js +67 -60
- package/dist/es/components/runtime/utils/page-store.js +1 -1
- package/dist/es/components/runtime/utils/table-utils.d.ts +14 -0
- package/dist/es/components/runtime/utils/table-utils.js +62 -37
- 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/common/common-homepage-search.vue2.js +3 -3
- 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.d.ts +8 -1
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +10 -15
- package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +6 -6
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +130 -131
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +8 -4
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +24 -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.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 +116 -119
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +42 -42
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +62 -63
- 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 +35 -34
- 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 +17 -17
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +54 -52
- 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 +59 -50
- 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 +63 -61
- package/dist/es/components/runtime/views/home-chart.vue.js +9 -9
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +6 -7
- package/dist/es/components/runtime/views/super-page.vue.d.ts +2 -2
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +138 -141
- package/dist/es/style.css +82 -82
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as r, onMounted as o, watch as t, createElementBlock as n, openBlock as a, normalizeClass as u, normalizeStyle as
|
|
1
|
+
import { defineComponent as e, ref as r, onMounted as o, watch as t, createElementBlock as n, openBlock as a, normalizeClass as u, normalizeStyle as i, unref as l, withDirectives as c, createVNode as p, vShow as s } from "vue";
|
|
2
2
|
import { getCustomTheme as f, initChartOption as g, monitorChartClickToVariable as h, clearChartSelected as m, exportCommonChart as d } from "../../../../utils/charts/chart-util.js";
|
|
3
3
|
import { updateChartOption as v } from "../../../../utils/charts/chart-pie-util.js";
|
|
4
4
|
import { doClickJumpPageEvent as x } from "../../../../utils/events/event-util.js";
|
|
@@ -11,36 +11,35 @@ import { GridComponent as _, LegendComponent as b, TitleComponent as w, TooltipC
|
|
|
11
11
|
import E from "vue-echarts";
|
|
12
12
|
const A = e({ __name: "pie-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: A2 }) {
|
|
13
13
|
y([D, V, _, b, w, I, P]);
|
|
14
|
-
const H = e2,
|
|
14
|
+
const H = e2, S = r(null), T = r(null), U = r(null), z = H.configure.props ? H.configure.props.enableDrill : null, F = H.configure.props ? H.configure.props.drillEndTrigger : null, O = H.configure.props ? H.configure.props.linkPage : null, q = H.configure.runtime ? H.configure.runtime : {}, B = q.style, G = q.class, J = q.dataConfig, K = q.headerInfo ? q.headerInfo : {}, L = q.chartOption, M = H.configure.props ? H.configure.props : {}, N = f(M.customTheme);
|
|
15
15
|
function Q(e3) {
|
|
16
|
-
"clearDrill" ==
|
|
16
|
+
"clearDrill" == F ? U.value && U.value.closeDrill && U.value.closeDrill(0) : "clickEvent" == F && W();
|
|
17
17
|
}
|
|
18
18
|
function W() {
|
|
19
|
-
|
|
19
|
+
O && O.jumpPageUrl && x(H.pageContext, H.configure, void 0);
|
|
20
20
|
}
|
|
21
21
|
g(H.configure, L), o(() => {
|
|
22
22
|
const e3 = C(H.pageContext, H.configure);
|
|
23
|
-
e3 && $(e3),
|
|
24
|
-
|
|
25
|
-
}), !
|
|
23
|
+
e3 && $(e3), T.value && (z || O && O.jumpPageUrl) && T.value.chart.on("click", function(e4) {
|
|
24
|
+
z ? U.value && U.value.drill && U.value.drill(e4, H.configure.cacheDatas) : W();
|
|
25
|
+
}), !z && H.configure.clickSet && T.value && h(H.pageContext, H.configure, T.value.chart);
|
|
26
26
|
});
|
|
27
27
|
let X = K.groupValue;
|
|
28
28
|
function Y(e3) {
|
|
29
|
-
J
|
|
29
|
+
J && (true !== e3 && (J.autoRefresh = true), R(H.pageContext, [J], K.drillParams));
|
|
30
30
|
}
|
|
31
31
|
t(K, () => {
|
|
32
32
|
X != K.groupValue && (X = K.groupValue, J && (J.services[0].groupValue = K.groupValue), Y(false));
|
|
33
33
|
});
|
|
34
34
|
const Z = K.monitorFields;
|
|
35
35
|
function $(e3) {
|
|
36
|
-
|
|
37
|
-
e3.hasRender = true, J.autoRefresh || (X = e3.groupValue, X && "checkbox" !== K.groupComponent && (X = X.join(",")), K.groupValue = X), J.autoRefresh && U || m(H.pageContext, H.configure, S.value.chart), J.autoRefresh = false, v(H.pageContext, H.configure, L, e3), console.log("chartOption--pie", L);
|
|
36
|
+
e3 || (e3 = []), Array.isArray(e3) && (e3 = e3.length > 0 ? e3[0] : {}), e3 || (e3 = {}), e3.hasRender ? e3.hasRender = true : (e3.hasRender = true, J.autoRefresh || (X = e3.groupValue, X && "checkbox" !== K.groupComponent && (X = X.join(",")), K.groupValue = X), J.autoRefresh && z || m(H.pageContext, H.configure, T.value.chart), J.autoRefresh = false, v(H.pageContext, H.configure, L, e3));
|
|
38
37
|
}
|
|
39
38
|
return j(H.pageContext, Z, () => {
|
|
40
39
|
Y(true);
|
|
41
40
|
}), A2({ updateChartDatas: $, exportChart: function() {
|
|
42
|
-
return d(
|
|
43
|
-
} }), (e3, r2) => (a(), n("div", { style: l(
|
|
41
|
+
return d(T.value);
|
|
42
|
+
} }), (e3, r2) => (a(), n("div", { style: i(l(B)), class: u([l(G), "amb-widget-chart amb-widget-flex"]), ref_key: "thisRef", ref: S }, [c(p(k, { ref_key: "headerRef", ref: U, headerInfo: l(K), configure: e3.configure, pageContext: e3.pageContext, onDrillEnd: Q }, null, 8, ["headerInfo", "configure", "pageContext"]), [[s, l(K).showHeader || e3.pageContext.showHomepageSearch]]), p(l(E), { ref_key: "chartRef", ref: T, theme: l(N), option: l(L), autoresize: "" }, null, 8, ["theme", "option"])], 6));
|
|
44
43
|
} });
|
|
45
44
|
export {
|
|
46
45
|
A as default
|
|
@@ -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
|
};
|
|
@@ -12,7 +12,14 @@ type Condition = {
|
|
|
12
12
|
};
|
|
13
13
|
type Data = Record<string, any>;
|
|
14
14
|
export declare class ExpressionEvaluator {
|
|
15
|
-
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @param pageContext 页面上下文
|
|
18
|
+
* @param conditions 条件集合
|
|
19
|
+
* @param data 数据对象,一般是行数据
|
|
20
|
+
* @returns
|
|
21
|
+
*/
|
|
22
|
+
static evaluate(pageContext: PageContext, conditions: Condition[], data?: Data): boolean;
|
|
16
23
|
private static createExpression;
|
|
17
24
|
private static getComparisonExpression;
|
|
18
25
|
private static changeDataType;
|
|
@@ -57,24 +57,24 @@ class ExpressionEvaluator {
|
|
|
57
57
|
return t;
|
|
58
58
|
}
|
|
59
59
|
static parseValue(e, t) {
|
|
60
|
-
|
|
60
|
+
if (t = this.changeDataType(t), null == e) return e;
|
|
61
|
+
switch (t) {
|
|
61
62
|
case "number":
|
|
62
63
|
return getNumberValue(e);
|
|
63
64
|
case "date":
|
|
64
65
|
return new Date(e).getTime();
|
|
65
66
|
case "string":
|
|
67
|
+
default:
|
|
66
68
|
return `"${e}"`;
|
|
67
69
|
case "boolean":
|
|
68
70
|
return "true" === e || true === e || 1 === e;
|
|
69
|
-
default:
|
|
70
|
-
throw new Error(`数据类型解析错误: ${t}`);
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
static evaluateExpression(expression) {
|
|
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
|
}
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { defineComponent as o, ref as e, resolveComponent as t, createBlock as r, openBlock as p, withCtx as l, createElementBlock as s, Fragment as n, createTextVNode as a, toDisplayString as u, resolveDynamicComponent as i, createVNode as c, createCommentVNode as m, createElementVNode as f, normalizeClass as g } from "vue";
|
|
2
2
|
import "agilebuilder-ui/src/utils/common-util";
|
|
3
3
|
import "agilebuilder-ui/src/utils/util";
|
|
4
|
+
import { formatColContent as d } from "./chart-table-util.js";
|
|
4
5
|
import "agilebuilder-ui/src/utils/request";
|
|
5
6
|
import "element-plus";
|
|
6
7
|
import "agilebuilder-ui/src/utils/auth";
|
|
7
8
|
import "../../../../utils/global-refs.js";
|
|
8
|
-
import
|
|
9
|
+
import y from "../../../../utils/eventBus.js";
|
|
9
10
|
import "axios";
|
|
10
11
|
import "dayjs";
|
|
11
12
|
import "agilebuilder-ui/src/utils/calculator/calculator-util";
|
|
12
13
|
import "async-validator";
|
|
14
|
+
import { expressJump as b } from "../../../../utils/table-utils.js";
|
|
13
15
|
import "../../../../utils/events/print-label.js";
|
|
14
|
-
import { expressJump as y } from "../../../../utils/table-utils.js";
|
|
15
16
|
import "../../../../utils/page-store.js";
|
|
16
|
-
import { formatColContent as b } from "./chart-table-util.js";
|
|
17
17
|
const k = { key: 0 }, w = { key: 1 }, h = { key: 1 }, x = { key: 2 }, C = o({ __name: "normal-column", props: { configure: { type: Object, default: () => ({}) }, pageContext: { type: Object, default: () => ({}) }, column: { type: Object, default: () => ({}) } }, setup(o2) {
|
|
18
18
|
const C2 = o2, j = e(false);
|
|
19
19
|
let v = null;
|
|
20
20
|
function O(o3, e2, t2, r2) {
|
|
21
21
|
}
|
|
22
22
|
function _(o3) {
|
|
23
|
-
const e2 =
|
|
23
|
+
const e2 = b(C2.pageContext, C2.configure, C2.column.linkPage, o3);
|
|
24
24
|
let t2 = false;
|
|
25
25
|
return e2 && (t2 = e2.show, v = e2.toPage), t2;
|
|
26
26
|
}
|
|
@@ -29,11 +29,11 @@ const k = { key: 0 }, w = { key: 1 }, h = { key: 1 }, x = { key: 2 }, C = o({ __
|
|
|
29
29
|
const e2 = C2.pageContext.code + "_", t2 = JSON.parse(JSON.stringify(v));
|
|
30
30
|
t2.base = { successOperation: "closeWindow" };
|
|
31
31
|
const r2 = { id: o3.id ? o3.id : o3.ID, selections: [o3] };
|
|
32
|
-
|
|
32
|
+
y.$emit(e2 + "open-dialog", { pageContext: C2.pageContext, configureObj: { props: t2 }, eventParams: r2 });
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
function T(o3, e2) {
|
|
36
|
-
return
|
|
36
|
+
return d(o3, e2, C2.column, C2.pageContext, C2.configure);
|
|
37
37
|
}
|
|
38
38
|
return C2.column.linkPage && C2.column.linkPage.length > 0 && (j.value = true), (e2, d2) => {
|
|
39
39
|
const y2 = t("el-table-column"), b2 = t("el-progress"), C3 = t("el-tag"), v2 = t("el-link");
|