super-page-runtime 2.2.17 → 2.2.21
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/events/event-util.d.ts +1 -0
- package/dist/es/components/runtime/utils/events/event-util.js +124 -116
- package/dist/es/components/runtime/utils/events/standard-event.d.ts +1 -1
- package/dist/es/components/runtime/utils/events/standard-event.js +2 -3
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +6 -6
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +29 -29
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +13 -13
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +4 -4
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +8 -8
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +4 -4
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +8 -8
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +42 -42
- package/dist/es/components/runtime/views/home-chart.vue.js +23 -17
- package/dist/es/components/runtime/views/super-page.vue.js +63 -63
- package/dist/es/style.css +3 -1
- 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
|
|
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 l, unref as i, 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";
|
|
@@ -7,10 +7,10 @@ import k from "../common/common-chart-header.vue.js";
|
|
|
7
7
|
import { use as D } from "echarts/core";
|
|
8
8
|
import { CanvasRenderer as V } from "echarts/renderers";
|
|
9
9
|
import { PieChart as y } from "echarts/charts";
|
|
10
|
-
import { GridComponent as _, LegendComponent as
|
|
10
|
+
import { GridComponent as _, LegendComponent as b, TitleComponent as w, TooltipComponent as I, ToolboxComponent as P } from "echarts/components";
|
|
11
11
|
import E from "vue-echarts";
|
|
12
12
|
const H = e({ __name: "pie-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: H2 }) {
|
|
13
|
-
D([V, y, _,
|
|
13
|
+
D([V, y, _, b, w, I, P]);
|
|
14
14
|
const S = e2, T = r(null), U = r(null), z = r(null), F = S.configure.props ? S.configure.props.enableDrill : null, O = S.configure.props ? S.configure.props.drillEndTrigger : null, q = S.configure.props ? S.configure.props.linkPage : null, A = S.configure.runtime ? S.configure.runtime : {}, B = A.style, G = A.class, J = A.dataConfig, K = A.headerInfo ? A.headerInfo : {}, L = A.chartOption, M = S.configure.props ? S.configure.props : {}, N = f(M.customTheme);
|
|
15
15
|
function Q(e3) {
|
|
16
16
|
"clearDrill" == O ? z.value && z.value.closeDrill && z.value.closeDrill(0) : "clickEvent" == O && W();
|
|
@@ -39,7 +39,7 @@ const H = e({ __name: "pie-runtime", props: { pageContext: {}, configure: {} },
|
|
|
39
39
|
Y(true);
|
|
40
40
|
}), H2({ updateChartDatas: $, exportChart: function() {
|
|
41
41
|
return d(U.value);
|
|
42
|
-
} }), (e3, r2) => (
|
|
42
|
+
} }), (e3, r2) => (a(), n("div", { style: l(i(B)), class: u([i(G), "amb-widget-chart amb-widget-flex"]), ref_key: "thisRef", ref: T }, [c(p(k, { ref_key: "headerRef", ref: z, headerInfo: i(K), configure: e3.configure, pageContext: e3.pageContext, onDrillEnd: Q }, null, 8, ["headerInfo", "configure", "pageContext"]), [[s, i(K).showHeader || e3.pageContext.showHomepageSearch]]), p(i(E), { ref_key: "chartRef", ref: U, theme: i(N), option: i(L), autoresize: "" }, null, 8, ["theme", "option"])], 6));
|
|
43
43
|
} });
|
|
44
44
|
export {
|
|
45
45
|
H as default
|
|
@@ -1,4 +1,4 @@
|
|
|
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
|
|
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
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";
|
|
@@ -6,10 +6,10 @@ 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 { RadarChart as V } from "echarts/charts";
|
|
9
|
-
import { GridComponent as _, TitleComponent as j, TooltipComponent as
|
|
10
|
-
import
|
|
11
|
-
const
|
|
12
|
-
R([y, V, _, j, I, k
|
|
9
|
+
import { GridComponent as _, TitleComponent as j, TooltipComponent as w, ToolboxComponent as I, LegendComponent as k } from "echarts/components";
|
|
10
|
+
import b from "vue-echarts";
|
|
11
|
+
const H = e({ __name: "radar-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: H2 }) {
|
|
12
|
+
R([y, V, _, j, w, I, k]);
|
|
13
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
14
|
h(z.configure, B), t(() => {
|
|
15
15
|
const e3 = g(z.pageContext, z.configure);
|
|
@@ -26,10 +26,10 @@ const b = e({ __name: "radar-runtime", props: { pageContext: {}, configure: {} }
|
|
|
26
26
|
function M(e3) {
|
|
27
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));
|
|
28
28
|
}
|
|
29
|
-
return x(z.pageContext, L, K),
|
|
29
|
+
return x(z.pageContext, L, K), H2({ updateChartDatas: M, exportChart: function() {
|
|
30
30
|
return l(F.value);
|
|
31
|
-
} }), (e3, r2) => (n(), a("div", { style: s(
|
|
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));
|
|
32
32
|
} });
|
|
33
33
|
export {
|
|
34
|
-
|
|
34
|
+
H as default
|
|
35
35
|
};
|
|
@@ -6,10 +6,10 @@ 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
|
|
10
|
-
import
|
|
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
11
|
const z = e({ __name: "scatter-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: z2 }) {
|
|
12
|
-
R([y, V, _, j, I, k,
|
|
12
|
+
R([y, V, _, j, w, I, k, b]);
|
|
13
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
14
|
h(D.configure, E), t(() => {
|
|
15
15
|
const e3 = g(D.pageContext, D.configure);
|
|
@@ -28,7 +28,7 @@ const z = e({ __name: "scatter-runtime", props: { pageContext: {}, configure: {}
|
|
|
28
28
|
}
|
|
29
29
|
return x(D.pageContext, M, L), z2({ updateChartDatas: N, exportChart: function() {
|
|
30
30
|
return l(O.value);
|
|
31
|
-
} }), (e3, r2) => (n(), a("div", { style: s(i(T)), class: u([i(q), "amb-widget-chart"]), 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(
|
|
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));
|
|
32
32
|
} });
|
|
33
33
|
export {
|
|
34
34
|
z as default
|
|
@@ -10,7 +10,7 @@ import { deepCopy as A } 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;
|
|
12
12
|
const B = e2, M = B.configure.runtime ? B.configure.runtime : {}, Q = M.style, W = M.class, X = M.dataConfig, Y = M.headerInfo ? M.headerInfo : {}, Z = o(null), ee = o(M.props.isEnableGroupHeader), oe = o([]), ne = o([]), re = o([]), te = o({}), ie = o(false), ae = o({}), ue = o({}), pe = o({}), le = [], se = o({}), ce = o({}), ge = o(null), fe = o(0);
|
|
13
|
-
let de
|
|
13
|
+
let de = [];
|
|
14
14
|
if (!B.configure.props.modelCustom) {
|
|
15
15
|
if (ee.value) {
|
|
16
16
|
const e3 = [];
|
|
@@ -29,7 +29,7 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
29
29
|
});
|
|
30
30
|
}
|
|
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 = R(B.configure), ie.value && (ue.value = H(B.configure, "table")), B.configure.props.highOrder.groupField && B.configure.props.highOrder.groupField.length > 0 && (pe.value = H(B.configure, "group")));
|
|
32
|
-
let he = x(B.pageContext, B.configure);
|
|
32
|
+
let me = 300, he = x(B.pageContext, B.configure);
|
|
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) => {
|
|
@@ -38,8 +38,8 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
38
38
|
}
|
|
39
39
|
function ye(e3) {
|
|
40
40
|
e3 || (e3 = []), (e3 = e3.length > 0 ? e3[0] : {}) || (e3 = {}), e3.hasRender ? e3.hasRender = true : (!function(e4) {
|
|
41
|
-
Re(e4), "service" === B.configure.props.dataOrigin.dataSource && e4.result ?
|
|
42
|
-
|
|
41
|
+
Re(e4), "service" === B.configure.props.dataOrigin.dataSource && e4.result ? de = e4.result[B.configure.props.dataOrigin.service.serviceDataField] : "variable" === B.configure.props.dataOrigin.dataSource && (ve(), de = O(B.pageContext.entity, B.configure.props.dataOrigin.variable));
|
|
42
|
+
de && Ce(de, e4);
|
|
43
43
|
}(e3), e3.hasRender = true, X && (X.autoRefresh = false));
|
|
44
44
|
}
|
|
45
45
|
function Ce(e3, o2) {
|
|
@@ -86,7 +86,7 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
if (Object.keys(ce.value).length > 0 && e3 && e3.length > 0 && D(ce.value, e3, B.pageContext.entity), ((_a2 = B.configure.pageination) == null ? void 0 : _a2.enable) ? function(e4) {
|
|
89
|
-
"frontend" === B.configure.pageination.type ? (fe.value =
|
|
89
|
+
"frontend" === B.configure.pageination.type ? (fe.value = de.length, ke(1, B.configure.pageination.pageSize)) : "backend" === B.configure.pageination.type && (oe.value = de, B.configure.pageination.totalFrom && (fe.value = e4.result[B.configure.pageination.totalFrom]));
|
|
90
90
|
}(o2) : oe.value = e3, B.configure.props.highOrder.groupField && B.configure.props.highOrder.groupField.length > 0) {
|
|
91
91
|
const e4 = B.configure.props.highOrder.groupField;
|
|
92
92
|
oe.value = function(e5, o3) {
|
|
@@ -132,7 +132,7 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
132
132
|
const o2 = se.value[e3.column.property] ? se.value[e3.column.property].cellStyle : null;
|
|
133
133
|
return L(e3, o2, B);
|
|
134
134
|
}
|
|
135
|
-
he && he.maxHeight && (
|
|
135
|
+
he && he.maxHeight && (me = he.maxHeight), !me && he && he.fixHeight && (me = he.fixHeight), me && (me = Number(me + "")), n(() => {
|
|
136
136
|
const e3 = b(B.pageContext, B.configure);
|
|
137
137
|
if (e3) ye(e3);
|
|
138
138
|
else if ("variable" === B.configure.props.dataOrigin.dataSource) {
|
|
@@ -170,7 +170,7 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
170
170
|
"frontend" === B.configure.pageination.type ? ke(e3, o2) : Fe(e3, o2);
|
|
171
171
|
}
|
|
172
172
|
function ke(e3, o2) {
|
|
173
|
-
|
|
173
|
+
de && (oe.value = de.slice((e3 - 1) * o2, e3 * o2));
|
|
174
174
|
}
|
|
175
175
|
function Fe(e3, o2) {
|
|
176
176
|
B.configure.pageination.currentPageSet && S(B.pageContext.entity, B.configure.pageination.currentPageSet, e3), B.configure.pageination.pageSizeSet && S(B.pageContext.entity, B.configure.pageination.pageSizeSet, o2), j(B.pageContext, B.configure.uuid);
|
|
@@ -214,7 +214,7 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
|
|
|
214
214
|
}(n2), columns: e3 };
|
|
215
215
|
} }), (o2, n2) => {
|
|
216
216
|
const r2 = t("el-table");
|
|
217
|
-
return a(), i("div", { style: p(l(Q)), class: u([l(W), "amb-widget-chart"]), ref: "thisRef" }, [s(c(C, { ref_key: "headerRef", ref: Z, headerInfo: l(Y), configure: e2.configure, pageContext: e2.pageContext }, null, 8, ["headerInfo", "configure", "pageContext"]), [[d, l(Y).showHeader || e2.pageContext.showHomepageSearch]]), c(r2, { ref_key: "gridRef", ref: ge, data: oe.value, style: { width: "100%" }, "max-height": l(
|
|
217
|
+
return a(), i("div", { style: p([l(Q), { display: "flex", "flex-direction": "column" }]), 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"]), [[d, l(Y).showHeader || e2.pageContext.showHomepageSearch]]), c(r2, { ref_key: "gridRef", ref: ge, data: oe.value, style: { width: "100%" }, "max-height": l(me), "header-cell-style": be, "row-style": Oe, "cell-style": we, "show-summary": ie.value, stripe: e2.configure.props.base.stripe, "summary-method": Se, "span-method": je }, { default: m(() => [ee.value ? (a(true), i(h, { key: 0 }, v(re.value, (o3, n3) => (a(), i(h, { key: n3 }, [o3.isLeaf ? Ie(te.value[o3.columnUuid]) ? (a(), g(F, { key: 1, configure: e2.configure, pageContext: e2.pageContext, column: te.value[o3.columnUuid] }, null, 8, ["configure", "pageContext", "column"])) : f("", true) : (a(), g(k, { 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 }, [Ie(o3) ? (a(), g(F, { 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: Ee, onPageSizeChange: $e }, null, 8, ["configure", "table-data", "total"])) : f("", true)], 6);
|
|
218
218
|
};
|
|
219
219
|
} });
|
|
220
220
|
export {
|
package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js
CHANGED
|
@@ -2,60 +2,60 @@ import { defineComponent as e, ref as l, computed as n, onMounted as o, nextTick
|
|
|
2
2
|
import { SuperIcon as T } from "agilebuilder-ui";
|
|
3
3
|
import { getFormModelFields as k } from "../../../../utils/page-init-util.js";
|
|
4
4
|
import { setVariableValue as V, getVariableValue as h } from "../../../../utils/page-helper-util.js";
|
|
5
|
-
import { handleAfterInitEvent as b, handleFormEvent as w } from "../../../../utils/events/event-util.js";
|
|
6
|
-
import { formatScanRuleSets as
|
|
7
|
-
import
|
|
8
|
-
import { isMobileBrowser as
|
|
9
|
-
import
|
|
10
|
-
import { $t as
|
|
11
|
-
const
|
|
5
|
+
import { handleAfterInitEvent as b, handleFormEvent as w, doSuffixOrPrefixClickEvent as _ } from "../../../../utils/events/event-util.js";
|
|
6
|
+
import { formatScanRuleSets as j, analysisScanValue as R, setScanAnalysisValue as S } from "../../../../utils/form/scan-util.js";
|
|
7
|
+
import P from "../common/title-suffix-element.vue.js";
|
|
8
|
+
import { isMobileBrowser as q } from "agilebuilder-ui/src/utils/common-util";
|
|
9
|
+
import z from "../../../../utils/eventBus.js";
|
|
10
|
+
import { $t as D } from "../../../../utils/i18n-util.js";
|
|
11
|
+
const L = e({ __name: "inputtext-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: L2 }) {
|
|
12
12
|
var _a, _b, _c;
|
|
13
|
-
const
|
|
14
|
-
let
|
|
15
|
-
const
|
|
16
|
-
e3 = e3.trim(), V(
|
|
17
|
-
} }),
|
|
13
|
+
const B = e2, N = B.pageContext.entity ? B.pageContext.entity : {};
|
|
14
|
+
let O = k(B.pageContext, B.configure);
|
|
15
|
+
const $ = l(q()), A = B.pageContext.code, E = l(O && O.length > 0 ? A + "__" + O.join("__") : null), F = n({ get: () => h(N, O), set(e3) {
|
|
16
|
+
e3 = e3.trim(), V(N, O, e3);
|
|
17
|
+
} }), J = l(null), M = l(null), U = l(null);
|
|
18
18
|
o(() => {
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
z.$on(E.value + "-scanDone", (e3) => {
|
|
20
|
+
oe(e3.result);
|
|
21
21
|
}), u(() => {
|
|
22
|
-
const e3 =
|
|
23
|
-
b(e3,
|
|
22
|
+
const e3 = F.value;
|
|
23
|
+
b(e3, B.pageContext, B.configure, { formItemRef: J.value, componentRef: M.value, titleRef: U.value, value: e3, entity: B.pageContext.entity.data, pageData: B.pageContext.entity.page });
|
|
24
24
|
});
|
|
25
25
|
}), t(() => {
|
|
26
|
-
|
|
26
|
+
z.$off(E.value + "-scanDone");
|
|
27
27
|
});
|
|
28
|
-
const
|
|
29
|
-
let
|
|
30
|
-
|
|
31
|
-
const
|
|
32
|
-
let
|
|
33
|
-
((_b =
|
|
34
|
-
|
|
35
|
-
}), a(() =>
|
|
36
|
-
const l2 =
|
|
37
|
-
l2 &&
|
|
28
|
+
const W = B.configure.runtime ? B.configure.runtime : {}, G = l(W.props ? W.props : {}), H = l(!!((_a = G.value.scan) == null ? void 0 : _a.enable));
|
|
29
|
+
let K;
|
|
30
|
+
K = navigator.userAgent.indexOf(" uni-app ") > 0 ? "app" : "browser";
|
|
31
|
+
const Q = !(!$.value || !K || "app" !== K), X = l(!!(Q && H.value || $.value && H.value && "https:" === window.location.protocol));
|
|
32
|
+
let Y = {};
|
|
33
|
+
((_b = G.value.scan) == null ? void 0 : _b.enable) && ((_c = G.value.scan.ruleList) == null ? void 0 : _c.length) > 0 && (j(G.value.scan.ruleList).then((e3) => {
|
|
34
|
+
Y = e3;
|
|
35
|
+
}), a(() => F.value, (e3) => {
|
|
36
|
+
const l2 = R(e3, Y);
|
|
37
|
+
l2 && S(B.pageContext, l2.scanSet, l2.params);
|
|
38
38
|
}));
|
|
39
|
-
const
|
|
40
|
-
function
|
|
41
|
-
return V(
|
|
39
|
+
const Z = W.style, ee = W.class, le = W.headerStyle, ne = W.titleExceedStyle;
|
|
40
|
+
function oe(e3) {
|
|
41
|
+
return V(N, O, e3);
|
|
42
42
|
}
|
|
43
|
-
const
|
|
44
|
-
function
|
|
45
|
-
|
|
43
|
+
const ue = l(false);
|
|
44
|
+
function te(e3) {
|
|
45
|
+
ue.value = false, oe(e3);
|
|
46
46
|
}
|
|
47
|
-
return
|
|
48
|
-
return h(
|
|
49
|
-
}, setValue:
|
|
47
|
+
return L2({ getValue: function() {
|
|
48
|
+
return h(N, O);
|
|
49
|
+
}, setValue: oe }), (e3, l2) => {
|
|
50
50
|
const n2 = i("el-input"), o2 = i("scan-code-input-browser"), u2 = i("el-form-item");
|
|
51
|
-
return c(), r(u2, { ref_key: "formItemRef", ref:
|
|
52
|
-
if (
|
|
53
|
-
const e5 = { type: "scan", componentId:
|
|
51
|
+
return c(), r(u2, { ref_key: "formItemRef", ref: J, required: !!G.value.required, class: s(v(ee)), "label-width": G.value.labelWidth, style: p(v(Z)) }, { label: f(() => [G.value.tittleShow ? (c(), C("div", { key: 0, ref_key: "titleRef", ref: U, style: p({ ...v(le), ...v(ne) }) }, [G.value.prefixType ? (c(), r(P, { key: 0, pageContext: e3.pageContext, property: G.value }, null, 8, ["pageContext", "property"])) : (c(), C(I, { key: 1 }, [d(x(v(D)(G.value.title)), 1)], 64))], 4)) : m("", true)]), default: f(() => [y(n2, { ref_key: "componentRef", ref: M, disabled: "disabled" === G.value.state, readonly: "readonly" === G.value.state, size: G.value.size, clearable: G.value.clearable, placeholder: G.value.placeholder, maxlength: G.value.maxLength, "show-word-limit": G.value.showInputNum, modelValue: F.value, "onUpdate:modelValue": l2[5] || (l2[5] = (e4) => F.value = e4), onInput: l2[6] || (l2[6] = (l3) => v(w)(l3, e3.pageContext, e3.configure, "input")), onChange: l2[7] || (l2[7] = (l3) => v(w)(l3, e3.pageContext, e3.configure, "change")), onBlur: l2[8] || (l2[8] = (l3) => v(w)(l3, e3.pageContext, e3.configure, "blur")), onFocus: l2[9] || (l2[9] = (l3) => v(w)(l3, e3.pageContext, e3.configure, "focus")), onClick: l2[10] || (l2[10] = (l3) => v(w)(l3, e3.pageContext, e3.configure, "click")) }, g({ _: 2 }, ["outer" != G.value.iconPosition && (G.value.preIconType && G.value.preIconValue || G.value.preText) ? { name: "prefix", fn: f(() => [G.value.preIconType && G.value.preIconValue ? (c(), r(v(T), { key: 0, iconType: G.value.preIconType, iconValue: G.value.preIconValue, onClick: l2[0] || (l2[0] = (l3) => v(_)(F.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : m("", true), d(" " + x(v(D)(G.value.preText)), 1)]), key: "0" } : void 0, "outer" == G.value.iconPosition && (G.value.preIconType && G.value.preIconValue || G.value.preText) ? { name: "prepend", fn: f(() => [G.value.preIconType && G.value.preIconValue ? (c(), r(v(T), { key: 0, iconType: G.value.preIconType, iconValue: G.value.preIconValue, onClick: l2[1] || (l2[1] = (l3) => v(_)(F.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : m("", true), d(" " + x(v(D)(G.value.preText)), 1)]), key: "1" } : void 0, "outer" != G.value.iconPosition && (G.value.sufIconType && G.value.sufIconValue || G.value.sufText) ? { name: "suffix", fn: f(() => [G.value.sufIconType && G.value.sufIconValue ? (c(), r(v(T), { key: 0, iconType: G.value.sufIconType, iconValue: G.value.sufIconValue, onClick: l2[2] || (l2[2] = (l3) => v(_)(F.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : m("", true), d(" " + x(v(D)(G.value.sufText)), 1)]), key: "2" } : void 0, X.value || "outer" == G.value.iconPosition && (G.value.sufIconType && G.value.sufIconValue || G.value.sufText) ? { name: "append", fn: f(() => [X.value ? (c(), r(v(T), { key: 0, iconValue: "fa-barcode", onClick: l2[3] || (l2[3] = (e4) => function() {
|
|
52
|
+
if (Q) {
|
|
53
|
+
const e5 = { type: "scan", componentId: E.value, systemCode: B.pageContext.systemCode };
|
|
54
54
|
window.parent.postMessage(JSON.stringify(e5), "*");
|
|
55
|
-
} else
|
|
56
|
-
}()) })) : m("", true),
|
|
55
|
+
} else ue.value = true;
|
|
56
|
+
}()) })) : m("", true), G.value.sufIconType && G.value.sufIconValue ? (c(), r(v(T), { key: 1, iconType: G.value.sufIconType, iconValue: G.value.sufIconValue, onClick: l2[4] || (l2[4] = (l3) => v(_)(F.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : m("", true), d(" " + x(v(D)(G.value.sufText)), 1)]), key: "3" } : void 0]), 1032, ["disabled", "readonly", "size", "clearable", "placeholder", "maxlength", "show-word-limit", "modelValue"]), ue.value ? (c(), r(o2, { key: 0, onClose: te })) : m("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
57
57
|
};
|
|
58
58
|
} });
|
|
59
59
|
export {
|
|
60
|
-
|
|
60
|
+
L as default
|
|
61
61
|
};
|
|
@@ -2,35 +2,41 @@ import { defineComponent as e, ref as t, resolveDirective as a, withDirectives a
|
|
|
2
2
|
import { deepCopy as m } from "../utils/common-util.js";
|
|
3
3
|
import u from "./assemblys/home-chart-render.vue.js";
|
|
4
4
|
import h from "agilebuilder-ui/src/utils/request";
|
|
5
|
-
import { updateOptionDatasources as g, updateChartDatasources as
|
|
6
|
-
import { initPageEvents as
|
|
7
|
-
import { setHomeChartInitConfigValue as
|
|
8
|
-
const f = { "element-loading-text": "加载中..." },
|
|
9
|
-
const
|
|
10
|
-
let
|
|
11
|
-
return
|
|
5
|
+
import { updateOptionDatasources as g, updateChartDatasources as d } from "../utils/page-helper-util.js";
|
|
6
|
+
import { initPageEvents as c } from "../utils/events/event-util.js";
|
|
7
|
+
import { setHomeChartInitConfigValue as p } from "../utils/charts/chart-util.js";
|
|
8
|
+
const f = { "element-loading-text": "加载中..." }, C = e({ name: "HomeChart", inheritAttrs: false, __name: "home-chart", props: { chartCode: { type: String, default: "" }, homeChartSettingUserId: { type: Number, default: 0 } }, setup(e2) {
|
|
9
|
+
const C2 = e2, v = t(true), y = t(false), S = t({});
|
|
10
|
+
let b = t(null);
|
|
11
|
+
return C2.chartCode && h.get(window.$vueApp.config.globalProperties.baseAPI + "/mms/home-chart-layout/" + C2.chartCode).then((e3) => {
|
|
12
12
|
if (e3 && e3.designJson) {
|
|
13
|
-
const t2 = JSON.parse(e3.designJson)
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
const t2 = JSON.parse(e3.designJson);
|
|
14
|
+
let a2 = window.localStorage.getItem("HOME_MY_CHARTS_ALIAS");
|
|
15
|
+
if (a2) {
|
|
16
|
+
const e4 = JSON.parse(a2);
|
|
17
|
+
e4[C2.homeChartSettingUserId] && (t2.chartJson.runtime.headerInfo ? t2.chartJson.runtime.headerInfo.title = e4[C2.homeChartSettingUserId] : t2.chartJson.runtime.headerInfo = { textAlign: "center", title: e4[C2.homeChartSettingUserId] });
|
|
18
|
+
}
|
|
19
|
+
const i2 = window.frameElement;
|
|
20
|
+
S.value = t2.chartJson, S.value.homeChartSettingUserId = C2.homeChartSettingUserId, i2 && (S.value.runtime.common.style.pc_style.height = i2.clientHeight + "px");
|
|
21
|
+
const n2 = { showHomepageSearch: true, name: e3.pageName, code: e3.pageCode, label: "", dimensions: "", version: 1, isWorkflowEntity: false, variables: t2.variables, systemCode: e3.systemCode, uuid: e3.uuid, allChartUuids: [], backendUrl: e3.backendUrl, rules: {}, pageType: "chart", beanName: t2.beanName, initChartServiceConfigs: [t2.initChartServiceConfigs], entity: { data: {}, task: {}, request: {}, page: {}, context: e3.contextParam, system: e3.systemParam } };
|
|
16
22
|
if (t2.variables) {
|
|
17
|
-
const e4 =
|
|
23
|
+
const e4 = n2.entity.page;
|
|
18
24
|
for (const a3 of t2.variables) a3.name && (a3.isArrayElement ? e4[a3.name] = [] : a3.defaultValue ? e4[a3.name] = a3.defaultValue : e4[a3.name] = void 0);
|
|
19
25
|
}
|
|
20
|
-
t2.initOptionConfigs && t2.initOptionConfigs.length > 0 && g(
|
|
26
|
+
t2.initOptionConfigs && t2.initOptionConfigs.length > 0 && g(n2, t2.initOptionConfigs, void 0), p(S.value.pushHomepage.initConfig, n2, C2.homeChartSettingUserId), c(t2, n2), b.value = n2, setTimeout(() => {
|
|
21
27
|
!function(e4, t3) {
|
|
22
28
|
if (!t3 || 0 == t3.length) return;
|
|
23
|
-
e4.initChartData = {}, e4.initChartData.data = m(e4.entity.data), e4.initChartData.page = m(e4.entity.page), t3 && t3.length > 0 &&
|
|
24
|
-
}(
|
|
29
|
+
e4.initChartData = {}, e4.initChartData.data = m(e4.entity.data), e4.initChartData.page = m(e4.entity.page), t3 && t3.length > 0 && d(e4, t3, null, true);
|
|
30
|
+
}(b.value, [t2.initChartServiceConfigs]);
|
|
25
31
|
}, 200);
|
|
26
32
|
} else y.value = true;
|
|
27
33
|
}).finally(() => {
|
|
28
|
-
|
|
34
|
+
v.value = false;
|
|
29
35
|
}), (e3, t2) => {
|
|
30
36
|
const m2 = a("loading");
|
|
31
|
-
return i((r(), n("div", f, [
|
|
37
|
+
return i((r(), n("div", f, [v.value ? s("", true) : (r(), o(u, { key: 0, configure: S.value, pageContext: l(b) }, null, 8, ["configure", "pageContext"]))])), [[m2, v.value]]);
|
|
32
38
|
};
|
|
33
39
|
} });
|
|
34
40
|
export {
|
|
35
|
-
|
|
41
|
+
C as default
|
|
36
42
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as l, onMounted as
|
|
1
|
+
import { defineComponent as e, ref as l, onMounted as a, onUpdated as t, nextTick as u, onUnmounted as n, createElementBlock as o, openBlock as i, createCommentVNode as s, normalizeStyle as r, normalizeClass as v, createBlock as p, createElementVNode as m, Fragment as g, renderList as f, unref as c, watch as d } from "vue";
|
|
2
2
|
import y from "./assemblys/object-render.vue.js";
|
|
3
3
|
import { updateOptionDatasources as h, updateChartDatasources as C } from "../utils/page-helper-util.js";
|
|
4
4
|
import { queryPageSuperGrids as b, queryPageDesignByCode as P, convertToPageContext as j, packageAdditionalMapWithLocationSearch as k, packageAdditionalMapWithRoute as $, packageAdditionalMapWithPageRequest as x } from "../utils/page-init-util.js";
|
|
@@ -15,8 +15,8 @@ import { useI18n as X } from "vue-i18n";
|
|
|
15
15
|
import { DepartmentUserTree as Y } from "agilebuilder-ui";
|
|
16
16
|
import { i18nValidateRulesMessage as Z } from "../utils/events/validator-util.js";
|
|
17
17
|
import ee from "./super-page-dialog.vue.js";
|
|
18
|
-
import { useRoute as le, useRouter as
|
|
19
|
-
import { jumpToPage as
|
|
18
|
+
import { useRoute as le, useRouter as ae } from "vue-router";
|
|
19
|
+
import { jumpToPage as te } from "agilebuilder-ui/src/utils/jump-page-utils";
|
|
20
20
|
import { setSessionCache as ue, getUsername as ne } from "agilebuilder-ui/src/utils/auth";
|
|
21
21
|
import { deepCopy as oe, isNumber as ie, refreshMobileDialogType as se } from "../utils/common-util.js";
|
|
22
22
|
import { isMobileBrowser as re } from "agilebuilder-ui/src/utils/common-util";
|
|
@@ -33,8 +33,8 @@ const me = { class: "app-container" }, ge = e({ __name: "super-page", props: { p
|
|
|
33
33
|
setTimeout(() => {
|
|
34
34
|
!function(e4, l3) {
|
|
35
35
|
if (!l3 || 0 == l3.length) return;
|
|
36
|
-
const
|
|
37
|
-
|
|
36
|
+
const a3 = l3.filter((e5) => "remote" != e5.filterType);
|
|
37
|
+
a3 && a3.length > 0 && h(e4, a3, void 0);
|
|
38
38
|
}(Be.value, e3.initOptionConfigs);
|
|
39
39
|
}, 0), setTimeout(() => {
|
|
40
40
|
!function(e4, l3) {
|
|
@@ -42,10 +42,10 @@ const me = { class: "app-container" }, ge = e({ __name: "super-page", props: { p
|
|
|
42
42
|
e4.initChartData = {}, e4.initChartData.data = oe(e4.entity.data), e4.initChartData.page = oe(e4.entity.page), l3 && l3.length > 0 && C(e4, l3, null, true);
|
|
43
43
|
}(Be.value, e3.initChartServiceConfigs);
|
|
44
44
|
}, 200), Be.value.initDataSources = [], N(Be.value), Ce.value = Be.value.items ? Be.value.items : [];
|
|
45
|
-
const
|
|
46
|
-
be.value =
|
|
47
|
-
const
|
|
48
|
-
return ce.setPageContext(Be.value), qe.value =
|
|
45
|
+
const a2 = Be.value.runtime ? Be.value.runtime : {};
|
|
46
|
+
be.value = a2.class, Pe.value = a2.style, S(e3, Be.value), Z(Be.value.rules), I(null, Be.value, e3, "beforeload");
|
|
47
|
+
const t2 = Be.value.code;
|
|
48
|
+
return ce.setPageContext(Be.value), qe.value = t2 + "_", F.$on(qe.value + "export-form-report", (e4) => {
|
|
49
49
|
ke.value = e4, He.value = e4.configureObj, Je.value = e4.pageContext, $e.value = true;
|
|
50
50
|
}), F.$on(qe.value + "export-pdf-report", (e4) => {
|
|
51
51
|
ke.value = e4, He.value = e4.configureObj, Je.value = e4.pageContext, $e.value = true;
|
|
@@ -71,15 +71,15 @@ const me = { class: "app-container" }, ge = e({ __name: "super-page", props: { p
|
|
|
71
71
|
});
|
|
72
72
|
}), F.$on(qe.value + "prohibit-edit", (e4) => {
|
|
73
73
|
}), F.$on(qe.value + "open-dialog", (e4) => {
|
|
74
|
-
var l3,
|
|
75
|
-
Ve.value = e4.pageContext, Ee.value = e4.configureObj, We.value = e4.eventParams, l3 = Ee.value,
|
|
76
|
-
return new Promise((
|
|
74
|
+
var l3, a3, t3;
|
|
75
|
+
Ve.value = e4.pageContext, Ee.value = e4.configureObj, We.value = e4.eventParams, l3 = Ee.value, a3 = We.value, t3 = e4.jumpPageSetting, function(e5, l4, a4) {
|
|
76
|
+
return new Promise((t4, u2) => {
|
|
77
77
|
var _a2;
|
|
78
|
-
if (
|
|
78
|
+
if (a4) t4(a4);
|
|
79
79
|
else {
|
|
80
|
-
const
|
|
81
|
-
if (
|
|
82
|
-
false !==
|
|
80
|
+
const a5 = e5 && e5.props && e5.props.linkPage ? e5.props.linkPage : null;
|
|
81
|
+
if (a5 && a5.jumpPageUrl) {
|
|
82
|
+
false !== a5.isNewPage && true !== a5.isNewPage && (a5.isNewPage = true);
|
|
83
83
|
const e6 = K(Be), u3 = !!((_a2 = Ee.value.props.linkPage) == null ? void 0 : _a2.isNeedId);
|
|
84
84
|
let n2 = u3 && l4 ? l4.id : null, o2 = u3 && l4 ? l4.ids : null, i2 = l4 ? l4.selections : [], s2 = l4 ? l4.row : null;
|
|
85
85
|
if (!s2) if (s2 = {}, i2 && i2.length > 0) s2 = i2[0];
|
|
@@ -88,39 +88,39 @@ const me = { class: "app-container" }, ge = e({ __name: "super-page", props: { p
|
|
|
88
88
|
l5 && Object.assign(s2, l5), e7 && Object.assign(s2, e7);
|
|
89
89
|
}
|
|
90
90
|
const r2 = oe(Ve.value.entity.page);
|
|
91
|
-
|
|
92
|
-
e7.isNeedId = u3,
|
|
91
|
+
a5._pageData = r2, te(a5, null, n2, s2, e6, o2).then((e7) => {
|
|
92
|
+
e7.isNeedId = u3, t4(e7);
|
|
93
93
|
});
|
|
94
|
-
} else
|
|
94
|
+
} else t4(false);
|
|
95
95
|
}
|
|
96
96
|
});
|
|
97
|
-
}(l3,
|
|
97
|
+
}(l3, a3, t3).then((e5) => {
|
|
98
98
|
if (e5) {
|
|
99
|
-
const
|
|
100
|
-
|
|
101
|
-
const
|
|
102
|
-
if (We.value || (We.value = {}), We.value.paramStoreId = e5.paramStoreId, u2.parentPageCode = Ve.value.code, u2.parentPageVersion = Ve.value.version, u2.isNewPage = true, "popup" ===
|
|
99
|
+
const a4 = l3 && l3.props && l3.props.linkPage ? l3.props.linkPage : null;
|
|
100
|
+
a4 && Object.assign(e5, oe(a4)), se(e5, Le);
|
|
101
|
+
const t4 = e5.jumpMode, u2 = e5;
|
|
102
|
+
if (We.value || (We.value = {}), We.value.paramStoreId = e5.paramStoreId, u2.parentPageCode = Ve.value.code, u2.parentPageVersion = Ve.value.version, u2.isNewPage = true, "popup" === t4 || "refresh" === t4) {
|
|
103
103
|
const e6 = u2.linkType;
|
|
104
104
|
(function(e7, l4) {
|
|
105
|
-
const
|
|
106
|
-
return new Promise((
|
|
107
|
-
if (
|
|
105
|
+
const a5 = ne();
|
|
106
|
+
return new Promise((t5, u3) => {
|
|
107
|
+
if (a5) if ("popup" !== l4 && !Le || Ve.value.systemCode === e7.customSystem) t5(true);
|
|
108
108
|
else {
|
|
109
109
|
const l5 = e7.customSystem;
|
|
110
|
-
pe.dispatch("getCurrentUserPermissions", { loginName:
|
|
111
|
-
|
|
110
|
+
pe.dispatch("getCurrentUserPermissions", { loginName: a5, systemCode: l5 }).then(() => {
|
|
111
|
+
t5(true);
|
|
112
112
|
}).catch(() => {
|
|
113
|
-
|
|
113
|
+
t5(true);
|
|
114
114
|
});
|
|
115
115
|
}
|
|
116
|
-
else
|
|
116
|
+
else t5(true);
|
|
117
117
|
});
|
|
118
|
-
})(u2,
|
|
119
|
-
Le && (Ve.value.systemCode !== u2.customSystem || e6 && "url" === e6) ? (u2._isIframe = true, "refresh" ===
|
|
118
|
+
})(u2, t4).then(() => {
|
|
119
|
+
Le && (Ve.value.systemCode !== u2.customSystem || e6 && "url" === e6) ? (u2._isIframe = true, "refresh" === t4 && (u2.dialogType = "drawer", u2.jumpPageWidth = "100%"), Me.value = u2, Fe.value = true) : (u2._isIframe = false, "popup" === t4 || Le && "refresh" === t4 ? ("refresh" === t4 && (u2.dialogType = "drawer", u2.jumpPageWidth = "100%"), Me.value = u2, Fe.value = true) : "refresh" === t4 && al.push({ path: "/dsc/page", query: u2 }));
|
|
120
120
|
}), F.$on(qe.value + "close-dialog", (e7) => {
|
|
121
121
|
!function(e8) {
|
|
122
122
|
const l4 = e8.jumpMode;
|
|
123
|
-
l4 && "popup" === l4 || Le && "refresh" === l4 ?
|
|
123
|
+
l4 && "popup" === l4 || Le && "refresh" === l4 ? tl(e8) : al.go(-1);
|
|
124
124
|
}(e7);
|
|
125
125
|
});
|
|
126
126
|
}
|
|
@@ -138,11 +138,11 @@ const me = { class: "app-container" }, ge = e({ __name: "super-page", props: { p
|
|
|
138
138
|
const e3 = he.value.parentNode ? he.value.parentNode : he.value;
|
|
139
139
|
let l2 = ye.contentHeight;
|
|
140
140
|
if (!l2) {
|
|
141
|
-
const
|
|
142
|
-
l2 = Le ? window.innerHeight - 78 : window.innerHeight -
|
|
141
|
+
const a3 = e3.getBoundingClientRect();
|
|
142
|
+
l2 = Le ? window.innerHeight - 78 : window.innerHeight - a3.y - 40;
|
|
143
143
|
}
|
|
144
|
-
let
|
|
145
|
-
ie(l2) && (
|
|
144
|
+
let a2 = l2;
|
|
145
|
+
ie(l2) && (a2 = l2 + "px"), e3.style.height = a2, e3.style["overflow-y"] = "auto";
|
|
146
146
|
});
|
|
147
147
|
}
|
|
148
148
|
function Ke() {
|
|
@@ -153,10 +153,10 @@ const me = { class: "app-container" }, ge = e({ __name: "super-page", props: { p
|
|
|
153
153
|
$e.value = false, ke.value = null;
|
|
154
154
|
}
|
|
155
155
|
function Xe(e3, l2) {
|
|
156
|
-
let
|
|
157
|
-
"export-pdf" === e3.name && (
|
|
156
|
+
let a2 = false;
|
|
157
|
+
"export-pdf" === e3.name && (a2 = true), W(ke.value.pageContext, ke.value.configureObj, l2, a2);
|
|
158
158
|
}
|
|
159
|
-
|
|
159
|
+
a(() => {
|
|
160
160
|
null != ye.pageDesign ? (je.value = ye.pageDesign, setTimeout(() => {
|
|
161
161
|
ze(ye.pageDesign).then(() => {
|
|
162
162
|
ye.pageDesign.tableRuntimes && Object.keys(ye.pageDesign.tableRuntimes).length > 0 ? b(ye.pageDesign, Be.value, ye.publishVersion).then((e3) => {
|
|
@@ -168,13 +168,13 @@ const me = { class: "app-container" }, ge = e({ __name: "super-page", props: { p
|
|
|
168
168
|
});
|
|
169
169
|
}, 0)) : ye.pageCode && P(ye.pageCode).then((e3) => {
|
|
170
170
|
if (e3 && e3.designJson) {
|
|
171
|
-
const l2 = e3.designJson,
|
|
172
|
-
je.value =
|
|
171
|
+
const l2 = e3.designJson, a2 = JSON.parse(l2);
|
|
172
|
+
je.value = a2, ze(a2).then(() => {
|
|
173
173
|
Ke(), Re.value = true, Ae();
|
|
174
174
|
});
|
|
175
175
|
}
|
|
176
176
|
});
|
|
177
|
-
}),
|
|
177
|
+
}), t(() => {
|
|
178
178
|
u(() => {
|
|
179
179
|
Be.value && he.value && D(Be.value, "-1", he);
|
|
180
180
|
});
|
|
@@ -191,15 +191,11 @@ const me = { class: "app-container" }, ge = e({ __name: "super-page", props: { p
|
|
|
191
191
|
function ll(e3) {
|
|
192
192
|
Te.value = [], _e.value = false, L(ke.value, e3);
|
|
193
193
|
}
|
|
194
|
-
const
|
|
195
|
-
function
|
|
194
|
+
const al = ae();
|
|
195
|
+
function tl(e3) {
|
|
196
196
|
var _a, _b;
|
|
197
|
-
const l2 = Me.value.closeEvent,
|
|
198
|
-
let
|
|
199
|
-
if (e3) {
|
|
200
|
-
const l3 = e3.isNeedValueMapping;
|
|
201
|
-
a2 = e3.dataModel, u2 = e3.sourceTableName, l3 && z(Ve.value, Ee.value, a2, u2);
|
|
202
|
-
}
|
|
197
|
+
const l2 = Me.value.closeEvent, a2 = Me.value.isRefreshWhenClosePopup;
|
|
198
|
+
let t2, u2;
|
|
203
199
|
const n2 = Ve.value.tableName;
|
|
204
200
|
let o2;
|
|
205
201
|
const i2 = We.value.columnProp ? We.value.columnProp : null;
|
|
@@ -210,22 +206,26 @@ const me = { class: "app-container" }, ge = e({ __name: "super-page", props: { p
|
|
|
210
206
|
});
|
|
211
207
|
o2 = e4 && e4.length > 0 ? e4[0] : null;
|
|
212
208
|
} else o2 = Ee.value;
|
|
213
|
-
|
|
209
|
+
if (e3) {
|
|
210
|
+
const l3 = e3.isNeedValueMapping;
|
|
211
|
+
t2 = e3.dataModel, u2 = e3.sourceTableName, l3 && z(Ve.value, o2, t2, u2, Me.value ? Me.value.valueMappings : null);
|
|
212
|
+
}
|
|
213
|
+
I(null, Ve.value, o2, "closePopup", { sourceModel: t2, sourceTableName: u2, jumpPageSetting: Me.value, entity: Ve.value.entity.data, targetTableName: n2, pageContext: Be.value, parentPageContext: Ve.value, parentConfigureObj: o2, columnProp: i2 }), function(e4, l3, a3) {
|
|
214
214
|
if (e4) {
|
|
215
|
-
const
|
|
216
|
-
|
|
215
|
+
const t3 = T(Ve.value, e4);
|
|
216
|
+
t3 && t3.apply(t3, [{ pageContext: Be.value, parentPageContext: Ve.value, parentConfigureObj: a3, jumpPageSetting: Me.value, columnProp: l3 }]);
|
|
217
217
|
}
|
|
218
|
-
}(l2, i2, o2), A(Ve.value, Ee.value,
|
|
218
|
+
}(l2, i2, o2), A(Ve.value, Ee.value, a2, void 0 !== a2 && false === a2 ? "noOperation" : null), Ve.value = null, Ee.value = null, We.value = null, F.$off(qe.value + "close-dialog"), Fe.value = false;
|
|
219
219
|
}
|
|
220
220
|
return ge2({ pickFileDone: function(e3) {
|
|
221
|
-
let l2 = e3.componentId,
|
|
222
|
-
(l2 ||
|
|
221
|
+
let l2 = e3.componentId, a2 = e3.listCode;
|
|
222
|
+
(l2 || a2) && (a2 ? F.$emit(a2 + "-pickFileDone", e3) : F.$emit(l2 + "-pickFileDone", e3));
|
|
223
223
|
}, uploadFileDone: function(e3) {
|
|
224
|
-
let l2 = e3.componentId,
|
|
225
|
-
(l2 ||
|
|
224
|
+
let l2 = e3.componentId, a2 = e3.listCode;
|
|
225
|
+
(l2 || a2) && (a2 ? F.$emit(a2 + "-uploadFileDone", e3) : F.$emit(l2 + "-uploadFileDone", e3));
|
|
226
226
|
}, scanDone: function(e3) {
|
|
227
|
-
let l2 = e3.componentId,
|
|
228
|
-
(l2 ||
|
|
227
|
+
let l2 = e3.componentId, a2 = e3.listCode;
|
|
228
|
+
(l2 || a2) && (a2 ? F.$emit(a2 + "-scanDone", e3) : F.$emit(l2 + "-scanDone", e3));
|
|
229
229
|
} }), (e3, l2) => (i(), o("div", me, [Re.value ? (i(), o("div", { ref_key: "thisRef", ref: he, key: Ge.value, class: v(be.value), style: r(Pe.value) }, [(i(true), o(g, null, f(Ce.value, (e4, l3) => (i(), p(y, { key: e4.uuid, configure: e4, pageContext: c(Be) }, null, 8, ["configure", "pageContext"]))), 128)), $e.value ? (i(), p(_, { key: 0, configure: He.value, pageContext: Je.value, onClose: Qe, onExport: Xe }, null, 8, ["configure", "pageContext"])) : s("", true), m("input", { ref_key: "_selectFile_", ref: Ye, type: "file", name: "_selectFile_", style: { display: "none" }, onChange: l2[0] || (l2[0] = (e4) => function() {
|
|
230
230
|
if (ke.value) {
|
|
231
231
|
if (!Ye.value) return;
|
|
@@ -233,7 +233,7 @@ const me = { class: "app-container" }, ge = e({ __name: "super-page", props: { p
|
|
|
233
233
|
const e5 = Ye.value.files[0];
|
|
234
234
|
e5 ? (Ye.value.value = null, B(ke.value, e5)) : Q({ showClose: true, type: "warning", message: de("superPageRuntimeMessage.noFileSelected") });
|
|
235
235
|
}
|
|
236
|
-
}()) }, null, 544), xe.value || De.value || we.value ? (i(), p(c(Y), { key: 1, width: "60%", multiple: Ne.value, onClose: Ze }, null, 8, ["multiple"])) : s("", true), Ie.value ? (i(), p(O, { key: 2, "task-informitions": Se.value, onClose: l2[1] || (l2[1] = (e4) => Ie.value = false), onResult: el }, null, 8, ["task-informitions"])) : s("", true), _e.value ? (i(), p(R, { key: 3, "task-id": Oe.value, "active-tasks": Te.value, onClose: l2[2] || (l2[2] = (e4) => _e.value = false), onResult: ll }, null, 8, ["task-id", "active-tasks"])) : s("", true), Fe.value ? (i(), p(ee, { key: 4, parentPageContext: Ve.value, parentPageEventParams: We.value, jumpPageSetting: Me.value, onClose: l2[3] || (l2[3] = (e4) =>
|
|
236
|
+
}()) }, null, 544), xe.value || De.value || we.value ? (i(), p(c(Y), { key: 1, width: "60%", multiple: Ne.value, onClose: Ze }, null, 8, ["multiple"])) : s("", true), Ie.value ? (i(), p(O, { key: 2, "task-informitions": Se.value, onClose: l2[1] || (l2[1] = (e4) => Ie.value = false), onResult: el }, null, 8, ["task-informitions"])) : s("", true), _e.value ? (i(), p(R, { key: 3, "task-id": Oe.value, "active-tasks": Te.value, onClose: l2[2] || (l2[2] = (e4) => _e.value = false), onResult: ll }, null, 8, ["task-id", "active-tasks"])) : s("", true), Fe.value ? (i(), p(ee, { key: 4, parentPageContext: Ve.value, parentPageEventParams: We.value, jumpPageSetting: Me.value, onClose: l2[3] || (l2[3] = (e4) => tl()) }, null, 8, ["parentPageContext", "parentPageEventParams", "jumpPageSetting"])) : s("", true)], 6)) : s("", true)]));
|
|
237
237
|
} });
|
|
238
238
|
export {
|
|
239
239
|
ge as default
|