super-page-runtime 2.3.44-sit2 → 2.3.45-sit1
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/events/standard-event.js +1 -1
- package/dist/es/components/runtime/utils/page-helper-util.js +1 -1
- package/dist/es/components/runtime/utils/page-init-util.d.ts +7 -1
- package/dist/es/components/runtime/utils/page-init-util.js +44 -26
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +5 -3
- package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +39 -34
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +19 -16
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +160 -160
- package/dist/es/style.css +76 -76
- package/package.json +2 -2
|
@@ -1,102 +1,102 @@
|
|
|
1
1
|
import { defineComponent as e, ref as a, getCurrentInstance as l, onMounted as t, onUpdated as o, nextTick as u, onUnmounted as n, resolveDirective as i, withDirectives as s, createElementBlock as r, openBlock as v, unref as p, normalizeStyle as m, normalizeClass as c, createCommentVNode as g, createVNode as f, createBlock as d, createElementVNode as y, Fragment as h, renderList as C, watch as P } from "vue";
|
|
2
2
|
import b from "./assemblys/object-render.vue.js";
|
|
3
3
|
import { updateOptionDatasources as k, updateChartDatasources as j } from "../utils/page-helper-util.js";
|
|
4
|
-
import {
|
|
5
|
-
import { addComponentRef as
|
|
6
|
-
import { removeCustomFuncFromWindow as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import { doFileTaskFunc as
|
|
4
|
+
import { registerParamStoreId as x, queryPageDesignWhenPreview as $, queryPageDesignByCode as T, convertToPageContext as D, packageAdditionalMapWithLocationSearch as N, packageAdditionalMapWithRoute as S, packageAdditionalMapWithPageRequest as w } from "../utils/page-init-util.js";
|
|
5
|
+
import { addComponentRef as q, removePageAllRef as R, initComponentRefState as _ } from "../utils/global-refs.js";
|
|
6
|
+
import { removeCustomFuncFromWindow as F, handleEvent as M, initPageEvents as O, getCustomFunc as I } from "../utils/events/event-util.js";
|
|
7
|
+
import E from "./assemblys/common/export-form-report-dialog.vue.js";
|
|
8
|
+
import A from "./assemblys/common/task-informition-dialog.vue.js";
|
|
9
|
+
import V from "./assemblys/common/remove-signer-dialog.vue.js";
|
|
10
|
+
import B from "./assemblys/common/remove-transactor-dialog.vue.js";
|
|
11
|
+
import L from "../utils/eventBus.js";
|
|
12
|
+
import { doFileTaskFunc as U, getTaskInformitions as W, getRemoveSigner as J, getRemoveTransactor as H, getFormData as z, exportFormReport as Q, doImportFinally as G, doAddSigner as K, doCreateCopyTask as X, doAssign as Y, doAddTransactor as Z, doReturnTaskTo as ee, doRemoveSigners as ae, doRemoveTransactors as le, updateValuesWhenCloseDialog as te, refreshFormOrListPage as oe, saveChartConditionBase as ue, getAdditionalParamMap as ne } from "../utils/events/standard-event.js";
|
|
13
13
|
import "../utils/api/api-util.js";
|
|
14
|
-
import { ElMessage as
|
|
15
|
-
import { useI18n as
|
|
16
|
-
import { DepartmentUserTree as
|
|
17
|
-
import { i18nValidateRulesMessage as
|
|
18
|
-
import
|
|
14
|
+
import { ElMessage as ie } from "element-plus";
|
|
15
|
+
import { useI18n as se } from "vue-i18n";
|
|
16
|
+
import { DepartmentUserTree as re } from "agilebuilder-ui";
|
|
17
|
+
import { i18nValidateRulesMessage as ve } from "../utils/events/validator-util.js";
|
|
18
|
+
import pe from "./super-page-dialog.vue.js";
|
|
19
19
|
/* empty css */
|
|
20
|
-
import { useRoute as
|
|
21
|
-
import { jumpToPage as
|
|
22
|
-
import { setSessionCache as
|
|
23
|
-
import { deepCopy as
|
|
24
|
-
import { isMobileBrowser as
|
|
25
|
-
import { usePageContextStore as
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import { scrollIntoViewWithContainer as
|
|
32
|
-
const
|
|
33
|
-
const we =
|
|
34
|
-
let
|
|
35
|
-
const
|
|
36
|
-
let
|
|
37
|
-
const
|
|
38
|
-
function Pa(e3) {
|
|
39
|
-
const a2 = T(e3);
|
|
40
|
-
return a2.isTest = qe.isTest, a2.isTest && qe.dimensions && (a2.dimensions = qe.dimensions), qe.isDialog || (N(a2.entity.request), S(va, a2.entity.request)), w(qe.pageRequest, a2.entity.request), a2;
|
|
41
|
-
}
|
|
20
|
+
import { useRoute as me, useRouter as ce } from "vue-router";
|
|
21
|
+
import { jumpToPage as ge } from "agilebuilder-ui/src/utils/jump-page-utils";
|
|
22
|
+
import { setSessionCache as fe, getUsername as de } from "agilebuilder-ui/src/utils/auth";
|
|
23
|
+
import { deepCopy as ye, refreshMobileDialogType as he } from "../utils/common-util.js";
|
|
24
|
+
import { isMobileBrowser as Ce } from "agilebuilder-ui/src/utils/common-util";
|
|
25
|
+
import { usePageContextStore as Pe } from "../utils/page-store.js";
|
|
26
|
+
import be from "agilebuilder-ui/src/store";
|
|
27
|
+
import ke from "./assemblys/common/save-chart-condition-dialog.vue.js";
|
|
28
|
+
import je from "../utils/ai-chat-util.js";
|
|
29
|
+
import xe from "./assemblys/page-bottom.vue.js";
|
|
30
|
+
import $e from "./assemblys/common/event-call-component.vue.js";
|
|
31
|
+
import { scrollIntoViewWithContainer as Te } from "../utils/anchor-util.js";
|
|
32
|
+
const De = ["element-loading-text"], Ne = 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: Ne2, emit: Se }) {
|
|
33
|
+
const we = 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({}), Ve = a(null), Be = a(null), Le = a(false), Ue = a(false), We = a(false), Je = a(false), He = a(false), ze = a(false), Qe = a(null), Ge = a(false), Ke = a([]), Xe = a([]), Ye = a([]), Ze = a(false), ea = a(false), aa = a(null), la = a(false), ta = a(false), oa = a(null), ua = a(null), na = a(null), ia = a(null);
|
|
34
|
+
let sa = a(null);
|
|
35
|
+
const ra = a(null), va = a(null), pa = me(), ma = a(null), ca = a(0), ga = Ce();
|
|
36
|
+
let fa, da;
|
|
37
|
+
const ya = a(false), ha = a(null), Ca = a(false), Pa = a(null);
|
|
42
38
|
function ba(e3) {
|
|
39
|
+
const a2 = D(e3);
|
|
40
|
+
return a2.isTest = Re.isTest, a2.isTest && Re.dimensions && (a2.dimensions = Re.dimensions), Re.isDialog || (N(a2.entity.request), S(pa, a2.entity.request)), w(Re.pageRequest, a2.entity.request, Re.isDialog), a2;
|
|
41
|
+
}
|
|
42
|
+
function ka(e3) {
|
|
43
43
|
var _a2;
|
|
44
|
-
const a2 =
|
|
45
|
-
if (
|
|
46
|
-
|
|
44
|
+
const a2 = ba(e3);
|
|
45
|
+
if (sa.value = a2, null == sa.value) return;
|
|
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
49
|
const l3 = a3.filter((e5) => "remote" != e5.filterType);
|
|
50
50
|
l3 && l3.length > 0 && k(e4, l3, void 0);
|
|
51
|
-
}(
|
|
52
|
-
}, 0),
|
|
51
|
+
}(sa.value, e3.initOptionConfigs);
|
|
52
|
+
}, 0), da = setTimeout(() => {
|
|
53
53
|
!function(e4, a3) {
|
|
54
54
|
if (!a3 || 0 == a3.length) return;
|
|
55
|
-
if (e4.initChartData = {}, e4.initChartData.data =
|
|
55
|
+
if (e4.initChartData = {}, e4.initChartData.data = ye(e4.entity.data), e4.initChartData.page = ye(e4.entity.page), a3 && a3.length > 0) {
|
|
56
56
|
const l3 = a3.filter((e5) => false !== e5.initializationQuery);
|
|
57
57
|
j(e4, l3, null, true);
|
|
58
58
|
}
|
|
59
|
-
}(
|
|
60
|
-
}, 200),
|
|
61
|
-
const l2 =
|
|
62
|
-
|
|
63
|
-
const t2 =
|
|
64
|
-
return we.setPageContext(
|
|
65
|
-
|
|
66
|
-
}),
|
|
67
|
-
|
|
68
|
-
}),
|
|
69
|
-
|
|
70
|
-
}),
|
|
71
|
-
|
|
72
|
-
}),
|
|
73
|
-
|
|
74
|
-
}),
|
|
75
|
-
|
|
76
|
-
}),
|
|
77
|
-
|
|
78
|
-
|
|
59
|
+
}(sa.value, e3.initChartServiceConfigs);
|
|
60
|
+
}, 200), sa.value.initDataSources = [], _(sa.value), Ie.value = sa.value.items ? sa.value.items : [];
|
|
61
|
+
const l2 = sa.value.runtime ? sa.value.runtime : {};
|
|
62
|
+
Ee.value = l2.class, Ae.value = l2.style, O(e3, sa.value), ve(sa.value.rules), M(null, sa.value, e3, "beforeload");
|
|
63
|
+
const t2 = sa.value.code;
|
|
64
|
+
return we.setPageContext(sa.value), Qe.value = t2 + "_", L.$on(Qe.value + "export-form-report", (e4) => {
|
|
65
|
+
Be.value = e4, ra.value = e4.configureObj, va.value = e4.pageContext, Ca.value = false, Le.value = true;
|
|
66
|
+
}), L.$on(Qe.value + "export-pdf-report", (e4) => {
|
|
67
|
+
Be.value = e4, ra.value = e4.configureObj, va.value = e4.pageContext, Ca.value = true, Le.value = true;
|
|
68
|
+
}), L.$on(Qe.value + "import-file", (e4) => {
|
|
69
|
+
Be.value = e4, Na.value.click();
|
|
70
|
+
}), L.$on(Qe.value + "assign-task", (e4) => {
|
|
71
|
+
Be.value = e4, He.value = true, ze.value = false;
|
|
72
|
+
}), L.$on(Qe.value + "copy-task", (e4) => {
|
|
73
|
+
Be.value = e4, Je.value = true, ze.value = true;
|
|
74
|
+
}), L.$on(Qe.value + "add-signer", (e4) => {
|
|
75
|
+
Be.value = e4, Ue.value = true, ze.value = true;
|
|
76
|
+
}), L.$on(Qe.value + "choose-return-node", (e4) => {
|
|
77
|
+
Be.value = e4, W(e4).then((e5) => {
|
|
78
|
+
Ke.value = e5, Ge.value = true;
|
|
79
79
|
}).catch((e5) => {
|
|
80
|
-
|
|
80
|
+
Ge.value = false;
|
|
81
81
|
});
|
|
82
|
-
}),
|
|
83
|
-
|
|
84
|
-
|
|
82
|
+
}), L.$on(Qe.value + "remove-signer", (e4) => {
|
|
83
|
+
Be.value = e4, J(e4).then((a3) => {
|
|
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
|
-
|
|
92
|
-
|
|
88
|
+
}), L.$on(Qe.value + "add-transactor", (e4) => {
|
|
89
|
+
Be.value = e4, We.value = true, ze.value = true;
|
|
90
|
+
}), L.$on(Qe.value + "remove-transactor", (e4) => {
|
|
91
|
+
Be.value = e4, H(e4).then((a3) => {
|
|
92
|
+
aa.value = e4.pageContext.completeTaskParam.taskId, Ye.value = a3, ea.value = true;
|
|
93
93
|
}).catch((e5) => {
|
|
94
|
-
|
|
94
|
+
ea.value = false;
|
|
95
95
|
});
|
|
96
|
-
}),
|
|
97
|
-
}),
|
|
96
|
+
}), L.$on(Qe.value + "prohibit-edit", (e4) => {
|
|
97
|
+
}), L.$on(Qe.value + "open-dialog", (e4) => {
|
|
98
98
|
var a3, l3, t3;
|
|
99
|
-
|
|
99
|
+
ua.value = e4.pageContext, na.value = e4.configureObj, ia.value = e4.eventParams, a3 = na.value, l3 = ia.value, t3 = e4.jumpPageSetting, function(e5, a4, l4) {
|
|
100
100
|
return new Promise((t4, o2) => {
|
|
101
101
|
var _a3;
|
|
102
102
|
if (l4) t4(l4);
|
|
@@ -104,15 +104,15 @@ const Te = ["element-loading-text"], Ne = e({ __name: "super-page", props: { pag
|
|
|
104
104
|
const l5 = e5 && e5.props && e5.props.linkPage ? e5.props.linkPage : null;
|
|
105
105
|
if (l5 && l5.jumpPageUrl) {
|
|
106
106
|
false !== l5.isNewPage && true !== l5.isNewPage && (l5.isNewPage = true);
|
|
107
|
-
const e6 =
|
|
107
|
+
const e6 = ne(sa), o3 = !!((_a3 = na.value.props.linkPage) == null ? void 0 : _a3.isNeedId);
|
|
108
108
|
let u2 = o3 && a4 ? a4.id : null, n2 = o3 && a4 ? a4.ids : null, i2 = a4 ? a4.selections : [], s2 = a4 ? a4.row : null;
|
|
109
109
|
if (!s2) if (s2 = {}, i2 && i2.length > 0) s2 = i2.length > 1 ? i2 : i2[0];
|
|
110
110
|
else {
|
|
111
|
-
const e7 =
|
|
111
|
+
const e7 = ua.value.entity.data, a5 = ua.value.entity.page;
|
|
112
112
|
a5 && Object.assign(s2, a5), e7 && Object.assign(s2, e7);
|
|
113
113
|
}
|
|
114
|
-
const r2 =
|
|
115
|
-
l5._pageData = r2,
|
|
114
|
+
const r2 = ye(ua.value.entity.page);
|
|
115
|
+
l5._pageData = r2, ge(l5, null, u2, s2, e6, n2).then((e7) => {
|
|
116
116
|
e7.isNeedId = o3, t4(e7);
|
|
117
117
|
});
|
|
118
118
|
} else t4(false);
|
|
@@ -122,187 +122,187 @@ const Te = ["element-loading-text"], Ne = e({ __name: "super-page", props: { pag
|
|
|
122
122
|
if (e5) {
|
|
123
123
|
let l4 = {};
|
|
124
124
|
const t4 = a3 && a3.props && a3.props.linkPage ? a3.props.linkPage : null;
|
|
125
|
-
t4 && Object.assign(l4,
|
|
125
|
+
t4 && Object.assign(l4, ye(t4)), Object.assign(l4, e5), he(l4, ga);
|
|
126
126
|
const o2 = l4.jumpMode, u2 = l4;
|
|
127
|
-
if (
|
|
127
|
+
if (ia.value || (ia.value = {}), ia.value.paramStoreId = l4.paramStoreId, u2.parentPageCode = ua.value.code, u2.parentPageVersion = ua.value.version, u2.isNewPage = true, "popup" === o2 || "refresh" === o2) {
|
|
128
128
|
const e6 = u2.linkType;
|
|
129
129
|
(function(e7, a4) {
|
|
130
|
-
const l5 =
|
|
130
|
+
const l5 = de();
|
|
131
131
|
return new Promise((t5, o3) => {
|
|
132
|
-
if (l5) if ("popup" !== a4 && !
|
|
132
|
+
if (l5) if ("popup" !== a4 && !ga || ua.value.systemCode === e7.customSystem) t5(true);
|
|
133
133
|
else if (e7.customSystem) {
|
|
134
134
|
const a5 = e7.customSystem;
|
|
135
|
-
|
|
135
|
+
be.dispatch("getCurrentUserPermissions", { loginName: l5, systemCode: a5 }).then(() => {
|
|
136
136
|
t5(true);
|
|
137
137
|
}).catch(() => {
|
|
138
138
|
t5(true);
|
|
139
139
|
});
|
|
140
|
-
} else
|
|
140
|
+
} else ie({ showClose: true, type: "error", message: qe("superPageRuntimeMessage.popMsg") }), t5(false);
|
|
141
141
|
else t5(true);
|
|
142
142
|
});
|
|
143
143
|
})(u2, o2).then((a4) => {
|
|
144
|
-
if (a4) if (
|
|
144
|
+
if (a4) if (ga && (ua.value.systemCode !== u2.customSystem || e6 && "url" === e6)) {
|
|
145
145
|
let e7 = u2._path;
|
|
146
|
-
e7 = e7.replace(/&?_systemName_=[^&]*/, ""),
|
|
147
|
-
} else u2._isIframe = false, "popup" === o2 ? (
|
|
148
|
-
}),
|
|
146
|
+
e7 = e7.replace(/&?_systemName_=[^&]*/, ""), location.href = e7;
|
|
147
|
+
} else u2._isIframe = false, "popup" === o2 ? (oa.value = u2, ta.value = true) : "refresh" === o2 && _a.push({ path: "/dsc/page", query: u2 });
|
|
148
|
+
}), L.$on(Qe.value + "close-dialog", (e7) => {
|
|
149
149
|
!function(e8) {
|
|
150
150
|
const a4 = e8.jumpMode;
|
|
151
|
-
a4 && "popup" === a4 ?
|
|
151
|
+
a4 && "popup" === a4 ? Fa(e8) : (ga && L.$off(Qe.value + "close-dialog"), _a.go(-1));
|
|
152
152
|
}(e7);
|
|
153
153
|
});
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
156
|
});
|
|
157
|
-
}),
|
|
158
|
-
|
|
159
|
-
}),
|
|
160
|
-
const e4 = { runtime: { events:
|
|
161
|
-
|
|
162
|
-
}),
|
|
157
|
+
}), L.$on(Qe.value + "save-chart-condition", (e4) => {
|
|
158
|
+
ya.value = true;
|
|
159
|
+
}), L.$on("pageLoaded", () => {
|
|
160
|
+
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"), Te(we.getAutoAnchorComponentConditions(), sa.value);
|
|
162
|
+
}), L.$on(Qe.value + "event-call-component", (e4) => {
|
|
163
163
|
var _a3;
|
|
164
|
-
(_a3 =
|
|
165
|
-
}), P(() =>
|
|
166
|
-
e4 && (_e.value = true,
|
|
167
|
-
_e.value = false,
|
|
168
|
-
}, 3e3),
|
|
169
|
-
}),
|
|
164
|
+
(_a3 = Pa.value) == null ? void 0 : _a3.renderComponent(e4.componentName, e4.componentProps);
|
|
165
|
+
}), P(() => sa.value.isRefresh, (e4) => {
|
|
166
|
+
e4 && (_e.value = true, sa.value.canClick = false, sa.value.clickUuid = null, setTimeout(() => {
|
|
167
|
+
_e.value = false, sa.value.canClick = true;
|
|
168
|
+
}, 3e3), ca.value++, sa.value.isRefresh = false);
|
|
169
|
+
}), z(sa.value, null, (_a2 = Re.pageRequest) == null ? void 0 : _a2.isNeedId);
|
|
170
170
|
}
|
|
171
|
-
const
|
|
172
|
-
function
|
|
171
|
+
const ja = l();
|
|
172
|
+
function xa() {
|
|
173
173
|
u(() => {
|
|
174
174
|
var _a2, _b;
|
|
175
|
-
const e3 =
|
|
176
|
-
if (
|
|
177
|
-
let a2 =
|
|
175
|
+
const e3 = Oe.value.parentNode ? Oe.value.parentNode : Oe.value;
|
|
176
|
+
if (sa.value && (sa.value.pageRuntimeStyle || (sa.value.pageRuntimeStyle = {}), !ga)) {
|
|
177
|
+
let a2 = Re.contentHeight;
|
|
178
178
|
Number(a2) && (a2 += "px");
|
|
179
179
|
const l2 = a2 ?? ((_b = (_a2 = e3 == null ? void 0 : e3.getBoundingClientRect) == null ? void 0 : _a2.call(e3)) == null ? void 0 : _b.height) ?? 0;
|
|
180
|
-
l2 && (
|
|
180
|
+
l2 && (sa.value.pageRuntimeStyle.height = l2);
|
|
181
181
|
}
|
|
182
182
|
});
|
|
183
183
|
}
|
|
184
|
-
function xa() {
|
|
185
|
-
const e3 = ia.value.entity.data, a2 = null == e3.ID ? e3.id : e3.ID;
|
|
186
|
-
va && va.query && va.query._t_ && a2 && ge(va.query._t_ + "_id", a2);
|
|
187
|
-
}
|
|
188
184
|
function $a() {
|
|
189
|
-
|
|
185
|
+
const e3 = sa.value.entity.data, a2 = null == e3.ID ? e3.id : e3.ID;
|
|
186
|
+
pa && pa.query && pa.query._t_ && a2 && fe(pa.query._t_ + "_id", a2);
|
|
190
187
|
}
|
|
191
|
-
function Ta(
|
|
192
|
-
|
|
188
|
+
function Ta() {
|
|
189
|
+
Le.value = false, Be.value = null;
|
|
190
|
+
}
|
|
191
|
+
function Da(e3, a2) {
|
|
192
|
+
Q(Be.value.pageContext, Be.value.configureObj, a2, Ca.value);
|
|
193
193
|
}
|
|
194
194
|
t(() => {
|
|
195
195
|
var _a2;
|
|
196
|
-
|
|
197
|
-
if (we.resetComponentCounters(), we.resetAutoAnchorComponentConditions(),
|
|
196
|
+
ma.value = ((_a2 = pa.query) == null ? void 0 : _a2.paramStoreId) ?? null, x(ma.value), function() {
|
|
197
|
+
if (we.resetComponentCounters(), we.resetAutoAnchorComponentConditions(), Re.isPreview && Re.pageDesign) {
|
|
198
198
|
_e.value = true;
|
|
199
|
-
let e3 =
|
|
200
|
-
const a2 =
|
|
201
|
-
|
|
202
|
-
e3.contextParam = a3.contextParam, e3.branchFieldAuth = a3.branchFieldAuth, e3.systemParam = a3.systemParam, e3.isWorkflowEntity = a3.isWorkflowEntity, e3.dataTypeMaps = a3.dataTypeMaps,
|
|
203
|
-
|
|
199
|
+
let e3 = Re.pageDesign;
|
|
200
|
+
const a2 = ba(e3);
|
|
201
|
+
$(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, Ve.value = e3, ka(e3).then(() => {
|
|
203
|
+
$a(), la.value = true, ga || U(sa.value), xa();
|
|
204
204
|
});
|
|
205
205
|
}).finally(() => {
|
|
206
206
|
_e.value = false;
|
|
207
207
|
});
|
|
208
|
-
} else
|
|
208
|
+
} else Re.pageCode && (_e.value = true, T(Re.pageCode).then((e3) => {
|
|
209
209
|
if (e3 && e3.designJson) {
|
|
210
210
|
const a2 = e3.designJson, l2 = JSON.parse(a2);
|
|
211
|
-
l2.contextParam = e3.contextParam, l2.branchFieldAuth = e3.branchFieldAuth, l2.systemParam = e3.systemParam, "form" === l2.pageType && l2.workflowCode && (l2.isWorkflowEntity = e3.isWorkflowEntity), l2.dataTypeMaps = e3.dataTypeMaps,
|
|
212
|
-
|
|
211
|
+
l2.contextParam = e3.contextParam, l2.branchFieldAuth = e3.branchFieldAuth, l2.systemParam = e3.systemParam, "form" === l2.pageType && l2.workflowCode && (l2.isWorkflowEntity = e3.isWorkflowEntity), l2.dataTypeMaps = e3.dataTypeMaps, Ve.value = l2, ka(l2).then(() => {
|
|
212
|
+
$a(), la.value = true, ga || U(sa.value), xa();
|
|
213
213
|
});
|
|
214
214
|
}
|
|
215
215
|
}).catch((e3) => {
|
|
216
216
|
_e.value = false;
|
|
217
217
|
}).finally(() => {
|
|
218
|
-
_e.value = false, "form" ===
|
|
218
|
+
_e.value = false, "form" === sa.value.pageType && je.setPageToChatStore(ja, sa.value);
|
|
219
219
|
}));
|
|
220
220
|
}();
|
|
221
221
|
}), o(() => {
|
|
222
222
|
u(() => {
|
|
223
|
-
|
|
223
|
+
sa.value && Oe.value && q(sa.value, "-1", Oe);
|
|
224
224
|
});
|
|
225
225
|
}), n(() => {
|
|
226
|
-
|
|
226
|
+
R(sa.value), Ve.value && F(Ve.value), L.$off(Qe.value + "export-form-report"), L.$off(Qe.value + "export-pdf-report"), L.$off(Qe.value + "import-file"), L.$off(Qe.value + "assign-task"), L.$off(Qe.value + "copy-task"), L.$off(Qe.value + "add-signer"), L.$off(Qe.value + "choose-return-node"), L.$off(Qe.value + "remove-signer"), L.$off(Qe.value + "prohibit-edit"), L.$off(Qe.value + "open-dialog"), L.$off(Qe.value + "save-chart-condition"), L.$off("pageLoaded"), sa.value && M(null, sa.value, sa.value, "onUnmounted"), fa && clearTimeout(fa), da && clearTimeout(da);
|
|
227
227
|
});
|
|
228
228
|
const Na = a(null);
|
|
229
229
|
function Sa(e3) {
|
|
230
|
-
true ===
|
|
230
|
+
true === Ue.value && (Ue.value = false, K(Be.value, e3)), true === Je.value && (Je.value = false, X(Be.value, e3)), true === He.value && (He.value = false, Y(Be.value, e3)), true === We.value && (We.value = false, Z(Be.value, e3));
|
|
231
231
|
}
|
|
232
232
|
function wa(e3) {
|
|
233
|
-
|
|
234
|
-
}
|
|
235
|
-
function Da(e3) {
|
|
236
|
-
Ke.value = [], Ye.value = false, ee(Ve.value, e3);
|
|
233
|
+
Ke.value = [], Ge.value = false, ee(Be.value, e3);
|
|
237
234
|
}
|
|
238
235
|
function qa(e3) {
|
|
239
|
-
Xe.value = [], Ze.value = false, ae(
|
|
236
|
+
Xe.value = [], Ze.value = false, ae(Be.value, e3);
|
|
240
237
|
}
|
|
241
|
-
const _a = me();
|
|
242
238
|
function Ra(e3) {
|
|
239
|
+
Ye.value = [], ea.value = false, le(Be.value, e3);
|
|
240
|
+
}
|
|
241
|
+
const _a = ce();
|
|
242
|
+
function Fa(e3) {
|
|
243
243
|
var _a2, _b, _c, _d;
|
|
244
|
-
const a2 = (_a2 =
|
|
244
|
+
const a2 = (_a2 = oa.value) == null ? void 0 : _a2.closeEvent, l2 = (_b = oa.value) == null ? void 0 : _b.isRefreshWhenClosePopup;
|
|
245
245
|
let t2, o2;
|
|
246
|
-
const u2 =
|
|
246
|
+
const u2 = ua.value.tableName;
|
|
247
247
|
let n2;
|
|
248
|
-
const i2 =
|
|
248
|
+
const i2 = ia.value.columnProp ? ia.value.columnProp : null;
|
|
249
249
|
if (i2) {
|
|
250
|
-
const e4 = (_d = (_c =
|
|
250
|
+
const e4 = (_d = (_c = na.value) == null ? void 0 : _c.items) == null ? void 0 : _d.filter((e5) => {
|
|
251
251
|
var _a3, _b2, _c2, _d2;
|
|
252
252
|
return ((_b2 = (_a3 = e5.props) == null ? void 0 : _a3.base) == null ? void 0 : _b2.prop) && ((_d2 = (_c2 = e5.props) == null ? void 0 : _c2.base) == null ? void 0 : _d2.prop) === i2;
|
|
253
253
|
});
|
|
254
254
|
n2 = e4 && e4.length > 0 ? e4[0] : null;
|
|
255
|
-
} else n2 =
|
|
255
|
+
} else n2 = na.value;
|
|
256
256
|
if (e3) {
|
|
257
257
|
const a3 = e3.isNeedValueMapping;
|
|
258
|
-
t2 = e3.dataModel, o2 = e3.sourceTableName, a3 &&
|
|
258
|
+
t2 = e3.dataModel, o2 = e3.sourceTableName, a3 && te({ parentPageContext: ua.value, parentEventParams: ia.value, parentConfigureObj: n2, sourceModel: t2, sourceTableName: o2, valueMappings: oa.value ? oa.value.valueMappings : null });
|
|
259
259
|
}
|
|
260
|
-
if (
|
|
260
|
+
if (M(null, ua.value, n2, "closePopup", { sourceModel: t2, 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) {
|
|
261
261
|
const l3 = (e3 == null ? void 0 : e3.dataModel) ? [{ dataModel: e3.dataModel }] : [];
|
|
262
262
|
a2.apply(a2, l3);
|
|
263
263
|
} else !function(e4, a3, l3) {
|
|
264
264
|
if (e4) {
|
|
265
|
-
const t3 = I(
|
|
266
|
-
t3 && t3.apply(t3, [{ pageContext:
|
|
265
|
+
const t3 = I(ua.value, e4);
|
|
266
|
+
t3 && t3.apply(t3, [{ pageContext: sa.value, parentPageContext: ua.value, parentConfigureObj: l3, jumpPageSetting: oa.value, columnProp: a3 }]);
|
|
267
267
|
}
|
|
268
268
|
}(a2, i2, n2);
|
|
269
|
-
|
|
269
|
+
oe(ua.value, na.value, l2, void 0 !== l2 && false === l2 ? "noOperation" : null), ua.value = null, na.value = null, ia.value = null, L.$off(Qe.value + "close-dialog"), ta.value = false;
|
|
270
270
|
}
|
|
271
|
-
function
|
|
272
|
-
|
|
273
|
-
|
|
271
|
+
function Ma(e3) {
|
|
272
|
+
ue(sa.value, e3).then((e4) => {
|
|
273
|
+
ie({ showClose: true, type: "success", message: qe("superPageRuntimeMessage.successfulSave") }), ha.value.refreshConditionList();
|
|
274
274
|
});
|
|
275
275
|
}
|
|
276
|
-
function
|
|
276
|
+
function Oa(e3) {
|
|
277
277
|
const a2 = e3.queryCondition;
|
|
278
278
|
let l2 = {};
|
|
279
|
-
a2 && (l2 = JSON.parse(a2)), l2 && l2.data && Object.assign(
|
|
279
|
+
a2 && (l2 = JSON.parse(a2)), l2 && l2.data && Object.assign(sa.value.entity.data, l2.data), l2 && l2.page && Object.assign(sa.value.entity.page, l2.page), ya.value = false;
|
|
280
280
|
}
|
|
281
281
|
return Ne2({ pickFileDone: function(e3) {
|
|
282
282
|
let a2 = e3.componentId, l2 = e3.listCode;
|
|
283
|
-
(a2 || l2) && (l2 ?
|
|
283
|
+
(a2 || l2) && (l2 ? L.$emit(l2 + "-pickFileDone", e3) : L.$emit(a2 + "-pickFileDone", e3));
|
|
284
284
|
}, uploadFileDone: function(e3) {
|
|
285
285
|
let a2 = e3.componentId, l2 = e3.listCode;
|
|
286
|
-
(a2 || l2) && (l2 ?
|
|
286
|
+
(a2 || l2) && (l2 ? L.$emit(l2 + "-uploadFileDone", e3) : L.$emit(a2 + "-uploadFileDone", e3));
|
|
287
287
|
}, uploadFileError: function(e3) {
|
|
288
288
|
let a2 = e3.componentId, l2 = e3.listCode;
|
|
289
|
-
(a2 || l2) && (l2 ?
|
|
289
|
+
(a2 || l2) && (l2 ? L.$emit(l2 + "-uploadFileError", e3) : L.$emit(a2 + "-uploadFileError", e3));
|
|
290
290
|
}, scanDone: function(e3) {
|
|
291
291
|
let a2 = e3.componentId, l2 = e3.listCode;
|
|
292
|
-
(a2 || l2) && (l2 ?
|
|
292
|
+
(a2 || l2) && (l2 ? L.$emit(l2 + "-scanDone", e3) : L.$emit(a2 + "-scanDone", e3));
|
|
293
293
|
}, getFormFormatData: function() {
|
|
294
|
-
return
|
|
294
|
+
return je.getFormFormatDataUtil(sa.value);
|
|
295
295
|
} }), (e3, a2) => {
|
|
296
296
|
var _a2, _b, _c, _d;
|
|
297
297
|
const l2 = i("loading");
|
|
298
|
-
return s((v(), r("div", { class: c(["app-container runtime-page-container", [
|
|
299
|
-
if (
|
|
298
|
+
return s((v(), r("div", { class: c(["app-container runtime-page-container", [Fe.value]]), style: m((_a2 = p(sa)) == null ? void 0 : _a2.pageRuntimeStyle), "element-loading-text": ((_b = p(sa)) == null ? void 0 : _b.loadingText) ? (_c = p(sa)) == null ? void 0 : _c.loadingText : p(qe)("superPageRuntimeMessage.pageDefaultLoadingText") }, [la.value ? (v(), r("div", { ref_key: "thisRef", ref: Oe, key: ca.value, class: c(["runtime-page-container-view", Ee.value]), style: m(Ae.value) }, [(v(true), r(h, null, C(Ie.value, (e4, a3) => (v(), d(b, { key: e4.uuid, configure: e4, pageContext: p(sa) }, null, 8, ["configure", "pageContext"]))), 128)), f(xe, { pageContext: p(sa) }, null, 8, ["pageContext"]), Le.value ? (v(), d(E, { key: 0, configure: ra.value, pageContext: va.value, onClose: Ta, onExport: Da }, null, 8, ["configure", "pageContext"])) : g("", true), y("input", { ref_key: "_selectFile_", ref: Na, type: "file", name: "_selectFile_", style: { display: "none" }, onChange: a2[0] || (a2[0] = (e4) => function() {
|
|
299
|
+
if (Be.value) {
|
|
300
300
|
if (!Na.value) return;
|
|
301
301
|
if ("" === Na.value.value || null === Na.value.value) return;
|
|
302
302
|
const e5 = Na.value.files[0];
|
|
303
|
-
e5 ? (Na.value.value = null,
|
|
303
|
+
e5 ? (Na.value.value = null, G(Be.value, e5)) : ie({ showClose: true, type: "warning", message: qe("superPageRuntimeMessage.noFileSelected") });
|
|
304
304
|
}
|
|
305
|
-
}()) }, null, 544),
|
|
305
|
+
}()) }, null, 544), Ue.value || Je.value || He.value || We.value ? (v(), d(p(re), { key: 1, width: "60%", multiple: ze.value, onClose: Sa }, 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: wa }, null, 8, ["task-informitions"])) : g("", true), Ze.value ? (v(), d(V, { 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(B, { key: 4, "task-id": aa.value, "transactor-info": Ye.value, onClose: a2[3] || (a2[3] = (e4) => ea.value = false), onResult: Ra }, null, 8, ["task-id", "transactor-info"])) : g("", true), ta.value ? (v(), d(pe, { key: 5, parentPageContext: ua.value, parentPageEventParams: ia.value, jumpPageSetting: oa.value, onClose: a2[4] || (a2[4] = (e4) => Fa()) }, null, 8, ["parentPageContext", "parentPageEventParams", "jumpPageSetting"])) : g("", true), ya.value ? (v(), d(ke, { key: 6, ref_key: "chartCondtionRef", ref: ha, pageContext: p(sa), onClose: a2[5] || (a2[5] = (e4) => ya.value = false), onSave: Ma, onConfirm: Oa }, null, 8, ["pageContext"])) : g("", true), f($e, { ref_key: "eventCallComponentRef", ref: Pa }, null, 512)], 6)) : g("", true)], 14, De)), [[l2, _e.value || ((_d = p(sa)) == null ? void 0 : _d.isLoading)]]);
|
|
306
306
|
};
|
|
307
307
|
} });
|
|
308
308
|
export {
|