super-page-runtime 2.3.3-tmp2 → 2.3.4-sit1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/components/runtime/utils/api/page-expose-util.js +53 -53
- package/dist/es/components/runtime/utils/barcode-util.js +5 -5
- package/dist/es/components/runtime/utils/charts/chart-pie-util.js +45 -46
- package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +14 -16
- package/dist/es/components/runtime/utils/charts/chart-util.js +24 -26
- package/dist/es/components/runtime/utils/events/event-util.js +119 -119
- package/dist/es/components/runtime/utils/events/print-label.js +25 -27
- package/dist/es/components/runtime/utils/events/standard-event.js +469 -481
- package/dist/es/components/runtime/utils/events/validator-util.js +2 -2
- package/dist/es/components/runtime/utils/form/scan-util.js +3 -4
- package/dist/es/components/runtime/utils/page-helper-util.js +275 -275
- package/dist/es/components/runtime/utils/page-init-util.js +44 -48
- package/dist/es/components/runtime/utils/page-store.js +1 -1
- package/dist/es/components/runtime/utils/table-utils.js +30 -30
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +12 -16
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +6 -10
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +9 -11
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +14 -15
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +11 -12
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +17 -18
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +18 -19
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +7 -12
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +18 -19
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +22 -26
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +1 -3
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +63 -63
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +10 -12
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +40 -43
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +120 -123
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +57 -58
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +0 -1
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +29 -29
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +32 -32
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +24 -24
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +53 -51
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +6 -8
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +9 -10
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +0 -1
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +0 -1
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +8 -8
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +15 -15
- package/dist/es/components/runtime/views/home-chart.vue.d.ts +3 -3
- package/dist/es/components/runtime/views/home-chart.vue.js +25 -23
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +6 -7
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +137 -140
- package/dist/es/i18n/langs/cn.js +1 -1
- package/dist/es/i18n/langs/en.js +1 -1
- package/dist/es/style.css +87 -87
- package/package.json +2 -2
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, computed as l, watch as o, onUnmounted as a, onMounted as u, nextTick as n, resolveComponent as i, createBlock as r, openBlock as s, normalizeStyle as p, normalizeClass as f, unref as c, withCtx as
|
|
1
|
+
import { defineComponent as e, ref as t, computed as l, watch as o, onUnmounted as a, onMounted as u, nextTick as n, resolveComponent as i, createBlock as r, openBlock as s, normalizeStyle as p, normalizeClass as f, unref as c, withCtx as v, createVNode as g, createElementBlock as m, Fragment as d, renderList as h, createCommentVNode as y, createElementVNode as x, toDisplayString as b, createTextVNode as C } from "vue";
|
|
2
2
|
import { setVariableValue as k, getVariableValue as w, getOptionDatasFromPage as _, queryOptionDatasources as S, autoSetAfterSelect as T } from "../../../../utils/page-helper-util.js";
|
|
3
3
|
import { getFormModelFields as j } from "../../../../utils/page-init-util.js";
|
|
4
4
|
import { handleFormEvent as R, handleAfterInitEvent as V } from "../../../../utils/events/event-util.js";
|
|
5
|
-
import
|
|
6
|
-
import { $t as
|
|
7
|
-
const
|
|
5
|
+
import z from "../common/title-suffix-element.vue.js";
|
|
6
|
+
import { $t as I } from "../../../../utils/i18n-util.js";
|
|
7
|
+
const M = { style: { float: "left" } }, q = { style: { float: "right", color: "var(--el-text-color-secondary)", "font-size": "13px" } }, A = e({ __name: "select-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: A2 }) {
|
|
8
8
|
const O = e2, P = O.pageContext.entity ? O.pageContext.entity : {};
|
|
9
9
|
let D = j(O.pageContext, O.configure);
|
|
10
10
|
const W = O.configure.runtime ? O.configure.runtime : {}, E = W.style, F = W.class, U = W.headerStyle, $ = W.titleExceedStyle, B = t(W.props ? W.props : {}), G = l({ get() {
|
|
@@ -21,10 +21,10 @@ const I = { style: { float: "left" } }, M = { style: { float: "right", color: "v
|
|
|
21
21
|
if ("remote" == L.filterType) {
|
|
22
22
|
let e3;
|
|
23
23
|
B.value.filterable = true, B.value.remote = true, B.value.remoteShowSuffix = true, B.value.remoteMethod = function(t2) {
|
|
24
|
-
e3 !== t2 && (e3 = t2, K.value = true,
|
|
24
|
+
e3 !== t2 && (e3 = t2, K.value = true, S(O.pageContext, X, t2).then((e4) => {
|
|
25
25
|
K.value = false;
|
|
26
26
|
}).then((e4) => {
|
|
27
|
-
|
|
27
|
+
K.value = false;
|
|
28
28
|
}));
|
|
29
29
|
};
|
|
30
30
|
}
|
|
@@ -61,7 +61,7 @@ const I = { style: { float: "left" } }, M = { style: { float: "right", color: "v
|
|
|
61
61
|
le && clearTimeout(le), le = setTimeout(function() {
|
|
62
62
|
const e3 = ee();
|
|
63
63
|
e3 != te && (te = e3, X.watchAttrValue = e3, S(O.pageContext, X, void 0).then((e4) => {
|
|
64
|
-
|
|
64
|
+
K.value = false;
|
|
65
65
|
}));
|
|
66
66
|
}, 200);
|
|
67
67
|
}
|
|
@@ -78,7 +78,7 @@ const I = { style: { float: "left" } }, M = { style: { float: "right", color: "v
|
|
|
78
78
|
H.value = e3 || [];
|
|
79
79
|
} }), (e3, t2) => {
|
|
80
80
|
const l2 = i("el-option"), o2 = i("el-select"), a2 = i("el-form-item");
|
|
81
|
-
return s(), r(a2, { ref_key: "formItemRef", ref: ae, required: !!B.value.required, class: f(c(F)), "label-width": B.value.labelWidth, style: p(c(E)) }, { label:
|
|
81
|
+
return s(), r(a2, { ref_key: "formItemRef", ref: ae, required: !!B.value.required, class: f(c(F)), "label-width": B.value.labelWidth, style: p(c(E)) }, { label: v(() => [B.value.tittleShow ? (s(), m("div", { key: 0, ref_key: "titleRef", ref: ne, style: p({ ...c(U), ...c($) }) }, [B.value.prefixType ? (s(), r(z, { key: 0, pageContext: e3.pageContext, property: B.value }, null, 8, ["pageContext", "property"])) : (s(), m(d, { key: 1 }, [C(b(c(I)(B.value.title)), 1)], 64))], 4)) : y("", true)]), default: v(() => [g(o2, { ref_key: "componentRef", ref: ue, style: { width: "100%" }, disabled: "disabled" === B.value.state, size: B.value.size, clearable: B.value.clearable, multiple: B.value.multiple, "collapse-tags": B.value.collapseTags, "collapse-tags-tooltip": B.value.collapseTagsTooltip, filterable: B.value.filterable, "allow-create": B.value.allowCreate, placeholder: B.value.placeholder, "remote-show-suffix": B.value.remoteShowSuffix, remote: B.value.remote, "remote-method": B.value.remoteMethod, loading: K.value, onChange: B.value.changeMethod, modelValue: G.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => G.value = e4) }, { default: v(() => [(s(true), m(d, null, h(H.value, (t3) => (s(), r(l2, { key: t3.value, label: t3.label, value: t3.value, onClick: (l3) => c(R)(t3.value, e3.pageContext, e3.configure, "click", { values: G.value }) }, { default: v(() => [t3._description_ ? (s(), m(d, { key: 0 }, [x("span", M, b(t3.label), 1), x("span", q, b(t3._description_), 1)], 64)) : y("", true)]), _: 2 }, 1032, ["label", "value", "onClick"]))), 128))]), _: 1 }, 8, ["disabled", "size", "clearable", "multiple", "collapse-tags", "collapse-tags-tooltip", "filterable", "allow-create", "placeholder", "remote-show-suffix", "remote", "remote-method", "loading", "onChange", "modelValue"])]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
82
82
|
};
|
|
83
83
|
} });
|
|
84
84
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as o, markRaw as t, onMounted as n, resolveDirective as i, withDirectives as r, createCommentVNode as
|
|
1
|
+
import { defineComponent as e, ref as o, markRaw as t, onMounted as n, resolveDirective as i, withDirectives as r, createCommentVNode as s, unref as u, createBlock as l, openBlock as c, resolveDynamicComponent as g, normalizeClass as f, normalizeStyle as a, vShow as p, nextTick as m } from "vue";
|
|
2
2
|
import v from "./error-render.vue.js";
|
|
3
3
|
import { getRuntimeComponentByName as d } from "../../utils/assemblys-config.js";
|
|
4
4
|
import { PageDimensions as y } from "../../utils/interfaces/page-design-types.js";
|
|
@@ -75,7 +75,7 @@ const H = e({ __name: "home-chart-render", props: { pageContext: {}, configure:
|
|
|
75
75
|
};
|
|
76
76
|
return (e3, o2) => {
|
|
77
77
|
const t2 = i("permission");
|
|
78
|
-
return
|
|
78
|
+
return u($)(e3.configure) ? r((c(), l(g(P.value), { key: 0, ref: D, style: a(W.value), class: f(q.value), configure: e3.configure, pageContext: e3.pageContext }, null, 8, ["style", "class", "configure", "pageContext"])), [[p, u(B)], [t2, { codes: u(N) ? u(N) : "true", systemCode: e3.pageContext.systemCode }]]) : s("", true);
|
|
79
79
|
};
|
|
80
80
|
} });
|
|
81
81
|
export {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as e, ref as o, computed as t, markRaw as n, onMounted as
|
|
2
|
-
import
|
|
1
|
+
import { defineComponent as e, ref as o, computed as t, markRaw as n, onMounted as s, onUnmounted as i, resolveDirective as r, withDirectives as u, createCommentVNode as l, unref as a, createBlock as p, openBlock as c, resolveDynamicComponent as g, normalizeClass as f, normalizeStyle as m, vShow as d, nextTick as C } from "vue";
|
|
2
|
+
import v from "./error-render.vue.js";
|
|
3
3
|
import { getRuntimeComponentByName as b } from "../../utils/assemblys-config.js";
|
|
4
|
-
import { PageDimensions as
|
|
5
|
-
import { addComponentRef as
|
|
4
|
+
import { PageDimensions as x } from "../../utils/interfaces/page-design-types.js";
|
|
5
|
+
import { addComponentRef as h, addComponentRefByCode as y } from "../../utils/global-refs.js";
|
|
6
6
|
import { getPermissionCodes as w, packageFormRules as j, controlObjectRenderState as N } from "../../utils/page-init-util.js";
|
|
7
7
|
import { caculateShowCondition as _, getFormPropName as L, getSizeConfig as O } from "../../utils/page-helper-util.js";
|
|
8
8
|
import { isWorkflowPage as P, getPropClassName as S, isNumber as T } from "../../utils/common-util.js";
|
|
@@ -53,13 +53,13 @@ const k = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
53
53
|
const R = o({});
|
|
54
54
|
R.value = n(b(k2.configure.name));
|
|
55
55
|
const W = o(true);
|
|
56
|
-
null == R.value && (R.value =
|
|
56
|
+
null == R.value && (R.value = v, W.value = false);
|
|
57
57
|
const q = o(null), z = o({}), A = o(""), D = S(k2.configure);
|
|
58
58
|
D && (A.value = D);
|
|
59
59
|
const G = k2.configure.runtime && k2.configure.runtime.common ? k2.configure.runtime.common : {};
|
|
60
60
|
if (G.class && (A.value += " " + G.class), G.style) {
|
|
61
61
|
Object.assign(z.value, G.style);
|
|
62
|
-
const e3 = k2.pageContext && k2.pageContext.dimensions ? k2.pageContext.dimensions :
|
|
62
|
+
const e3 = k2.pageContext && k2.pageContext.dimensions ? k2.pageContext.dimensions : x.PC, o2 = G.style[e3 + "_style"];
|
|
63
63
|
o2 && Object.assign(z.value, o2);
|
|
64
64
|
const t2 = G.style[e3 + "_class"];
|
|
65
65
|
t2 && (A.value += " " + t2);
|
|
@@ -72,7 +72,7 @@ const k = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
72
72
|
E.value = "hide";
|
|
73
73
|
}), e3 && !e3.getConfigure && (e3.getConfigure = function() {
|
|
74
74
|
return k2.configure;
|
|
75
|
-
}), k2.configure.uuid &&
|
|
75
|
+
}), k2.configure.uuid && h(k2.pageContext, k2.configure.uuid, q), k2.configure.code) y(k2.pageContext, k2.configure.code, q);
|
|
76
76
|
else if ("table" === k2.configure.name) y(k2.pageContext, k2.configure.uuid, q);
|
|
77
77
|
else if (k2.configure.props && k2.configure.props.base) {
|
|
78
78
|
const e4 = k2.configure.props.base;
|
|
@@ -89,23 +89,23 @@ const k = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
89
89
|
!function() {
|
|
90
90
|
if (!q.value) return;
|
|
91
91
|
const e4 = O(k2.pageContext, k2.configure);
|
|
92
|
-
"table" !== k2.configure.name && e4 && e4.isCalcHeight &&
|
|
92
|
+
"table" !== k2.configure.name && e4 && e4.isCalcHeight && C(() => {
|
|
93
93
|
let e5 = q.value.$el;
|
|
94
94
|
e5 || (e5 = q.value);
|
|
95
95
|
const o3 = e5.parentNode;
|
|
96
96
|
if (!e5 || !o3) return;
|
|
97
97
|
const t2 = e5.getBoundingClientRect();
|
|
98
|
-
let n2 = window.innerHeight - t2.y - 80,
|
|
99
|
-
T(n2) && (
|
|
98
|
+
let n2 = window.innerHeight - t2.y - 80, s2 = n2 + "";
|
|
99
|
+
T(n2) && (s2 = n2 + "px"), z.value.height = s2, z.value["overflow-y"] = "auto", z.value["overflow-x"] = "hidden", k2.configure.sytle || (k2.configure.sytle = {}), k2.configure.sytle._heightStyle = s2;
|
|
100
100
|
});
|
|
101
101
|
}();
|
|
102
102
|
}
|
|
103
103
|
let Q;
|
|
104
|
-
|
|
104
|
+
s(() => {
|
|
105
105
|
U(), I.countComponentsLoadedNumber(), Q = setTimeout(() => {
|
|
106
106
|
I.componentsTotalNmber !== I.componentsLoadedNumber || I.pageComponentsLoaded || I.setPageComponentsLoaded(true);
|
|
107
107
|
}, 30);
|
|
108
|
-
}),
|
|
108
|
+
}), i(() => {
|
|
109
109
|
Q && clearTimeout(Q);
|
|
110
110
|
});
|
|
111
111
|
const U = () => {
|
|
@@ -114,12 +114,12 @@ const k = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
114
114
|
e3 || (e3 = q.value);
|
|
115
115
|
const o2 = e3.parentNode;
|
|
116
116
|
if (!e3 || !o2) return;
|
|
117
|
-
const t2 = k2.configure.props ? k2.configure.props : {}, n2 = k2.configure.style ? k2.configure.style : {},
|
|
118
|
-
"top" ==
|
|
117
|
+
const t2 = k2.configure.props ? k2.configure.props : {}, n2 = k2.configure.style ? k2.configure.style : {}, s2 = t2.position;
|
|
118
|
+
"top" == s2 || "bottom" == s2 || n2.position;
|
|
119
119
|
};
|
|
120
120
|
return (e3, o2) => {
|
|
121
121
|
const t2 = r("permission");
|
|
122
|
-
return a(H)(e3.configure) ? u((c(), p(g(R.value), { key: 0, ref: K, style: m(z.value), class: f(A.value), configure: e3.configure, pageContext: e3.pageContext }, null, 8, ["style", "class", "configure", "pageContext"])), [[d, a(F)], [t2, a(B) ? a(B) : "true"]]) : l("", true);
|
|
122
|
+
return a(H)(e3.configure) ? u((c(), p(g(R.value), { key: 0, ref: K, style: m(z.value), class: f(A.value), configure: e3.configure, pageContext: e3.pageContext }, null, 8, ["style", "class", "configure", "pageContext"])), [[d, a(F)], [t2, { codes: a(B) ? a(B) : "true", systemCode: e3.pageContext.systemCode }]]) : l("", true);
|
|
123
123
|
};
|
|
124
124
|
} });
|
|
125
125
|
export {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
-
|
|
2
|
+
chartUuid: {
|
|
3
3
|
type: StringConstructor;
|
|
4
4
|
default: string;
|
|
5
5
|
};
|
|
@@ -8,7 +8,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
8
8
|
default: number;
|
|
9
9
|
};
|
|
10
10
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
11
|
-
|
|
11
|
+
chartUuid: {
|
|
12
12
|
type: StringConstructor;
|
|
13
13
|
default: string;
|
|
14
14
|
};
|
|
@@ -17,7 +17,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
17
17
|
default: number;
|
|
18
18
|
};
|
|
19
19
|
}>> & Readonly<{}>, {
|
|
20
|
-
|
|
20
|
+
chartUuid: string;
|
|
21
21
|
homeChartSettingUserId: number;
|
|
22
22
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
23
23
|
export default _default;
|
|
@@ -1,45 +1,47 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, onUnmounted as a, resolveDirective as i, withDirectives as n, createElementBlock as
|
|
2
|
-
import { deepCopy as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { updateOptionDatasources as
|
|
6
|
-
import { initPageEvents as
|
|
7
|
-
import { setHomeChartInitConfigValue as
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
import { defineComponent as e, ref as t, onUnmounted as a, resolveDirective as i, withDirectives as n, createElementBlock as r, openBlock as o, createBlock as s, createCommentVNode as l, unref as u, toDisplayString as m } from "vue";
|
|
2
|
+
import { deepCopy as h } from "../utils/common-util.js";
|
|
3
|
+
import g from "./assemblys/home-chart-render.vue.js";
|
|
4
|
+
import c from "agilebuilder-ui/src/utils/request";
|
|
5
|
+
import { updateOptionDatasources as d, updateChartDatasources as p } from "../utils/page-helper-util.js";
|
|
6
|
+
import { initPageEvents as f } from "../utils/events/event-util.js";
|
|
7
|
+
import { setHomeChartInitConfigValue as v } from "../utils/charts/chart-util.js";
|
|
8
|
+
import { useI18n as C } from "vue-i18n";
|
|
9
|
+
const y = { "element-loading-text": "加载中..." }, S = { key: 1 }, b = e({ name: "HomeChart", inheritAttrs: false, __name: "home-chart", props: { chartUuid: { type: String, default: "" }, homeChartSettingUserId: { type: Number, default: 0 } }, setup(e2) {
|
|
10
|
+
const { t: b2 } = C(), I = e2, U = t(true), w = t(false), H = t(null);
|
|
11
|
+
let x, A = t(null);
|
|
12
|
+
return I.chartUuid && c.get(window.$vueApp.config.globalProperties.baseAPI + "/component/home-chart-layout/" + I.chartUuid).then((e3) => {
|
|
12
13
|
var _a, _b;
|
|
13
14
|
if (e3 && e3.designJson) {
|
|
15
|
+
H.value = {};
|
|
14
16
|
const t2 = JSON.parse(e3.designJson);
|
|
15
17
|
let a2 = window.localStorage.getItem("HOME_MY_CHARTS_ALIAS");
|
|
16
18
|
if (a2) {
|
|
17
19
|
const e4 = JSON.parse(a2);
|
|
18
|
-
e4[
|
|
20
|
+
e4[I.homeChartSettingUserId] && (t2.chartJson.runtime.headerInfo ? t2.chartJson.runtime.headerInfo.title = e4[I.homeChartSettingUserId] : t2.chartJson.runtime.headerInfo = { textAlign: "center", title: e4[I.homeChartSettingUserId] });
|
|
19
21
|
}
|
|
20
22
|
const i2 = window.frameElement;
|
|
21
|
-
|
|
23
|
+
H.value = t2.chartJson, H.value.homeChartSettingUserId = I.homeChartSettingUserId, i2 && (H.value.runtime.common.style.pc_style.height = i2.clientHeight + "px");
|
|
22
24
|
const n2 = { showHomepageSearch: false, 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 } };
|
|
23
|
-
if (((_a =
|
|
25
|
+
if (((_a = H.value.pushHomepage) == null ? void 0 : _a.searchConditions) && ((_b = H.value.pushHomepage) == null ? void 0 : _b.searchConditions.length) > 0 && (n2.showHomepageSearch = true), t2.variables) {
|
|
24
26
|
const e4 = n2.entity.page;
|
|
25
27
|
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);
|
|
26
28
|
}
|
|
27
|
-
t2.initOptionConfigs && t2.initOptionConfigs.length > 0 &&
|
|
29
|
+
t2.initOptionConfigs && t2.initOptionConfigs.length > 0 && d(n2, t2.initOptionConfigs, void 0), v(H.value.pushHomepage.initConfig, n2, I.homeChartSettingUserId), f(t2, n2), A.value = n2, x = setTimeout(() => {
|
|
28
30
|
!function(e4, t3) {
|
|
29
|
-
if (!t3 || 0 == t3.length) return
|
|
30
|
-
e4.initChartData = {}, e4.initChartData.data =
|
|
31
|
-
}(
|
|
31
|
+
if (!t3 || 0 == t3.length) return;
|
|
32
|
+
e4.initChartData = {}, e4.initChartData.data = h(e4.entity.data), e4.initChartData.page = h(e4.entity.page), t3 && t3.length > 0 && p(e4, t3, null, true);
|
|
33
|
+
}(A.value, [t2.initChartServiceConfigs]);
|
|
32
34
|
}, 200);
|
|
33
|
-
} else
|
|
35
|
+
} else w.value = true, U.value = false;
|
|
34
36
|
}).finally(() => {
|
|
35
|
-
|
|
37
|
+
U.value = false;
|
|
36
38
|
}), a(() => {
|
|
37
|
-
|
|
39
|
+
x && clearTimeout(x);
|
|
38
40
|
}), (e3, t2) => {
|
|
39
41
|
const a2 = i("loading");
|
|
40
|
-
return n((
|
|
42
|
+
return n((o(), r("div", y, [!U.value && H.value ? (o(), s(g, { key: 0, configure: H.value, pageContext: u(A) }, null, 8, ["configure", "pageContext"])) : U.value || H.value ? l("", true) : (o(), r("div", S, m(u(b2)("superPageRuntimeMessage.noChartSetting")), 1))])), [[a2, U.value]]);
|
|
41
43
|
};
|
|
42
44
|
} });
|
|
43
45
|
export {
|
|
44
|
-
|
|
46
|
+
b as default
|
|
45
47
|
};
|
|
@@ -1,26 +1,25 @@
|
|
|
1
1
|
import { defineComponent as e, ref as a, resolveComponent as l, createBlock as u, openBlock as t, withCtx as n, createElementBlock as o, createCommentVNode as r } from "vue";
|
|
2
2
|
import i from "./super-page.vue.js";
|
|
3
|
-
const s = ["src"],
|
|
4
|
-
const p = e2, v =
|
|
3
|
+
const s = ["src"], d = { key: 1, class: "amb-super-page-runtime-dialog-iframe", frameborder: "0", marginwidth: "0", marginheight: "0", width: "100%", allowtransparency: "no" }, g = e({ __name: "super-page-dialog", props: { parentPageContext: {}, parentPageEventParams: {}, jumpPageSetting: {}, isTest: { type: Boolean }, customParams: {} }, emits: ["open", "opened", "close", "closed"], setup(e2, { emit: g2 }) {
|
|
4
|
+
const p = e2, v = g2, m = a(true), c = p.jumpPageSetting ? p.jumpPageSetting : null, P = a(null), f = a(null), h = a(null), w = a(null), C = a(null), j = a(null), b = a({}), y = a(false), k = a(false), O = a("rtl"), I = a(null), _ = a(false), V = a(null), x = a(true), S = a(false);
|
|
5
5
|
if (c) {
|
|
6
|
-
|
|
6
|
+
x.value = (c == null ? void 0 : c.alignCenter) ?? true, S.value = (c == null ? void 0 : c.fullscreen) ?? false, _.value = !(!c || void 0 === c._isIframe) && c._isIframe, V.value = c && c._path ? c._path : null, j.value = c && c.dialogType ? c.dialogType : "dialog", y.value = !(!c || !c.draggable) && c.draggable, k.value = !(!c || !c.overflow) && c.overflow, O.value = c && c.showPosition ? c.showPosition : "rtl", f.value = c && c.jumpPageTitle ? c.jumpPageTitle : null, P.value = c && c.jumpPageWidth ? c.jumpPageWidth : "dialog" === j.value ? "calc(100% - 30px)" : "100%", I.value = c && c.jumpPageHeight ? c.jumpPageHeight : null, h.value = c && c.pageCode, w.value = c && c.dataId ? c.dataId : null, C.value = c && c.taskId ? c.taskId : null;
|
|
7
7
|
const e3 = !!c.isNeedId;
|
|
8
8
|
if (p.parentPageEventParams) {
|
|
9
9
|
try {
|
|
10
10
|
const e4 = JSON.parse(JSON.stringify(p.parentPageEventParams));
|
|
11
11
|
e4.pageContext && delete e4.pageContext, e4.configureObj && delete e4.configureObj, Object.assign(b.value, e4);
|
|
12
12
|
} catch (e4) {
|
|
13
|
-
console.error(e4);
|
|
14
13
|
}
|
|
15
14
|
null !== w.value && void 0 !== w.value || (w.value = p.parentPageEventParams.id);
|
|
16
15
|
}
|
|
17
16
|
b.value.parentPageCode = c && c.parentPageCode ? c.parentPageCode : null, b.value.parentPageVersion = c && c.parentPageVersion ? c.parentPageVersion : null, b.value.jumpMode = c ? c.jumpMode : null, b.value.id = w.value, b.value.isNeedId = e3, b.value.taskId = C.value, p.customParams && Object.assign(b.value, p.customParams);
|
|
18
17
|
}
|
|
19
18
|
return (e3, a2) => {
|
|
20
|
-
const
|
|
21
|
-
return j.value && "drawer" === j.value ? (t(), u(
|
|
19
|
+
const g3 = l("el-drawer"), p2 = l("el-dialog");
|
|
20
|
+
return j.value && "drawer" === j.value ? (t(), u(g3, { key: 0, modelValue: m.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e4) => m.value = e4), title: f.value, direction: O.value, size: P.value, class: "content-drawer amb-super-page-runtime-drawer-view", onOpen: a2[1] || (a2[1] = (e4) => v("open")), onOpened: a2[2] || (a2[2] = (e4) => v("opened")), onClose: a2[3] || (a2[3] = (e4) => v("close")), onClosed: a2[4] || (a2[4] = (e4) => v("closed")) }, { default: n(() => [!_.value && h.value ? (t(), u(i, { key: 0, pageCode: h.value, pageRequest: b.value, isDialog: true }, null, 8, ["pageCode", "pageRequest"])) : _.value ? (t(), o("iframe", { key: 1, src: V.value, class: "amb-super-page-runtime-drawer-iframe", frameborder: "0", marginwidth: "0", marginheight: "0", width: "100%", allowtransparency: "no" }, null, 8, s)) : r("", true)]), _: 1 }, 8, ["modelValue", "title", "direction", "size"])) : (t(), u(p2, { key: 1, "model-value": "", title: f.value, "close-on-click-modal": false, "append-to-body": "", width: P.value, fullscreen: S.value, alignCenter: x.value, draggable: y.value, overflow: k.value, class: "amb-super-page-runtime-dialog-view", onOpen: a2[5] || (a2[5] = (a3) => e3.$emit("open")), onOpend: a2[6] || (a2[6] = (a3) => e3.$emit("opend")), onClose: a2[7] || (a2[7] = (e4) => v("close")), onClosed: a2[8] || (a2[8] = (a3) => e3.$emit("closed")) }, { default: n(() => [!_.value && h.value ? (t(), u(i, { key: 0, pageCode: h.value, pageRequest: b.value, contentHeight: I.value, isDialog: true }, null, 8, ["pageCode", "pageRequest", "contentHeight"])) : _.value ? (t(), o("iframe", d)) : r("", true)]), _: 1 }, 8, ["title", "width", "fullscreen", "alignCenter", "draggable", "overflow"]));
|
|
22
21
|
};
|
|
23
22
|
} });
|
|
24
23
|
export {
|
|
25
|
-
|
|
24
|
+
g as default
|
|
26
25
|
};
|