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