super-page-runtime 2.3.2-sit1 → 2.3.3-tmp1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/components/runtime/utils/api/page-expose-util.js +53 -53
- package/dist/es/components/runtime/utils/events/event-util.js +3 -3
- package/dist/es/components/runtime/utils/events/print-label.js +26 -25
- package/dist/es/components/runtime/utils/events/standard-event.js +18 -18
- package/dist/es/components/runtime/utils/events/validator-util.js +1 -1
- package/dist/es/components/runtime/utils/page-init-util.js +2 -1
- package/dist/es/components/runtime/utils/page-store.js +10 -10
- package/dist/es/components/runtime/utils/table-utils.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/table/chart-table-util.js +12 -7
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +19 -17
- package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +2 -0
- package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +12 -10
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +10 -9
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +32 -32
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +42 -41
- package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +5 -3
- package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +1 -0
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +1 -0
- package/dist/es/components/runtime/views/home-chart.vue.js +5 -5
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +1 -0
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +43 -42
- package/dist/es/style.css +76 -76
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, computed as l, onMounted as u, nextTick as a, resolveComponent as n, createElementBlock as i, createBlock as o, openBlock as
|
|
1
|
+
import { defineComponent as e, ref as t, computed as l, onMounted as u, nextTick as a, resolveComponent as n, createElementBlock as i, createBlock as o, openBlock as s, normalizeStyle as p, normalizeClass as r, unref as f, createElementVNode as c, toDisplayString as v, withCtx as y, createCommentVNode as g, createTextVNode as x } from "vue";
|
|
2
2
|
import { getFormModelFields as d } from "../../../../utils/page-init-util.js";
|
|
3
3
|
import { getVariableValue as m, formatValueByType as h } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import { SuperIcon as k } from "agilebuilder-ui";
|
|
@@ -7,7 +7,9 @@ import { $t as _ } from "../../../../utils/i18n-util.js";
|
|
|
7
7
|
const I = { style: { width: "100%", "text-align": "center", "font-weight": "700", "font-size": "24px", "margin-bottom": "20px" } }, b = { style: { overflow: "hidden", "white-space": "nowrap" } }, V = ["title"], j = e({ __name: "label-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: j2 }) {
|
|
8
8
|
const R = e2, S = R.pageContext.entity ? R.pageContext.entity : {};
|
|
9
9
|
let P = d(R.pageContext, R.configure);
|
|
10
|
-
const q = R.configure.runtime ? R.configure.runtime : {}, O = q.style, z = q.class, D = q.headerStyle, E = q.appendClass, F = q.appendStyle, W = q.titleExceedStyle, A = t(q.props ? q.props : {}), B = t(A.value.options ? A.value.options : []), G = A.value.formatType
|
|
10
|
+
const q = R.configure.runtime ? R.configure.runtime : {}, O = q.style, z = q.class, D = q.headerStyle, E = q.appendClass, F = q.appendStyle, W = q.titleExceedStyle, A = t(q.props ? q.props : {}), B = t(A.value.options ? A.value.options : []), G = A.value.formatType;
|
|
11
|
+
A.value;
|
|
12
|
+
const H = l(() => {
|
|
11
13
|
let e3 = m(S, P);
|
|
12
14
|
if (G) if (A.value.hasOptions) {
|
|
13
15
|
let t2 = null;
|
|
@@ -27,7 +29,7 @@ const I = { style: { width: "100%", "text-align": "center", "font-weight": "700"
|
|
|
27
29
|
B.value = e3 || [];
|
|
28
30
|
} }), (e3, t2) => {
|
|
29
31
|
const l2 = n("el-form-item");
|
|
30
|
-
return A.value.whetherTittle ? (
|
|
32
|
+
return A.value.whetherTittle ? (s(), i("div", { key: 0, ref_key: "titleRef", ref: L, class: r(f(z)), style: p(f(O)) }, [c("div", I, v(A.value.title), 1)], 6)) : A.value.tittleShow ? (s(), o(l2, { key: 1, ref_key: "formItemRef", ref: J, required: !!A.value.required, class: r(f(z)), "label-width": A.value.labelWidth, style: p(f(O)) }, { label: y(() => [A.value.tittleShow ? (s(), i("div", { key: 0, ref_key: "titleRef", ref: L, style: p({ ...f(D), ...f(W) }) }, v(f(_)(A.value.title)), 5)) : g("", true)]), default: y(() => [c("div", { style: { display: "flex", width: "100%", "justify-content": "space-between" }, ref_key: "componentRef", ref: K, onClick: t2[0] || (t2[0] = (t3) => f(C)(t3, e3.pageContext, e3.configure, "click")) }, [c("span", b, [A.value.preIconValue || A.value.preText ? (s(), i("span", { key: 0, class: r({ "el-input__suffix": "outer" != A.value.iconPosition, "el-input-group__append": "outer" == A.value.iconPosition }), style: p(f(F)) }, [A.value.preIconType && A.value.preIconValue ? (s(), o(f(k), { key: 0, iconType: A.value.preIconType, iconValue: A.value.preIconValue }, null, 8, ["iconType", "iconValue"])) : g("", true), x(" " + v(f(_)(A.value.preText)), 1)], 6)) : g("", true), x(" " + v(H.value), 1)]), A.value.sufIconValue || A.value.sufText ? (s(), i("span", { key: 0, class: r({ "el-input__suffix": "outer" != A.value.iconPosition, "el-input-group__append": "outer" == A.value.iconPosition }) }, [A.value.sufIconType && A.value.sufIconValue ? (s(), o(f(k), { key: 0, style: {}, iconType: A.value.sufIconType, iconValue: A.value.sufIconValue }, null, 8, ["iconType", "iconValue"])) : g("", true), c("span", null, " " + v(f(_)(A.value.sufText)), 1)], 2)) : g("", true)], 512)]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : (s(), i("span", { key: 2, style: { display: "flex", "justify-content": "space-between" }, onClick: t2[1] || (t2[1] = (t3) => f(C)(t3, e3.pageContext, e3.configure, "click")) }, [c("span", { style: { overflow: "hidden", "white-space": "nowrap" }, title: H.value }, v(A.value.prefixIcon) + " " + v(H.value), 9, V), A.value.suffixTxt ? (s(), i("span", { key: 0, class: r(f(E)), style: p(f(F)) }, v(A.value.suffixTxt), 7)) : g("", true)]));
|
|
31
33
|
};
|
|
32
34
|
} });
|
|
33
35
|
export {
|
|
@@ -5,6 +5,7 @@ import { handleAfterInitEvent as k, handleEvent as x } from "../../../../utils/e
|
|
|
5
5
|
import { $t as C } from "../../../../utils/i18n-util.js";
|
|
6
6
|
const _ = e({ __name: "link-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
|
|
7
7
|
const _2 = e2, h = y(_2.pageContext, _2.configure), R = _2.configure.runtime ? _2.configure.runtime : {}, j = R.style, w = R.class, I = R.headerStyle, S = t(R.props ? R.props : {});
|
|
8
|
+
S.value;
|
|
8
9
|
let $ = S.value.formatting;
|
|
9
10
|
const D = _2.pageContext.entity ? _2.pageContext.entity : {}, V = l(() => {
|
|
10
11
|
let e3 = b(D, h);
|
|
@@ -7,7 +7,7 @@ import { initPageEvents as p } from "../utils/events/event-util.js";
|
|
|
7
7
|
import { setHomeChartInitConfigValue as f } from "../utils/charts/chart-util.js";
|
|
8
8
|
const C = { "element-loading-text": "加载中..." }, v = e({ name: "HomeChart", inheritAttrs: false, __name: "home-chart", props: { chartCode: { type: String, default: "" }, homeChartSettingUserId: { type: Number, default: 0 } }, setup(e2) {
|
|
9
9
|
const v2 = e2, y = t(true), S = t(false), b = t({});
|
|
10
|
-
let I,
|
|
10
|
+
let I, H = t(null);
|
|
11
11
|
return v2.chartCode && g.get(window.$vueApp.config.globalProperties.baseAPI + "/mms/home-chart-layout/" + v2.chartCode).then((e3) => {
|
|
12
12
|
var _a, _b;
|
|
13
13
|
if (e3 && e3.designJson) {
|
|
@@ -18,17 +18,17 @@ const C = { "element-loading-text": "加载中..." }, v = e({ name: "HomeChart",
|
|
|
18
18
|
e4[v2.homeChartSettingUserId] && (t2.chartJson.runtime.headerInfo ? t2.chartJson.runtime.headerInfo.title = e4[v2.homeChartSettingUserId] : t2.chartJson.runtime.headerInfo = { textAlign: "center", title: e4[v2.homeChartSettingUserId] });
|
|
19
19
|
}
|
|
20
20
|
const i2 = window.frameElement;
|
|
21
|
-
b.value = t2.chartJson, b.value.homeChartSettingUserId = v2.homeChartSettingUserId, i2 && (b.value.runtime.common.style.pc_style.height = i2.clientHeight + "px");
|
|
21
|
+
b.value = t2.chartJson, b.value.homeChartSettingUserId = v2.homeChartSettingUserId, i2 && (i2.clientHeight, b.value.runtime.common.style.pc_style.height = i2.clientHeight + "px");
|
|
22
22
|
const n2 = { showHomepageSearch: false, name: e3.pageName, code: e3.pageCode, label: "", dimensions: "", version: 1, isWorkflowEntity: false, variables: t2.variables, systemCode: e3.systemCode, uuid: e3.uuid, allChartUuids: [], backendUrl: e3.backendUrl, rules: {}, pageType: "chart", beanName: t2.beanName, initChartServiceConfigs: [t2.initChartServiceConfigs], entity: { data: {}, task: {}, request: {}, page: {}, context: e3.contextParam, system: e3.systemParam } };
|
|
23
23
|
if (((_a = b.value.pushHomepage) == null ? void 0 : _a.searchConditions) && ((_b = b.value.pushHomepage) == null ? void 0 : _b.searchConditions.length) > 0 && (n2.showHomepageSearch = true), t2.variables) {
|
|
24
24
|
const e4 = n2.entity.page;
|
|
25
25
|
for (const a3 of t2.variables) a3.name && (a3.isArrayElement ? e4[a3.name] = [] : a3.defaultValue ? e4[a3.name] = a3.defaultValue : e4[a3.name] = void 0);
|
|
26
26
|
}
|
|
27
|
-
t2.initOptionConfigs && t2.initOptionConfigs.length > 0 && c(n2, t2.initOptionConfigs, void 0), f(b.value.pushHomepage.initConfig, n2, v2.homeChartSettingUserId), p(t2, n2),
|
|
27
|
+
t2.initOptionConfigs && t2.initOptionConfigs.length > 0 && c(n2, t2.initOptionConfigs, void 0), f(b.value.pushHomepage.initConfig, n2, v2.homeChartSettingUserId), p(t2, n2), H.value = n2, I = setTimeout(() => {
|
|
28
28
|
!function(e4, t3) {
|
|
29
29
|
if (!t3 || 0 == t3.length) return;
|
|
30
30
|
e4.initChartData = {}, e4.initChartData.data = u(e4.entity.data), e4.initChartData.page = u(e4.entity.page), t3 && t3.length > 0 && d(e4, t3, null, true);
|
|
31
|
-
}(
|
|
31
|
+
}(H.value, [t2.initChartServiceConfigs]);
|
|
32
32
|
}, 200);
|
|
33
33
|
} else S.value = true;
|
|
34
34
|
}).finally(() => {
|
|
@@ -37,7 +37,7 @@ const C = { "element-loading-text": "加载中..." }, v = e({ name: "HomeChart",
|
|
|
37
37
|
I && clearTimeout(I);
|
|
38
38
|
}), (e3, t2) => {
|
|
39
39
|
const a2 = i("loading");
|
|
40
|
-
return n((o(), r("div", C, [y.value ? l("", true) : (o(), s(h, { key: 0, configure: b.value, pageContext: m(
|
|
40
|
+
return n((o(), r("div", C, [y.value ? l("", true) : (o(), s(h, { key: 0, configure: b.value, pageContext: m(H) }, null, 8, ["configure", "pageContext"]))])), [[a2, y.value]]);
|
|
41
41
|
};
|
|
42
42
|
} });
|
|
43
43
|
export {
|
|
@@ -10,6 +10,7 @@ const s = ["src"], d = { key: 1, class: "amb-super-page-runtime-dialog-iframe",
|
|
|
10
10
|
const e4 = JSON.parse(JSON.stringify(p.parentPageEventParams));
|
|
11
11
|
e4.pageContext && delete e4.pageContext, e4.configureObj && delete e4.configureObj, Object.assign(b.value, e4);
|
|
12
12
|
} catch (e4) {
|
|
13
|
+
console.error(e4);
|
|
13
14
|
}
|
|
14
15
|
null !== w.value && void 0 !== w.value || (w.value = p.parentPageEventParams.id);
|
|
15
16
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as e, ref as l, onMounted as a, onUpdated as t, nextTick as u, onUnmounted as
|
|
1
|
+
import { defineComponent as e, ref as l, onMounted as a, onUpdated as t, nextTick as u, onUnmounted as o, createElementBlock as n, openBlock as i, createCommentVNode as s, normalizeStyle as r, normalizeClass as v, createBlock as p, createElementVNode as m, Fragment as g, renderList as c, unref as f, watch as d } from "vue";
|
|
2
2
|
import y from "./assemblys/object-render.vue.js";
|
|
3
3
|
import { updateOptionDatasources as h, updateChartDatasources as C } from "../utils/page-helper-util.js";
|
|
4
|
-
import { queryPageSuperGrids as b, queryPageDesignByCode as j, convertToPageContext as
|
|
5
|
-
import { addComponentRef as
|
|
4
|
+
import { queryPageSuperGrids as b, queryPageDesignByCode as j, convertToPageContext as P, packageAdditionalMapWithLocationSearch as k, packageAdditionalMapWithRoute as $, packageAdditionalMapWithPageRequest as x } from "../utils/page-init-util.js";
|
|
5
|
+
import { addComponentRef as S, removePageAllRef as D, initComponentRefState as N } from "../utils/global-refs.js";
|
|
6
6
|
import { removeCustomFuncFromWindow as q, handleEvent as w, initPageEvents as O, getCustomFunc as T } from "../utils/events/event-util.js";
|
|
7
7
|
import R from "./assemblys/common/export-form-report-dialog.vue.js";
|
|
8
8
|
import _ from "./assemblys/common/task-informition-dialog.vue.js";
|
|
@@ -18,22 +18,22 @@ import le from "./super-page-dialog.vue.js";
|
|
|
18
18
|
/* empty css */
|
|
19
19
|
import { useRoute as ae, useRouter as te } from "vue-router";
|
|
20
20
|
import { jumpToPage as ue } from "agilebuilder-ui/src/utils/jump-page-utils";
|
|
21
|
-
import { setSessionCache as
|
|
21
|
+
import { setSessionCache as oe, getUsername as ne } from "agilebuilder-ui/src/utils/auth";
|
|
22
22
|
import { deepCopy as ie, refreshMobileDialogType as se } from "../utils/common-util.js";
|
|
23
23
|
import { isMobileBrowser as re } from "agilebuilder-ui/src/utils/common-util";
|
|
24
24
|
import { usePageContextStore as ve } from "../utils/page-store.js";
|
|
25
25
|
import pe from "agilebuilder-ui/src/store";
|
|
26
26
|
import me from "./assemblys/common/save-chart-condition-dialog.vue.js";
|
|
27
27
|
const ge = { class: "app-container runtime-page-container" }, ce = e({ __name: "super-page", props: { pageCode: { type: String, required: false }, pageVersion: { type: Number, required: false }, pageId: { type: Number, required: false }, dataId: { type: Number, required: false }, pageDesign: { type: Object, required: false }, isTest: { type: Boolean, required: false }, dimensions: { type: String, required: false }, publishVersion: { type: Number, required: false }, taskId: { type: Number, required: false }, pageRequest: { type: Object, required: false }, contentHeight: { type: [String, Number], default: null }, isDialog: { type: Boolean, required: false } }, emits: ["open", "opened", "close", "closed"], setup(e2, { expose: ce2, emit: fe }) {
|
|
28
|
-
const de = ve(), { t: ye } = Y(), he = e2, Ce = l(null), be = l([]), je = l(""),
|
|
28
|
+
const de = ve(), { t: ye } = Y(), he = e2, Ce = l(null), be = l([]), je = l(""), Pe = l({}), ke = l(null), $e = l(null), xe = l(false), Se = l(false), De = l(false), Ne = l(false), qe = l(false), we = l(null), Oe = l(false), Te = l([]), Re = l([]), _e = l(false), Ie = l(null), Me = l(false), Fe = l(false), Ve = l(null), Ee = l(null), Be = l(null), Je = l(null);
|
|
29
29
|
let We = l(null);
|
|
30
30
|
const Le = l(null), Ue = l(null), Ge = ae(), He = l(0), ze = re();
|
|
31
31
|
let Ae, Ke, Qe;
|
|
32
32
|
const Xe = l(false), Ye = l(null);
|
|
33
33
|
function Ze(e3) {
|
|
34
34
|
var _a;
|
|
35
|
-
const l2 =
|
|
36
|
-
if (l2.isTest = he.isTest, l2.isTest && he.dimensions && (l2.dimensions = he.dimensions), he.isDialog || (
|
|
35
|
+
const l2 = P(e3);
|
|
36
|
+
if (l2.isTest = he.isTest, l2.isTest && he.dimensions && (l2.dimensions = he.dimensions), he.isDialog || (k(l2.entity.request), $(Ge, l2.entity.request)), x(he.pageRequest, l2.entity.request), We.value = l2, null == We.value) return;
|
|
37
37
|
Ae = setTimeout(() => {
|
|
38
38
|
!function(e4, l3) {
|
|
39
39
|
if (!l3 || 0 == l3.length) return;
|
|
@@ -41,13 +41,13 @@ const ge = { class: "app-container runtime-page-container" }, ce = e({ __name: "
|
|
|
41
41
|
a3 && a3.length > 0 && h(e4, a3, void 0);
|
|
42
42
|
}(We.value, e3.initOptionConfigs);
|
|
43
43
|
}, 0), Ke = setTimeout(() => {
|
|
44
|
-
|
|
44
|
+
e3.initChartServiceConfigs, function(e4, l3) {
|
|
45
45
|
if (!l3 || 0 == l3.length) return;
|
|
46
46
|
e4.initChartData = {}, e4.initChartData.data = ie(e4.entity.data), e4.initChartData.page = ie(e4.entity.page), l3 && l3.length > 0 && C(e4, l3, null, true);
|
|
47
47
|
}(We.value, e3.initChartServiceConfigs);
|
|
48
|
-
}, 200), We.value.initDataSources = [],
|
|
48
|
+
}, 200), We.value.initDataSources = [], N(We.value), be.value = We.value.items ? We.value.items : [];
|
|
49
49
|
const a2 = We.value.runtime ? We.value.runtime : {};
|
|
50
|
-
je.value = a2.class,
|
|
50
|
+
je.value = a2.class, Pe.value = a2.style, O(e3, We.value), ee(We.value.rules), w(null, We.value, e3, "beforeload");
|
|
51
51
|
const t2 = We.value.code;
|
|
52
52
|
return de.setPageContext(We.value), we.value = t2 + "_", M.$on(we.value + "export-form-report", (e4) => {
|
|
53
53
|
$e.value = e4, Le.value = e4.configureObj, Ue.value = e4.pageContext, xe.value = true;
|
|
@@ -56,11 +56,11 @@ const ge = { class: "app-container runtime-page-container" }, ce = e({ __name: "
|
|
|
56
56
|
}), M.$on(we.value + "import-file", (e4) => {
|
|
57
57
|
$e.value = e4, ul.value.click();
|
|
58
58
|
}), M.$on(we.value + "assign-task", (e4) => {
|
|
59
|
-
$e.value = e4,
|
|
59
|
+
$e.value = e4, Ne.value = true, qe.value = false;
|
|
60
60
|
}), M.$on(we.value + "copy-task", (e4) => {
|
|
61
|
-
$e.value = e4, Ne.value = true, qe.value = true;
|
|
62
|
-
}), M.$on(we.value + "add-signer", (e4) => {
|
|
63
61
|
$e.value = e4, De.value = true, qe.value = true;
|
|
62
|
+
}), M.$on(we.value + "add-signer", (e4) => {
|
|
63
|
+
$e.value = e4, Se.value = true, qe.value = true;
|
|
64
64
|
}), M.$on(we.value + "choose-return-node", (e4) => {
|
|
65
65
|
$e.value = e4, F(e4).then((e5) => {
|
|
66
66
|
Te.value = e5, Oe.value = true;
|
|
@@ -85,14 +85,15 @@ const ge = { class: "app-container runtime-page-container" }, ce = e({ __name: "
|
|
|
85
85
|
if (a5 && a5.jumpPageUrl) {
|
|
86
86
|
false !== a5.isNewPage && true !== a5.isNewPage && (a5.isNewPage = true);
|
|
87
87
|
const e6 = Q(We), u3 = !!((_a2 = Be.value.props.linkPage) == null ? void 0 : _a2.isNeedId);
|
|
88
|
-
|
|
88
|
+
Be.value;
|
|
89
|
+
let o2 = u3 && l4 ? l4.id : null, n2 = u3 && l4 ? l4.ids : null, i2 = l4 ? l4.selections : [], s2 = l4 ? l4.row : null;
|
|
89
90
|
if (!s2) if (s2 = {}, i2 && i2.length > 0) s2 = i2[0];
|
|
90
91
|
else {
|
|
91
92
|
const e7 = Ee.value.entity.data, l5 = Ee.value.entity.page;
|
|
92
93
|
l5 && Object.assign(s2, l5), e7 && Object.assign(s2, e7);
|
|
93
94
|
}
|
|
94
95
|
const r2 = ie(Ee.value.entity.page);
|
|
95
|
-
a5._pageData = r2, ue(a5, null,
|
|
96
|
+
a5._pageData = r2, ue(a5, null, o2, s2, e6, n2).then((e7) => {
|
|
96
97
|
e7.isNeedId = u3, t4(e7);
|
|
97
98
|
});
|
|
98
99
|
} else t4(false);
|
|
@@ -103,25 +104,25 @@ const ge = { class: "app-container runtime-page-container" }, ce = e({ __name: "
|
|
|
103
104
|
let a4 = {};
|
|
104
105
|
const t4 = l3 && l3.props && l3.props.linkPage ? l3.props.linkPage : null;
|
|
105
106
|
t4 && Object.assign(a4, ie(t4)), Object.assign(a4, e5), se(a4, ze);
|
|
106
|
-
const u2 = a4.jumpMode,
|
|
107
|
-
if (Je.value || (Je.value = {}), Je.value.paramStoreId = a4.paramStoreId,
|
|
108
|
-
const e6 =
|
|
107
|
+
const u2 = a4.jumpMode, o2 = a4;
|
|
108
|
+
if (Je.value || (Je.value = {}), Je.value.paramStoreId = a4.paramStoreId, o2.parentPageCode = Ee.value.code, o2.parentPageVersion = Ee.value.version, o2.isNewPage = true, "popup" === u2 || "refresh" === u2) {
|
|
109
|
+
const e6 = o2.linkType;
|
|
109
110
|
(function(e7, l4) {
|
|
110
|
-
const a5 =
|
|
111
|
+
const a5 = ne();
|
|
111
112
|
return new Promise((t5, u3) => {
|
|
112
113
|
if (a5) if ("popup" !== l4 && !ze || Ee.value.systemCode === e7.customSystem) t5(true);
|
|
113
|
-
else {
|
|
114
|
+
else if (e7.customSystem) {
|
|
114
115
|
const l5 = e7.customSystem;
|
|
115
116
|
pe.dispatch("getCurrentUserPermissions", { loginName: a5, systemCode: l5 }).then(() => {
|
|
116
117
|
t5(true);
|
|
117
118
|
}).catch(() => {
|
|
118
119
|
t5(true);
|
|
119
120
|
});
|
|
120
|
-
}
|
|
121
|
+
} else X({ showClose: true, type: "error", message: "弹框参数缺少customSystem参数" }), console.error("弹框参数缺少customSystem参数,parentPageContext.value.systemCode={}", Ee.value.systemCode), t5(false);
|
|
121
122
|
else t5(true);
|
|
122
123
|
});
|
|
123
|
-
})(
|
|
124
|
-
ze && (Ee.value.systemCode !==
|
|
124
|
+
})(o2, u2).then((l4) => {
|
|
125
|
+
l4 && (ze && (Ee.value.systemCode !== o2.customSystem || e6 && "url" === e6) ? (o2._isIframe = true, "refresh" === u2 && (o2.dialogType = "drawer", o2.jumpPageWidth = "100%"), Ve.value = o2, Fe.value = true) : (o2._isIframe = false, "popup" === u2 ? (Ve.value = o2, Fe.value = true) : "refresh" === u2 && sl.push({ path: "/dsc/page", query: o2 })));
|
|
125
126
|
}), M.$on(we.value + "close-dialog", (e7) => {
|
|
126
127
|
!function(e8) {
|
|
127
128
|
const l4 = e8.jumpMode;
|
|
@@ -129,7 +130,7 @@ const ge = { class: "app-container runtime-page-container" }, ce = e({ __name: "
|
|
|
129
130
|
}(e7);
|
|
130
131
|
});
|
|
131
132
|
}
|
|
132
|
-
}
|
|
133
|
+
} else console.error("页面配置信息不存在");
|
|
133
134
|
});
|
|
134
135
|
}), M.$on(we.value + "save-chart-condition", (e4) => {
|
|
135
136
|
Xe.value = true;
|
|
@@ -149,7 +150,7 @@ const ge = { class: "app-container runtime-page-container" }, ce = e({ __name: "
|
|
|
149
150
|
}
|
|
150
151
|
function ll() {
|
|
151
152
|
const e3 = We.value.entity.data, l2 = null == e3.ID ? e3.id : e3.ID;
|
|
152
|
-
Ge.query && Ge.query._t_ && l2 &&
|
|
153
|
+
Ge.query && Ge.query._t_ && l2 && oe(Ge.query._t_ + "_id", l2);
|
|
153
154
|
}
|
|
154
155
|
function al() {
|
|
155
156
|
xe.value = false, $e.value = null;
|
|
@@ -159,7 +160,7 @@ const ge = { class: "app-container runtime-page-container" }, ce = e({ __name: "
|
|
|
159
160
|
"export-pdf" === e3.name && (a2 = true), B($e.value.pageContext, $e.value.configureObj, l2, a2);
|
|
160
161
|
}
|
|
161
162
|
a(() => {
|
|
162
|
-
null != he.pageDesign ? (
|
|
163
|
+
null != he.pageDesign ? (ke.value = he.pageDesign, Qe = setTimeout(() => {
|
|
163
164
|
Ze(he.pageDesign).then(() => {
|
|
164
165
|
he.pageDesign.tableRuntimes && Object.keys(he.pageDesign.tableRuntimes).length > 0 ? b(he.pageDesign, We.value, he.publishVersion).then((e3) => {
|
|
165
166
|
We.value.isWorkflowEntity = e3.isWorkflowEntity, We.value.dataTypeMaps = e3.dataTypeMaps, We.value.superGridItems = e3.superGrids;
|
|
@@ -171,23 +172,23 @@ const ge = { class: "app-container runtime-page-container" }, ce = e({ __name: "
|
|
|
171
172
|
}, 0)) : he.pageCode && j(he.pageCode).then((e3) => {
|
|
172
173
|
if (e3 && e3.designJson) {
|
|
173
174
|
const l2 = e3.designJson, a2 = JSON.parse(l2);
|
|
174
|
-
|
|
175
|
+
ke.value = a2, Ze(a2).then(() => {
|
|
175
176
|
ll(), Me.value = true, el();
|
|
176
177
|
});
|
|
177
178
|
}
|
|
178
179
|
});
|
|
179
180
|
}), t(() => {
|
|
180
181
|
u(() => {
|
|
181
|
-
We.value && Ce.value &&
|
|
182
|
+
We.value && Ce.value && S(We.value, "-1", Ce);
|
|
182
183
|
});
|
|
183
|
-
}),
|
|
184
|
-
|
|
184
|
+
}), o(() => {
|
|
185
|
+
D(We.value), ke.value && q(ke.value), M.$off(we.value + "export-form-report"), M.$off(we.value + "export-pdf-report"), M.$off(we.value + "import-file"), M.$off(we.value + "assign-task"), M.$off(we.value + "copy-task"), M.$off(we.value + "add-signer"), M.$off(we.value + "choose-return-node"), M.$off(we.value + "remove-signer"), M.$off(we.value + "prohibit-edit"), M.$off(we.value + "open-dialog"), M.$off(we.value + "save-chart-condition"), M.$off("pageLoaded"), We.value && w(null, We.value, We.value, "onUnmounted"), Ae && clearTimeout(Ae), Ke && clearTimeout(Ke), Qe && clearTimeout(Qe);
|
|
185
186
|
});
|
|
186
187
|
const ul = l(null);
|
|
187
|
-
function nl(e3) {
|
|
188
|
-
true === De.value && (De.value = false, W($e.value, e3)), true === Ne.value && (Ne.value = false, L($e.value, e3)), true === Se.value && (Se.value = false, U($e.value, e3));
|
|
189
|
-
}
|
|
190
188
|
function ol(e3) {
|
|
189
|
+
true === Se.value && (Se.value = false, W($e.value, e3)), true === De.value && (De.value = false, L($e.value, e3)), true === Ne.value && (Ne.value = false, U($e.value, e3));
|
|
190
|
+
}
|
|
191
|
+
function nl(e3) {
|
|
191
192
|
Te.value = [], Oe.value = false, G($e.value, e3);
|
|
192
193
|
}
|
|
193
194
|
function il(e3) {
|
|
@@ -198,26 +199,26 @@ const ge = { class: "app-container runtime-page-container" }, ce = e({ __name: "
|
|
|
198
199
|
var _a, _b;
|
|
199
200
|
const l2 = Ve.value.closeEvent, a2 = Ve.value.isRefreshWhenClosePopup;
|
|
200
201
|
let t2, u2;
|
|
201
|
-
const
|
|
202
|
-
let
|
|
202
|
+
const o2 = Ee.value.tableName;
|
|
203
|
+
let n2;
|
|
203
204
|
const i2 = Je.value.columnProp ? Je.value.columnProp : null;
|
|
204
205
|
if (i2) {
|
|
205
206
|
const e4 = (_b = (_a = Be.value) == null ? void 0 : _a.items) == null ? void 0 : _b.filter((e5) => {
|
|
206
207
|
var _a2, _b2, _c, _d;
|
|
207
208
|
return ((_b2 = (_a2 = e5.props) == null ? void 0 : _a2.base) == null ? void 0 : _b2.prop) && ((_d = (_c = e5.props) == null ? void 0 : _c.base) == null ? void 0 : _d.prop) === i2;
|
|
208
209
|
});
|
|
209
|
-
|
|
210
|
-
} else
|
|
210
|
+
n2 = e4 && e4.length > 0 ? e4[0] : null;
|
|
211
|
+
} else n2 = Be.value;
|
|
211
212
|
if (e3) {
|
|
212
213
|
const l3 = e3.isNeedValueMapping;
|
|
213
|
-
t2 = e3.dataModel, u2 = e3.sourceTableName, l3 && z(Ee.value,
|
|
214
|
+
t2 = e3.dataModel, u2 = e3.sourceTableName, l3 && z(Ee.value, n2, t2, u2, Ve.value ? Ve.value.valueMappings : null);
|
|
214
215
|
}
|
|
215
|
-
w(null, Ee.value,
|
|
216
|
+
w(null, Ee.value, n2, "closePopup", { sourceModel: t2, sourceTableName: u2, jumpPageSetting: Ve.value, entity: Ee.value.entity.data, targetTableName: o2, pageContext: We.value, parentPageContext: Ee.value, parentConfigureObj: n2, columnProp: i2 }), function(e4, l3, a3) {
|
|
216
217
|
if (e4) {
|
|
217
218
|
const t3 = T(Ee.value, e4);
|
|
218
219
|
t3 && t3.apply(t3, [{ pageContext: We.value, parentPageContext: Ee.value, parentConfigureObj: a3, jumpPageSetting: Ve.value, columnProp: l3 }]);
|
|
219
220
|
}
|
|
220
|
-
}(l2, i2,
|
|
221
|
+
}(l2, i2, n2), A(Ee.value, Be.value, a2, void 0 !== a2 && false === a2 ? "noOperation" : null), Ee.value = null, Be.value = null, Je.value = null, M.$off(we.value + "close-dialog"), Fe.value = false;
|
|
221
222
|
}
|
|
222
223
|
function vl(e3) {
|
|
223
224
|
K(We.value, e3).then((e4) => {
|
|
@@ -238,14 +239,14 @@ const ge = { class: "app-container runtime-page-container" }, ce = e({ __name: "
|
|
|
238
239
|
}, scanDone: function(e3) {
|
|
239
240
|
let l2 = e3.componentId, a2 = e3.listCode;
|
|
240
241
|
(l2 || a2) && (a2 ? M.$emit(a2 + "-scanDone", e3) : M.$emit(l2 + "-scanDone", e3));
|
|
241
|
-
} }), (e3, l2) => (i(),
|
|
242
|
+
} }), (e3, l2) => (i(), n("div", ge, [Me.value ? (i(), n("div", { ref_key: "thisRef", ref: Ce, key: He.value, class: v(["runtime-page-container-view", je.value]), style: r(Pe.value) }, [(i(true), n(g, null, c(be.value, (e4, l3) => (i(), p(y, { key: e4.uuid, configure: e4, pageContext: f(We) }, null, 8, ["configure", "pageContext"]))), 128)), xe.value ? (i(), p(R, { key: 0, configure: Le.value, pageContext: Ue.value, onClose: al, onExport: tl }, null, 8, ["configure", "pageContext"])) : s("", true), m("input", { ref_key: "_selectFile_", ref: ul, type: "file", name: "_selectFile_", style: { display: "none" }, onChange: l2[0] || (l2[0] = (e4) => function() {
|
|
242
243
|
if ($e.value) {
|
|
243
244
|
if (!ul.value) return;
|
|
244
245
|
if ("" === ul.value.value || null === ul.value.value) return;
|
|
245
246
|
const e5 = ul.value.files[0];
|
|
246
247
|
e5 ? (ul.value.value = null, J($e.value, e5)) : X({ showClose: true, type: "warning", message: ye("superPageRuntimeMessage.noFileSelected") });
|
|
247
248
|
}
|
|
248
|
-
}()) }, null, 544),
|
|
249
|
+
}()) }, null, 544), Se.value || De.value || Ne.value ? (i(), p(f(Z), { key: 1, width: "60%", multiple: qe.value, onClose: ol }, null, 8, ["multiple"])) : s("", true), Oe.value ? (i(), p(_, { key: 2, "task-informitions": Te.value, onClose: l2[1] || (l2[1] = (e4) => Oe.value = false), onResult: nl }, null, 8, ["task-informitions"])) : s("", true), _e.value ? (i(), p(I, { key: 3, "task-id": Ie.value, "active-tasks": Re.value, onClose: l2[2] || (l2[2] = (e4) => _e.value = false), onResult: il }, null, 8, ["task-id", "active-tasks"])) : s("", true), Fe.value ? (i(), p(le, { key: 4, parentPageContext: Ee.value, parentPageEventParams: Je.value, jumpPageSetting: Ve.value, onClose: l2[3] || (l2[3] = (e4) => rl()) }, null, 8, ["parentPageContext", "parentPageEventParams", "jumpPageSetting"])) : s("", true), Xe.value ? (i(), p(me, { key: 5, ref_key: "chartCondtionRef", ref: Ye, pageContext: f(We), onClose: l2[4] || (l2[4] = (e4) => Xe.value = false), onSave: vl, onConfirm: pl }, null, 8, ["pageContext"])) : s("", true)], 6)) : s("", true)]));
|
|
249
250
|
} });
|
|
250
251
|
export {
|
|
251
252
|
ce as default
|