super-page-runtime 2.3.46-sit1 → 2.3.46
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 +34 -33
- package/dist/es/components/runtime/utils/events/standard-event.js +23 -23
- package/dist/es/components/runtime/utils/events/validator-util.js +84 -81
- package/dist/es/components/runtime/utils/page-helper-util.js +1 -1
- package/dist/es/components/runtime/utils/page-init-util.js +65 -63
- 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 +10 -6
- package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +8 -6
- 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 +104 -99
- 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 +102 -96
- 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 +11 -9
- 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.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +2 -0
- 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 +11 -9
- 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 +8 -6
- package/dist/es/components/runtime/views/assemblys/form/image-upload/imageupload-runtime.vue2.js +6 -5
- 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 -47
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +6 -4
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +9 -7
- 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 +9 -8
- 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 +11 -9
- 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 +3 -2
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +132 -131
- package/dist/es/style.css +76 -76
- package/package.json +2 -2
|
@@ -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(() => 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"])]);
|
|
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)])]), _: 1 }), u(o2, { type: "primary", onClick: H }, { default: s(() => [...l2[8] || (l2[8] = [d(" 确定 ", -1)])]), _: 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
|
+
}), (e2, p2) => (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: t2.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), H = t(false), w = 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
|
+
w.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
|
+
w.value = t2.chartJson, w.value.homeChartSettingUserId = I.homeChartSettingUserId, i2 && (i2.clientHeight, w.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 = w.value.pushHomepage) == null ? void 0 : _a.searchConditions) && ((_b = w.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(w.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 H.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 && w.value ? (o(), s(g, { key: 0, configure: w.value, pageContext: u(A) }, null, 8, ["configure", "pageContext"])) : U.value || w.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 o, openBlock as t, 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,6 +10,7 @@ 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);
|
|
13
14
|
}
|
|
14
15
|
null !== b.value && void 0 !== b.value || (b.value = p.parentPageEventParams.id);
|
|
15
16
|
}
|
|
@@ -20,7 +21,7 @@ const s = ["src"], g = ["src"], v = e({ __name: "super-page-dialog", props: { pa
|
|
|
20
21
|
((_a = y.value) == null ? void 0 : _a.dialogParamStoreId) && sessionStorage.removeItem(y.value.dialogParamStoreId);
|
|
21
22
|
}), (e3, a2) => {
|
|
22
23
|
const l2 = u("el-drawer"), v3 = u("el-dialog");
|
|
23
|
-
return j.value && "drawer" === j.value ? (
|
|
24
|
+
return j.value && "drawer" === j.value ? (t(), o(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 ? (t(), o(d, { key: 0, pageCode: w.value, pageRequest: y.value, isDialog: true }, null, 8, ["pageCode", "pageRequest"])) : _.value ? (t(), 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"])) : (t(), o(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 ? (t(), o(d, { key: 0, style: { "min-height": "100px" }, pageCode: w.value, pageRequest: y.value, contentHeight: S.value, isDialog: true }, null, 8, ["pageCode", "pageRequest", "contentHeight"])) : _.value ? (t(), 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"]));
|
|
24
25
|
};
|
|
25
26
|
} });
|
|
26
27
|
export {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as e, ref as a, getCurrentInstance as
|
|
1
|
+
import { defineComponent as e, ref as a, getCurrentInstance as t, onMounted as l, 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 C, renderList as h, 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 S, convertToPageContext as T, packageAdditionalMapWithLocationSearch as w, packageAdditionalMapWithRoute as D, packageAdditionalMapWithPageRequest as N } 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 te, updateValuesWhenCloseDialog as le, 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 Ce } from "../utils/common-util.js";
|
|
24
|
+
import { isMobileBrowser as he } 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 Se } from "../utils/anchor-util.js";
|
|
32
|
+
const Te = ["element-loading-text"], we = 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: we2, emit: De }) {
|
|
33
|
+
const Ne = 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), ta = a(false), la = 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 = he();
|
|
36
36
|
let fa, da;
|
|
37
|
-
const ya = a(false),
|
|
37
|
+
const ya = a(false), Ca = a(null), ha = 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 || (
|
|
39
|
+
const a2 = T(e3);
|
|
40
|
+
return a2.isTest = Re.isTest, a2.isTest && Re.dimensions && (a2.dimensions = Re.dimensions), Re.isDialog || (w(a2.entity.request), D(pa, a2.entity.request)), N(Re.pageRequest, a2.entity.request, Re.isDialog), a2;
|
|
41
41
|
}
|
|
42
42
|
function ka(e3) {
|
|
43
43
|
var _a2;
|
|
@@ -46,65 +46,66 @@ const De = ["element-loading-text"], Ne = e({ __name: "super-page", props: { pag
|
|
|
46
46
|
sa.value.isDialog = true === Re.isDialog, Fe.value = Me[sa.value.pageType] ?? "", fa = setTimeout(() => {
|
|
47
47
|
!function(e4, a3) {
|
|
48
48
|
if (!a3 || 0 == a3.length) return;
|
|
49
|
-
const
|
|
50
|
-
|
|
49
|
+
const t3 = a3.filter((e5) => "remote" != e5.filterType);
|
|
50
|
+
t3 && t3.length > 0 && k(e4, t3, void 0);
|
|
51
51
|
}(sa.value, e3.initOptionConfigs);
|
|
52
52
|
}, 0), da = setTimeout(() => {
|
|
53
|
-
|
|
53
|
+
e3.initChartServiceConfigs, 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
|
-
const
|
|
57
|
-
j(e4,
|
|
56
|
+
const t3 = a3.filter((e5) => false !== e5.initializationQuery);
|
|
57
|
+
j(e4, t3, null, true);
|
|
58
58
|
}
|
|
59
59
|
}(sa.value, e3.initChartServiceConfigs);
|
|
60
60
|
}, 200), sa.value.initDataSources = [], _(sa.value), Ie.value = sa.value.items ? sa.value.items : [];
|
|
61
|
-
const
|
|
62
|
-
Ee.value =
|
|
63
|
-
const
|
|
64
|
-
return
|
|
65
|
-
|
|
66
|
-
}),
|
|
67
|
-
|
|
68
|
-
}),
|
|
69
|
-
|
|
70
|
-
}),
|
|
71
|
-
|
|
72
|
-
}),
|
|
73
|
-
|
|
74
|
-
}),
|
|
75
|
-
|
|
76
|
-
}),
|
|
77
|
-
|
|
61
|
+
const t2 = sa.value.runtime ? sa.value.runtime : {};
|
|
62
|
+
Ee.value = t2.class, Ae.value = t2.style, O(e3, sa.value), ve(sa.value.rules), M(null, sa.value, e3, "beforeload");
|
|
63
|
+
const l2 = sa.value.code;
|
|
64
|
+
return Ne.setPageContext(sa.value), Qe.value = l2 + "_", B.$on(Qe.value + "export-form-report", (e4) => {
|
|
65
|
+
Ve.value = e4, ra.value = e4.configureObj, va.value = e4.pageContext, ha.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, ha.value = true, Be.value = true;
|
|
68
|
+
}), B.$on(Qe.value + "import-file", (e4) => {
|
|
69
|
+
Ve.value = e4, wa.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
|
-
}),
|
|
98
|
-
var a3,
|
|
99
|
-
ua.value = e4.pageContext, na.value = e4.configureObj, ia.value = e4.eventParams, a3 = na.value,
|
|
100
|
-
return new Promise((
|
|
96
|
+
}), B.$on(Qe.value + "prohibit-edit", (e4) => {
|
|
97
|
+
}), B.$on(Qe.value + "open-dialog", (e4) => {
|
|
98
|
+
var a3, t3, l3;
|
|
99
|
+
ua.value = e4.pageContext, na.value = e4.configureObj, ia.value = e4.eventParams, a3 = na.value, t3 = ia.value, l3 = e4.jumpPageSetting, function(e5, a4, t4) {
|
|
100
|
+
return new Promise((l4, o2) => {
|
|
101
101
|
var _a3;
|
|
102
|
-
if (
|
|
102
|
+
if (t4) l4(t4);
|
|
103
103
|
else {
|
|
104
|
-
const
|
|
105
|
-
if (
|
|
106
|
-
false !==
|
|
104
|
+
const t5 = e5 && e5.props && e5.props.linkPage ? e5.props.linkPage : null;
|
|
105
|
+
if (t5 && t5.jumpPageUrl) {
|
|
106
|
+
false !== t5.isNewPage && true !== t5.isNewPage && (t5.isNewPage = true);
|
|
107
107
|
const e6 = ne(sa), o3 = !!((_a3 = na.value.props.linkPage) == null ? void 0 : _a3.isNeedId);
|
|
108
|
+
na.value;
|
|
108
109
|
let u2 = o3 && a4 ? a4.id : null, n2 = o3 && a4 ? a4.ids : null, i2 = a4 ? a4.selections : [], s2 = a4 ? a4.row : null;
|
|
109
110
|
if (!s2) if (s2 = {}, i2 && i2.length > 0) s2 = i2.length > 1 ? i2 : i2[0];
|
|
110
111
|
else {
|
|
@@ -112,54 +113,54 @@ const De = ["element-loading-text"], Ne = e({ __name: "super-page", props: { pag
|
|
|
112
113
|
a5 && Object.assign(s2, a5), e7 && Object.assign(s2, e7);
|
|
113
114
|
}
|
|
114
115
|
const r2 = ye(ua.value.entity.page);
|
|
115
|
-
|
|
116
|
-
e7.isNeedId = o3,
|
|
116
|
+
t5._pageData = r2, ge(t5, null, u2, s2, e6, n2).then((e7) => {
|
|
117
|
+
e7.isNeedId = o3, l4(e7);
|
|
117
118
|
});
|
|
118
|
-
} else
|
|
119
|
+
} else l4(false);
|
|
119
120
|
}
|
|
120
121
|
});
|
|
121
|
-
}(a3,
|
|
122
|
+
}(a3, t3, l3).then((e5) => {
|
|
122
123
|
if (e5) {
|
|
123
|
-
let
|
|
124
|
-
const
|
|
125
|
-
|
|
126
|
-
const o2 =
|
|
127
|
-
if (ia.value || (ia.value = {}), ia.value.paramStoreId =
|
|
124
|
+
let t4 = {};
|
|
125
|
+
const l4 = a3 && a3.props && a3.props.linkPage ? a3.props.linkPage : null;
|
|
126
|
+
l4 && Object.assign(t4, ye(l4)), Object.assign(t4, e5), Ce(t4, ga);
|
|
127
|
+
const o2 = t4.jumpMode, u2 = t4;
|
|
128
|
+
if (ia.value || (ia.value = {}), ia.value.paramStoreId = t4.paramStoreId, u2.parentPageCode = ua.value.code, u2.parentPageVersion = ua.value.version, u2.isNewPage = true, "popup" === o2 || "refresh" === o2) {
|
|
128
129
|
const e6 = u2.linkType;
|
|
129
130
|
(function(e7, a4) {
|
|
130
|
-
const
|
|
131
|
-
return new Promise((
|
|
132
|
-
if (
|
|
131
|
+
const t5 = de();
|
|
132
|
+
return new Promise((l5, o3) => {
|
|
133
|
+
if (t5) if ("popup" !== a4 && !ga || ua.value.systemCode === e7.customSystem) l5(true);
|
|
133
134
|
else if (e7.customSystem) {
|
|
134
135
|
const a5 = e7.customSystem;
|
|
135
|
-
be.dispatch("getCurrentUserPermissions", { loginName:
|
|
136
|
-
|
|
136
|
+
be.dispatch("getCurrentUserPermissions", { loginName: t5, systemCode: a5 }).then(() => {
|
|
137
|
+
l5(true);
|
|
137
138
|
}).catch(() => {
|
|
138
|
-
|
|
139
|
+
l5(true);
|
|
139
140
|
});
|
|
140
|
-
} else ie({ showClose: true, type: "error", message: qe("superPageRuntimeMessage.popMsg") }),
|
|
141
|
-
else
|
|
141
|
+
} else ie({ showClose: true, type: "error", message: qe("superPageRuntimeMessage.popMsg") }), console.error("弹框参数缺少customSystem参数,parentPageContext.value.systemCode={}", ua.value.systemCode), l5(false);
|
|
142
|
+
else l5(true);
|
|
142
143
|
});
|
|
143
144
|
})(u2, o2).then((a4) => {
|
|
144
145
|
if (a4) if (ga && (ua.value.systemCode !== u2.customSystem || e6 && "url" === e6)) {
|
|
145
146
|
let e7 = u2._path;
|
|
146
147
|
e7 = e7.replace(/&?_systemName_=[^&]*/, ""), location.href = e7;
|
|
147
|
-
} else u2._isIframe = false, "popup" === o2 ? (oa.value = u2,
|
|
148
|
-
}),
|
|
148
|
+
} else u2._isIframe = false, "popup" === o2 ? (oa.value = u2, la.value = true) : "refresh" === o2 && _a.push({ path: "/dsc/page", query: u2 });
|
|
149
|
+
}), B.$on(Qe.value + "close-dialog", (e7) => {
|
|
149
150
|
!function(e8) {
|
|
150
151
|
const a4 = e8.jumpMode;
|
|
151
|
-
a4 && "popup" === a4 ? Fa(e8) : (ga &&
|
|
152
|
+
a4 && "popup" === a4 ? Fa(e8) : (ga && B.$off(Qe.value + "close-dialog"), _a.go(-1));
|
|
152
153
|
}(e7);
|
|
153
154
|
});
|
|
154
155
|
}
|
|
155
|
-
}
|
|
156
|
+
} else console.error("页面配置信息不存在");
|
|
156
157
|
});
|
|
157
|
-
}),
|
|
158
|
+
}), B.$on(Qe.value + "save-chart-condition", (e4) => {
|
|
158
159
|
ya.value = true;
|
|
159
|
-
}),
|
|
160
|
+
}), B.$on("pageLoaded", () => {
|
|
160
161
|
const e4 = { runtime: { events: sa.value.events }, systemCode: "", systemVersion: 0, code: "", version: 0, workflowCode: "", workflowVersion: 0, name: "", uuid: "", label: "" };
|
|
161
|
-
sa.value.canClick = true, _e.value = false, M(null, sa.value, e4, "load"),
|
|
162
|
-
}),
|
|
162
|
+
sa.value.canClick = true, _e.value = false, M(null, sa.value, e4, "load"), Se(Ne.getAutoAnchorComponentConditions(), sa.value);
|
|
163
|
+
}), B.$on(Qe.value + "event-call-component", (e4) => {
|
|
163
164
|
var _a3;
|
|
164
165
|
(_a3 = Pa.value) == null ? void 0 : _a3.renderComponent(e4.componentName, e4.componentProps);
|
|
165
166
|
}), P(() => sa.value.isRefresh, (e4) => {
|
|
@@ -168,7 +169,7 @@ const De = ["element-loading-text"], Ne = e({ __name: "super-page", props: { pag
|
|
|
168
169
|
}, 3e3), ca.value++, sa.value.isRefresh = false);
|
|
169
170
|
}), z(sa.value, null, (_a2 = Re.pageRequest) == null ? void 0 : _a2.isNeedId);
|
|
170
171
|
}
|
|
171
|
-
const ja =
|
|
172
|
+
const ja = t();
|
|
172
173
|
function xa() {
|
|
173
174
|
u(() => {
|
|
174
175
|
var _a2, _b;
|
|
@@ -176,8 +177,8 @@ const De = ["element-loading-text"], Ne = e({ __name: "super-page", props: { pag
|
|
|
176
177
|
if (sa.value && (sa.value.pageRuntimeStyle || (sa.value.pageRuntimeStyle = {}), !ga)) {
|
|
177
178
|
let a2 = Re.contentHeight;
|
|
178
179
|
Number(a2) && (a2 += "px");
|
|
179
|
-
const
|
|
180
|
-
|
|
180
|
+
const t2 = a2 ?? ((_b = (_a2 = e3 == null ? void 0 : e3.getBoundingClientRect) == null ? void 0 : _a2.call(e3)) == null ? void 0 : _b.height) ?? 0;
|
|
181
|
+
t2 && (sa.value.pageRuntimeStyle.height = t2);
|
|
181
182
|
}
|
|
182
183
|
});
|
|
183
184
|
}
|
|
@@ -185,31 +186,31 @@ const De = ["element-loading-text"], Ne = e({ __name: "super-page", props: { pag
|
|
|
185
186
|
const e3 = sa.value.entity.data, a2 = null == e3.ID ? e3.id : e3.ID;
|
|
186
187
|
pa && pa.query && pa.query._t_ && a2 && fe(pa.query._t_ + "_id", a2);
|
|
187
188
|
}
|
|
188
|
-
function
|
|
189
|
-
|
|
189
|
+
function Sa() {
|
|
190
|
+
Be.value = false, Ve.value = null;
|
|
190
191
|
}
|
|
191
|
-
function
|
|
192
|
-
Q(
|
|
192
|
+
function Ta(e3, a2) {
|
|
193
|
+
Q(Ve.value.pageContext, Ve.value.configureObj, a2, ha.value);
|
|
193
194
|
}
|
|
194
|
-
|
|
195
|
+
l(() => {
|
|
195
196
|
var _a2;
|
|
196
197
|
ma.value = ((_a2 = pa.query) == null ? void 0 : _a2.paramStoreId) ?? null, x(ma.value), function() {
|
|
197
|
-
if (
|
|
198
|
+
if (Ne.resetComponentCounters(), Ne.resetAutoAnchorComponentConditions(), Re.isPreview && Re.pageDesign) {
|
|
198
199
|
_e.value = true;
|
|
199
200
|
let e3 = Re.pageDesign;
|
|
200
201
|
const a2 = ba(e3);
|
|
201
202
|
$(e3, a2).then((a3) => {
|
|
202
|
-
e3.contextParam = a3.contextParam, e3.branchFieldAuth = a3.branchFieldAuth, e3.systemParam = a3.systemParam, e3.isWorkflowEntity = a3.isWorkflowEntity, e3.dataTypeMaps = a3.dataTypeMaps,
|
|
203
|
-
$a(),
|
|
203
|
+
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(() => {
|
|
204
|
+
$a(), ta.value = true, ga || L(sa.value), xa();
|
|
204
205
|
});
|
|
205
206
|
}).finally(() => {
|
|
206
207
|
_e.value = false;
|
|
207
208
|
});
|
|
208
|
-
} else Re.pageCode && (_e.value = true,
|
|
209
|
+
} else Re.pageCode && (_e.value = true, S(Re.pageCode).then((e3) => {
|
|
209
210
|
if (e3 && e3.designJson) {
|
|
210
|
-
const a2 = e3.designJson,
|
|
211
|
-
|
|
212
|
-
$a(),
|
|
211
|
+
const a2 = e3.designJson, t2 = JSON.parse(a2);
|
|
212
|
+
t2.contextParam = e3.contextParam, t2.branchFieldAuth = e3.branchFieldAuth, t2.systemParam = e3.systemParam, t2.isWorkflowEntityOrg = e3.isWorkflowEntity, "form" === t2.pageType && t2.workflowCode && (t2.isWorkflowEntity = e3.isWorkflowEntity), t2.dataTypeMaps = e3.dataTypeMaps, We.value = t2, ka(t2).then(() => {
|
|
213
|
+
$a(), ta.value = true, ga || L(sa.value), xa();
|
|
213
214
|
});
|
|
214
215
|
}
|
|
215
216
|
}).catch((e3) => {
|
|
@@ -223,26 +224,26 @@ const De = ["element-loading-text"], Ne = e({ __name: "super-page", props: { pag
|
|
|
223
224
|
sa.value && Oe.value && q(sa.value, "-1", Oe);
|
|
224
225
|
});
|
|
225
226
|
}), n(() => {
|
|
226
|
-
R(sa.value),
|
|
227
|
+
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);
|
|
227
228
|
});
|
|
228
|
-
const
|
|
229
|
-
function
|
|
230
|
-
true ===
|
|
229
|
+
const wa = a(null);
|
|
230
|
+
function Da(e3) {
|
|
231
|
+
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));
|
|
231
232
|
}
|
|
232
|
-
function
|
|
233
|
-
Ke.value = [], Ge.value = false, ee(
|
|
233
|
+
function Na(e3) {
|
|
234
|
+
Ke.value = [], Ge.value = false, ee(Ve.value, e3);
|
|
234
235
|
}
|
|
235
236
|
function qa(e3) {
|
|
236
|
-
Xe.value = [], Ze.value = false, ae(
|
|
237
|
+
Xe.value = [], Ze.value = false, ae(Ve.value, e3);
|
|
237
238
|
}
|
|
238
239
|
function Ra(e3) {
|
|
239
|
-
Ye.value = [], ea.value = false,
|
|
240
|
+
Ye.value = [], ea.value = false, te(Ve.value, e3);
|
|
240
241
|
}
|
|
241
242
|
const _a = ce();
|
|
242
243
|
function Fa(e3) {
|
|
243
244
|
var _a2, _b, _c, _d;
|
|
244
|
-
const a2 = (_a2 = oa.value) == null ? void 0 : _a2.closeEvent,
|
|
245
|
-
let
|
|
245
|
+
const a2 = (_a2 = oa.value) == null ? void 0 : _a2.closeEvent, t2 = (_b = oa.value) == null ? void 0 : _b.isRefreshWhenClosePopup;
|
|
246
|
+
let l2, o2;
|
|
246
247
|
const u2 = ua.value.tableName;
|
|
247
248
|
let n2;
|
|
248
249
|
const i2 = ia.value.columnProp ? ia.value.columnProp : null;
|
|
@@ -255,56 +256,56 @@ const De = ["element-loading-text"], Ne = e({ __name: "super-page", props: { pag
|
|
|
255
256
|
} else n2 = na.value;
|
|
256
257
|
if (e3) {
|
|
257
258
|
const a3 = e3.isNeedValueMapping;
|
|
258
|
-
|
|
259
|
+
l2 = e3.dataModel, o2 = e3.sourceTableName, a3 && le({ parentPageContext: ua.value, parentEventParams: ia.value, parentConfigureObj: n2, sourceModel: l2, sourceTableName: o2, valueMappings: oa.value ? oa.value.valueMappings : null });
|
|
259
260
|
}
|
|
260
|
-
if (M(null, ua.value, n2, "closePopup", { sourceModel:
|
|
261
|
-
const
|
|
262
|
-
a2.apply(a2,
|
|
263
|
-
} else !function(e4, a3,
|
|
261
|
+
if (M(null, ua.value, n2, "closePopup", { sourceModel: l2, sourceTableName: o2, jumpPageSetting: oa.value, entity: ua.value.entity.data, targetTableName: u2, pageContext: sa.value, parentPageContext: ua.value, parentConfigureObj: n2, columnProp: i2 }), "function" == typeof a2) {
|
|
262
|
+
const t3 = (e3 == null ? void 0 : e3.dataModel) ? [{ dataModel: e3.dataModel }] : [];
|
|
263
|
+
a2.apply(a2, t3);
|
|
264
|
+
} else !function(e4, a3, t3) {
|
|
264
265
|
if (e4) {
|
|
265
|
-
const
|
|
266
|
-
|
|
266
|
+
const l3 = I(ua.value, e4);
|
|
267
|
+
l3 && l3.apply(l3, [{ pageContext: sa.value, parentPageContext: ua.value, parentConfigureObj: t3, jumpPageSetting: oa.value, columnProp: a3 }]);
|
|
267
268
|
}
|
|
268
269
|
}(a2, i2, n2);
|
|
269
|
-
oe(ua.value, na.value,
|
|
270
|
+
oe(ua.value, na.value, t2, void 0 !== t2 && false === t2 ? "noOperation" : null), ua.value = null, na.value = null, ia.value = null, B.$off(Qe.value + "close-dialog"), la.value = false;
|
|
270
271
|
}
|
|
271
272
|
function Ma(e3) {
|
|
272
273
|
ue(sa.value, e3).then((e4) => {
|
|
273
|
-
ie({ showClose: true, type: "success", message: qe("superPageRuntimeMessage.successfulSave") }),
|
|
274
|
+
ie({ showClose: true, type: "success", message: qe("superPageRuntimeMessage.successfulSave") }), Ca.value.refreshConditionList();
|
|
274
275
|
});
|
|
275
276
|
}
|
|
276
277
|
function Oa(e3) {
|
|
277
278
|
const a2 = e3.queryCondition;
|
|
278
|
-
let
|
|
279
|
-
a2 && (
|
|
279
|
+
let t2 = {};
|
|
280
|
+
a2 && (t2 = JSON.parse(a2)), t2 && t2.data && Object.assign(sa.value.entity.data, t2.data), t2 && t2.page && Object.assign(sa.value.entity.page, t2.page), ya.value = false;
|
|
280
281
|
}
|
|
281
|
-
return
|
|
282
|
-
let a2 = e3.componentId,
|
|
283
|
-
(a2 ||
|
|
282
|
+
return we2({ pickFileDone: function(e3) {
|
|
283
|
+
let a2 = e3.componentId, t2 = e3.listCode;
|
|
284
|
+
(a2 || t2) && (t2 ? B.$emit(t2 + "-pickFileDone", e3) : B.$emit(a2 + "-pickFileDone", e3));
|
|
284
285
|
}, uploadFileDone: function(e3) {
|
|
285
|
-
let a2 = e3.componentId,
|
|
286
|
-
(a2 ||
|
|
286
|
+
let a2 = e3.componentId, t2 = e3.listCode;
|
|
287
|
+
(a2 || t2) && (t2 ? B.$emit(t2 + "-uploadFileDone", e3) : B.$emit(a2 + "-uploadFileDone", e3));
|
|
287
288
|
}, uploadFileError: function(e3) {
|
|
288
|
-
let a2 = e3.componentId,
|
|
289
|
-
(a2 ||
|
|
289
|
+
let a2 = e3.componentId, t2 = e3.listCode;
|
|
290
|
+
(a2 || t2) && (t2 ? B.$emit(t2 + "-uploadFileError", e3) : B.$emit(a2 + "-uploadFileError", e3));
|
|
290
291
|
}, scanDone: function(e3) {
|
|
291
|
-
let a2 = e3.componentId,
|
|
292
|
-
(a2 ||
|
|
292
|
+
let a2 = e3.componentId, t2 = e3.listCode;
|
|
293
|
+
(a2 || t2) && (t2 ? B.$emit(t2 + "-scanDone", e3) : B.$emit(a2 + "-scanDone", e3));
|
|
293
294
|
}, getFormFormatData: function() {
|
|
294
295
|
return je.getFormFormatDataUtil(sa.value);
|
|
295
296
|
} }), (e3, a2) => {
|
|
296
297
|
var _a2, _b, _c, _d;
|
|
297
|
-
const
|
|
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") }, [
|
|
299
|
-
if (
|
|
300
|
-
if (!
|
|
301
|
-
if ("" ===
|
|
302
|
-
const e5 =
|
|
303
|
-
e5 ? (
|
|
298
|
+
const t2 = 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") }, [ta.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(C, null, h(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: Sa, onExport: Ta }, null, 8, ["configure", "pageContext"])) : g("", true), y("input", { ref_key: "_selectFile_", ref: wa, type: "file", name: "_selectFile_", style: { display: "none" }, onChange: a2[0] || (a2[0] = (e4) => function() {
|
|
300
|
+
if (Ve.value) {
|
|
301
|
+
if (!wa.value) return;
|
|
302
|
+
if ("" === wa.value.value || null === wa.value.value) return;
|
|
303
|
+
const e5 = wa.value.files[0];
|
|
304
|
+
e5 ? (wa.value.value = null, G(Ve.value, e5)) : ie({ showClose: true, type: "warning", message: qe("superPageRuntimeMessage.noFileSelected") });
|
|
304
305
|
}
|
|
305
|
-
}()) }, null, 544),
|
|
306
|
+
}()) }, null, 544), Le.value || Je.value || He.value || Ue.value ? (v(), d(p(re), { key: 1, width: "60%", multiple: ze.value, onClose: Da }, 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: Na }, 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), la.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: Ca, 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, Te)), [[t2, _e.value || ((_d = p(sa)) == null ? void 0 : _d.isLoading)]]);
|
|
306
307
|
};
|
|
307
308
|
} });
|
|
308
309
|
export {
|
|
309
|
-
|
|
310
|
+
we as default
|
|
310
311
|
};
|