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