super-page-runtime 2.2.74 → 2.2.77-sit10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +74 -74
- package/dist/es/components/runtime/utils/charts/chart-util.d.ts +1 -1
- package/dist/es/components/runtime/utils/charts/chart-util.js +5 -5
- package/dist/es/components/runtime/utils/events/standard-event.js +221 -225
- package/dist/es/components/runtime/utils/events/validator-util.js +48 -38
- package/dist/es/components/runtime/utils/page-init-util.js +6 -5
- package/dist/es/components/runtime/utils/page-permission-util.js +16 -16
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +16 -13
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +4 -1
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +15 -11
- 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 +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +125 -111
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +83 -49
- package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +4 -4
- package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +6 -6
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +38 -33
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +11 -8
- package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +1 -0
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +54 -52
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +16 -14
- 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 +77 -73
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +6 -1
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +29 -29
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +5 -4
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +4 -1
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +7 -7
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +13 -13
- package/dist/es/components/runtime/views/{super-page-dialog.vue2.js → super-page-dialog.vue3.js} +1 -0
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +17 -15
- package/dist/es/index.js +1 -0
- package/dist/es/style.css +225 -99
- package/package.json +2 -2
package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js
CHANGED
|
@@ -3,33 +3,22 @@ import { SuperIcon as T } from "agilebuilder-ui";
|
|
|
3
3
|
import { getFormModelFields as k } from "../../../../utils/page-init-util.js";
|
|
4
4
|
import { getModelFieldFromPageContext as V, isNumberDataType as h, setVariableValue as w, getVariableValue as b } from "../../../../utils/page-helper-util.js";
|
|
5
5
|
import { handleFormEvent as _, handleAfterInitEvent as S, doSuffixOrPrefixClickEvent as j } from "../../../../utils/events/event-util.js";
|
|
6
|
-
import { formatScanRuleSets as R, analysisScanValue as D, setScanAnalysisValue as
|
|
7
|
-
import
|
|
8
|
-
import { isMobileBrowser as
|
|
9
|
-
import
|
|
10
|
-
import { $t as
|
|
11
|
-
const
|
|
6
|
+
import { formatScanRuleSets as R, analysisScanValue as D, setScanAnalysisValue as O } 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 L } from "../../../../utils/i18n-util.js";
|
|
11
|
+
const M = e({ __name: "inputtext-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: M2 }) {
|
|
12
12
|
var _a, _b, _c;
|
|
13
|
-
const
|
|
14
|
-
let J = k(
|
|
15
|
-
if (
|
|
16
|
-
const e3 = V(J,
|
|
13
|
+
const N = e2, B = N.pageContext.entity ? N.pageContext.entity : {}, F = t("text");
|
|
14
|
+
let J = k(N.pageContext, N.configure);
|
|
15
|
+
if (N.pageContext.modelFieldsMap) {
|
|
16
|
+
const e3 = V(J, N.pageContext);
|
|
17
17
|
e3 && (F.value = h(e3.dataType) ? "number" : "text");
|
|
18
18
|
}
|
|
19
|
-
const $ = t(
|
|
19
|
+
const $ = t(q()), A = N.pageContext.code, E = t(J && J.length > 0 ? A + "__" + J.join("__") : null), U = l({ get: () => b(B, J), set(e3) {
|
|
20
20
|
e3 = e3.trim(), w(B, J, e3);
|
|
21
|
-
} }), W = t(null), G = t(null), H = t(null);
|
|
22
|
-
o(() => {
|
|
23
|
-
L.$on(E.value + "-scanDone", (e3) => {
|
|
24
|
-
re(e3.result), _(e3.result, O.pageContext, O.configure, "afterScanDone");
|
|
25
|
-
}), n(() => {
|
|
26
|
-
const e3 = U.value;
|
|
27
|
-
S(e3, O.pageContext, O.configure, { formItemRef: W.value, componentRef: G.value, titleRef: H.value, value: e3, entity: O.pageContext.entity.data, pageData: O.pageContext.entity.page });
|
|
28
|
-
});
|
|
29
|
-
}), a(() => {
|
|
30
|
-
L.$off(E.value + "-scanDone");
|
|
31
|
-
});
|
|
32
|
-
const K = O.configure.runtime ? O.configure.runtime : {}, Q = t(K.props ? K.props : {}), X = t(!!((_a = Q.value.scan) == null ? void 0 : _a.enable));
|
|
21
|
+
} }), W = t(null), G = t(null), H = t(null), K = N.configure.runtime ? N.configure.runtime : {}, Q = t(K.props ? K.props : {}), X = t(!!((_a = Q.value.scan) == null ? void 0 : _a.enable));
|
|
33
22
|
let Y = false;
|
|
34
23
|
const Z = window.localStorage.getItem("auth_source");
|
|
35
24
|
Z && "dingtalk" === Z && (Y = true);
|
|
@@ -42,20 +31,31 @@ const N = e({ __name: "inputtext-runtime", props: { pageContext: {}, configure:
|
|
|
42
31
|
}), u(() => U.value, (e3) => {
|
|
43
32
|
e3 = e3.trim();
|
|
44
33
|
const t2 = D(e3, oe);
|
|
45
|
-
t2 &&
|
|
34
|
+
t2 && O(N.pageContext, t2.scanSet, t2.params);
|
|
46
35
|
}));
|
|
47
36
|
const ne = K.style, ae = K.class, ue = K.headerStyle, ie = K.titleExceedStyle;
|
|
48
37
|
function re(e3) {
|
|
49
38
|
return w(B, J, e3);
|
|
50
39
|
}
|
|
40
|
+
o(() => {
|
|
41
|
+
z.$on(E.value + "-scanDone", (e3) => {
|
|
42
|
+
re(e3.result), _(e3.result, N.pageContext, N.configure, "afterScanDone");
|
|
43
|
+
}), n(() => {
|
|
44
|
+
var _a2;
|
|
45
|
+
const e3 = U.value;
|
|
46
|
+
S(e3, N.pageContext, N.configure, { formItemRef: W.value, componentRef: G.value, titleRef: H.value, value: e3, entity: N.pageContext.entity.data, pageData: N.pageContext.entity.page }), le.value && ((_a2 = Q.value.scan) == null ? void 0 : _a2.autoOpen) && ce();
|
|
47
|
+
});
|
|
48
|
+
}), a(() => {
|
|
49
|
+
z.$off(E.value + "-scanDone");
|
|
50
|
+
});
|
|
51
51
|
const pe = t(false);
|
|
52
52
|
function ce() {
|
|
53
53
|
if (te || Y) {
|
|
54
|
-
const e3 = { type: "scan", componentId: E.value, systemCode:
|
|
54
|
+
const e3 = { type: "scan", componentId: E.value, systemCode: N.pageContext.systemCode };
|
|
55
55
|
Y && (e3.type = "dingTalkScan"), window.parent.postMessage(JSON.stringify(e3), "*");
|
|
56
56
|
} else if ($.value) if ("https:" === window.location.protocol) pe.value = true;
|
|
57
57
|
else {
|
|
58
|
-
const e3 = { type: "scan", componentId: E.value, systemCode:
|
|
58
|
+
const e3 = { type: "scan", componentId: E.value, systemCode: N.pageContext.systemCode };
|
|
59
59
|
window.parent.postMessage(JSON.stringify(e3), "*");
|
|
60
60
|
}
|
|
61
61
|
else pe.value = true;
|
|
@@ -63,13 +63,13 @@ const N = e({ __name: "inputtext-runtime", props: { pageContext: {}, configure:
|
|
|
63
63
|
function se(e3) {
|
|
64
64
|
pe.value = false, re(e3);
|
|
65
65
|
}
|
|
66
|
-
return
|
|
66
|
+
return M2({ getValue: function() {
|
|
67
67
|
return b(B, J);
|
|
68
68
|
}, setValue: re, scanClick: ce }), (e3, t2) => {
|
|
69
69
|
const l2 = i("el-input"), o2 = i("scan-code-input-browser"), n2 = i("el-form-item");
|
|
70
|
-
return p(), r(n2, { ref_key: "formItemRef", ref: W, required: !!Q.value.required, class: s(v(ae)), "label-width": Q.value.labelWidth, style: c(v(ne)) }, { label: f(() => [Q.value.tittleShow ? (p(), C("div", { key: 0, ref_key: "titleRef", ref: H, style: c({ ...v(ue), ...v(ie) }) }, [Q.value.prefixType ? (p(), r(
|
|
70
|
+
return p(), r(n2, { ref_key: "formItemRef", ref: W, required: !!Q.value.required, class: s(v(ae)), "label-width": Q.value.labelWidth, style: c(v(ne)) }, { label: f(() => [Q.value.tittleShow ? (p(), C("div", { key: 0, ref_key: "titleRef", ref: H, style: c({ ...v(ue), ...v(ie) }) }, [Q.value.prefixType ? (p(), r(P, { key: 0, pageContext: e3.pageContext, property: Q.value }, null, 8, ["pageContext", "property"])) : (p(), C(I, { key: 1 }, [d(x(v(L)(Q.value.title)), 1)], 64))], 4)) : y("", true)]), default: f(() => [g(l2, { ref_key: "componentRef", ref: G, disabled: "disabled" === Q.value.state, readonly: "readonly" === Q.value.state, size: Q.value.size, clearable: Q.value.clearable, placeholder: Q.value.placeholder, maxlength: Q.value.maxLength, "show-word-limit": Q.value.showInputNum, type: F.value, modelValue: U.value, "onUpdate:modelValue": t2[5] || (t2[5] = (e4) => U.value = e4), onInput: t2[6] || (t2[6] = (t3) => v(_)(t3, e3.pageContext, e3.configure, "input")), onChange: t2[7] || (t2[7] = (t3) => v(_)(t3, e3.pageContext, e3.configure, "change")), onBlur: t2[8] || (t2[8] = (t3) => v(_)(t3, e3.pageContext, e3.configure, "blur")), onFocus: t2[9] || (t2[9] = (t3) => v(_)(t3, e3.pageContext, e3.configure, "focus")), onClick: t2[10] || (t2[10] = (t3) => v(_)(t3, e3.pageContext, e3.configure, "click")) }, m({ _: 2 }, ["outer" != Q.value.iconPosition && (Q.value.preIconType && Q.value.preIconValue || Q.value.preText) ? { name: "prefix", fn: f(() => [Q.value.preIconType && Q.value.preIconValue ? (p(), r(v(T), { key: 0, iconType: Q.value.preIconType, iconValue: Q.value.preIconValue, onClick: t2[0] || (t2[0] = (t3) => v(j)(U.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : y("", true), d(" " + x(v(L)(Q.value.preText)), 1)]), key: "0" } : void 0, "outer" == Q.value.iconPosition && (Q.value.preIconType && Q.value.preIconValue || Q.value.preText) ? { name: "prepend", fn: f(() => [Q.value.preIconType && Q.value.preIconValue ? (p(), r(v(T), { key: 0, iconType: Q.value.preIconType, iconValue: Q.value.preIconValue, onClick: t2[1] || (t2[1] = (t3) => v(j)(U.value, e3.pageContext, e3.configure, "prefixClick")) }, null, 8, ["iconType", "iconValue"])) : y("", true), d(" " + x(v(L)(Q.value.preText)), 1)]), key: "1" } : void 0, "outer" != Q.value.iconPosition && (Q.value.sufIconType && Q.value.sufIconValue || Q.value.sufText) ? { name: "suffix", fn: f(() => [Q.value.sufIconType && Q.value.sufIconValue ? (p(), r(v(T), { key: 0, iconType: Q.value.sufIconType, iconValue: Q.value.sufIconValue, onClick: t2[2] || (t2[2] = (t3) => v(j)(U.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : y("", true), d(" " + x(v(L)(Q.value.sufText)), 1)]), key: "2" } : void 0, le.value || "outer" == Q.value.iconPosition && (Q.value.sufIconType && Q.value.sufIconValue || Q.value.sufText) ? { name: "append", fn: f(() => [le.value ? (p(), r(v(T), { key: 0, iconValue: "fa-barcode", onClick: t2[3] || (t2[3] = (e4) => ce()) })) : y("", true), Q.value.sufIconType && Q.value.sufIconValue ? (p(), r(v(T), { key: 1, iconType: Q.value.sufIconType, iconValue: Q.value.sufIconValue, onClick: t2[4] || (t2[4] = (t3) => v(j)(U.value, e3.pageContext, e3.configure, "suffixClick")) }, null, 8, ["iconType", "iconValue"])) : y("", true), d(" " + x(v(L)(Q.value.sufText)), 1)]), key: "3" } : void 0]), 1032, ["disabled", "readonly", "size", "clearable", "placeholder", "maxlength", "show-word-limit", "type", "modelValue"]), pe.value ? (p(), r(o2, { key: 0, onClose: se })) : y("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
71
71
|
};
|
|
72
72
|
} });
|
|
73
73
|
export {
|
|
74
|
-
|
|
74
|
+
M as default
|
|
75
75
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as e, ref as o, computed as t, markRaw as n, onMounted as i, onUnmounted as s, 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 d, vShow as m, nextTick as v } from "vue";
|
|
2
2
|
import C 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 _ } from "../../utils/page-init-util.js";
|
|
7
7
|
import { caculateShowCondition as N, getFormPropName as P, getSizeConfig as L } from "../../utils/page-helper-util.js";
|
|
8
8
|
import { isWorkflowPage as O, getPropClassName as S, isNumber as M } from "../../utils/common-util.js";
|
|
@@ -63,7 +63,7 @@ const H = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
63
63
|
const G = H2.configure.runtime && H2.configure.runtime.common ? H2.configure.runtime.common : {};
|
|
64
64
|
if (G.class && (A.value += " " + G.class), G.style) {
|
|
65
65
|
Object.assign(z.value, G.style);
|
|
66
|
-
const e3 = H2.pageContext && H2.pageContext.dimensions ? H2.pageContext.dimensions :
|
|
66
|
+
const e3 = H2.pageContext && H2.pageContext.dimensions ? H2.pageContext.dimensions : x.PC, o2 = G.style[e3 + "_style"];
|
|
67
67
|
o2 && Object.assign(z.value, o2);
|
|
68
68
|
const t2 = G.style[e3 + "_class"];
|
|
69
69
|
t2 && (A.value += " " + t2);
|
|
@@ -76,7 +76,8 @@ const H = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
76
76
|
B.value = "hide";
|
|
77
77
|
}), e3 && !e3.getConfigure && (e3.getConfigure = function() {
|
|
78
78
|
return H2.configure;
|
|
79
|
-
}), H2.configure.uuid &&
|
|
79
|
+
}), H2.configure.uuid && h(H2.pageContext, H2.configure.uuid, q), H2.configure.code) y(H2.pageContext, H2.configure.code, q);
|
|
80
|
+
else if ("table" === H2.configure.name) y(H2.pageContext, H2.configure.uuid, q);
|
|
80
81
|
else if (H2.configure.props && H2.configure.props.base) {
|
|
81
82
|
const e4 = H2.configure.props.base;
|
|
82
83
|
if (e4.prop) {
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, createElementBlock as n, openBlock as o, Fragment as r, renderList as u, createBlock as
|
|
1
|
+
import { defineComponent as e, ref as t, createElementBlock as n, openBlock as o, Fragment as r, renderList as u, createBlock as i, createCommentVNode as s } from "vue";
|
|
2
2
|
import a from "../../object-render.vue.js";
|
|
3
|
-
import { getClickEventFuncByType as
|
|
4
|
-
import { isVisibleWorkflowButton as
|
|
5
|
-
const l = { class: "page-runtime-header-btn" }, p = e({ __name: "workflowbutton-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
|
|
3
|
+
import { getClickEventFuncByType as m } from "../../../../utils/events/event-util.js";
|
|
4
|
+
import { isVisibleWorkflowButton as c } from "../../../../utils/events/standard-event.js";
|
|
5
|
+
const l = { class: "page-runtime-header-btn amb-workflowbutton-runtime-view" }, p = e({ __name: "workflowbutton-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
|
|
6
6
|
const p2 = e2, f = p2.configure.runtime ? p2.configure.runtime : {};
|
|
7
7
|
t(f.style ? f.style : {}), f.class;
|
|
8
8
|
const g = p2.pageContext.workflowButtonComponent, v = p2.pageContext.completeTaskParam, x = t([]);
|
|
9
9
|
return p2.configure.items.forEach((e3) => {
|
|
10
10
|
(function(e4) {
|
|
11
11
|
const t2 = function(e5) {
|
|
12
|
-
const t3 =
|
|
12
|
+
const t3 = m(p2.pageContext, e5, "click");
|
|
13
13
|
if (t3) {
|
|
14
14
|
if (t3.isStandard) return t3.event.eventName;
|
|
15
15
|
}
|
|
16
16
|
}(e4.runtime && e4.runtime.events ? e4.runtime.events : []);
|
|
17
|
-
return
|
|
17
|
+
return c(t2, g, v);
|
|
18
18
|
})(e3) && x.value.push(e3);
|
|
19
|
-
}), (e3, t2) => (o(), n("span", l, [(o(true), n(r, null, u(x.value, (t3, u2) => (o(), n(r, null, [t3.check ? (o(),
|
|
19
|
+
}), (e3, t2) => (o(), n("span", l, [(o(true), n(r, null, u(x.value, (t3, u2) => (o(), n(r, null, [t3.check ? (o(), i(a, { key: u2, pageContext: e3.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"])) : s("", true)], 64))), 256))]));
|
|
20
20
|
} });
|
|
21
21
|
export {
|
|
22
22
|
p as default
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { defineComponent as e, ref as a, resolveComponent as l, createBlock as
|
|
2
|
-
import
|
|
3
|
-
const
|
|
4
|
-
const
|
|
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
|
+
import i from "./super-page.vue.js";
|
|
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(false), S = a(false);
|
|
5
5
|
if (c) {
|
|
6
|
-
_.value = !(!c || void 0 === c._isIframe) && c._isIframe, V.value = c && c._path ? c._path : null,
|
|
6
|
+
x.value = (c == null ? void 0 : c.alignCenter) ?? false, 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
|
-
if (
|
|
8
|
+
if (p.parentPageEventParams) {
|
|
9
9
|
try {
|
|
10
|
-
const e4 = JSON.parse(JSON.stringify(
|
|
11
|
-
e4.pageContext && delete e4.pageContext, e4.configureObj && delete e4.configureObj, Object.assign(
|
|
10
|
+
const e4 = JSON.parse(JSON.stringify(p.parentPageEventParams));
|
|
11
|
+
e4.pageContext && delete e4.pageContext, e4.configureObj && delete e4.configureObj, Object.assign(b.value, e4);
|
|
12
12
|
} catch (e4) {
|
|
13
13
|
}
|
|
14
|
-
null !==
|
|
14
|
+
null !== w.value && void 0 !== w.value || (w.value = p.parentPageEventParams.id);
|
|
15
15
|
}
|
|
16
|
-
|
|
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);
|
|
17
17
|
}
|
|
18
18
|
return (e3, a2) => {
|
|
19
|
-
const
|
|
20
|
-
return
|
|
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"]));
|
|
21
21
|
};
|
|
22
22
|
} });
|
|
23
23
|
export {
|
|
24
|
-
|
|
24
|
+
g as default
|
|
25
25
|
};
|
|
@@ -3,7 +3,7 @@ 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 j, convertToPageContext as k, packageAdditionalMapWithLocationSearch as P, packageAdditionalMapWithRoute as $, packageAdditionalMapWithPageRequest as x } from "../utils/page-init-util.js";
|
|
5
5
|
import { addComponentRef as D, removePageAllRef as N, initComponentRefState as S } from "../utils/global-refs.js";
|
|
6
|
-
import { removeCustomFuncFromWindow as q, handleEvent as w, initPageEvents as
|
|
6
|
+
import { removeCustomFuncFromWindow as q, handleEvent as w, initPageEvents as O, getCustomFunc as T } from "../utils/events/event-util.js";
|
|
7
7
|
import R from "./assemblys/common/export-form-report-dialog.vue.js";
|
|
8
8
|
import _ from "./assemblys/common/task-informition-dialog.vue.js";
|
|
9
9
|
import I from "./assemblys/common/remove-signer-dialog.vue.js";
|
|
@@ -15,6 +15,7 @@ import { useI18n as Y } from "vue-i18n";
|
|
|
15
15
|
import { DepartmentUserTree as Z } from "agilebuilder-ui";
|
|
16
16
|
import { i18nValidateRulesMessage as ee } from "../utils/events/validator-util.js";
|
|
17
17
|
import le from "./super-page-dialog.vue.js";
|
|
18
|
+
/* empty css */
|
|
18
19
|
import { useRoute as ae, useRouter as te } from "vue-router";
|
|
19
20
|
import { jumpToPage as ue } from "agilebuilder-ui/src/utils/jump-page-utils";
|
|
20
21
|
import { setSessionCache as ne, getUsername as oe } from "agilebuilder-ui/src/utils/auth";
|
|
@@ -24,7 +25,7 @@ import { usePageContextStore as ve } from "../utils/page-store.js";
|
|
|
24
25
|
import pe from "agilebuilder-ui/src/store";
|
|
25
26
|
import me from "./assemblys/common/save-chart-condition-dialog.vue.js";
|
|
26
27
|
const ge = { class: "app-container runtime-page-container" }, ce = e({ __name: "super-page", props: { pageCode: { type: String, required: false }, pageVersion: { type: Number, required: false }, pageId: { type: Number, required: false }, dataId: { type: Number, required: false }, pageDesign: { type: Object, required: false }, isTest: { type: Boolean, required: false }, dimensions: { type: String, required: false }, publishVersion: { type: Number, required: false }, taskId: { type: Number, required: false }, pageRequest: { type: Object, required: false }, contentHeight: { type: [String, Number], default: null }, isDialog: { type: Boolean, required: false } }, emits: ["open", "opened", "close", "closed"], setup(e2, { expose: ce2, emit: fe }) {
|
|
27
|
-
const de = ve(), { t: ye } = Y(), he = e2, Ce = l(null), be = l([]), je = l(""), ke = l({}), Pe = l(null), $e = l(null), xe = l(false), De = l(false), Ne = l(false), Se = l(false), qe = l(false), we = l(null),
|
|
28
|
+
const de = ve(), { t: ye } = Y(), he = e2, Ce = l(null), be = l([]), je = l(""), ke = l({}), Pe = l(null), $e = l(null), xe = l(false), De = l(false), Ne = l(false), Se = l(false), qe = l(false), we = l(null), Oe = l(false), Te = l([]), Re = l([]), _e = l(false), Ie = l(null), Me = l(false), Fe = l(false), Ve = l(null), Ee = l(null), Be = l(null), Je = l(null);
|
|
28
29
|
let We = l(null);
|
|
29
30
|
const Le = l(null), Ue = l(null), Ge = ae(), He = l(0), ze = re();
|
|
30
31
|
let Ae, Ke, Qe;
|
|
@@ -46,7 +47,7 @@ const ge = { class: "app-container runtime-page-container" }, ce = e({ __name: "
|
|
|
46
47
|
}(We.value, e3.initChartServiceConfigs);
|
|
47
48
|
}, 200), We.value.initDataSources = [], S(We.value), be.value = We.value.items ? We.value.items : [];
|
|
48
49
|
const a2 = We.value.runtime ? We.value.runtime : {};
|
|
49
|
-
je.value = a2.class, ke.value = a2.style,
|
|
50
|
+
je.value = a2.class, ke.value = a2.style, O(e3, We.value), ee(We.value.rules), w(null, We.value, e3, "beforeload");
|
|
50
51
|
const t2 = We.value.code;
|
|
51
52
|
return de.setPageContext(We.value), we.value = t2 + "_", M.$on(we.value + "export-form-report", (e4) => {
|
|
52
53
|
$e.value = e4, Le.value = e4.configureObj, Ue.value = e4.pageContext, xe.value = true;
|
|
@@ -62,9 +63,9 @@ const ge = { class: "app-container runtime-page-container" }, ce = e({ __name: "
|
|
|
62
63
|
$e.value = e4, De.value = true, qe.value = true;
|
|
63
64
|
}), M.$on(we.value + "choose-return-node", (e4) => {
|
|
64
65
|
$e.value = e4, F(e4).then((e5) => {
|
|
65
|
-
|
|
66
|
+
Te.value = e5, Oe.value = true;
|
|
66
67
|
}).catch((e5) => {
|
|
67
|
-
|
|
68
|
+
Oe.value = false;
|
|
68
69
|
});
|
|
69
70
|
}), M.$on(we.value + "remove-signer", (e4) => {
|
|
70
71
|
$e.value = e4, V(e4).then((l3) => {
|
|
@@ -99,11 +100,12 @@ const ge = { class: "app-container runtime-page-container" }, ce = e({ __name: "
|
|
|
99
100
|
});
|
|
100
101
|
}(l3, a3, t3).then((e5) => {
|
|
101
102
|
if (e5) {
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
103
|
+
let a4 = {};
|
|
104
|
+
const t4 = l3 && l3.props && l3.props.linkPage ? l3.props.linkPage : null;
|
|
105
|
+
t4 && Object.assign(a4, ie(t4)), Object.assign(a4, e5), se(a4, ze);
|
|
106
|
+
const u2 = a4.jumpMode, n2 = a4;
|
|
107
|
+
if (Je.value || (Je.value = {}), Je.value.paramStoreId = a4.paramStoreId, n2.parentPageCode = Ee.value.code, n2.parentPageVersion = Ee.value.version, n2.isNewPage = true, "popup" === u2 || "refresh" === u2) {
|
|
108
|
+
const e6 = n2.linkType;
|
|
107
109
|
(function(e7, l4) {
|
|
108
110
|
const a5 = oe();
|
|
109
111
|
return new Promise((t5, u3) => {
|
|
@@ -118,8 +120,8 @@ const ge = { class: "app-container runtime-page-container" }, ce = e({ __name: "
|
|
|
118
120
|
}
|
|
119
121
|
else t5(true);
|
|
120
122
|
});
|
|
121
|
-
})(
|
|
122
|
-
ze && (Ee.value.systemCode !==
|
|
123
|
+
})(n2, u2).then(() => {
|
|
124
|
+
ze && (Ee.value.systemCode !== n2.customSystem || e6 && "url" === e6) ? (n2._isIframe = true, "refresh" === u2 && (n2.dialogType = "drawer", n2.jumpPageWidth = "100%"), Ve.value = n2, Fe.value = true) : (n2._isIframe = false, "popup" === u2 ? (Ve.value = n2, Fe.value = true) : "refresh" === u2 && sl.push({ path: "/dsc/page", query: n2 }));
|
|
123
125
|
}), M.$on(we.value + "close-dialog", (e7) => {
|
|
124
126
|
!function(e8) {
|
|
125
127
|
const l4 = e8.jumpMode;
|
|
@@ -186,7 +188,7 @@ const ge = { class: "app-container runtime-page-container" }, ce = e({ __name: "
|
|
|
186
188
|
true === De.value && (De.value = false, W($e.value, e3)), true === Ne.value && (Ne.value = false, L($e.value, e3)), true === Se.value && (Se.value = false, U($e.value, e3));
|
|
187
189
|
}
|
|
188
190
|
function ol(e3) {
|
|
189
|
-
|
|
191
|
+
Te.value = [], Oe.value = false, G($e.value, e3);
|
|
190
192
|
}
|
|
191
193
|
function il(e3) {
|
|
192
194
|
Re.value = [], _e.value = false, H($e.value, e3);
|
|
@@ -212,7 +214,7 @@ const ge = { class: "app-container runtime-page-container" }, ce = e({ __name: "
|
|
|
212
214
|
}
|
|
213
215
|
w(null, Ee.value, o2, "closePopup", { sourceModel: t2, sourceTableName: u2, jumpPageSetting: Ve.value, entity: Ee.value.entity.data, targetTableName: n2, pageContext: We.value, parentPageContext: Ee.value, parentConfigureObj: o2, columnProp: i2 }), function(e4, l3, a3) {
|
|
214
216
|
if (e4) {
|
|
215
|
-
const t3 =
|
|
217
|
+
const t3 = T(Ee.value, e4);
|
|
216
218
|
t3 && t3.apply(t3, [{ pageContext: We.value, parentPageContext: Ee.value, parentConfigureObj: a3, jumpPageSetting: Ve.value, columnProp: l3 }]);
|
|
217
219
|
}
|
|
218
220
|
}(l2, i2, o2), A(Ee.value, Be.value, a2, void 0 !== a2 && false === a2 ? "noOperation" : null), Ee.value = null, Be.value = null, Je.value = null, M.$off(we.value + "close-dialog"), Fe.value = false;
|
|
@@ -243,7 +245,7 @@ const ge = { class: "app-container runtime-page-container" }, ce = e({ __name: "
|
|
|
243
245
|
const e5 = ul.value.files[0];
|
|
244
246
|
e5 ? (ul.value.value = null, J($e.value, e5)) : X({ showClose: true, type: "warning", message: ye("superPageRuntimeMessage.noFileSelected") });
|
|
245
247
|
}
|
|
246
|
-
}()) }, null, 544), De.value || Ne.value || Se.value ? (i(), p(f(Z), { key: 1, width: "60%", multiple: qe.value, onClose: nl }, null, 8, ["multiple"])) : s("", true),
|
|
248
|
+
}()) }, null, 544), De.value || Ne.value || Se.value ? (i(), p(f(Z), { key: 1, width: "60%", multiple: qe.value, onClose: nl }, null, 8, ["multiple"])) : s("", true), Oe.value ? (i(), p(_, { key: 2, "task-informitions": Te.value, onClose: l2[1] || (l2[1] = (e4) => Oe.value = false), onResult: ol }, null, 8, ["task-informitions"])) : s("", true), _e.value ? (i(), p(I, { key: 3, "task-id": Ie.value, "active-tasks": Re.value, onClose: l2[2] || (l2[2] = (e4) => _e.value = false), onResult: il }, null, 8, ["task-id", "active-tasks"])) : s("", true), Fe.value ? (i(), p(le, { key: 4, parentPageContext: Ee.value, parentPageEventParams: Je.value, jumpPageSetting: Ve.value, onClose: l2[3] || (l2[3] = (e4) => rl()) }, null, 8, ["parentPageContext", "parentPageEventParams", "jumpPageSetting"])) : s("", true), Xe.value ? (i(), p(me, { key: 5, ref_key: "chartCondtionRef", ref: Ye, pageContext: f(We), onClose: l2[4] || (l2[4] = (e4) => Xe.value = false), onSave: vl, onConfirm: pl }, null, 8, ["pageContext"])) : s("", true)], 6)) : s("", true)]));
|
|
247
249
|
} });
|
|
248
250
|
export {
|
|
249
251
|
ce as default
|
package/dist/es/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { default as default2 } from "./components/runtime/views/super-page.vue.js";
|
|
2
2
|
import { default as default3 } from "./components/runtime/views/super-page-dialog.vue.js";
|
|
3
|
+
/* empty css */
|
|
3
4
|
import { default as default4 } from "./components/runtime/views/home-chart.vue.js";
|
|
4
5
|
import { getComponentOptionConfigs } from "./components/runtime/utils/page-helper-util.js";
|
|
5
6
|
import { FuncType, getFunctionInfo, getStandPermissionInfo } from "./components/runtime/utils/page-permission-util.js";
|