super-page-runtime 2.3.44 → 2.3.45
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 +73 -55
- 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 +58 -53
- 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 +167 -167
- 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 C, renderList as h, watch as P } from "vue";
|
|
2
2
|
import b from "./assemblys/object-render.vue.js";
|
|
3
3
|
import { updateOptionDatasources as k, updateChartDatasources as j } from "../utils/page-helper-util.js";
|
|
4
|
-
import {
|
|
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 S, convertToPageContext as T, packageAdditionalMapWithLocationSearch as D, packageAdditionalMapWithRoute as N, 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 = S(e3);
|
|
40
|
-
return a2.isTest = qe.isTest, a2.isTest && qe.dimensions && (a2.dimensions = qe.dimensions), qe.isDialog || (T(a2.entity.request), N(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 Ce } from "../utils/common-util.js";
|
|
24
|
+
import { isMobileBrowser as he } 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 Se } from "../utils/anchor-util.js";
|
|
32
|
+
const Te = ["element-loading-text"], De = e({ __name: "super-page", props: { pageCode: { type: String, required: false }, pageVersion: { type: Number, required: false }, pageId: { type: Number, required: false }, dataId: { type: Number, required: false }, pageDesign: { type: Object, required: false }, isTest: { type: Boolean, required: false }, dimensions: { type: String, required: false }, publishVersion: { type: Number, required: false }, taskId: { type: Number, required: false }, pageRequest: { type: Object, required: false }, contentHeight: { type: [String, Number], default: null }, isDialog: { type: Boolean, required: false }, isPreview: { type: Boolean, required: false } }, emits: ["open", "opened", "close", "closed"], setup(e2, { expose: De2, emit: Ne }) {
|
|
33
|
+
const 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 = he();
|
|
36
|
+
let fa, da;
|
|
37
|
+
const ya = a(false), Ca = a(null), ha = a(false), Pa = a(null);
|
|
42
38
|
function ba(e3) {
|
|
39
|
+
const a2 = T(e3);
|
|
40
|
+
return a2.isTest = Re.isTest, a2.isTest && Re.dimensions && (a2.dimensions = Re.dimensions), Re.isDialog || (D(a2.entity.request), N(pa, a2.entity.request)), 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
|
e3.initChartServiceConfigs, 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, ha.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, ha.value = true, Le.value = true;
|
|
68
|
+
}), L.$on(Qe.value + "import-file", (e4) => {
|
|
69
|
+
Be.value = e4, Da.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,16 +104,16 @@ const Se = ["element-loading-text"], Te = 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 =
|
|
108
|
-
|
|
107
|
+
const e6 = ne(sa), o3 = !!((_a3 = na.value.props.linkPage) == null ? void 0 : _a3.isNeedId);
|
|
108
|
+
na.value;
|
|
109
109
|
let u2 = o3 && a4 ? a4.id : null, n2 = o3 && a4 ? a4.ids : null, i2 = a4 ? a4.selections : [], s2 = a4 ? a4.row : null;
|
|
110
110
|
if (!s2) if (s2 = {}, i2 && i2.length > 0) s2 = i2.length > 1 ? i2 : i2[0];
|
|
111
111
|
else {
|
|
112
|
-
const e7 =
|
|
112
|
+
const e7 = ua.value.entity.data, a5 = ua.value.entity.page;
|
|
113
113
|
a5 && Object.assign(s2, a5), e7 && Object.assign(s2, e7);
|
|
114
114
|
}
|
|
115
|
-
const r2 =
|
|
116
|
-
l5._pageData = r2,
|
|
115
|
+
const r2 = ye(ua.value.entity.page);
|
|
116
|
+
l5._pageData = r2, ge(l5, null, u2, s2, e6, n2).then((e7) => {
|
|
117
117
|
e7.isNeedId = o3, t4(e7);
|
|
118
118
|
});
|
|
119
119
|
} else t4(false);
|
|
@@ -123,189 +123,189 @@ const Se = ["element-loading-text"], Te = e({ __name: "super-page", props: { pag
|
|
|
123
123
|
if (e5) {
|
|
124
124
|
let l4 = {};
|
|
125
125
|
const t4 = a3 && a3.props && a3.props.linkPage ? a3.props.linkPage : null;
|
|
126
|
-
t4 && Object.assign(l4,
|
|
126
|
+
t4 && Object.assign(l4, ye(t4)), Object.assign(l4, e5), Ce(l4, ga);
|
|
127
127
|
const o2 = l4.jumpMode, u2 = l4;
|
|
128
|
-
if (
|
|
128
|
+
if (ia.value || (ia.value = {}), ia.value.paramStoreId = l4.paramStoreId, u2.parentPageCode = ua.value.code, u2.parentPageVersion = ua.value.version, u2.isNewPage = true, "popup" === o2 || "refresh" === o2) {
|
|
129
129
|
const e6 = u2.linkType;
|
|
130
130
|
(function(e7, a4) {
|
|
131
|
-
const l5 =
|
|
131
|
+
const l5 = de();
|
|
132
132
|
return new Promise((t5, o3) => {
|
|
133
|
-
if (l5) if ("popup" !== a4 && !
|
|
133
|
+
if (l5) if ("popup" !== a4 && !ga || ua.value.systemCode === e7.customSystem) t5(true);
|
|
134
134
|
else if (e7.customSystem) {
|
|
135
135
|
const a5 = e7.customSystem;
|
|
136
|
-
|
|
136
|
+
be.dispatch("getCurrentUserPermissions", { loginName: l5, systemCode: a5 }).then(() => {
|
|
137
137
|
t5(true);
|
|
138
138
|
}).catch(() => {
|
|
139
139
|
t5(true);
|
|
140
140
|
});
|
|
141
|
-
} else
|
|
141
|
+
} else ie({ showClose: true, type: "error", message: qe("superPageRuntimeMessage.popMsg") }), console.error("弹框参数缺少customSystem参数,parentPageContext.value.systemCode={}", ua.value.systemCode), t5(false);
|
|
142
142
|
else t5(true);
|
|
143
143
|
});
|
|
144
144
|
})(u2, o2).then((a4) => {
|
|
145
|
-
if (a4) if (
|
|
145
|
+
if (a4) if (ga && (ua.value.systemCode !== u2.customSystem || e6 && "url" === e6)) {
|
|
146
146
|
let e7 = u2._path;
|
|
147
|
-
e7 = e7.replace(/&?_systemName_=[^&]*/, ""),
|
|
148
|
-
} else u2._isIframe = false, "popup" === o2 ? (
|
|
149
|
-
}),
|
|
147
|
+
e7 = e7.replace(/&?_systemName_=[^&]*/, ""), location.href = e7;
|
|
148
|
+
} else u2._isIframe = false, "popup" === o2 ? (oa.value = u2, ta.value = true) : "refresh" === o2 && _a.push({ path: "/dsc/page", query: u2 });
|
|
149
|
+
}), L.$on(Qe.value + "close-dialog", (e7) => {
|
|
150
150
|
!function(e8) {
|
|
151
151
|
const a4 = e8.jumpMode;
|
|
152
|
-
a4 && "popup" === a4 ?
|
|
152
|
+
a4 && "popup" === a4 ? Fa(e8) : (ga && L.$off(Qe.value + "close-dialog"), _a.go(-1));
|
|
153
153
|
}(e7);
|
|
154
154
|
});
|
|
155
155
|
}
|
|
156
156
|
} else console.error("页面配置信息不存在");
|
|
157
157
|
});
|
|
158
|
-
}),
|
|
159
|
-
|
|
160
|
-
}),
|
|
161
|
-
const e4 = { runtime: { events:
|
|
162
|
-
|
|
163
|
-
}),
|
|
158
|
+
}), L.$on(Qe.value + "save-chart-condition", (e4) => {
|
|
159
|
+
ya.value = true;
|
|
160
|
+
}), L.$on("pageLoaded", () => {
|
|
161
|
+
const e4 = { runtime: { events: sa.value.events }, systemCode: "", systemVersion: 0, code: "", version: 0, workflowCode: "", workflowVersion: 0, name: "", uuid: "", label: "" };
|
|
162
|
+
sa.value.canClick = true, _e.value = false, M(null, sa.value, e4, "load"), Se(we.getAutoAnchorComponentConditions(), sa.value);
|
|
163
|
+
}), L.$on(Qe.value + "event-call-component", (e4) => {
|
|
164
164
|
var _a3;
|
|
165
|
-
(_a3 =
|
|
166
|
-
}), P(() =>
|
|
167
|
-
e4 && (_e.value = true,
|
|
168
|
-
_e.value = false,
|
|
169
|
-
}, 3e3),
|
|
170
|
-
}),
|
|
165
|
+
(_a3 = Pa.value) == null ? void 0 : _a3.renderComponent(e4.componentName, e4.componentProps);
|
|
166
|
+
}), P(() => sa.value.isRefresh, (e4) => {
|
|
167
|
+
e4 && (_e.value = true, sa.value.canClick = false, sa.value.clickUuid = null, setTimeout(() => {
|
|
168
|
+
_e.value = false, sa.value.canClick = true;
|
|
169
|
+
}, 3e3), ca.value++, sa.value.isRefresh = false);
|
|
170
|
+
}), z(sa.value, null, (_a2 = Re.pageRequest) == null ? void 0 : _a2.isNeedId);
|
|
171
171
|
}
|
|
172
|
-
const
|
|
173
|
-
function
|
|
172
|
+
const ja = l();
|
|
173
|
+
function xa() {
|
|
174
174
|
u(() => {
|
|
175
175
|
var _a2, _b;
|
|
176
|
-
const e3 =
|
|
177
|
-
if (
|
|
178
|
-
let a2 =
|
|
176
|
+
const e3 = Oe.value.parentNode ? Oe.value.parentNode : Oe.value;
|
|
177
|
+
if (sa.value && (sa.value.pageRuntimeStyle || (sa.value.pageRuntimeStyle = {}), !ga)) {
|
|
178
|
+
let a2 = Re.contentHeight;
|
|
179
179
|
Number(a2) && (a2 += "px");
|
|
180
180
|
const l2 = a2 ?? ((_b = (_a2 = e3 == null ? void 0 : e3.getBoundingClientRect) == null ? void 0 : _a2.call(e3)) == null ? void 0 : _b.height) ?? 0;
|
|
181
|
-
l2 && (
|
|
181
|
+
l2 && (sa.value.pageRuntimeStyle.height = l2);
|
|
182
182
|
}
|
|
183
183
|
});
|
|
184
184
|
}
|
|
185
|
-
function xa() {
|
|
186
|
-
const e3 = ia.value.entity.data, a2 = null == e3.ID ? e3.id : e3.ID;
|
|
187
|
-
va && va.query && va.query._t_ && a2 && ge(va.query._t_ + "_id", a2);
|
|
188
|
-
}
|
|
189
185
|
function $a() {
|
|
190
|
-
|
|
186
|
+
const e3 = sa.value.entity.data, a2 = null == e3.ID ? e3.id : e3.ID;
|
|
187
|
+
pa && pa.query && pa.query._t_ && a2 && fe(pa.query._t_ + "_id", a2);
|
|
191
188
|
}
|
|
192
|
-
function Sa(
|
|
193
|
-
|
|
189
|
+
function Sa() {
|
|
190
|
+
Le.value = false, Be.value = null;
|
|
191
|
+
}
|
|
192
|
+
function Ta(e3, a2) {
|
|
193
|
+
Q(Be.value.pageContext, Be.value.configureObj, a2, ha.value);
|
|
194
194
|
}
|
|
195
195
|
t(() => {
|
|
196
196
|
var _a2;
|
|
197
|
-
|
|
198
|
-
if (we.resetComponentCounters(), we.resetAutoAnchorComponentConditions(),
|
|
197
|
+
ma.value = ((_a2 = pa.query) == null ? void 0 : _a2.paramStoreId) ?? null, x(ma.value), function() {
|
|
198
|
+
if (we.resetComponentCounters(), we.resetAutoAnchorComponentConditions(), Re.isPreview && Re.pageDesign) {
|
|
199
199
|
_e.value = true;
|
|
200
|
-
let e3 =
|
|
201
|
-
const a2 =
|
|
202
|
-
|
|
203
|
-
e3.contextParam = a3.contextParam, e3.branchFieldAuth = a3.branchFieldAuth, e3.systemParam = a3.systemParam, e3.isWorkflowEntity = a3.isWorkflowEntity, e3.dataTypeMaps = a3.dataTypeMaps,
|
|
204
|
-
|
|
200
|
+
let e3 = Re.pageDesign;
|
|
201
|
+
const a2 = ba(e3);
|
|
202
|
+
$(e3, a2).then((a3) => {
|
|
203
|
+
e3.contextParam = a3.contextParam, e3.branchFieldAuth = a3.branchFieldAuth, e3.systemParam = a3.systemParam, e3.isWorkflowEntity = a3.isWorkflowEntity, e3.dataTypeMaps = a3.dataTypeMaps, Ve.value = e3, ka(e3).then(() => {
|
|
204
|
+
$a(), la.value = true, ga || U(sa.value), xa();
|
|
205
205
|
});
|
|
206
206
|
}).finally(() => {
|
|
207
207
|
_e.value = false;
|
|
208
208
|
});
|
|
209
|
-
} else
|
|
209
|
+
} else Re.pageCode && (_e.value = true, S(Re.pageCode).then((e3) => {
|
|
210
210
|
if (e3 && e3.designJson) {
|
|
211
211
|
const a2 = e3.designJson, l2 = JSON.parse(a2);
|
|
212
|
-
l2.contextParam = e3.contextParam, l2.branchFieldAuth = e3.branchFieldAuth, l2.systemParam = e3.systemParam, "form" === l2.pageType && l2.workflowCode && (l2.isWorkflowEntity = e3.isWorkflowEntity), l2.dataTypeMaps = e3.dataTypeMaps,
|
|
213
|
-
|
|
212
|
+
l2.contextParam = e3.contextParam, l2.branchFieldAuth = e3.branchFieldAuth, l2.systemParam = e3.systemParam, "form" === l2.pageType && l2.workflowCode && (l2.isWorkflowEntity = e3.isWorkflowEntity), l2.dataTypeMaps = e3.dataTypeMaps, Ve.value = l2, ka(l2).then(() => {
|
|
213
|
+
$a(), la.value = true, ga || U(sa.value), xa();
|
|
214
214
|
});
|
|
215
215
|
}
|
|
216
216
|
}).catch((e3) => {
|
|
217
217
|
_e.value = false;
|
|
218
218
|
}).finally(() => {
|
|
219
|
-
_e.value = false, "form" ===
|
|
219
|
+
_e.value = false, "form" === sa.value.pageType && je.setPageToChatStore(ja, sa.value);
|
|
220
220
|
}));
|
|
221
221
|
}();
|
|
222
222
|
}), o(() => {
|
|
223
223
|
u(() => {
|
|
224
|
-
|
|
224
|
+
sa.value && Oe.value && q(sa.value, "-1", Oe);
|
|
225
225
|
});
|
|
226
226
|
}), n(() => {
|
|
227
|
-
|
|
227
|
+
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);
|
|
228
228
|
});
|
|
229
|
-
const
|
|
229
|
+
const Da = a(null);
|
|
230
230
|
function Na(e3) {
|
|
231
|
-
true ===
|
|
231
|
+
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));
|
|
232
232
|
}
|
|
233
233
|
function wa(e3) {
|
|
234
|
-
|
|
235
|
-
}
|
|
236
|
-
function Da(e3) {
|
|
237
|
-
Ke.value = [], Ye.value = false, ee(Ve.value, e3);
|
|
234
|
+
Ke.value = [], Ge.value = false, ee(Be.value, e3);
|
|
238
235
|
}
|
|
239
236
|
function qa(e3) {
|
|
240
|
-
Xe.value = [], Ze.value = false, ae(
|
|
237
|
+
Xe.value = [], Ze.value = false, ae(Be.value, e3);
|
|
241
238
|
}
|
|
242
|
-
const _a = me();
|
|
243
239
|
function Ra(e3) {
|
|
240
|
+
Ye.value = [], ea.value = false, le(Be.value, e3);
|
|
241
|
+
}
|
|
242
|
+
const _a = ce();
|
|
243
|
+
function Fa(e3) {
|
|
244
244
|
var _a2, _b, _c, _d;
|
|
245
|
-
const a2 = (_a2 =
|
|
245
|
+
const a2 = (_a2 = oa.value) == null ? void 0 : _a2.closeEvent, l2 = (_b = oa.value) == null ? void 0 : _b.isRefreshWhenClosePopup;
|
|
246
246
|
let t2, o2;
|
|
247
|
-
const u2 =
|
|
247
|
+
const u2 = ua.value.tableName;
|
|
248
248
|
let n2;
|
|
249
|
-
const i2 =
|
|
249
|
+
const i2 = ia.value.columnProp ? ia.value.columnProp : null;
|
|
250
250
|
if (i2) {
|
|
251
|
-
const e4 = (_d = (_c =
|
|
251
|
+
const e4 = (_d = (_c = na.value) == null ? void 0 : _c.items) == null ? void 0 : _d.filter((e5) => {
|
|
252
252
|
var _a3, _b2, _c2, _d2;
|
|
253
253
|
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;
|
|
254
254
|
});
|
|
255
255
|
n2 = e4 && e4.length > 0 ? e4[0] : null;
|
|
256
|
-
} else n2 =
|
|
256
|
+
} else n2 = na.value;
|
|
257
257
|
if (e3) {
|
|
258
258
|
const a3 = e3.isNeedValueMapping;
|
|
259
|
-
t2 = e3.dataModel, o2 = e3.sourceTableName, a3 &&
|
|
259
|
+
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 });
|
|
260
260
|
}
|
|
261
|
-
if (
|
|
261
|
+
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) {
|
|
262
262
|
const l3 = (e3 == null ? void 0 : e3.dataModel) ? [{ dataModel: e3.dataModel }] : [];
|
|
263
263
|
a2.apply(a2, l3);
|
|
264
264
|
} else !function(e4, a3, l3) {
|
|
265
265
|
if (e4) {
|
|
266
|
-
const t3 = I(
|
|
267
|
-
t3 && t3.apply(t3, [{ pageContext:
|
|
266
|
+
const t3 = I(ua.value, e4);
|
|
267
|
+
t3 && t3.apply(t3, [{ pageContext: sa.value, parentPageContext: ua.value, parentConfigureObj: l3, jumpPageSetting: oa.value, columnProp: a3 }]);
|
|
268
268
|
}
|
|
269
269
|
}(a2, i2, n2);
|
|
270
|
-
|
|
270
|
+
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;
|
|
271
271
|
}
|
|
272
|
-
function
|
|
273
|
-
|
|
274
|
-
|
|
272
|
+
function Ma(e3) {
|
|
273
|
+
ue(sa.value, e3).then((e4) => {
|
|
274
|
+
ie({ showClose: true, type: "success", message: qe("superPageRuntimeMessage.successfulSave") }), Ca.value.refreshConditionList();
|
|
275
275
|
});
|
|
276
276
|
}
|
|
277
|
-
function
|
|
277
|
+
function Oa(e3) {
|
|
278
278
|
const a2 = e3.queryCondition;
|
|
279
279
|
let l2 = {};
|
|
280
|
-
a2 && (l2 = JSON.parse(a2)), l2 && l2.data && Object.assign(
|
|
280
|
+
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;
|
|
281
281
|
}
|
|
282
|
-
return
|
|
282
|
+
return De2({ pickFileDone: function(e3) {
|
|
283
283
|
let a2 = e3.componentId, l2 = e3.listCode;
|
|
284
|
-
(a2 || l2) && (l2 ?
|
|
284
|
+
(a2 || l2) && (l2 ? L.$emit(l2 + "-pickFileDone", e3) : L.$emit(a2 + "-pickFileDone", e3));
|
|
285
285
|
}, uploadFileDone: function(e3) {
|
|
286
286
|
let a2 = e3.componentId, l2 = e3.listCode;
|
|
287
|
-
(a2 || l2) && (l2 ?
|
|
287
|
+
(a2 || l2) && (l2 ? L.$emit(l2 + "-uploadFileDone", e3) : L.$emit(a2 + "-uploadFileDone", e3));
|
|
288
288
|
}, uploadFileError: function(e3) {
|
|
289
289
|
let a2 = e3.componentId, l2 = e3.listCode;
|
|
290
|
-
(a2 || l2) && (l2 ?
|
|
290
|
+
(a2 || l2) && (l2 ? L.$emit(l2 + "-uploadFileError", e3) : L.$emit(a2 + "-uploadFileError", e3));
|
|
291
291
|
}, scanDone: function(e3) {
|
|
292
292
|
let a2 = e3.componentId, l2 = e3.listCode;
|
|
293
|
-
(a2 || l2) && (l2 ?
|
|
293
|
+
(a2 || l2) && (l2 ? L.$emit(l2 + "-scanDone", e3) : L.$emit(a2 + "-scanDone", e3));
|
|
294
294
|
}, getFormFormatData: function() {
|
|
295
|
-
return
|
|
295
|
+
return je.getFormFormatDataUtil(sa.value);
|
|
296
296
|
} }), (e3, a2) => {
|
|
297
297
|
var _a2, _b, _c, _d;
|
|
298
298
|
const l2 = i("loading");
|
|
299
|
-
return s((v(), r("div", { class: c(["app-container runtime-page-container", [
|
|
300
|
-
if (
|
|
301
|
-
if (!
|
|
302
|
-
if ("" ===
|
|
303
|
-
const e5 =
|
|
304
|
-
e5 ? (
|
|
299
|
+
return s((v(), r("div", { class: c(["app-container runtime-page-container", [Fe.value]]), style: m((_a2 = p(sa)) == null ? void 0 : _a2.pageRuntimeStyle), "element-loading-text": ((_b = p(sa)) == null ? void 0 : _b.loadingText) ? (_c = p(sa)) == null ? void 0 : _c.loadingText : p(qe)("superPageRuntimeMessage.pageDefaultLoadingText") }, [la.value ? (v(), r("div", { ref_key: "thisRef", ref: Oe, key: ca.value, class: c(["runtime-page-container-view", Ee.value]), style: m(Ae.value) }, [(v(true), r(C, null, h(Ie.value, (e4, a3) => (v(), d(b, { key: e4.uuid, configure: e4, pageContext: p(sa) }, null, 8, ["configure", "pageContext"]))), 128)), f(xe, { pageContext: p(sa) }, null, 8, ["pageContext"]), Le.value ? (v(), d(E, { key: 0, configure: ra.value, pageContext: va.value, onClose: Sa, onExport: Ta }, null, 8, ["configure", "pageContext"])) : g("", true), y("input", { ref_key: "_selectFile_", ref: Da, type: "file", name: "_selectFile_", style: { display: "none" }, onChange: a2[0] || (a2[0] = (e4) => function() {
|
|
300
|
+
if (Be.value) {
|
|
301
|
+
if (!Da.value) return;
|
|
302
|
+
if ("" === Da.value.value || null === Da.value.value) return;
|
|
303
|
+
const e5 = Da.value.files[0];
|
|
304
|
+
e5 ? (Da.value.value = null, G(Be.value, e5)) : ie({ showClose: true, type: "warning", message: qe("superPageRuntimeMessage.noFileSelected") });
|
|
305
305
|
}
|
|
306
|
-
}()) }, null, 544),
|
|
306
|
+
}()) }, null, 544), Ue.value || Je.value || He.value || We.value ? (v(), d(p(re), { key: 1, width: "60%", multiple: ze.value, onClose: Na }, null, 8, ["multiple"])) : g("", true), Ge.value ? (v(), d(A, { key: 2, "task-informitions": Ke.value, onClose: a2[1] || (a2[1] = (e4) => Ge.value = false), onResult: 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: Ca, pageContext: p(sa), onClose: a2[5] || (a2[5] = (e4) => ya.value = false), onSave: Ma, onConfirm: Oa }, null, 8, ["pageContext"])) : g("", true), f($e, { ref_key: "eventCallComponentRef", ref: Pa }, null, 512)], 6)) : g("", true)], 14, Te)), [[l2, _e.value || ((_d = p(sa)) == null ? void 0 : _d.isLoading)]]);
|
|
307
307
|
};
|
|
308
308
|
} });
|
|
309
309
|
export {
|
|
310
|
-
|
|
310
|
+
De as default
|
|
311
311
|
};
|