super-page-runtime 2.3.12-sit1 → 2.3.12
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 +50 -50
- 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 +10 -10
- package/dist/es/components/runtime/utils/events/validator-util.js +1 -1
- package/dist/es/components/runtime/utils/page-init-util.js +25 -24
- 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 +98 -93
- package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +11 -9
- 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 +27 -23
- package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +4 -4
- package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +4 -4
- 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 +1 -1
- package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +35 -34
- 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 +15 -14
- package/dist/es/components/runtime/views/home-chart.vue.js +7 -7
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +4 -3
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +156 -148
- package/dist/es/style.css +82 -79
- package/package.json +2 -2
|
@@ -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,15 +1,16 @@
|
|
|
1
1
|
import { defineComponent as e, ref as a, resolveComponent as l, createBlock as u, openBlock as t, withCtx as n, createElementBlock as o, createCommentVNode as r } from "vue";
|
|
2
2
|
import i from "./super-page.vue.js";
|
|
3
3
|
const s = ["src"], d = { key: 1, class: "amb-super-page-runtime-dialog-iframe", frameborder: "0", marginwidth: "0", marginheight: "0", width: "100%", allowtransparency: "no" }, g = e({ __name: "super-page-dialog", props: { parentPageContext: {}, parentPageEventParams: {}, jumpPageSetting: {}, isTest: { type: Boolean }, customParams: {} }, emits: ["open", "opened", "close", "closed"], setup(e2, { emit: g2 }) {
|
|
4
|
-
const p = e2, v = g2, m = a(true), c = p.jumpPageSetting ? p.jumpPageSetting : null, P = a(null), f = a(null), h = a(null), w = a(null), C = a(null), j = a(null), b = a({}), y = a(false), k = a(false), O = a("rtl"), I = a(null), _ = a(false),
|
|
4
|
+
const p = e2, v = g2, m = a(true), c = p.jumpPageSetting ? p.jumpPageSetting : null, P = a(null), f = a(null), h = a(null), w = a(null), C = a(null), j = a(null), b = a({}), y = a(false), k = a(false), O = a("rtl"), I = a(null), _ = a(false), x = a(null), V = a(true), S = a(false);
|
|
5
5
|
if (c) {
|
|
6
|
-
|
|
6
|
+
V.value = (c == null ? void 0 : c.alignCenter) ?? true, S.value = (c == null ? void 0 : c.fullscreen) ?? false, _.value = !(!c || void 0 === c._isIframe) && c._isIframe, x.value = c && c._path ? c._path : null, j.value = c && c.dialogType ? c.dialogType : "dialog", y.value = !(!c || !c.draggable) && c.draggable, k.value = !(!c || !c.overflow) && c.overflow, O.value = c && c.showPosition ? c.showPosition : "rtl", f.value = c && c.jumpPageTitle ? c.jumpPageTitle : null, P.value = c && c.jumpPageWidth ? c.jumpPageWidth : "dialog" === j.value ? "calc(100% - 30px)" : "100%", I.value = c && c.jumpPageHeight ? c.jumpPageHeight : null, h.value = c && c.pageCode, w.value = c && c.dataId ? c.dataId : null, C.value = c && c.taskId ? c.taskId : null;
|
|
7
7
|
const e3 = !!c.isNeedId;
|
|
8
8
|
if (p.parentPageEventParams) {
|
|
9
9
|
try {
|
|
10
10
|
const e4 = JSON.parse(JSON.stringify(p.parentPageEventParams));
|
|
11
11
|
e4.pageContext && delete e4.pageContext, e4.configureObj && delete e4.configureObj, Object.assign(b.value, e4);
|
|
12
12
|
} catch (e4) {
|
|
13
|
+
console.error(e4);
|
|
13
14
|
}
|
|
14
15
|
null !== w.value && void 0 !== w.value || (w.value = p.parentPageEventParams.id);
|
|
15
16
|
}
|
|
@@ -17,7 +18,7 @@ const s = ["src"], d = { key: 1, class: "amb-super-page-runtime-dialog-iframe",
|
|
|
17
18
|
}
|
|
18
19
|
return (e3, a2) => {
|
|
19
20
|
const g3 = l("el-drawer"), p2 = l("el-dialog");
|
|
20
|
-
return j.value && "drawer" === j.value ? (t(), u(g3, { key: 0, modelValue: m.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e4) => m.value = e4), title: f.value, direction: O.value, size: P.value, class: "content-drawer amb-super-page-runtime-drawer-view", onOpen: a2[1] || (a2[1] = (e4) => v("open")), onOpened: a2[2] || (a2[2] = (e4) => v("opened")), onClose: a2[3] || (a2[3] = (e4) => v("close")), onClosed: a2[4] || (a2[4] = (e4) => v("closed")) }, { default: n(() => [!_.value && h.value ? (t(), u(i, { key: 0, pageCode: h.value, pageRequest: b.value, isDialog: true }, null, 8, ["pageCode", "pageRequest"])) : _.value ? (t(), o("iframe", { key: 1, src:
|
|
21
|
+
return j.value && "drawer" === j.value ? (t(), u(g3, { key: 0, modelValue: m.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e4) => m.value = e4), title: f.value, direction: O.value, size: P.value, class: "content-drawer amb-super-page-runtime-drawer-view", onOpen: a2[1] || (a2[1] = (e4) => v("open")), onOpened: a2[2] || (a2[2] = (e4) => v("opened")), onClose: a2[3] || (a2[3] = (e4) => v("close")), onClosed: a2[4] || (a2[4] = (e4) => v("closed")) }, { default: n(() => [!_.value && h.value ? (t(), u(i, { key: 0, pageCode: h.value, pageRequest: b.value, isDialog: true }, null, 8, ["pageCode", "pageRequest"])) : _.value ? (t(), o("iframe", { key: 1, src: x.value, class: "amb-super-page-runtime-drawer-iframe", frameborder: "0", marginwidth: "0", marginheight: "0", width: "100%", allowtransparency: "no" }, null, 8, s)) : r("", true)]), _: 1 }, 8, ["modelValue", "title", "direction", "size"])) : (t(), u(p2, { key: 1, "model-value": "", title: f.value, "close-on-click-modal": false, "append-to-body": "", width: P.value, fullscreen: S.value, alignCenter: V.value, draggable: y.value, overflow: k.value, class: "amb-super-page-runtime-dialog-view", onOpen: a2[5] || (a2[5] = (a3) => e3.$emit("open")), onOpend: a2[6] || (a2[6] = (a3) => e3.$emit("opend")), onClose: a2[7] || (a2[7] = (e4) => v("close")), onClosed: a2[8] || (a2[8] = (a3) => e3.$emit("closed")) }, { default: n(() => [!_.value && h.value ? (t(), u(i, { key: 0, style: { "min-height": "100px" }, pageCode: h.value, pageRequest: b.value, contentHeight: I.value, isDialog: true }, null, 8, ["pageCode", "pageRequest", "contentHeight"])) : _.value ? (t(), o("iframe", d)) : r("", true)]), _: 1 }, 8, ["title", "width", "fullscreen", "alignCenter", "draggable", "overflow"]));
|
|
21
22
|
};
|
|
22
23
|
} });
|
|
23
24
|
export {
|
|
@@ -1,82 +1,82 @@
|
|
|
1
|
-
import { defineComponent as e, ref as l, onMounted as a, onUpdated as t, nextTick as u, onUnmounted as n,
|
|
2
|
-
import
|
|
3
|
-
import { updateOptionDatasources as
|
|
4
|
-
import { queryPageSuperGrids as
|
|
5
|
-
import { addComponentRef as
|
|
6
|
-
import { removeCustomFuncFromWindow as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import { getTaskInformitions as
|
|
1
|
+
import { defineComponent as e, ref as l, onMounted as a, onUpdated as t, nextTick as u, onUnmounted as n, resolveDirective as o, withDirectives as i, createElementBlock as s, openBlock as r, createCommentVNode as v, normalizeStyle as p, normalizeClass as m, createBlock as g, createElementVNode as c, Fragment as f, renderList as d, unref as y, watch as h } from "vue";
|
|
2
|
+
import C from "./assemblys/object-render.vue.js";
|
|
3
|
+
import { updateOptionDatasources as b, updateChartDatasources as j } from "../utils/page-helper-util.js";
|
|
4
|
+
import { queryPageSuperGrids as P, queryPageDesignByCode as k, convertToPageContext as $, packageAdditionalMapWithLocationSearch as x, packageAdditionalMapWithRoute as S, packageAdditionalMapWithPageRequest as D } from "../utils/page-init-util.js";
|
|
5
|
+
import { addComponentRef as N, removePageAllRef as q, initComponentRefState as w } from "../utils/global-refs.js";
|
|
6
|
+
import { removeCustomFuncFromWindow as O, handleEvent as R, initPageEvents as T, getCustomFunc as _ } from "../utils/events/event-util.js";
|
|
7
|
+
import I from "./assemblys/common/export-form-report-dialog.vue.js";
|
|
8
|
+
import M from "./assemblys/common/task-informition-dialog.vue.js";
|
|
9
|
+
import F from "./assemblys/common/remove-signer-dialog.vue.js";
|
|
10
|
+
import V from "../utils/eventBus.js";
|
|
11
|
+
import { getTaskInformitions as E, getRemoveSigner as B, getFormData as J, exportFormReport as W, doImportFinally as L, doAddSigner as U, doCreateCopyTask as G, doAssign as H, doReturnTaskTo as z, doRemoveSigners as A, updateValuesWhenCloseDialog as K, refreshFormOrListPage as Q, saveChartConditionBase as X, getAdditionalParamMap as Y } from "../utils/events/standard-event.js";
|
|
12
12
|
import "../utils/api/api-util.js";
|
|
13
|
-
import { ElMessage as
|
|
14
|
-
import { useI18n as
|
|
15
|
-
import { DepartmentUserTree as
|
|
16
|
-
import { i18nValidateRulesMessage as
|
|
17
|
-
import
|
|
13
|
+
import { ElMessage as Z } from "element-plus";
|
|
14
|
+
import { useI18n as ee } from "vue-i18n";
|
|
15
|
+
import { DepartmentUserTree as le } from "agilebuilder-ui";
|
|
16
|
+
import { i18nValidateRulesMessage as ae } from "../utils/events/validator-util.js";
|
|
17
|
+
import te from "./super-page-dialog.vue.js";
|
|
18
18
|
/* empty css */
|
|
19
|
-
import { useRoute as
|
|
20
|
-
import { jumpToPage as
|
|
21
|
-
import { setSessionCache as
|
|
22
|
-
import { deepCopy as
|
|
23
|
-
import { isMobileBrowser as
|
|
24
|
-
import { usePageContextStore as
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
const
|
|
28
|
-
const
|
|
29
|
-
let
|
|
30
|
-
const
|
|
31
|
-
let
|
|
32
|
-
const
|
|
33
|
-
function
|
|
19
|
+
import { useRoute as ue, useRouter as ne } from "vue-router";
|
|
20
|
+
import { jumpToPage as oe } from "agilebuilder-ui/src/utils/jump-page-utils";
|
|
21
|
+
import { setSessionCache as ie, getUsername as se } from "agilebuilder-ui/src/utils/auth";
|
|
22
|
+
import { deepCopy as re, refreshMobileDialogType as ve } from "../utils/common-util.js";
|
|
23
|
+
import { isMobileBrowser as pe } from "agilebuilder-ui/src/utils/common-util";
|
|
24
|
+
import { usePageContextStore as me } from "../utils/page-store.js";
|
|
25
|
+
import ge from "agilebuilder-ui/src/store";
|
|
26
|
+
import ce from "./assemblys/common/save-chart-condition-dialog.vue.js";
|
|
27
|
+
const fe = { class: "app-container runtime-page-container", "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 } }, emits: ["open", "opened", "close", "closed"], setup(e2, { expose: de2, emit: ye }) {
|
|
28
|
+
const he = me(), { t: Ce } = ee(), be = e2, je = l(false), Pe = l(null), ke = l([]), $e = l(""), xe = l({}), Se = l(null), De = l(null), Ne = l(false), qe = l(false), we = l(false), Oe = l(false), Re = l(false), Te = l(null), _e = l(false), Ie = l([]), Me = l([]), Fe = l(false), Ve = l(null), Ee = l(false), Be = l(false), Je = l(null), We = l(null), Le = l(null), Ue = l(null);
|
|
29
|
+
let Ge = l(null);
|
|
30
|
+
const He = l(null), ze = l(null), Ae = ue(), Ke = l(0), Qe = pe();
|
|
31
|
+
let Xe, Ye, Ze;
|
|
32
|
+
const el = l(false), ll = l(null), al = l(false);
|
|
33
|
+
function tl(e3) {
|
|
34
34
|
var _a;
|
|
35
|
-
const l2 =
|
|
36
|
-
if (l2.isTest =
|
|
37
|
-
|
|
35
|
+
const l2 = $(e3);
|
|
36
|
+
if (l2.isTest = be.isTest, l2.isTest && be.dimensions && (l2.dimensions = be.dimensions), be.isDialog || (x(l2.entity.request), S(Ae, l2.entity.request)), D(be.pageRequest, l2.entity.request), Ge.value = l2, null == Ge.value) return;
|
|
37
|
+
Xe = setTimeout(() => {
|
|
38
38
|
!function(e4, l3) {
|
|
39
39
|
if (!l3 || 0 == l3.length) return;
|
|
40
40
|
const a3 = l3.filter((e5) => "remote" != e5.filterType);
|
|
41
|
-
a3 && a3.length > 0 &&
|
|
42
|
-
}(
|
|
43
|
-
}, 0),
|
|
44
|
-
|
|
41
|
+
a3 && a3.length > 0 && b(e4, a3, void 0);
|
|
42
|
+
}(Ge.value, e3.initOptionConfigs);
|
|
43
|
+
}, 0), Ye = setTimeout(() => {
|
|
44
|
+
e3.initChartServiceConfigs, function(e4, l3) {
|
|
45
45
|
if (!l3 || 0 == l3.length) return;
|
|
46
|
-
e4.initChartData = {}, e4.initChartData.data =
|
|
47
|
-
}(
|
|
48
|
-
}, 200),
|
|
49
|
-
const a2 =
|
|
50
|
-
|
|
51
|
-
const t2 =
|
|
52
|
-
return
|
|
53
|
-
|
|
54
|
-
}),
|
|
55
|
-
|
|
56
|
-
}),
|
|
57
|
-
|
|
58
|
-
}),
|
|
59
|
-
|
|
60
|
-
}),
|
|
61
|
-
|
|
62
|
-
}),
|
|
63
|
-
|
|
64
|
-
}),
|
|
65
|
-
|
|
66
|
-
|
|
46
|
+
e4.initChartData = {}, e4.initChartData.data = re(e4.entity.data), e4.initChartData.page = re(e4.entity.page), l3 && l3.length > 0 && j(e4, l3, null, true);
|
|
47
|
+
}(Ge.value, e3.initChartServiceConfigs);
|
|
48
|
+
}, 200), Ge.value.initDataSources = [], w(Ge.value), ke.value = Ge.value.items ? Ge.value.items : [];
|
|
49
|
+
const a2 = Ge.value.runtime ? Ge.value.runtime : {};
|
|
50
|
+
$e.value = a2.class, xe.value = a2.style, T(e3, Ge.value), ae(Ge.value.rules), R(null, Ge.value, e3, "beforeload");
|
|
51
|
+
const t2 = Ge.value.code;
|
|
52
|
+
return he.setPageContext(Ge.value), Te.value = t2 + "_", V.$on(Te.value + "export-form-report", (e4) => {
|
|
53
|
+
De.value = e4, He.value = e4.configureObj, ze.value = e4.pageContext, al.value = false, Ne.value = true;
|
|
54
|
+
}), V.$on(Te.value + "export-pdf-report", (e4) => {
|
|
55
|
+
De.value = e4, He.value = e4.configureObj, ze.value = e4.pageContext, al.value = true, Ne.value = true;
|
|
56
|
+
}), V.$on(Te.value + "import-file", (e4) => {
|
|
57
|
+
De.value = e4, sl.value.click();
|
|
58
|
+
}), V.$on(Te.value + "assign-task", (e4) => {
|
|
59
|
+
De.value = e4, Oe.value = true, Re.value = false;
|
|
60
|
+
}), V.$on(Te.value + "copy-task", (e4) => {
|
|
61
|
+
De.value = e4, we.value = true, Re.value = true;
|
|
62
|
+
}), V.$on(Te.value + "add-signer", (e4) => {
|
|
63
|
+
De.value = e4, qe.value = true, Re.value = true;
|
|
64
|
+
}), V.$on(Te.value + "choose-return-node", (e4) => {
|
|
65
|
+
De.value = e4, E(e4).then((e5) => {
|
|
66
|
+
Ie.value = e5, _e.value = true;
|
|
67
67
|
}).catch((e5) => {
|
|
68
|
-
|
|
68
|
+
_e.value = false;
|
|
69
69
|
});
|
|
70
|
-
}),
|
|
71
|
-
|
|
72
|
-
|
|
70
|
+
}), V.$on(Te.value + "remove-signer", (e4) => {
|
|
71
|
+
De.value = e4, B(e4).then((l3) => {
|
|
72
|
+
Ve.value = e4.pageContext.completeTaskParam.taskId, Me.value = l3, Fe.value = true;
|
|
73
73
|
}).catch((e5) => {
|
|
74
|
-
|
|
74
|
+
Fe.value = false;
|
|
75
75
|
});
|
|
76
|
-
}),
|
|
77
|
-
}),
|
|
76
|
+
}), V.$on(Te.value + "prohibit-edit", (e4) => {
|
|
77
|
+
}), V.$on(Te.value + "open-dialog", (e4) => {
|
|
78
78
|
var l3, a3, t3;
|
|
79
|
-
|
|
79
|
+
We.value = e4.pageContext, Le.value = e4.configureObj, Ue.value = e4.eventParams, l3 = Le.value, a3 = Ue.value, t3 = e4.jumpPageSetting, function(e5, l4, a4) {
|
|
80
80
|
return new Promise((t4, u2) => {
|
|
81
81
|
var _a2;
|
|
82
82
|
if (a4) t4(a4);
|
|
@@ -84,15 +84,16 @@ const ge = { class: "app-container runtime-page-container" }, ce = e({ __name: "
|
|
|
84
84
|
const a5 = e5 && e5.props && e5.props.linkPage ? e5.props.linkPage : null;
|
|
85
85
|
if (a5 && a5.jumpPageUrl) {
|
|
86
86
|
false !== a5.isNewPage && true !== a5.isNewPage && (a5.isNewPage = true);
|
|
87
|
-
const e6 =
|
|
87
|
+
const e6 = Y(Ge), u3 = !!((_a2 = Le.value.props.linkPage) == null ? void 0 : _a2.isNeedId);
|
|
88
|
+
Le.value;
|
|
88
89
|
let n2 = u3 && l4 ? l4.id : null, o2 = 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
|
-
const e7 =
|
|
92
|
+
const e7 = We.value.entity.data, l5 = We.value.entity.page;
|
|
92
93
|
l5 && Object.assign(s2, l5), e7 && Object.assign(s2, e7);
|
|
93
94
|
}
|
|
94
|
-
const r2 =
|
|
95
|
-
a5._pageData = r2,
|
|
95
|
+
const r2 = re(We.value.entity.page);
|
|
96
|
+
a5._pageData = r2, oe(a5, null, n2, s2, e6, o2).then((e7) => {
|
|
96
97
|
e7.isNeedId = u3, t4(e7);
|
|
97
98
|
});
|
|
98
99
|
} else t4(false);
|
|
@@ -102,150 +103,157 @@ const ge = { class: "app-container runtime-page-container" }, ce = e({ __name: "
|
|
|
102
103
|
if (e5) {
|
|
103
104
|
let a4 = {};
|
|
104
105
|
const t4 = l3 && l3.props && l3.props.linkPage ? l3.props.linkPage : null;
|
|
105
|
-
t4 && Object.assign(a4,
|
|
106
|
+
t4 && Object.assign(a4, re(t4)), Object.assign(a4, e5), ve(a4, Qe);
|
|
106
107
|
const u2 = a4.jumpMode, n2 = a4;
|
|
107
|
-
if (
|
|
108
|
+
if (Ue.value || (Ue.value = {}), Ue.value.paramStoreId = a4.paramStoreId, n2.parentPageCode = We.value.code, n2.parentPageVersion = We.value.version, n2.isNewPage = true, "popup" === u2 || "refresh" === u2) {
|
|
108
109
|
const e6 = n2.linkType;
|
|
109
110
|
(function(e7, l4) {
|
|
110
|
-
const a5 =
|
|
111
|
+
const a5 = se();
|
|
111
112
|
return new Promise((t5, u3) => {
|
|
112
|
-
if (a5) if ("popup" !== l4 && !
|
|
113
|
+
if (a5) if ("popup" !== l4 && !Qe || We.value.systemCode === e7.customSystem) t5(true);
|
|
113
114
|
else if (e7.customSystem) {
|
|
114
115
|
const l5 = e7.customSystem;
|
|
115
|
-
|
|
116
|
+
ge.dispatch("getCurrentUserPermissions", { loginName: a5, systemCode: l5 }).then(() => {
|
|
116
117
|
t5(true);
|
|
117
118
|
}).catch(() => {
|
|
118
119
|
t5(true);
|
|
119
120
|
});
|
|
120
|
-
} else
|
|
121
|
+
} else Z({ showClose: true, type: "error", message: Ce("superPageRuntimeMessage.popMsg") }), console.error("弹框参数缺少customSystem参数,parentPageContext.value.systemCode={}", We.value.systemCode), t5(false);
|
|
121
122
|
else t5(true);
|
|
122
123
|
});
|
|
123
124
|
})(n2, u2).then((l4) => {
|
|
124
|
-
l4 && (
|
|
125
|
-
}),
|
|
125
|
+
l4 && (Qe && (We.value.systemCode !== n2.customSystem || e6 && "url" === e6) ? (n2._isIframe = true, "refresh" === u2 && (n2.dialogType = "drawer", n2.jumpPageWidth = "100%"), Je.value = n2, Be.value = true) : (n2._isIframe = false, "popup" === u2 ? (Je.value = n2, Be.value = true) : "refresh" === u2 && ml.push({ path: "/dsc/page", query: n2 })));
|
|
126
|
+
}), V.$on(Te.value + "close-dialog", (e7) => {
|
|
126
127
|
!function(e8) {
|
|
127
128
|
const l4 = e8.jumpMode;
|
|
128
|
-
l4 && "popup" === l4 ?
|
|
129
|
+
l4 && "popup" === l4 ? gl(e8) : ml.go(-1);
|
|
129
130
|
}(e7);
|
|
130
131
|
});
|
|
131
132
|
}
|
|
132
|
-
}
|
|
133
|
+
} else console.error("页面配置信息不存在");
|
|
133
134
|
});
|
|
134
|
-
}),
|
|
135
|
-
|
|
136
|
-
}),
|
|
137
|
-
const e4 = { runtime: { events:
|
|
138
|
-
|
|
139
|
-
}),
|
|
140
|
-
e4 && (
|
|
141
|
-
}),
|
|
135
|
+
}), V.$on(Te.value + "save-chart-condition", (e4) => {
|
|
136
|
+
el.value = true;
|
|
137
|
+
}), V.$on("pageLoaded", () => {
|
|
138
|
+
const e4 = { runtime: { events: Ge.value.events }, systemCode: "", systemVersion: 0, code: "", version: 0, workflowCode: "", workflowVersion: 0, name: "", uuid: "", label: "" };
|
|
139
|
+
R(null, Ge.value, e4, "load");
|
|
140
|
+
}), h(() => Ge.value.isRefresh, (e4) => {
|
|
141
|
+
e4 && (Ke.value++, Ge.value.isRefresh = false);
|
|
142
|
+
}), J(Ge.value, null, (_a = be.pageRequest) == null ? void 0 : _a.isNeedId);
|
|
142
143
|
}
|
|
143
|
-
function
|
|
144
|
+
function ul() {
|
|
144
145
|
u(() => {
|
|
145
146
|
var _a, _b;
|
|
146
|
-
const e3 =
|
|
147
|
-
|
|
147
|
+
const e3 = Pe.value.parentNode ? Pe.value.parentNode : Pe.value;
|
|
148
|
+
Ge.value && (Ge.value.pageRuntimeStyle || (Ge.value.pageRuntimeStyle = {}), Ge.value.pageRuntimeStyle.height = be.contentHeight ?? ((_b = (_a = e3 == null ? void 0 : e3.getBoundingClientRect) == null ? void 0 : _a.call(e3)) == null ? void 0 : _b.height) ?? 0);
|
|
148
149
|
});
|
|
149
150
|
}
|
|
150
|
-
function
|
|
151
|
-
const e3 =
|
|
152
|
-
|
|
151
|
+
function nl() {
|
|
152
|
+
const e3 = Ge.value.entity.data, l2 = null == e3.ID ? e3.id : e3.ID;
|
|
153
|
+
Ae.query && Ae.query._t_ && l2 && ie(Ae.query._t_ + "_id", l2);
|
|
153
154
|
}
|
|
154
|
-
function
|
|
155
|
-
|
|
155
|
+
function ol() {
|
|
156
|
+
Ne.value = false, De.value = null;
|
|
156
157
|
}
|
|
157
|
-
function
|
|
158
|
-
|
|
158
|
+
function il(e3, l2) {
|
|
159
|
+
W(De.value.pageContext, De.value.configureObj, l2, al.value);
|
|
159
160
|
}
|
|
160
161
|
a(() => {
|
|
161
|
-
null !=
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
162
|
+
null != be.pageDesign ? (Se.value = be.pageDesign, Ze = setTimeout(() => {
|
|
163
|
+
tl(be.pageDesign).then(() => {
|
|
164
|
+
be.pageDesign.tableRuntimes && Object.keys(be.pageDesign.tableRuntimes).length > 0 ? P(be.pageDesign, Ge.value, be.publishVersion).then((e3) => {
|
|
165
|
+
Ge.value.isWorkflowEntity = e3.isWorkflowEntity, Ge.value.dataTypeMaps = e3.dataTypeMaps, Ge.value.superGridItems = e3.superGrids;
|
|
165
166
|
}).catch((e3) => {
|
|
166
167
|
}).finally(() => {
|
|
167
|
-
|
|
168
|
-
}) : (
|
|
168
|
+
Ee.value = true, ul();
|
|
169
|
+
}) : (Ee.value = true, ul()), nl();
|
|
169
170
|
});
|
|
170
|
-
}, 0)) :
|
|
171
|
+
}, 0)) : be.pageCode && (je.value = true, k(be.pageCode).then((e3) => {
|
|
171
172
|
if (e3 && e3.designJson) {
|
|
172
173
|
const l2 = e3.designJson, a2 = JSON.parse(l2);
|
|
173
|
-
|
|
174
|
-
|
|
174
|
+
Se.value = a2, tl(a2).then(() => {
|
|
175
|
+
nl(), Ee.value = true, ul();
|
|
175
176
|
});
|
|
176
177
|
}
|
|
177
|
-
})
|
|
178
|
+
}).catch((e3) => {
|
|
179
|
+
je.value = false;
|
|
180
|
+
}).finally(() => {
|
|
181
|
+
je.value = false;
|
|
182
|
+
}));
|
|
178
183
|
}), t(() => {
|
|
179
184
|
u(() => {
|
|
180
|
-
|
|
185
|
+
Ge.value && Pe.value && N(Ge.value, "-1", Pe);
|
|
181
186
|
});
|
|
182
187
|
}), n(() => {
|
|
183
|
-
|
|
188
|
+
q(Ge.value), Se.value && O(Se.value), V.$off(Te.value + "export-form-report"), V.$off(Te.value + "export-pdf-report"), V.$off(Te.value + "import-file"), V.$off(Te.value + "assign-task"), V.$off(Te.value + "copy-task"), V.$off(Te.value + "add-signer"), V.$off(Te.value + "choose-return-node"), V.$off(Te.value + "remove-signer"), V.$off(Te.value + "prohibit-edit"), V.$off(Te.value + "open-dialog"), V.$off(Te.value + "save-chart-condition"), V.$off("pageLoaded"), Ge.value && R(null, Ge.value, Ge.value, "onUnmounted"), Xe && clearTimeout(Xe), Ye && clearTimeout(Ye), Ze && clearTimeout(Ze);
|
|
184
189
|
});
|
|
185
|
-
const
|
|
186
|
-
function
|
|
187
|
-
true ===
|
|
190
|
+
const sl = l(null);
|
|
191
|
+
function rl(e3) {
|
|
192
|
+
true === qe.value && (qe.value = false, U(De.value, e3)), true === we.value && (we.value = false, G(De.value, e3)), true === Oe.value && (Oe.value = false, H(De.value, e3));
|
|
188
193
|
}
|
|
189
|
-
function
|
|
190
|
-
|
|
194
|
+
function vl(e3) {
|
|
195
|
+
Ie.value = [], _e.value = false, z(De.value, e3);
|
|
191
196
|
}
|
|
192
|
-
function
|
|
193
|
-
|
|
197
|
+
function pl(e3) {
|
|
198
|
+
Me.value = [], Fe.value = false, A(De.value, e3);
|
|
194
199
|
}
|
|
195
|
-
const
|
|
196
|
-
function
|
|
200
|
+
const ml = ne();
|
|
201
|
+
function gl(e3) {
|
|
197
202
|
var _a, _b;
|
|
198
|
-
const l2 =
|
|
203
|
+
const l2 = Je.value.closeEvent, a2 = Je.value.isRefreshWhenClosePopup;
|
|
199
204
|
let t2, u2;
|
|
200
|
-
const n2 =
|
|
205
|
+
const n2 = We.value.tableName;
|
|
201
206
|
let o2;
|
|
202
|
-
const i2 =
|
|
207
|
+
const i2 = Ue.value.columnProp ? Ue.value.columnProp : null;
|
|
203
208
|
if (i2) {
|
|
204
|
-
const e4 = (_b = (_a =
|
|
209
|
+
const e4 = (_b = (_a = Le.value) == null ? void 0 : _a.items) == null ? void 0 : _b.filter((e5) => {
|
|
205
210
|
var _a2, _b2, _c, _d;
|
|
206
211
|
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;
|
|
207
212
|
});
|
|
208
213
|
o2 = e4 && e4.length > 0 ? e4[0] : null;
|
|
209
|
-
} else o2 =
|
|
214
|
+
} else o2 = Le.value;
|
|
210
215
|
if (e3) {
|
|
211
216
|
const l3 = e3.isNeedValueMapping;
|
|
212
|
-
t2 = e3.dataModel, u2 = e3.sourceTableName, l3 &&
|
|
217
|
+
t2 = e3.dataModel, u2 = e3.sourceTableName, l3 && K(We.value, o2, t2, u2, Je.value ? Je.value.valueMappings : null);
|
|
213
218
|
}
|
|
214
|
-
|
|
219
|
+
R(null, We.value, o2, "closePopup", { sourceModel: t2, sourceTableName: u2, jumpPageSetting: Je.value, entity: We.value.entity.data, targetTableName: n2, pageContext: Ge.value, parentPageContext: We.value, parentConfigureObj: o2, columnProp: i2 }), function(e4, l3, a3) {
|
|
215
220
|
if (e4) {
|
|
216
|
-
const t3 =
|
|
217
|
-
t3 && t3.apply(t3, [{ pageContext:
|
|
221
|
+
const t3 = _(We.value, e4);
|
|
222
|
+
t3 && t3.apply(t3, [{ pageContext: Ge.value, parentPageContext: We.value, parentConfigureObj: a3, jumpPageSetting: Je.value, columnProp: l3 }]);
|
|
218
223
|
}
|
|
219
|
-
}(l2, i2, o2),
|
|
224
|
+
}(l2, i2, o2), Q(We.value, Le.value, a2, void 0 !== a2 && false === a2 ? "noOperation" : null), We.value = null, Le.value = null, Ue.value = null, V.$off(Te.value + "close-dialog"), Be.value = false;
|
|
220
225
|
}
|
|
221
|
-
function
|
|
222
|
-
|
|
223
|
-
|
|
226
|
+
function cl(e3) {
|
|
227
|
+
X(Ge.value, e3).then((e4) => {
|
|
228
|
+
Z({ showClose: true, type: "success", message: Ce("superPageRuntimeMessage.successfulSave") }), ll.value.refreshConditionList();
|
|
224
229
|
});
|
|
225
230
|
}
|
|
226
|
-
function
|
|
231
|
+
function fl(e3) {
|
|
227
232
|
const l2 = e3.queryCondition;
|
|
228
233
|
let a2 = {};
|
|
229
|
-
l2 && (a2 = JSON.parse(l2)), a2 && a2.data && Object.assign(
|
|
234
|
+
l2 && (a2 = JSON.parse(l2)), a2 && a2.data && Object.assign(Ge.value.entity.data, a2.data), a2 && a2.page && Object.assign(Ge.value.entity.page, a2.page), el.value = false;
|
|
230
235
|
}
|
|
231
|
-
return
|
|
236
|
+
return de2({ pickFileDone: function(e3) {
|
|
232
237
|
let l2 = e3.componentId, a2 = e3.listCode;
|
|
233
|
-
(l2 || a2) && (a2 ?
|
|
238
|
+
(l2 || a2) && (a2 ? V.$emit(a2 + "-pickFileDone", e3) : V.$emit(l2 + "-pickFileDone", e3));
|
|
234
239
|
}, uploadFileDone: function(e3) {
|
|
235
240
|
let l2 = e3.componentId, a2 = e3.listCode;
|
|
236
|
-
(l2 || a2) && (a2 ?
|
|
241
|
+
(l2 || a2) && (a2 ? V.$emit(a2 + "-uploadFileDone", e3) : V.$emit(l2 + "-uploadFileDone", e3));
|
|
237
242
|
}, scanDone: function(e3) {
|
|
238
243
|
let l2 = e3.componentId, a2 = e3.listCode;
|
|
239
|
-
(l2 || a2) && (a2 ?
|
|
240
|
-
} }), (e3, l2) =>
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
if (
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
244
|
+
(l2 || a2) && (a2 ? V.$emit(a2 + "-scanDone", e3) : V.$emit(l2 + "-scanDone", e3));
|
|
245
|
+
} }), (e3, l2) => {
|
|
246
|
+
const a2 = o("loading");
|
|
247
|
+
return i((r(), s("div", fe, [Ee.value ? (r(), s("div", { ref_key: "thisRef", ref: Pe, key: Ke.value, class: m(["runtime-page-container-view", $e.value]), style: p(xe.value) }, [(r(true), s(f, null, d(ke.value, (e4, l3) => (r(), g(C, { key: e4.uuid, configure: e4, pageContext: y(Ge) }, null, 8, ["configure", "pageContext"]))), 128)), Ne.value ? (r(), g(I, { key: 0, configure: He.value, pageContext: ze.value, onClose: ol, onExport: il }, null, 8, ["configure", "pageContext"])) : v("", true), c("input", { ref_key: "_selectFile_", ref: sl, type: "file", name: "_selectFile_", style: { display: "none" }, onChange: l2[0] || (l2[0] = (e4) => function() {
|
|
248
|
+
if (De.value) {
|
|
249
|
+
if (!sl.value) return;
|
|
250
|
+
if ("" === sl.value.value || null === sl.value.value) return;
|
|
251
|
+
const e5 = sl.value.files[0];
|
|
252
|
+
e5 ? (sl.value.value = null, L(De.value, e5)) : Z({ showClose: true, type: "warning", message: Ce("superPageRuntimeMessage.noFileSelected") });
|
|
253
|
+
}
|
|
254
|
+
}()) }, null, 544), qe.value || we.value || Oe.value ? (r(), g(y(le), { key: 1, width: "60%", multiple: Re.value, onClose: rl }, null, 8, ["multiple"])) : v("", true), _e.value ? (r(), g(M, { key: 2, "task-informitions": Ie.value, onClose: l2[1] || (l2[1] = (e4) => _e.value = false), onResult: vl }, null, 8, ["task-informitions"])) : v("", true), Fe.value ? (r(), g(F, { key: 3, "task-id": Ve.value, "active-tasks": Me.value, onClose: l2[2] || (l2[2] = (e4) => Fe.value = false), onResult: pl }, null, 8, ["task-id", "active-tasks"])) : v("", true), Be.value ? (r(), g(te, { key: 4, parentPageContext: We.value, parentPageEventParams: Ue.value, jumpPageSetting: Je.value, onClose: l2[3] || (l2[3] = (e4) => gl()) }, null, 8, ["parentPageContext", "parentPageEventParams", "jumpPageSetting"])) : v("", true), el.value ? (r(), g(ce, { key: 5, ref_key: "chartCondtionRef", ref: ll, pageContext: y(Ge), onClose: l2[4] || (l2[4] = (e4) => el.value = false), onSave: cl, onConfirm: fl }, null, 8, ["pageContext"])) : v("", true)], 6)) : v("", true)])), [[a2, je.value]]);
|
|
255
|
+
};
|
|
248
256
|
} });
|
|
249
257
|
export {
|
|
250
|
-
|
|
258
|
+
de as default
|
|
251
259
|
};
|