super-page-runtime 2.3.45 → 2.3.46-sit2
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 +136 -136
- package/dist/es/components/runtime/utils/events/event-util.js +122 -122
- package/dist/es/components/runtime/utils/events/print-label.js +33 -34
- package/dist/es/components/runtime/utils/events/standard-event.js +322 -321
- package/dist/es/components/runtime/utils/events/validator-util.js +81 -84
- package/dist/es/components/runtime/utils/page-helper-util.js +1 -1
- package/dist/es/components/runtime/utils/page-init-util.js +59 -61
- package/dist/es/components/runtime/utils/table-utils.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +1 -1
- 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 +6 -8
- package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/common/home-chart-condition-render.vue.js +8 -8
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +99 -104
- package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue.js +12 -10
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +101 -97
- package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue.js +13 -13
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +9 -11
- package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +14 -14
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +0 -2
- package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +5 -5
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +9 -11
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +5 -3
- package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +16 -16
- package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +6 -6
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +22 -22
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +6 -8
- package/dist/es/components/runtime/views/assemblys/form/image-upload/imageupload-runtime.vue2.js +5 -6
- package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +48 -49
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +4 -6
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +7 -9
- package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +2 -2
- package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +8 -9
- package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +11 -11
- package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +3 -3
- package/dist/es/components/runtime/views/assemblys/object-render.vue.js +9 -11
- package/dist/es/components/runtime/views/assemblys/page-bottom.vue.js +2 -2
- package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/home-chart.vue.js +7 -7
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +2 -3
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +73 -74
- package/dist/es/style.css +78 -78
- package/package.json +2 -2
|
@@ -6,9 +6,9 @@ import { addComponentRef as x, addComponentRefByCode as y } from "../../utils/gl
|
|
|
6
6
|
import { getPermissionCodes as w, packageFormRules as j, getModelFields as N, controlObjectRenderState as M } from "../../utils/page-init-util.js";
|
|
7
7
|
import { caculateShowCondition as V, getFormPropName as _, getSizeConfig as A } from "../../utils/page-helper-util.js";
|
|
8
8
|
import { isWorkflowPage as S, getPropClassName as T, isNumber as $ } from "../../utils/common-util.js";
|
|
9
|
-
import { isShowMobileEvent as
|
|
10
|
-
import { usePageContextStore as
|
|
11
|
-
import { isHasFieldAuth as
|
|
9
|
+
import { isShowMobileEvent as O, isShowComponent as P } from "../../utils/events/event-util.js";
|
|
10
|
+
import { usePageContextStore as B } from "../../utils/page-store.js";
|
|
11
|
+
import { isHasFieldAuth as H } from "../../utils/table-utils.js";
|
|
12
12
|
import { checkPermission as R } from "agilebuilder-ui/src/utils/permission.js";
|
|
13
13
|
import { isMobileBrowser as F } from "agilebuilder-ui/src/utils/common-util";
|
|
14
14
|
const L = e({ __name: "object-render", props: { pageContext: {}, configure: {} }, setup(e2) {
|
|
@@ -17,7 +17,7 @@ const L = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
17
17
|
null == L2.configure.style && (L2.configure.style = {});
|
|
18
18
|
let k = null, D = w(L2.configure, L2.pageContext);
|
|
19
19
|
L2.configure && L2.configure.props && L2.configure.props.base && (L2.configure.props.base.functionCode = D);
|
|
20
|
-
const E = R(D || "true", L2.pageContext.systemCode), J =
|
|
20
|
+
const E = R(D || "true", L2.pageContext.systemCode), J = H(L2.pageContext, L2.configure), W = E && J;
|
|
21
21
|
L2.configure && L2.configure.props && L2.configure.props.base && (L2.configure.props.base.isHasFieldAuthPermission = W), j(L2.pageContext, L2.configure, W);
|
|
22
22
|
let q = o(null), z = o(true), G = o("");
|
|
23
23
|
if (L2.configure && L2.configure.props) {
|
|
@@ -26,7 +26,7 @@ const L = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
26
26
|
var _a2;
|
|
27
27
|
let o2 = true;
|
|
28
28
|
if (W) if (q.value && null !== q.value) o2 = "show" === q.value;
|
|
29
|
-
else if (
|
|
29
|
+
else if (O(L2.pageContext, L2.configure)) if (e3 && e3.length > 0) o2 = V(L2.pageContext, e3);
|
|
30
30
|
else {
|
|
31
31
|
const e4 = (_a2 = L2.configure.props.base) == null ? void 0 : _a2.state;
|
|
32
32
|
e4 && "hidden" === e4 && (o2 = false);
|
|
@@ -80,7 +80,7 @@ const L = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
80
80
|
const t2 = Z.style[e3 + "_class"];
|
|
81
81
|
t2 && (X.value += " " + t2);
|
|
82
82
|
}
|
|
83
|
-
const ee =
|
|
83
|
+
const ee = B();
|
|
84
84
|
let oe = false;
|
|
85
85
|
function te(e3) {
|
|
86
86
|
var _a2, _b2, _c2;
|
|
@@ -131,9 +131,7 @@ const L = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
131
131
|
const o2 = e3.parentNode;
|
|
132
132
|
if (!e3 || !o2) return;
|
|
133
133
|
const t2 = e3.getBoundingClientRect();
|
|
134
|
-
let n2 = window.innerHeight - t2.y - 30;
|
|
135
|
-
window.innerHeight, t2.y;
|
|
136
|
-
let i2 = n2 + "";
|
|
134
|
+
let n2 = window.innerHeight - t2.y - 30, i2 = n2 + "";
|
|
137
135
|
if ("tabs" === L2.configure.name && L2.pageContext.isDialog && !F()) {
|
|
138
136
|
const o3 = e3.closest(".runtime-page-container");
|
|
139
137
|
if (o3) {
|
|
@@ -144,7 +142,7 @@ const L = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
144
142
|
U.value.height = i2, U.value["overflow-y"] = "auto", U.value["overflow-x"] = "hidden", L2.configure.sytle || (L2.configure.sytle = {}), L2.configure.sytle._heightStyle = i2;
|
|
145
143
|
}
|
|
146
144
|
r(() => {
|
|
147
|
-
W &&
|
|
145
|
+
W && P(L2.configure) || ee.countComponentsLoadedNumber();
|
|
148
146
|
}), s(() => {
|
|
149
147
|
var _a2;
|
|
150
148
|
re && clearTimeout(re), k && ((_a2 = L2.pageContext.hiddenNotValidatorCodes) == null ? void 0 : _a2.delete(k));
|
|
@@ -159,7 +157,7 @@ const L = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
|
|
|
159
157
|
const t2 = L2.configure.props ? L2.configure.props : {}, n2 = L2.configure.style ? L2.configure.style : {}, i2 = t2.position;
|
|
160
158
|
"top" == i2 || "bottom" == i2 || n2.position;
|
|
161
159
|
};
|
|
162
|
-
return (
|
|
160
|
+
return (e3, o2) => a(W) && a(P)(e3.configure) ? u((g(), p(c(I.value), { key: 0, ref: te, style: d(U.value), class: f(X.value), configure: e3.configure, pageContext: e3.pageContext }, null, 8, ["style", "class", "configure", "pageContext"])), [[m, a(z)]]) : l("", true);
|
|
163
161
|
} });
|
|
164
162
|
export {
|
|
165
163
|
L as default
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as o, createBlock as e, createCommentVNode as t, openBlock as n } from "vue";
|
|
2
2
|
import p from "./workflow/component/workflow-opinion-box.vue.js";
|
|
3
|
-
const a = o({ __name: "page-bottom", props: { pageContext: {} }, setup: (o2) => (
|
|
3
|
+
const a = o({ __name: "page-bottom", props: { pageContext: {} }, setup: (o2) => (o3, a2) => {
|
|
4
4
|
var _a;
|
|
5
|
-
return ((_a =
|
|
5
|
+
return ((_a = o3.pageContext.workflowOpinion) == null ? void 0 : _a.showOpinionBox) ? (n(), e(p, { key: 0, pageContext: o3.pageContext }, null, 8, ["pageContext"])) : t("", true);
|
|
6
6
|
} });
|
|
7
7
|
export {
|
|
8
8
|
a as default
|
package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js
CHANGED
|
@@ -42,10 +42,10 @@ const h = { class: "opinion-box-table-wrapper" }, C = { class: "opinion-table" }
|
|
|
42
42
|
}, hide: function() {
|
|
43
43
|
I.pageContext.workflowOpinion && (W.value = false);
|
|
44
44
|
} };
|
|
45
|
-
return E2(G), (
|
|
45
|
+
return E2(G), (e3, n2) => {
|
|
46
46
|
var _a, _b, _c;
|
|
47
|
-
const
|
|
48
|
-
return s(), r(p, null, [w("div", { ref_key: "sentinelRef", ref: B, style: { display: "none" } }, null, 512), ((_a =
|
|
47
|
+
const o2 = u("el-input");
|
|
48
|
+
return s(), r(p, null, [w("div", { ref_key: "sentinelRef", ref: B, style: { display: "none" } }, null, 512), ((_a = e3.pageContext.workflowOpinion) == null ? void 0 : _a.showOpinionBox) ? (s(), r("div", { key: 0, style: c({ height: V.value + "px", width: "100%", flexShrink: 0 }) }, null, 4)) : f("", true), (s(), v(d, { to: "body" }, [((_b = e3.pageContext.workflowOpinion) == null ? void 0 : _b.showOpinionBox) ? x((s(), r("div", { key: 0, ref_key: "opinionBarRef", ref: H, class: "opinion-fixed-bar", style: c(A.value) }, [w("div", h, [w("table", C, [w("tbody", null, [w("tr", null, [w("td", y, [((_c = e3.pageContext.workflowOpinion) == null ? void 0 : _c.isRequired) ? (s(), r("span", R, "*")) : f("", true), n2[2] || (n2[2] = g(" 处理意见 "))]), w("td", { class: m(["opinion-input-cell", _.value]) }, [k(o2, { ref_key: "opinionInputRef", ref: L, modelValue: z.value, "onUpdate:modelValue": n2[0] || (n2[0] = (e4) => z.value = e4), autosize: { minRows: 2, maxRows: 4 }, type: "textarea", placeholder: "请输入处理意见", onChange: n2[1] || (n2[1] = (e4) => {
|
|
49
49
|
I.pageContext.workflowOpinion && (I.pageContext.workflowOpinion.opinion = z.value.trim(), I.pageContext.workflowOpinion.focusOpinionInput = false);
|
|
50
50
|
}), class: "opinion-input" }, null, 8, ["modelValue"])], 2)])])])])], 4)), [[b, W.value]]) : f("", true)]))], 64);
|
|
51
51
|
};
|
|
@@ -20,7 +20,7 @@ const g = { class: "dialog-footer" }, _ = e({ __name: "extract-workflow-runtime-
|
|
|
20
20
|
return w.props && (true === w.props.requireExtractTransactor && (h.value.loginName = [{ required: true, message: "请选择办理人", trigger: "blur" }]), true === w.props.isMustOpinion && (h.value.opinion = [{ required: true, message: "请输入意见", trigger: "change" }])), o(() => {
|
|
21
21
|
}), (e3, l2) => {
|
|
22
22
|
const o2 = a("el-icon"), s2 = a("el-input"), _3 = a("el-form-item"), x2 = a("el-form"), y2 = a("el-button"), w2 = a("el-dialog");
|
|
23
|
-
return n(), i(w2, { modelValue: N.value, "onUpdate:modelValue": l2[5] || (l2[5] = (e4) => N.value = e4), title: "选择办理人", width: "500" }, { footer: t(() => [p("div", g, [u(y2, { onClick: l2[4] || (l2[4] = (e4) => N.value = false) }, { default: t(() =>
|
|
23
|
+
return n(), i(w2, { modelValue: N.value, "onUpdate:modelValue": l2[5] || (l2[5] = (e4) => N.value = e4), title: "选择办理人", width: "500" }, { footer: t(() => [p("div", g, [u(y2, { onClick: l2[4] || (l2[4] = (e4) => N.value = false) }, { default: t(() => l2[6] || (l2[6] = [d("取消")])), _: 1 }), u(y2, { type: "primary", onClick: j }, { default: t(() => l2[7] || (l2[7] = [d(" 确定 ")])), _: 1 })])]), default: t(() => [u(x2, { ref_key: "ruleFormRef", ref: C, style: { "max-width": "600px" }, model: b.value, rules: h.value, "label-width": "auto" }, { default: t(() => [u(_3, { label: "办理人", prop: "loginName" }, { default: t(() => [u(s2, { "model-value": b.value.name, readonly: true, type: "text", placeholder: "选择办理人", onClick: l2[2] || (l2[2] = (e4) => V()) }, { append: t(() => [u(o2, { class: "el-input__icon", onClick: l2[0] || (l2[0] = (e4) => V()) }, { default: t(() => [u(m(f))]), _: 1 }), u(o2, { class: "el-input__icon", onClick: l2[1] || (l2[1] = (e4) => (b.value.loginName = "", void (b.value.name = ""))) }, { default: t(() => [u(m(c))]), _: 1 })]), _: 1 }, 8, ["model-value"])]), _: 1 }), u(_3, { label: "意见", prop: "opinion" }, { default: t(() => [u(s2, { modelValue: b.value.opinion, "onUpdate:modelValue": l2[3] || (l2[3] = (e4) => b.value.opinion = e4), type: "textarea" }, null, 8, ["modelValue"])]), _: 1 }), k.value ? (n(), i(m(v), { key: 0, width: "60%", multiple: false, onClose: q })) : r("", true)]), _: 1 }, 8, ["model", "rules"])]), _: 1 }, 8, ["modelValue"]);
|
|
24
24
|
};
|
|
25
25
|
} });
|
|
26
26
|
export {
|
|
@@ -37,7 +37,7 @@ const w = { class: "page-runtime-header-btn" }, V = { class: "dialog-footer" },
|
|
|
37
37
|
_(l3).then((e6) => {
|
|
38
38
|
e6.canExecute && (j.value = true);
|
|
39
39
|
});
|
|
40
|
-
}()) }, { default: s(() => [d(m(c(k)(M.value.title)), 1)]), _: 1 }, 8, ["disabled", "class", "style", "type", "size", "round", "plain", "loading"]), u(F2, { modelValue: j.value, "onUpdate:modelValue": l2[6] || (l2[6] = (e4) => j.value = e4), title: "选择办理人", width: "500" }, { footer: s(() => [v("div", V, [u(o2, { onClick: l2[5] || (l2[5] = (e4) => j.value = false) }, { default: s(() =>
|
|
40
|
+
}()) }, { default: s(() => [d(m(c(k)(M.value.title)), 1)]), _: 1 }, 8, ["disabled", "class", "style", "type", "size", "round", "plain", "loading"]), u(F2, { modelValue: j.value, "onUpdate:modelValue": l2[6] || (l2[6] = (e4) => j.value = e4), title: "选择办理人", width: "500" }, { footer: s(() => [v("div", V, [u(o2, { onClick: l2[5] || (l2[5] = (e4) => j.value = false) }, { default: s(() => l2[7] || (l2[7] = [d("取消")])), _: 1 }), u(o2, { type: "primary", onClick: H }, { default: s(() => l2[8] || (l2[8] = [d(" 确定 ")])), _: 1 })])]), default: s(() => [u(U3, { ref_key: "ruleFormRef", ref: z, style: { "max-width": "600px" }, model: E.value, rules: D.value, "label-width": "auto" }, { default: s(() => [u(C2, { label: "办理人", prop: "loginName" }, { default: s(() => [u(x2, { "model-value": E.value.name, readonly: true, type: "text", placeholder: "选择办理人", onClick: l2[3] || (l2[3] = (e4) => B()) }, { append: s(() => [u(a2, { class: "el-input__icon", onClick: l2[1] || (l2[1] = (e4) => B()) }, { default: s(() => [u(c(h))]), _: 1 }), u(a2, { class: "el-input__icon", onClick: l2[2] || (l2[2] = (e4) => (E.value.loginName = "", void (E.value.name = ""))) }, { default: s(() => [u(c(N))]), _: 1 })]), _: 1 }, 8, ["model-value"])]), _: 1 }), u(C2, { label: "意见", prop: "opinion" }, { default: s(() => [u(x2, { modelValue: E.value.opinion, "onUpdate:modelValue": l2[4] || (l2[4] = (e4) => E.value.opinion = e4), type: "textarea" }, null, 8, ["modelValue"])]), _: 1 }), R.value ? (i(), f(c(b), { key: 0, width: "60%", multiple: false, onClose: G })) : g("", true)]), _: 1 }, 8, ["model", "rules"])]), _: 1 }, 8, ["modelValue"])]);
|
|
41
41
|
};
|
|
42
42
|
} });
|
|
43
43
|
export {
|
|
@@ -25,7 +25,7 @@ const c = { class: "page-runtime-header-btn amb-workflowbutton-runtime-view" },
|
|
|
25
25
|
if (!o2 || o2.startsWith("initVal")) return;
|
|
26
26
|
((_b2 = (_a2 = t4 == null ? void 0 : t4.runtime) == null ? void 0 : _a2.props) == null ? void 0 : _b2.title) && (t4.runtime.props.title = o2);
|
|
27
27
|
}(t3), k.value.push(t3));
|
|
28
|
-
}), (
|
|
28
|
+
}), (t3, e2) => (o(), n("span", c, [(o(true), n(r, null, u(k.value, (e3, u2) => (o(), n(r, null, [e3.check ? (o(), i(s, { key: u2, pageContext: t3.pageContext, configure: e3 }, null, 8, ["pageContext", "configure"])) : a("", true)], 64))), 256))]));
|
|
29
29
|
} });
|
|
30
30
|
export {
|
|
31
31
|
l as default
|
|
@@ -7,12 +7,12 @@ import { initPageEvents as f } from "../utils/events/event-util.js";
|
|
|
7
7
|
import { setHomeChartInitConfigValue as v } from "../utils/charts/chart-util.js";
|
|
8
8
|
import { useI18n as C } from "vue-i18n";
|
|
9
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),
|
|
10
|
+
const { t: b2 } = C(), I = e2, U = t(true), w = t(false), H = t(null);
|
|
11
11
|
let x, A = t(null);
|
|
12
12
|
return I.chartUuid && c.get(window.$vueApp.config.globalProperties.baseAPI + "/component/home-chart-layout/" + I.chartUuid).then((e3) => {
|
|
13
13
|
var _a, _b;
|
|
14
14
|
if (e3 && e3.designJson) {
|
|
15
|
-
|
|
15
|
+
H.value = {};
|
|
16
16
|
const t2 = JSON.parse(e3.designJson);
|
|
17
17
|
let a2 = window.localStorage.getItem("HOME_MY_CHARTS_ALIAS");
|
|
18
18
|
if (a2) {
|
|
@@ -20,26 +20,26 @@ const y = { "element-loading-text": "加载中..." }, S = { key: 1 }, b = e({ na
|
|
|
20
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] });
|
|
21
21
|
}
|
|
22
22
|
const i2 = window.frameElement;
|
|
23
|
-
|
|
23
|
+
H.value = t2.chartJson, H.value.homeChartSettingUserId = I.homeChartSettingUserId, i2 && (H.value.runtime.common.style.pc_style.height = i2.clientHeight + "px");
|
|
24
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 } };
|
|
25
|
-
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) {
|
|
26
26
|
const e4 = n2.entity.page;
|
|
27
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);
|
|
28
28
|
}
|
|
29
|
-
t2.initOptionConfigs && t2.initOptionConfigs.length > 0 && d(n2, t2.initOptionConfigs, void 0), v(
|
|
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(() => {
|
|
30
30
|
!function(e4, t3) {
|
|
31
31
|
if (!t3 || 0 == t3.length) return;
|
|
32
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
33
|
}(A.value, [t2.initChartServiceConfigs]);
|
|
34
34
|
}, 200);
|
|
35
|
-
} else
|
|
35
|
+
} else w.value = true, U.value = false;
|
|
36
36
|
}).finally(() => {
|
|
37
37
|
U.value = false;
|
|
38
38
|
}), a(() => {
|
|
39
39
|
x && clearTimeout(x);
|
|
40
40
|
}), (e3, t2) => {
|
|
41
41
|
const a2 = i("loading");
|
|
42
|
-
return n((o(), r("div", y, [!U.value &&
|
|
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]]);
|
|
43
43
|
};
|
|
44
44
|
} });
|
|
45
45
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as a, onUnmounted as l, resolveComponent as u, createBlock as
|
|
1
|
+
import { defineComponent as e, ref as a, onUnmounted as l, resolveComponent as u, createBlock as t, openBlock as o, withCtx as n, createElementBlock as r, createCommentVNode as i } from "vue";
|
|
2
2
|
import d from "./super-page.vue.js";
|
|
3
3
|
const s = ["src"], g = ["src"], v = e({ __name: "super-page-dialog", props: { parentPageContext: {}, parentPageEventParams: {}, jumpPageSetting: {}, isTest: { type: Boolean }, customParams: {} }, emits: ["open", "opened", "close", "closed"], setup(e2, { emit: v2 }) {
|
|
4
4
|
const p = e2, m = v2, c = a(true), P = p.jumpPageSetting ? p.jumpPageSetting : null, f = a(null), h = a(null), w = a(null), b = a(null), C = a(null), j = a(null), y = a({}), I = a(false), k = a(false), O = a("rtl"), S = a(null), _ = a(false), x = a(null), V = a(true), M = a(false), T = a(true), q = a(false);
|
|
@@ -10,7 +10,6 @@ const s = ["src"], g = ["src"], v = e({ __name: "super-page-dialog", props: { pa
|
|
|
10
10
|
const e4 = JSON.parse(JSON.stringify(p.parentPageEventParams));
|
|
11
11
|
e4.pageContext && delete e4.pageContext, e4.configureObj && delete e4.configureObj, Object.assign(y.value, e4);
|
|
12
12
|
} catch (e4) {
|
|
13
|
-
console.error(e4);
|
|
14
13
|
}
|
|
15
14
|
null !== b.value && void 0 !== b.value || (b.value = p.parentPageEventParams.id);
|
|
16
15
|
}
|
|
@@ -21,7 +20,7 @@ const s = ["src"], g = ["src"], v = e({ __name: "super-page-dialog", props: { pa
|
|
|
21
20
|
((_a = y.value) == null ? void 0 : _a.dialogParamStoreId) && sessionStorage.removeItem(y.value.dialogParamStoreId);
|
|
22
21
|
}), (e3, a2) => {
|
|
23
22
|
const l2 = u("el-drawer"), v3 = u("el-dialog");
|
|
24
|
-
return j.value && "drawer" === j.value ? (
|
|
23
|
+
return j.value && "drawer" === j.value ? (o(), t(l2, { key: 0, modelValue: c.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e4) => c.value = e4), title: h.value, direction: O.value, size: f.value, class: "content-drawer amb-super-page-runtime-drawer-view", onOpen: a2[1] || (a2[1] = (e4) => m("open")), onOpened: a2[2] || (a2[2] = (e4) => m("opened")), onClose: a2[3] || (a2[3] = (e4) => m("close")), onClosed: a2[4] || (a2[4] = (e4) => m("closed")) }, { default: n(() => [!_.value && w.value ? (o(), t(d, { key: 0, pageCode: w.value, pageRequest: y.value, isDialog: true }, null, 8, ["pageCode", "pageRequest"])) : _.value ? (o(), r("iframe", { key: 1, src: x.value, class: "amb-super-page-runtime-drawer-iframe", frameborder: "0", marginwidth: "0", marginheight: "0", width: "100%", allowtransparency: "no" }, null, 8, s)) : i("", true)]), _: 1 }, 8, ["modelValue", "title", "direction", "size"])) : (o(), t(v3, { key: 1, "model-value": "", title: h.value, "close-on-click-modal": false, "append-to-body": "", width: f.value, modal: T.value, "modal-penetrable": q.value, fullscreen: M.value, alignCenter: V.value, draggable: I.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) => m("close")), onClosed: a2[8] || (a2[8] = (a3) => e3.$emit("closed")) }, { default: n(() => [!_.value && w.value ? (o(), t(d, { key: 0, style: { "min-height": "100px" }, pageCode: w.value, pageRequest: y.value, contentHeight: S.value, isDialog: true }, null, 8, ["pageCode", "pageRequest", "contentHeight"])) : _.value ? (o(), r("iframe", { key: 1, src: x.value, class: "amb-super-page-runtime-dialog-iframe", frameborder: "0", marginwidth: "0", marginheight: "0", width: "100%", allowtransparency: "no" }, null, 8, g)) : i("", true)]), _: 1 }, 8, ["title", "width", "modal", "modal-penetrable", "fullscreen", "alignCenter", "draggable", "overflow"]));
|
|
25
24
|
};
|
|
26
25
|
} });
|
|
27
26
|
export {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as e, ref as a, getCurrentInstance as l, onMounted as t, onUpdated as o, nextTick as u, onUnmounted as n, resolveDirective as i, withDirectives as s, createElementBlock as r, openBlock as v, unref as p, normalizeStyle as m, normalizeClass as c, createCommentVNode as g, createVNode as f, createBlock as d, createElementVNode as y, Fragment as
|
|
1
|
+
import { defineComponent as e, ref as a, getCurrentInstance as l, onMounted as t, onUpdated as o, nextTick as u, onUnmounted as n, resolveDirective as i, withDirectives as s, createElementBlock as r, openBlock as v, unref as p, normalizeStyle as m, normalizeClass as c, createCommentVNode as g, createVNode as f, createBlock as d, createElementVNode as y, Fragment as h, renderList as C, watch as P } from "vue";
|
|
2
2
|
import b from "./assemblys/object-render.vue.js";
|
|
3
3
|
import { updateOptionDatasources as k, updateChartDatasources as j } from "../utils/page-helper-util.js";
|
|
4
|
-
import { registerParamStoreId as x, queryPageDesignWhenPreview as $, queryPageDesignByCode as
|
|
4
|
+
import { registerParamStoreId as x, queryPageDesignWhenPreview as $, queryPageDesignByCode as T, convertToPageContext as w, packageAdditionalMapWithLocationSearch as D, packageAdditionalMapWithRoute as N, packageAdditionalMapWithPageRequest as S } from "../utils/page-init-util.js";
|
|
5
5
|
import { addComponentRef as q, removePageAllRef as R, initComponentRefState as _ } from "../utils/global-refs.js";
|
|
6
6
|
import { removeCustomFuncFromWindow as F, handleEvent as M, initPageEvents as O, getCustomFunc as I } from "../utils/events/event-util.js";
|
|
7
7
|
import E from "./assemblys/common/export-form-report-dialog.vue.js";
|
|
8
8
|
import A from "./assemblys/common/task-informition-dialog.vue.js";
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import { doFileTaskFunc as
|
|
9
|
+
import W from "./assemblys/common/remove-signer-dialog.vue.js";
|
|
10
|
+
import V from "./assemblys/common/remove-transactor-dialog.vue.js";
|
|
11
|
+
import B from "../utils/eventBus.js";
|
|
12
|
+
import { doFileTaskFunc as L, getTaskInformitions as U, getRemoveSigner as J, getRemoveTransactor as H, getFormData as z, exportFormReport as Q, doImportFinally as G, doAddSigner as K, doCreateCopyTask as X, doAssign as Y, doAddTransactor as Z, doReturnTaskTo as ee, doRemoveSigners as ae, doRemoveTransactors as le, updateValuesWhenCloseDialog as te, refreshFormOrListPage as oe, saveChartConditionBase as ue, getAdditionalParamMap as ne } from "../utils/events/standard-event.js";
|
|
13
13
|
import "../utils/api/api-util.js";
|
|
14
14
|
import { ElMessage as ie } from "element-plus";
|
|
15
15
|
import { useI18n as se } from "vue-i18n";
|
|
@@ -20,24 +20,24 @@ import pe from "./super-page-dialog.vue.js";
|
|
|
20
20
|
import { useRoute as me, useRouter as ce } from "vue-router";
|
|
21
21
|
import { jumpToPage as ge } from "agilebuilder-ui/src/utils/jump-page-utils";
|
|
22
22
|
import { setSessionCache as fe, getUsername as de } from "agilebuilder-ui/src/utils/auth";
|
|
23
|
-
import { deepCopy as ye, refreshMobileDialogType as
|
|
24
|
-
import { isMobileBrowser as
|
|
23
|
+
import { deepCopy as ye, refreshMobileDialogType as he } from "../utils/common-util.js";
|
|
24
|
+
import { isMobileBrowser as Ce } from "agilebuilder-ui/src/utils/common-util";
|
|
25
25
|
import { usePageContextStore as Pe } from "../utils/page-store.js";
|
|
26
26
|
import be from "agilebuilder-ui/src/store";
|
|
27
27
|
import ke from "./assemblys/common/save-chart-condition-dialog.vue.js";
|
|
28
28
|
import je from "../utils/ai-chat-util.js";
|
|
29
29
|
import xe from "./assemblys/page-bottom.vue.js";
|
|
30
30
|
import $e from "./assemblys/common/event-call-component.vue.js";
|
|
31
|
-
import { scrollIntoViewWithContainer as
|
|
32
|
-
const
|
|
33
|
-
const
|
|
31
|
+
import { scrollIntoViewWithContainer as Te } from "../utils/anchor-util.js";
|
|
32
|
+
const we = ["element-loading-text"], De = 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 }, isPreview: { type: Boolean, required: false } }, emits: ["open", "opened", "close", "closed"], setup(e2, { expose: De2, emit: Ne }) {
|
|
33
|
+
const Se = Pe(), { t: qe } = se(), Re = e2, _e = a(false), Fe = a(""), Me = { list: "list-page-container", form: "form-page-container" }, Oe = a(null), Ie = a([]), Ee = a(""), Ae = a({}), We = a(null), Ve = a(null), Be = a(false), Le = a(false), Ue = a(false), Je = a(false), He = a(false), ze = a(false), Qe = a(null), Ge = a(false), Ke = a([]), Xe = a([]), Ye = a([]), Ze = a(false), ea = a(false), aa = a(null), la = a(false), ta = a(false), oa = a(null), ua = a(null), na = a(null), ia = a(null);
|
|
34
34
|
let sa = a(null);
|
|
35
|
-
const ra = a(null), va = a(null), pa = me(), ma = a(null), ca = a(0), ga =
|
|
35
|
+
const ra = a(null), va = a(null), pa = me(), ma = a(null), ca = a(0), ga = Ce();
|
|
36
36
|
let fa, da;
|
|
37
|
-
const ya = a(false),
|
|
37
|
+
const ya = a(false), ha = a(null), Ca = a(false), Pa = a(null);
|
|
38
38
|
function ba(e3) {
|
|
39
|
-
const a2 =
|
|
40
|
-
return a2.isTest = Re.isTest, a2.isTest && Re.dimensions && (a2.dimensions = Re.dimensions), Re.isDialog || (D(a2.entity.request), N(pa, a2.entity.request)),
|
|
39
|
+
const a2 = w(e3);
|
|
40
|
+
return a2.isTest = Re.isTest, a2.isTest && Re.dimensions && (a2.dimensions = Re.dimensions), Re.isDialog || (D(a2.entity.request), N(pa, a2.entity.request)), S(Re.pageRequest, a2.entity.request, Re.isDialog), a2;
|
|
41
41
|
}
|
|
42
42
|
function ka(e3) {
|
|
43
43
|
var _a2;
|
|
@@ -50,7 +50,7 @@ const Te = ["element-loading-text"], De = e({ __name: "super-page", props: { pag
|
|
|
50
50
|
l3 && l3.length > 0 && k(e4, l3, void 0);
|
|
51
51
|
}(sa.value, e3.initOptionConfigs);
|
|
52
52
|
}, 0), da = setTimeout(() => {
|
|
53
|
-
|
|
53
|
+
!function(e4, a3) {
|
|
54
54
|
if (!a3 || 0 == a3.length) return;
|
|
55
55
|
if (e4.initChartData = {}, e4.initChartData.data = ye(e4.entity.data), e4.initChartData.page = ye(e4.entity.page), a3 && a3.length > 0) {
|
|
56
56
|
const l3 = a3.filter((e5) => false !== e5.initializationQuery);
|
|
@@ -61,40 +61,40 @@ const Te = ["element-loading-text"], De = e({ __name: "super-page", props: { pag
|
|
|
61
61
|
const l2 = sa.value.runtime ? sa.value.runtime : {};
|
|
62
62
|
Ee.value = l2.class, Ae.value = l2.style, O(e3, sa.value), ve(sa.value.rules), M(null, sa.value, e3, "beforeload");
|
|
63
63
|
const t2 = sa.value.code;
|
|
64
|
-
return
|
|
65
|
-
|
|
66
|
-
}),
|
|
67
|
-
|
|
68
|
-
}),
|
|
69
|
-
|
|
70
|
-
}),
|
|
71
|
-
|
|
72
|
-
}),
|
|
73
|
-
|
|
74
|
-
}),
|
|
75
|
-
|
|
76
|
-
}),
|
|
77
|
-
|
|
64
|
+
return Se.setPageContext(sa.value), Qe.value = t2 + "_", B.$on(Qe.value + "export-form-report", (e4) => {
|
|
65
|
+
Ve.value = e4, ra.value = e4.configureObj, va.value = e4.pageContext, Ca.value = false, Be.value = true;
|
|
66
|
+
}), B.$on(Qe.value + "export-pdf-report", (e4) => {
|
|
67
|
+
Ve.value = e4, ra.value = e4.configureObj, va.value = e4.pageContext, Ca.value = true, Be.value = true;
|
|
68
|
+
}), B.$on(Qe.value + "import-file", (e4) => {
|
|
69
|
+
Ve.value = e4, Da.value.click();
|
|
70
|
+
}), B.$on(Qe.value + "assign-task", (e4) => {
|
|
71
|
+
Ve.value = e4, He.value = true, ze.value = false;
|
|
72
|
+
}), B.$on(Qe.value + "copy-task", (e4) => {
|
|
73
|
+
Ve.value = e4, Je.value = true, ze.value = true;
|
|
74
|
+
}), B.$on(Qe.value + "add-signer", (e4) => {
|
|
75
|
+
Ve.value = e4, Le.value = true, ze.value = true;
|
|
76
|
+
}), B.$on(Qe.value + "choose-return-node", (e4) => {
|
|
77
|
+
Ve.value = e4, U(e4).then((e5) => {
|
|
78
78
|
Ke.value = e5, Ge.value = true;
|
|
79
79
|
}).catch((e5) => {
|
|
80
80
|
Ge.value = false;
|
|
81
81
|
});
|
|
82
|
-
}),
|
|
83
|
-
|
|
82
|
+
}), B.$on(Qe.value + "remove-signer", (e4) => {
|
|
83
|
+
Ve.value = e4, J(e4).then((a3) => {
|
|
84
84
|
aa.value = e4.pageContext.completeTaskParam.taskId, Xe.value = a3, Ze.value = true;
|
|
85
85
|
}).catch((e5) => {
|
|
86
86
|
Ze.value = false;
|
|
87
87
|
});
|
|
88
|
-
}),
|
|
89
|
-
|
|
90
|
-
}),
|
|
91
|
-
|
|
88
|
+
}), B.$on(Qe.value + "add-transactor", (e4) => {
|
|
89
|
+
Ve.value = e4, Ue.value = true, ze.value = true;
|
|
90
|
+
}), B.$on(Qe.value + "remove-transactor", (e4) => {
|
|
91
|
+
Ve.value = e4, H(e4).then((a3) => {
|
|
92
92
|
aa.value = e4.pageContext.completeTaskParam.taskId, Ye.value = a3, ea.value = true;
|
|
93
93
|
}).catch((e5) => {
|
|
94
94
|
ea.value = false;
|
|
95
95
|
});
|
|
96
|
-
}),
|
|
97
|
-
}),
|
|
96
|
+
}), B.$on(Qe.value + "prohibit-edit", (e4) => {
|
|
97
|
+
}), B.$on(Qe.value + "open-dialog", (e4) => {
|
|
98
98
|
var a3, l3, t3;
|
|
99
99
|
ua.value = e4.pageContext, na.value = e4.configureObj, ia.value = e4.eventParams, a3 = na.value, l3 = ia.value, t3 = e4.jumpPageSetting, function(e5, a4, l4) {
|
|
100
100
|
return new Promise((t4, o2) => {
|
|
@@ -105,7 +105,6 @@ const Te = ["element-loading-text"], De = e({ __name: "super-page", props: { pag
|
|
|
105
105
|
if (l5 && l5.jumpPageUrl) {
|
|
106
106
|
false !== l5.isNewPage && true !== l5.isNewPage && (l5.isNewPage = true);
|
|
107
107
|
const e6 = ne(sa), o3 = !!((_a3 = na.value.props.linkPage) == null ? void 0 : _a3.isNeedId);
|
|
108
|
-
na.value;
|
|
109
108
|
let u2 = o3 && a4 ? a4.id : null, n2 = o3 && a4 ? a4.ids : null, i2 = a4 ? a4.selections : [], s2 = a4 ? a4.row : null;
|
|
110
109
|
if (!s2) if (s2 = {}, i2 && i2.length > 0) s2 = i2.length > 1 ? i2 : i2[0];
|
|
111
110
|
else {
|
|
@@ -123,7 +122,7 @@ const Te = ["element-loading-text"], De = e({ __name: "super-page", props: { pag
|
|
|
123
122
|
if (e5) {
|
|
124
123
|
let l4 = {};
|
|
125
124
|
const t4 = a3 && a3.props && a3.props.linkPage ? a3.props.linkPage : null;
|
|
126
|
-
t4 && Object.assign(l4, ye(t4)), Object.assign(l4, e5),
|
|
125
|
+
t4 && Object.assign(l4, ye(t4)), Object.assign(l4, e5), he(l4, ga);
|
|
127
126
|
const o2 = l4.jumpMode, u2 = l4;
|
|
128
127
|
if (ia.value || (ia.value = {}), ia.value.paramStoreId = l4.paramStoreId, u2.parentPageCode = ua.value.code, u2.parentPageVersion = ua.value.version, u2.isNewPage = true, "popup" === o2 || "refresh" === o2) {
|
|
129
128
|
const e6 = u2.linkType;
|
|
@@ -138,7 +137,7 @@ const Te = ["element-loading-text"], De = e({ __name: "super-page", props: { pag
|
|
|
138
137
|
}).catch(() => {
|
|
139
138
|
t5(true);
|
|
140
139
|
});
|
|
141
|
-
} else ie({ showClose: true, type: "error", message: qe("superPageRuntimeMessage.popMsg") }),
|
|
140
|
+
} else ie({ showClose: true, type: "error", message: qe("superPageRuntimeMessage.popMsg") }), t5(false);
|
|
142
141
|
else t5(true);
|
|
143
142
|
});
|
|
144
143
|
})(u2, o2).then((a4) => {
|
|
@@ -146,21 +145,21 @@ const Te = ["element-loading-text"], De = e({ __name: "super-page", props: { pag
|
|
|
146
145
|
let e7 = u2._path;
|
|
147
146
|
e7 = e7.replace(/&?_systemName_=[^&]*/, ""), location.href = e7;
|
|
148
147
|
} else u2._isIframe = false, "popup" === o2 ? (oa.value = u2, ta.value = true) : "refresh" === o2 && _a.push({ path: "/dsc/page", query: u2 });
|
|
149
|
-
}),
|
|
148
|
+
}), B.$on(Qe.value + "close-dialog", (e7) => {
|
|
150
149
|
!function(e8) {
|
|
151
150
|
const a4 = e8.jumpMode;
|
|
152
|
-
a4 && "popup" === a4 ? Fa(e8) : (ga &&
|
|
151
|
+
a4 && "popup" === a4 ? Fa(e8) : (ga && B.$off(Qe.value + "close-dialog"), _a.go(-1));
|
|
153
152
|
}(e7);
|
|
154
153
|
});
|
|
155
154
|
}
|
|
156
|
-
}
|
|
155
|
+
}
|
|
157
156
|
});
|
|
158
|
-
}),
|
|
157
|
+
}), B.$on(Qe.value + "save-chart-condition", (e4) => {
|
|
159
158
|
ya.value = true;
|
|
160
|
-
}),
|
|
159
|
+
}), B.$on("pageLoaded", () => {
|
|
161
160
|
const e4 = { runtime: { events: sa.value.events }, systemCode: "", systemVersion: 0, code: "", version: 0, workflowCode: "", workflowVersion: 0, name: "", uuid: "", label: "" };
|
|
162
|
-
sa.value.canClick = true, _e.value = false, M(null, sa.value, e4, "load"), Se
|
|
163
|
-
}),
|
|
161
|
+
sa.value.canClick = true, _e.value = false, M(null, sa.value, e4, "load"), Te(Se.getAutoAnchorComponentConditions(), sa.value);
|
|
162
|
+
}), B.$on(Qe.value + "event-call-component", (e4) => {
|
|
164
163
|
var _a3;
|
|
165
164
|
(_a3 = Pa.value) == null ? void 0 : _a3.renderComponent(e4.componentName, e4.componentProps);
|
|
166
165
|
}), P(() => sa.value.isRefresh, (e4) => {
|
|
@@ -186,31 +185,31 @@ const Te = ["element-loading-text"], De = e({ __name: "super-page", props: { pag
|
|
|
186
185
|
const e3 = sa.value.entity.data, a2 = null == e3.ID ? e3.id : e3.ID;
|
|
187
186
|
pa && pa.query && pa.query._t_ && a2 && fe(pa.query._t_ + "_id", a2);
|
|
188
187
|
}
|
|
189
|
-
function
|
|
190
|
-
|
|
188
|
+
function Ta() {
|
|
189
|
+
Be.value = false, Ve.value = null;
|
|
191
190
|
}
|
|
192
|
-
function
|
|
193
|
-
Q(
|
|
191
|
+
function wa(e3, a2) {
|
|
192
|
+
Q(Ve.value.pageContext, Ve.value.configureObj, a2, Ca.value);
|
|
194
193
|
}
|
|
195
194
|
t(() => {
|
|
196
195
|
var _a2;
|
|
197
196
|
ma.value = ((_a2 = pa.query) == null ? void 0 : _a2.paramStoreId) ?? null, x(ma.value), function() {
|
|
198
|
-
if (
|
|
197
|
+
if (Se.resetComponentCounters(), Se.resetAutoAnchorComponentConditions(), Re.isPreview && Re.pageDesign) {
|
|
199
198
|
_e.value = true;
|
|
200
199
|
let e3 = Re.pageDesign;
|
|
201
200
|
const a2 = ba(e3);
|
|
202
201
|
$(e3, a2).then((a3) => {
|
|
203
|
-
e3.contextParam = a3.contextParam, e3.branchFieldAuth = a3.branchFieldAuth, e3.systemParam = a3.systemParam, e3.isWorkflowEntity = a3.isWorkflowEntity, e3.dataTypeMaps = a3.dataTypeMaps,
|
|
204
|
-
$a(), la.value = true, ga ||
|
|
202
|
+
e3.contextParam = a3.contextParam, e3.branchFieldAuth = a3.branchFieldAuth, e3.systemParam = a3.systemParam, e3.isWorkflowEntity = a3.isWorkflowEntity, e3.dataTypeMaps = a3.dataTypeMaps, We.value = e3, ka(e3).then(() => {
|
|
203
|
+
$a(), la.value = true, ga || L(sa.value), xa();
|
|
205
204
|
});
|
|
206
205
|
}).finally(() => {
|
|
207
206
|
_e.value = false;
|
|
208
207
|
});
|
|
209
|
-
} else Re.pageCode && (_e.value = true,
|
|
208
|
+
} else Re.pageCode && (_e.value = true, T(Re.pageCode).then((e3) => {
|
|
210
209
|
if (e3 && e3.designJson) {
|
|
211
210
|
const a2 = e3.designJson, l2 = JSON.parse(a2);
|
|
212
|
-
l2.contextParam = e3.contextParam, l2.branchFieldAuth = e3.branchFieldAuth, l2.systemParam = e3.systemParam, "form" === l2.pageType && l2.workflowCode && (l2.isWorkflowEntity = e3.isWorkflowEntity), l2.dataTypeMaps = e3.dataTypeMaps,
|
|
213
|
-
$a(), la.value = true, ga ||
|
|
211
|
+
l2.contextParam = e3.contextParam, l2.branchFieldAuth = e3.branchFieldAuth, l2.systemParam = e3.systemParam, l2.isWorkflowEntityOrg = e3.isWorkflowEntity, "form" === l2.pageType && l2.workflowCode && (l2.isWorkflowEntity = e3.isWorkflowEntity), l2.dataTypeMaps = e3.dataTypeMaps, We.value = l2, ka(l2).then(() => {
|
|
212
|
+
$a(), la.value = true, ga || L(sa.value), xa();
|
|
214
213
|
});
|
|
215
214
|
}
|
|
216
215
|
}).catch((e3) => {
|
|
@@ -224,20 +223,20 @@ const Te = ["element-loading-text"], De = e({ __name: "super-page", props: { pag
|
|
|
224
223
|
sa.value && Oe.value && q(sa.value, "-1", Oe);
|
|
225
224
|
});
|
|
226
225
|
}), n(() => {
|
|
227
|
-
R(sa.value),
|
|
226
|
+
R(sa.value), We.value && F(We.value), B.$off(Qe.value + "export-form-report"), B.$off(Qe.value + "export-pdf-report"), B.$off(Qe.value + "import-file"), B.$off(Qe.value + "assign-task"), B.$off(Qe.value + "copy-task"), B.$off(Qe.value + "add-signer"), B.$off(Qe.value + "choose-return-node"), B.$off(Qe.value + "remove-signer"), B.$off(Qe.value + "prohibit-edit"), B.$off(Qe.value + "open-dialog"), B.$off(Qe.value + "save-chart-condition"), B.$off("pageLoaded"), sa.value && M(null, sa.value, sa.value, "onUnmounted"), fa && clearTimeout(fa), da && clearTimeout(da);
|
|
228
227
|
});
|
|
229
228
|
const Da = a(null);
|
|
230
229
|
function Na(e3) {
|
|
231
|
-
true ===
|
|
230
|
+
true === Le.value && (Le.value = false, K(Ve.value, e3)), true === Je.value && (Je.value = false, X(Ve.value, e3)), true === He.value && (He.value = false, Y(Ve.value, e3)), true === Ue.value && (Ue.value = false, Z(Ve.value, e3));
|
|
232
231
|
}
|
|
233
|
-
function
|
|
234
|
-
Ke.value = [], Ge.value = false, ee(
|
|
232
|
+
function Sa(e3) {
|
|
233
|
+
Ke.value = [], Ge.value = false, ee(Ve.value, e3);
|
|
235
234
|
}
|
|
236
235
|
function qa(e3) {
|
|
237
|
-
Xe.value = [], Ze.value = false, ae(
|
|
236
|
+
Xe.value = [], Ze.value = false, ae(Ve.value, e3);
|
|
238
237
|
}
|
|
239
238
|
function Ra(e3) {
|
|
240
|
-
Ye.value = [], ea.value = false, le(
|
|
239
|
+
Ye.value = [], ea.value = false, le(Ve.value, e3);
|
|
241
240
|
}
|
|
242
241
|
const _a = ce();
|
|
243
242
|
function Fa(e3) {
|
|
@@ -267,11 +266,11 @@ const Te = ["element-loading-text"], De = e({ __name: "super-page", props: { pag
|
|
|
267
266
|
t3 && t3.apply(t3, [{ pageContext: sa.value, parentPageContext: ua.value, parentConfigureObj: l3, jumpPageSetting: oa.value, columnProp: a3 }]);
|
|
268
267
|
}
|
|
269
268
|
}(a2, i2, n2);
|
|
270
|
-
oe(ua.value, na.value, l2, void 0 !== l2 && false === l2 ? "noOperation" : null), ua.value = null, na.value = null, ia.value = null,
|
|
269
|
+
oe(ua.value, na.value, l2, void 0 !== l2 && false === l2 ? "noOperation" : null), ua.value = null, na.value = null, ia.value = null, B.$off(Qe.value + "close-dialog"), ta.value = false;
|
|
271
270
|
}
|
|
272
271
|
function Ma(e3) {
|
|
273
272
|
ue(sa.value, e3).then((e4) => {
|
|
274
|
-
ie({ showClose: true, type: "success", message: qe("superPageRuntimeMessage.successfulSave") }),
|
|
273
|
+
ie({ showClose: true, type: "success", message: qe("superPageRuntimeMessage.successfulSave") }), ha.value.refreshConditionList();
|
|
275
274
|
});
|
|
276
275
|
}
|
|
277
276
|
function Oa(e3) {
|
|
@@ -281,29 +280,29 @@ const Te = ["element-loading-text"], De = e({ __name: "super-page", props: { pag
|
|
|
281
280
|
}
|
|
282
281
|
return De2({ pickFileDone: function(e3) {
|
|
283
282
|
let a2 = e3.componentId, l2 = e3.listCode;
|
|
284
|
-
(a2 || l2) && (l2 ?
|
|
283
|
+
(a2 || l2) && (l2 ? B.$emit(l2 + "-pickFileDone", e3) : B.$emit(a2 + "-pickFileDone", e3));
|
|
285
284
|
}, uploadFileDone: function(e3) {
|
|
286
285
|
let a2 = e3.componentId, l2 = e3.listCode;
|
|
287
|
-
(a2 || l2) && (l2 ?
|
|
286
|
+
(a2 || l2) && (l2 ? B.$emit(l2 + "-uploadFileDone", e3) : B.$emit(a2 + "-uploadFileDone", e3));
|
|
288
287
|
}, uploadFileError: function(e3) {
|
|
289
288
|
let a2 = e3.componentId, l2 = e3.listCode;
|
|
290
|
-
(a2 || l2) && (l2 ?
|
|
289
|
+
(a2 || l2) && (l2 ? B.$emit(l2 + "-uploadFileError", e3) : B.$emit(a2 + "-uploadFileError", e3));
|
|
291
290
|
}, scanDone: function(e3) {
|
|
292
291
|
let a2 = e3.componentId, l2 = e3.listCode;
|
|
293
|
-
(a2 || l2) && (l2 ?
|
|
292
|
+
(a2 || l2) && (l2 ? B.$emit(l2 + "-scanDone", e3) : B.$emit(a2 + "-scanDone", e3));
|
|
294
293
|
}, getFormFormatData: function() {
|
|
295
294
|
return je.getFormFormatDataUtil(sa.value);
|
|
296
295
|
} }), (e3, a2) => {
|
|
297
296
|
var _a2, _b, _c, _d;
|
|
298
297
|
const l2 = i("loading");
|
|
299
|
-
return s((v(), r("div", { class: c(["app-container runtime-page-container", [Fe.value]]), style: m((_a2 = p(sa)) == null ? void 0 : _a2.pageRuntimeStyle), "element-loading-text": ((_b = p(sa)) == null ? void 0 : _b.loadingText) ? (_c = p(sa)) == null ? void 0 : _c.loadingText : p(qe)("superPageRuntimeMessage.pageDefaultLoadingText") }, [la.value ? (v(), r("div", { ref_key: "thisRef", ref: Oe, key: ca.value, class: c(["runtime-page-container-view", Ee.value]), style: m(Ae.value) }, [(v(true), r(
|
|
300
|
-
if (
|
|
298
|
+
return s((v(), r("div", { class: c(["app-container runtime-page-container", [Fe.value]]), style: m((_a2 = p(sa)) == null ? void 0 : _a2.pageRuntimeStyle), "element-loading-text": ((_b = p(sa)) == null ? void 0 : _b.loadingText) ? (_c = p(sa)) == null ? void 0 : _c.loadingText : p(qe)("superPageRuntimeMessage.pageDefaultLoadingText") }, [la.value ? (v(), r("div", { ref_key: "thisRef", ref: Oe, key: ca.value, class: c(["runtime-page-container-view", Ee.value]), style: m(Ae.value) }, [(v(true), r(h, null, C(Ie.value, (e4, a3) => (v(), d(b, { key: e4.uuid, configure: e4, pageContext: p(sa) }, null, 8, ["configure", "pageContext"]))), 128)), f(xe, { pageContext: p(sa) }, null, 8, ["pageContext"]), Be.value ? (v(), d(E, { key: 0, configure: ra.value, pageContext: va.value, onClose: Ta, onExport: wa }, null, 8, ["configure", "pageContext"])) : g("", true), y("input", { ref_key: "_selectFile_", ref: Da, type: "file", name: "_selectFile_", style: { display: "none" }, onChange: a2[0] || (a2[0] = (e4) => function() {
|
|
299
|
+
if (Ve.value) {
|
|
301
300
|
if (!Da.value) return;
|
|
302
301
|
if ("" === Da.value.value || null === Da.value.value) return;
|
|
303
302
|
const e5 = Da.value.files[0];
|
|
304
|
-
e5 ? (Da.value.value = null, G(
|
|
303
|
+
e5 ? (Da.value.value = null, G(Ve.value, e5)) : ie({ showClose: true, type: "warning", message: qe("superPageRuntimeMessage.noFileSelected") });
|
|
305
304
|
}
|
|
306
|
-
}()) }, null, 544),
|
|
305
|
+
}()) }, null, 544), Le.value || Je.value || He.value || Ue.value ? (v(), d(p(re), { key: 1, width: "60%", multiple: ze.value, onClose: Na }, null, 8, ["multiple"])) : g("", true), Ge.value ? (v(), d(A, { key: 2, "task-informitions": Ke.value, onClose: a2[1] || (a2[1] = (e4) => Ge.value = false), onResult: Sa }, null, 8, ["task-informitions"])) : g("", true), Ze.value ? (v(), d(W, { key: 3, "task-id": aa.value, "active-tasks": Xe.value, onClose: a2[2] || (a2[2] = (e4) => Ze.value = false), onResult: qa }, null, 8, ["task-id", "active-tasks"])) : g("", true), ea.value ? (v(), d(V, { key: 4, "task-id": aa.value, "transactor-info": Ye.value, onClose: a2[3] || (a2[3] = (e4) => ea.value = false), onResult: Ra }, null, 8, ["task-id", "transactor-info"])) : g("", true), ta.value ? (v(), d(pe, { key: 5, parentPageContext: ua.value, parentPageEventParams: ia.value, jumpPageSetting: oa.value, onClose: a2[4] || (a2[4] = (e4) => Fa()) }, null, 8, ["parentPageContext", "parentPageEventParams", "jumpPageSetting"])) : g("", true), ya.value ? (v(), d(ke, { key: 6, ref_key: "chartCondtionRef", ref: ha, pageContext: p(sa), onClose: a2[5] || (a2[5] = (e4) => ya.value = false), onSave: Ma, onConfirm: Oa }, null, 8, ["pageContext"])) : g("", true), f($e, { ref_key: "eventCallComponentRef", ref: Pa }, null, 512)], 6)) : g("", true)], 14, we)), [[l2, _e.value || ((_d = p(sa)) == null ? void 0 : _d.isLoading)]]);
|
|
307
306
|
};
|
|
308
307
|
} });
|
|
309
308
|
export {
|