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
|
@@ -1162,7 +1162,7 @@ function $e(e2) {
|
|
|
1162
1162
|
function qe(e2, n2, o2) {
|
|
1163
1163
|
e2.lastFileTask && !e2.noticeComponent ? e2.noticeComponent = d({ title: l().t("superPageRuntimeMessage.logTip"), duration: 0, position: "top-right", type: "success", onClose() {
|
|
1164
1164
|
"Success" === e2.lastFileTask.taskState || "Fail" === e2.lastFileTask.taskState || "PartSuccess" === e2.lastFileTask.taskState ? Je(n2, o2, e2.lastFileTask.id, e2) : (e2.noticeComponent = null, null == e2.noticeInterval && He(e2, n2, o2));
|
|
1165
|
-
}, message:
|
|
1165
|
+
}, message: F(V, { isShow: true, backendUrl: n2, lastFileTask: e2.lastFileTask, onClickMsg(s2) {
|
|
1166
1166
|
s2.serverPath ? function(e3, n3, o3, s3, i2, a2) {
|
|
1167
1167
|
Je(i2, a2, o3, s3);
|
|
1168
1168
|
const r2 = f(), c2 = t(i2), l2 = c2 + "/common/super-form/downloads?jwt=" + r2 + "&showName=" + encodeURI(e3) + "&serverPath=" + n3;
|
|
@@ -190,7 +190,7 @@ function setVariableValue(t, e, o) {
|
|
|
190
190
|
let n = t;
|
|
191
191
|
for (let t2 = 0; t2 < e.length; t2++) {
|
|
192
192
|
const a = e[t2];
|
|
193
|
-
t2 + 1 === e.length ? n[a] =
|
|
193
|
+
t2 + 1 === e.length ? void 0 === o ? n[a] = null : Array.isArray(n[a]) && Array.isArray(o) ? n[a].splice(0, n[a].length, ...o) : n[a] = o : (void 0 === n[a] && (n[a] = {}), n = n[a]);
|
|
194
194
|
}
|
|
195
195
|
}
|
|
196
196
|
function setVariableValueWithProp(t, e, o) {
|
|
@@ -22,8 +22,14 @@ export declare function convertToPageContext(pageDesign: PageDesign): PageContex
|
|
|
22
22
|
* 获取请求对象的值
|
|
23
23
|
*/
|
|
24
24
|
export declare function packageAdditionalMapWithLocationSearch(requestObj: any): any;
|
|
25
|
-
export declare function packageAdditionalMapWithPageRequest(pageRequest:
|
|
25
|
+
export declare function packageAdditionalMapWithPageRequest(pageRequest: any, requestObj: any, isDialog: boolean): void;
|
|
26
26
|
export declare function packageAdditionalMapWithRoute(route: any, requestObj: any): void;
|
|
27
|
+
/**
|
|
28
|
+
* 维护paramStoreId注册表。
|
|
29
|
+
* 登记paramStoreId键名并设置上限数量,防止 sessionStorage 无限增长。
|
|
30
|
+
* @param paramStoreId 当前页面自身的 paramStoreId
|
|
31
|
+
*/
|
|
32
|
+
export declare function registerParamStoreId(paramStoreId: string | null | undefined): void;
|
|
27
33
|
export declare function getModelFields(formItemConfigure: any, prop?: string): string[];
|
|
28
34
|
/**
|
|
29
35
|
* 获取表单元素模型名称
|
|
@@ -25,7 +25,7 @@ function m(t2) {
|
|
|
25
25
|
function f(e2, t2) {
|
|
26
26
|
return new Promise((n2, i2) => {
|
|
27
27
|
e2 ? b().then((s2) => {
|
|
28
|
-
s2 && (e2.systemParam = h(s2)), e2.tableRuntimes && Object.keys(e2.tableRuntimes).length > 0 ?
|
|
28
|
+
s2 && (e2.systemParam = h(s2)), e2.tableRuntimes && Object.keys(e2.tableRuntimes).length > 0 ? R(e2, t2, e2.systemVersion).then((t3) => {
|
|
29
29
|
e2.contextParam = h(t3.contextParam), e2.branchFieldAuth = t3.branchFieldAuth, e2.isWorkflowEntity = t3.isWorkflowEntity, e2.dataTypeMaps = t3.dataTypeMaps, e2.superGridItems = t3.superGrids, n2(e2);
|
|
30
30
|
}).catch((e3) => {
|
|
31
31
|
i2(e3);
|
|
@@ -113,19 +113,20 @@ function P(e2) {
|
|
|
113
113
|
}
|
|
114
114
|
e2._t_;
|
|
115
115
|
}
|
|
116
|
-
function E(e2, t2) {
|
|
116
|
+
function E(e2, t2, n2) {
|
|
117
117
|
if (e2) {
|
|
118
118
|
Object.assign(t2, e2);
|
|
119
|
-
|
|
119
|
+
const i2 = e2.paramStoreId;
|
|
120
|
+
n2 && (e2.dialogParamStoreId = i2), A(i2, t2), delete e2.paramStoreId, e2.jumpMode && (t2.jumpMode = e2.jumpMode);
|
|
120
121
|
}
|
|
121
122
|
}
|
|
122
123
|
function v(e2, t2) {
|
|
123
124
|
if (e2 && (e2.params && Object.assign(t2, e2.params), e2.query)) {
|
|
124
125
|
Object.assign(t2, e2.query);
|
|
125
|
-
|
|
126
|
+
A(e2.query.paramStoreId, t2);
|
|
126
127
|
}
|
|
127
128
|
}
|
|
128
|
-
function
|
|
129
|
+
function A(e2, t2) {
|
|
129
130
|
if (e2) {
|
|
130
131
|
const n2 = a(e2);
|
|
131
132
|
if (n2) {
|
|
@@ -134,13 +135,29 @@ function C(e2, t2) {
|
|
|
134
135
|
}
|
|
135
136
|
}
|
|
136
137
|
}
|
|
138
|
+
const C = "__paramStoreIdRegistry__";
|
|
139
|
+
function I(e2) {
|
|
140
|
+
if (!e2) return;
|
|
141
|
+
let t2 = [];
|
|
142
|
+
try {
|
|
143
|
+
const e3 = sessionStorage.getItem(C);
|
|
144
|
+
t2 = e3 ? JSON.parse(e3) : [];
|
|
145
|
+
} catch (e3) {
|
|
146
|
+
t2 = [];
|
|
147
|
+
}
|
|
148
|
+
for (Array.isArray(t2) || (t2 = []), t2 = t2.filter((t3) => t3 !== e2), t2.push(e2); t2.length > 20; ) {
|
|
149
|
+
const n2 = t2.shift();
|
|
150
|
+
n2 && n2 !== e2 && sessionStorage.removeItem(n2);
|
|
151
|
+
}
|
|
152
|
+
sessionStorage.setItem(C, JSON.stringify(t2));
|
|
153
|
+
}
|
|
137
154
|
function k(e2, t2) {
|
|
138
155
|
let n2, i2 = t2;
|
|
139
156
|
t2 || (n2 = e2.props.base ? e2.props.base : {}, i2 = n2.prop);
|
|
140
157
|
let s2 = null;
|
|
141
158
|
return t2 && !t2.startsWith("${") ? s2 = ["data", t2] : !e2 || i2 && i2.startsWith("${") ? i2.startsWith("${") ? (i2 = i2.substring(2, i2.length - 1), s2 = i2.split("."), e2 && s2.length < 2 && (s2 = [e2.uuid])) : e2 && (s2 = ["page", e2.uuid]) : s2 = ["page", e2.uuid], s2 || e2 ? s2 : ["temp"];
|
|
142
159
|
}
|
|
143
|
-
function
|
|
160
|
+
function M(e2, t2, n2) {
|
|
144
161
|
var _a, _b;
|
|
145
162
|
const i2 = k(t2, n2), o2 = e2.entity;
|
|
146
163
|
if (null == o2.data.ID && null == o2.data.id) {
|
|
@@ -150,14 +167,14 @@ function A(e2, t2, n2) {
|
|
|
150
167
|
if (null == l2) {
|
|
151
168
|
const s2 = n3 ? n3.defaultValue : null, l3 = Boolean((_a = t2 == null ? void 0 : t2.runtime) == null ? void 0 : _a.arrayValue);
|
|
152
169
|
if (s2) try {
|
|
153
|
-
const t3 =
|
|
154
|
-
if (
|
|
170
|
+
const t3 = O(e2, s2, r2, a2);
|
|
171
|
+
if (j(t3)) S(o2, i2, t3, l3);
|
|
155
172
|
else if (((_b = n3.moreDefaultValue) == null ? void 0 : _b.length) > 0) {
|
|
156
173
|
const t4 = n3.moreDefaultValue;
|
|
157
174
|
for (let n4 = 0; n4 < t4.length; n4++) {
|
|
158
|
-
const s3 =
|
|
159
|
-
if (
|
|
160
|
-
|
|
175
|
+
const s3 = O(e2, t4[n4], r2, a2);
|
|
176
|
+
if (j(s3)) {
|
|
177
|
+
S(o2, i2, s3, l3);
|
|
161
178
|
break;
|
|
162
179
|
}
|
|
163
180
|
}
|
|
@@ -168,13 +185,13 @@ function A(e2, t2, n2) {
|
|
|
168
185
|
}
|
|
169
186
|
return i2;
|
|
170
187
|
}
|
|
171
|
-
function
|
|
188
|
+
function j(e2) {
|
|
172
189
|
return null != e2 && "" !== e2;
|
|
173
190
|
}
|
|
174
|
-
function
|
|
191
|
+
function S(e2, t2, n2, i2) {
|
|
175
192
|
!Array.isArray(n2) || i2 ? r(e2, t2, n2) : r(e2, t2, n2.join(","));
|
|
176
193
|
}
|
|
177
|
-
function
|
|
194
|
+
function O(e2, t2, n2, i2) {
|
|
178
195
|
let s2;
|
|
179
196
|
if (t2 && (s2 = o(e2, t2), null != s2 && null != s2 && n2)) {
|
|
180
197
|
let e3 = false;
|
|
@@ -194,32 +211,32 @@ function T(e2, t2) {
|
|
|
194
211
|
if ("service" == r2) a2 = o2;
|
|
195
212
|
else if ("standard" === r2) a2 = t2.code + "." + o2;
|
|
196
213
|
else {
|
|
197
|
-
a2 = "custom" ===
|
|
214
|
+
a2 = "custom" === _(o2, t2).type ? o2 : t2.code + "." + o2;
|
|
198
215
|
}
|
|
199
216
|
n2.includes(a2) || n2.push(a2);
|
|
200
217
|
}
|
|
201
218
|
} else if (e2.autoPermissions) for (const i2 of e2.autoPermissions) n2.push(t2.code + "." + i2.simpleCode);
|
|
202
219
|
return n2.join(",");
|
|
203
220
|
}
|
|
204
|
-
function
|
|
221
|
+
function _(e2, t2) {
|
|
205
222
|
const n2 = t2.pagePermissions;
|
|
206
223
|
if (n2 && n2.length > 0) {
|
|
207
224
|
for (let t3 = 0; t3 < n2.length; t3++) if (n2[t3].simpleCode === e2) return n2[t3];
|
|
208
225
|
}
|
|
209
226
|
return null;
|
|
210
227
|
}
|
|
211
|
-
function
|
|
228
|
+
function R(n2, i2, s2) {
|
|
212
229
|
const o2 = n2.tableRuntimes, r2 = t(i2);
|
|
213
230
|
let a2;
|
|
214
231
|
const l2 = n2.code;
|
|
215
232
|
return r2 && Object.keys(r2) > 0 && (a2 = JSON.stringify(r2)), e.post(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/super-grids", { tableRuntimes: o2, additionalParamMapJson: a2, pageCode: l2, publishVersion: s2, pageType: n2.pageType });
|
|
216
233
|
}
|
|
217
|
-
const
|
|
218
|
-
function
|
|
234
|
+
const x = ["button-detail", "print-label"];
|
|
235
|
+
function F(e2, t2, n2) {
|
|
219
236
|
var _a, _b;
|
|
220
237
|
const s2 = t2.props && t2.props.base ? t2.props.base.prop : null, o2 = p(e2);
|
|
221
238
|
let r2 = false;
|
|
222
|
-
if (o2 &&
|
|
239
|
+
if (o2 && x.indexOf(t2.name) < 0 && e2.fieldPermissionMap) {
|
|
223
240
|
const n3 = e2.fieldPermissionMap.get("all_fields");
|
|
224
241
|
false === (n3 == null ? void 0 : n3.canEdit) && ((_a = t2.runtime) == null ? void 0 : _a.props) && (t2.runtime.props.state = "disabled", r2 = true);
|
|
225
242
|
}
|
|
@@ -245,7 +262,7 @@ function R(e2, t2, n2) {
|
|
|
245
262
|
((_b = t2.props) == null ? void 0 : _b.customRuleEvents) && (e2.customRuleEvents || (e2.customRuleEvents = []), e2.customRuleEvents.push({ prop: a2, events: t2.props.customRuleEvents }));
|
|
246
263
|
}
|
|
247
264
|
}
|
|
248
|
-
function
|
|
265
|
+
function V(e2, t2) {
|
|
249
266
|
if (e2.initInfo) {
|
|
250
267
|
["dynamicControlFormEdit", "disableElement", "enableElement", "hideElement", "showElement"].forEach((n2) => {
|
|
251
268
|
const i2 = e2.initInfo[n2];
|
|
@@ -261,17 +278,18 @@ function _(e2, t2) {
|
|
|
261
278
|
}
|
|
262
279
|
}
|
|
263
280
|
export {
|
|
264
|
-
|
|
281
|
+
V as controlObjectRenderState,
|
|
265
282
|
y as convertToPageContext,
|
|
266
|
-
|
|
267
|
-
|
|
283
|
+
O as getDefaultValue,
|
|
284
|
+
M as getFormModelFields,
|
|
268
285
|
k as getModelFields,
|
|
269
286
|
T as getPermissionCodes,
|
|
270
287
|
P as packageAdditionalMapWithLocationSearch,
|
|
271
288
|
E as packageAdditionalMapWithPageRequest,
|
|
272
289
|
v as packageAdditionalMapWithRoute,
|
|
273
|
-
|
|
290
|
+
F as packageFormRules,
|
|
274
291
|
m as queryPageDesignByCode,
|
|
275
292
|
f as queryPageDesignWhenPreview,
|
|
276
|
-
|
|
293
|
+
R as queryPageSuperGrids,
|
|
294
|
+
I as registerParamStoreId
|
|
277
295
|
};
|
|
@@ -120,8 +120,8 @@ const B = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
120
120
|
}
|
|
121
121
|
n(() => {
|
|
122
122
|
const e3 = z.uuid, t2 = j.subTableWatchProps;
|
|
123
|
-
I.$on("_refreshSubTable_" + e3, (
|
|
124
|
-
const o2 =
|
|
123
|
+
I.$on("_refreshSubTable_" + e3, (n3) => {
|
|
124
|
+
const o2 = n3.propName;
|
|
125
125
|
if (t2 && t2[e3] && t2[e3].length > 0) {
|
|
126
126
|
t2[e3].indexOf(o2) >= 0 && re();
|
|
127
127
|
}
|
|
@@ -137,7 +137,9 @@ const B = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
137
137
|
ae.value.pickFileDone(e4);
|
|
138
138
|
}), I.$on(G + "-scanDone", (e4) => {
|
|
139
139
|
ae.value.scanDone(e4);
|
|
140
|
-
})
|
|
140
|
+
});
|
|
141
|
+
const n2 = z.props ? z.props.dataOrigin : {};
|
|
142
|
+
le.value && le.value.configureObj.props.base && le.value.configureObj.props.base.isSafeDelete && ie("setSafeDeleteTableCode", n2.tableName);
|
|
141
143
|
}), o(() => {
|
|
142
144
|
de && clearTimeout(de), fe && clearTimeout(fe);
|
|
143
145
|
const e3 = z.uuid;
|
package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js
CHANGED
|
@@ -10,72 +10,77 @@ import { getRelativeBaseUrl as D } from "agilebuilder-ui/src/utils/common-util";
|
|
|
10
10
|
import { getDefaultValue as T } from "../../../../utils/page-init-util.js";
|
|
11
11
|
const _ = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: _2 }) {
|
|
12
12
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
13
|
-
const z = e2, R = t(null), F = z.configure.runtime ? z.configure.runtime : {}, O = t(F.props ? F.props : {}), q = F.style, W = F.class, V = F.headerStyle, $ = F.titleExceedStyle, A = z.pageContext.entity ? z.pageContext.entity : {}, E = z.configure.props.base ? z.configure.props.base : {}, U =
|
|
13
|
+
const z = e2, R = t(null), F = z.configure.runtime ? z.configure.runtime : {}, O = t(F.props ? F.props : {}), q = F.style, W = F.class, V = F.headerStyle, $ = F.titleExceedStyle, A = z.pageContext.entity ? z.pageContext.entity : {}, E = z.configure.props.base ? z.configure.props.base : {}, U = ee(E.prop), B = ee(E.propName);
|
|
14
14
|
let G = t({});
|
|
15
|
-
G.value.isShowWatermark = void 0 === ((_b = (_a = z.configure.props) == null ? void 0 : _a.watermark) == null ? void 0 : _b.isShowWatermark) ? "true" : ((_c = z.configure.props) == null ? void 0 : _c.watermark.isShowWatermark) + "", G.value.content = ((_e = (_d = z.configure.props) == null ? void 0 : _d.watermark) == null ? void 0 : _e.content) ? (_g = (_f = z.configure.props) == null ? void 0 : _f.watermark) == null ? void 0 : _g.content : ""
|
|
16
|
-
|
|
15
|
+
G.value.isShowWatermark = void 0 === ((_b = (_a = z.configure.props) == null ? void 0 : _a.watermark) == null ? void 0 : _b.isShowWatermark) ? "true" : ((_c = z.configure.props) == null ? void 0 : _c.watermark.isShowWatermark) + "", G.value.content = ((_e = (_d = z.configure.props) == null ? void 0 : _d.watermark) == null ? void 0 : _e.content) ? (_g = (_f = z.configure.props) == null ? void 0 : _f.watermark) == null ? void 0 : _g.content : "";
|
|
16
|
+
let H = false;
|
|
17
|
+
U && U.length > 1 && l(() => z.pageContext.entity[U[0]][U[1]], (e3) => {
|
|
18
|
+
if (H) return;
|
|
19
|
+
Z(h(A, U));
|
|
17
20
|
});
|
|
18
|
-
const
|
|
19
|
-
function
|
|
21
|
+
const J = z.pageContext.code, K = t(U ? J + "__" + U.join("__") : null), L = h(A, U), M = t(null), Q = t(false), X = t([]), Y = t({});
|
|
22
|
+
function Z(e3) {
|
|
20
23
|
if (e3) {
|
|
21
24
|
const t2 = e3.split(",");
|
|
22
25
|
if (t2.length > 0) {
|
|
23
26
|
const e4 = D(window.$vueApp.config.globalProperties.baseAPI) + "/component/fs-upload/search-file-metadata";
|
|
24
27
|
I.post(e4, t2).then((e5) => {
|
|
25
|
-
|
|
28
|
+
X.value = [];
|
|
26
29
|
const l2 = [], o2 = {};
|
|
27
30
|
e5.forEach((e6) => {
|
|
28
31
|
o2[e6.uuid] = e6;
|
|
29
32
|
});
|
|
30
33
|
for (let e6 = 0; e6 < t2.length; e6++) {
|
|
31
34
|
const a2 = t2[e6];
|
|
32
|
-
l2.push(o2[a2].fileName),
|
|
35
|
+
l2.push(o2[a2].fileName), X.value.push({ showName: o2[a2].fileName, serverPath: a2, fileSize: o2[a2].fileSize });
|
|
33
36
|
}
|
|
34
|
-
"input" === O.value.displayType && (
|
|
37
|
+
"input" === O.value.displayType && (Y.value.showName = l2.join(","), Y.value.serverPath = t2.join(","));
|
|
35
38
|
}).finally(() => {
|
|
36
|
-
|
|
39
|
+
Q.value = true;
|
|
37
40
|
});
|
|
38
|
-
} else
|
|
39
|
-
} else
|
|
41
|
+
} else Q.value = true;
|
|
42
|
+
} else X.value = [], Y.value = {}, Q.value = true;
|
|
40
43
|
}
|
|
41
|
-
function
|
|
44
|
+
function ee(e3) {
|
|
42
45
|
return e3 ? (e3.startsWith("${") && (e3 = e3.substring(2, e3.length - 1)), e3.split(".")) : [];
|
|
43
46
|
}
|
|
44
|
-
function
|
|
47
|
+
function te(e3) {
|
|
45
48
|
z.pageContext.fileuploadInfo || (z.pageContext.fileuploadInfo = []);
|
|
46
49
|
return -1 === z.pageContext.fileuploadInfo.findIndex((e4) => e4.uuid === z.configure.uuid) && z.pageContext.fileuploadInfo.push({ uuid: z.configure.uuid, label: S(O.value.title) }), e3.pageContext || (e3.pageContext = z.pageContext), e3.configure || (e3.configureObj = z.configure), w(e3);
|
|
47
50
|
}
|
|
48
|
-
function
|
|
51
|
+
function le() {
|
|
49
52
|
if (z.pageContext.fileuploadInfo && z.configure.uuid) {
|
|
50
53
|
const e3 = z.pageContext.fileuploadInfo.findIndex((e4) => e4.uuid === z.configure.uuid);
|
|
51
54
|
-1 !== e3 && z.pageContext.fileuploadInfo.splice(e3, 1);
|
|
52
55
|
}
|
|
53
56
|
}
|
|
54
|
-
function le(e3) {
|
|
55
|
-
te();
|
|
56
|
-
}
|
|
57
57
|
function oe(e3) {
|
|
58
|
+
le();
|
|
59
|
+
}
|
|
60
|
+
function ae(e3) {
|
|
58
61
|
return b(z.pageContext, z.configure, e3);
|
|
59
62
|
}
|
|
60
|
-
|
|
61
|
-
const
|
|
63
|
+
Z(L);
|
|
64
|
+
const ie = (e3, t2, l2) => {
|
|
62
65
|
var o2;
|
|
63
|
-
|
|
64
|
-
},
|
|
66
|
+
le(), ue(), o2 = { response: e3, uploadFile: t2, uploadFiles: l2 }, x(z.pageContext, z.configure, o2);
|
|
67
|
+
}, ne = (e3) => {
|
|
65
68
|
var t2;
|
|
66
|
-
|
|
67
|
-
},
|
|
69
|
+
ue(), t2 = { file: e3 }, k(z.pageContext, z.configure, t2);
|
|
70
|
+
}, ue = () => {
|
|
68
71
|
const e3 = [], t2 = [];
|
|
69
|
-
if (O.value.limit &&
|
|
70
|
-
const e4 =
|
|
71
|
-
for (let t3 = 0; t3 < e4; t3++)
|
|
72
|
+
if (O.value.limit && X.value.length > O.value.limit) {
|
|
73
|
+
const e4 = X.value.length - O.value.limit;
|
|
74
|
+
for (let t3 = 0; t3 < e4; t3++) X.value.shift();
|
|
72
75
|
}
|
|
73
|
-
for (let l2 = 0; l2 <
|
|
74
|
-
y(z.pageContext.entity, U, t2.join(",")), y(z.pageContext.entity, B, e3.join(",")),
|
|
75
|
-
|
|
76
|
+
for (let l2 = 0; l2 < X.value.length; l2++) e3.push(X.value[l2].showName), t2.push(X.value[l2].serverPath);
|
|
77
|
+
H = true, y(z.pageContext.entity, U, t2.join(",")), y(z.pageContext.entity, B, e3.join(",")), a(() => {
|
|
78
|
+
H = false;
|
|
79
|
+
}), t2.length > 0 && (R.value = "");
|
|
80
|
+
}, re = t(null), pe = t(null);
|
|
76
81
|
return o(() => {
|
|
77
|
-
N.$on(
|
|
78
|
-
|
|
82
|
+
N.$on(K.value + "-pickFileDone", (e3) => {
|
|
83
|
+
M.value.pickFileDone(e3);
|
|
79
84
|
}), a(() => {
|
|
80
85
|
const e3 = (e4, t3, l3) => {
|
|
81
86
|
if (!t3) return;
|
|
@@ -92,15 +97,15 @@ const _ = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure:
|
|
|
92
97
|
};
|
|
93
98
|
null == A.data.ID && null == A.data.id && (e3(U, E.propDefaultValue, E.morePropDefaultValue), e3(B, E.propNameDefaultValue, E.morePropNameDefaultValue));
|
|
94
99
|
const t2 = h(A, U), l2 = { showName: h(A, B), serverPath: t2 };
|
|
95
|
-
C(l2, z.pageContext, z.configure, { formItemRef:
|
|
100
|
+
C(l2, z.pageContext, z.configure, { formItemRef: re.value, componentRef: M.value, titleRef: pe.value, value: l2, entity: z.pageContext.entity.data, pageData: z.pageContext.entity.page });
|
|
96
101
|
});
|
|
97
102
|
}), i(() => {
|
|
98
|
-
N.$off(
|
|
103
|
+
N.$off(K.value + "-pickFileDone");
|
|
99
104
|
}), _2({ addRequiredClass: function() {
|
|
100
105
|
R.value = j();
|
|
101
106
|
} }), (e3, t2) => {
|
|
102
107
|
const l2 = n("el-form-item");
|
|
103
|
-
return O.value.tittleShow ? (p(), u(l2, { key: 0, ref_key: "formItemRef", ref:
|
|
108
|
+
return O.value.tittleShow ? (p(), u(l2, { key: 0, ref_key: "formItemRef", ref: re, required: O.value.required, class: f(d(W) + (R.value ? " " + R.value : "")), "label-width": O.value.labelWidth, style: s(d(q)) }, m({ default: c(() => [Q.value ? (p(), u(d(P), { key: 0, ref_key: "fileUploadRef", ref: M, style: { width: "100%" }, disabled: "disabled" === O.value.state, displayType: O.value.displayType, accept: O.value.accept, multiple: O.value.multiple, placeholder: O.value.placeholder, limit: O.value.limit, "limit-file-size": O.value.limitFileSize, "disabled-no-preview": O.value.disabledNoPreview, "disabled-no-download": O.value.disabledNoDownload, openCameraOrChoosePhoto: O.value.openCameraOrChoosePhoto, "sort-type": O.value.sortType, "file-info": Y.value, "file-list": X.value, "system-code": e3.pageContext.systemCode, componentId: K.value, watermark: d(G), "on-success": ie, "on-remove": ne, "before-upload": te, "on-error": oe, "before-remove": ae, pageContext: e3.pageContext, "file-show-type": O.value.fileShowType }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "disabled-no-preview", "disabled-no-download", "openCameraOrChoosePhoto", "sort-type", "file-info", "file-list", "system-code", "componentId", "watermark", "pageContext", "file-show-type"])) : r("", true)]), _: 2 }, [O.value.tittleShow ? { name: "label", fn: c(() => [v("div", { ref_key: "titleRef", ref: pe, style: s({ ...d(V), ...d($) }), class: "amb-form-item-label" }, g(d(S)(O.value.title)), 5)]), key: "0" } : void 0]), 1032, ["required", "class", "label-width", "style"])) : Q.value ? (p(), u(d(P), { key: 1, ref_key: "fileUploadRef", ref: M, style: { width: "100%" }, disabled: "disabled" === O.value.state, displayType: O.value.displayType, accept: O.value.accept, multiple: O.value.multiple, placeholder: O.value.placeholder, limit: O.value.limit, "limit-file-size": O.value.limitFileSize, "disabled-no-preview": O.value.disabledNoPreview, "disabled-no-download": O.value.disabledNoDownload, openCameraOrChoosePhoto: O.value.openCameraOrChoosePhoto, "sort-type": O.value.sortType, "file-info": Y.value, "file-list": X.value, "system-code": e3.pageContext.systemCode, componentId: K.value, watermark: d(G), "on-success": ie, "on-remove": ne, "before-upload": te, "on-error": oe, "before-remove": ae, pageContext: e3.pageContext, "file-show-type": O.value.fileShowType }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "disabled-no-preview", "disabled-no-download", "openCameraOrChoosePhoto", "sort-type", "file-info", "file-list", "system-code", "componentId", "watermark", "pageContext", "file-show-type"])) : r("", true);
|
|
104
109
|
};
|
|
105
110
|
} });
|
|
106
111
|
export {
|
|
@@ -1,25 +1,28 @@
|
|
|
1
|
-
import { defineComponent as e, ref as a,
|
|
2
|
-
import
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
if (
|
|
6
|
-
V.value = (
|
|
7
|
-
const e3 = !!
|
|
8
|
-
if (
|
|
1
|
+
import { defineComponent as e, ref as a, onUnmounted as l, resolveComponent as u, createBlock as t, openBlock as o, withCtx as n, createElementBlock as r, createCommentVNode as i } from "vue";
|
|
2
|
+
import d from "./super-page.vue.js";
|
|
3
|
+
const s = ["src"], g = ["src"], v = e({ __name: "super-page-dialog", props: { parentPageContext: {}, parentPageEventParams: {}, jumpPageSetting: {}, isTest: { type: Boolean }, customParams: {} }, emits: ["open", "opened", "close", "closed"], setup(e2, { emit: v2 }) {
|
|
4
|
+
const p = e2, m = v2, c = a(true), P = p.jumpPageSetting ? p.jumpPageSetting : null, f = a(null), h = a(null), w = a(null), b = a(null), C = a(null), j = a(null), y = a({}), I = a(false), k = a(false), O = a("rtl"), S = a(null), _ = a(false), x = a(null), V = a(true), M = a(false), T = a(true), q = a(false);
|
|
5
|
+
if (P) {
|
|
6
|
+
V.value = (P == null ? void 0 : P.alignCenter) ?? true, M.value = (P == null ? void 0 : P.fullscreen) ?? false, _.value = !(!P || void 0 === P._isIframe) && P._isIframe, x.value = P && P._path ? P._path : null, j.value = P && P.dialogType ? P.dialogType : "dialog", I.value = !(!P || !P.draggable) && P.draggable, k.value = !(!P || !P.overflow) && P.overflow, O.value = P && P.showPosition ? P.showPosition : "rtl", h.value = P && P.jumpPageTitle ? P.jumpPageTitle : null, f.value = P && P.jumpPageWidth ? P.jumpPageWidth : "dialog" === j.value ? "calc(100% - 30px)" : "100%", T.value = P == null ? void 0 : P.showDialogModal, false === T.value ? q.value = P == null ? void 0 : P.dialogModalPenetrable : null !== T.value && void 0 !== T.value || true === (P == null ? void 0 : P.dialogModalPenetrable) && (q.value = true, T.value = false), S.value = P && P.jumpPageHeight ? P.jumpPageHeight : null, w.value = P && P.pageCode, b.value = P && P.dataId ? P.dataId : null, C.value = P && P.taskId ? P.taskId : null;
|
|
7
|
+
const e3 = !!P.isNeedId;
|
|
8
|
+
if (p.parentPageEventParams) {
|
|
9
9
|
try {
|
|
10
|
-
const e4 = JSON.parse(JSON.stringify(
|
|
11
|
-
e4.pageContext && delete e4.pageContext, e4.configureObj && delete e4.configureObj, Object.assign(
|
|
10
|
+
const e4 = JSON.parse(JSON.stringify(p.parentPageEventParams));
|
|
11
|
+
e4.pageContext && delete e4.pageContext, e4.configureObj && delete e4.configureObj, Object.assign(y.value, e4);
|
|
12
12
|
} catch (e4) {
|
|
13
13
|
}
|
|
14
|
-
null !==
|
|
14
|
+
null !== b.value && void 0 !== b.value || (b.value = p.parentPageEventParams.id);
|
|
15
15
|
}
|
|
16
|
-
|
|
16
|
+
y.value.parentPageCode = P && P.parentPageCode ? P.parentPageCode : null, y.value.parentPageVersion = P && P.parentPageVersion ? P.parentPageVersion : null, y.value.jumpMode = P ? P.jumpMode : null, y.value.id = b.value, y.value.isNeedId = e3, y.value.taskId = C.value, p.customParams && Object.assign(y.value, p.customParams);
|
|
17
17
|
}
|
|
18
|
-
return (
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
return l(() => {
|
|
19
|
+
var _a;
|
|
20
|
+
((_a = y.value) == null ? void 0 : _a.dialogParamStoreId) && sessionStorage.removeItem(y.value.dialogParamStoreId);
|
|
21
|
+
}), (e3, a2) => {
|
|
22
|
+
const l2 = u("el-drawer"), v3 = u("el-dialog");
|
|
23
|
+
return j.value && "drawer" === j.value ? (o(), t(l2, { key: 0, modelValue: c.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e4) => c.value = e4), title: h.value, direction: O.value, size: f.value, class: "content-drawer amb-super-page-runtime-drawer-view", onOpen: a2[1] || (a2[1] = (e4) => m("open")), onOpened: a2[2] || (a2[2] = (e4) => m("opened")), onClose: a2[3] || (a2[3] = (e4) => m("close")), onClosed: a2[4] || (a2[4] = (e4) => m("closed")) }, { default: n(() => [!_.value && w.value ? (o(), t(d, { key: 0, pageCode: w.value, pageRequest: y.value, isDialog: true }, null, 8, ["pageCode", "pageRequest"])) : _.value ? (o(), r("iframe", { key: 1, src: x.value, class: "amb-super-page-runtime-drawer-iframe", frameborder: "0", marginwidth: "0", marginheight: "0", width: "100%", allowtransparency: "no" }, null, 8, s)) : i("", true)]), _: 1 }, 8, ["modelValue", "title", "direction", "size"])) : (o(), t(v3, { key: 1, "model-value": "", title: h.value, "close-on-click-modal": false, "append-to-body": "", width: f.value, modal: T.value, "modal-penetrable": q.value, fullscreen: M.value, alignCenter: V.value, draggable: I.value, overflow: k.value, class: "amb-super-page-runtime-dialog-view", onOpen: a2[5] || (a2[5] = (a3) => e3.$emit("open")), onOpend: a2[6] || (a2[6] = (a3) => e3.$emit("opend")), onClose: a2[7] || (a2[7] = (e4) => m("close")), onClosed: a2[8] || (a2[8] = (a3) => e3.$emit("closed")) }, { default: n(() => [!_.value && w.value ? (o(), t(d, { key: 0, style: { "min-height": "100px" }, pageCode: w.value, pageRequest: y.value, contentHeight: S.value, isDialog: true }, null, 8, ["pageCode", "pageRequest", "contentHeight"])) : _.value ? (o(), r("iframe", { key: 1, src: x.value, class: "amb-super-page-runtime-dialog-iframe", frameborder: "0", marginwidth: "0", marginheight: "0", width: "100%", allowtransparency: "no" }, null, 8, g)) : i("", true)]), _: 1 }, 8, ["title", "width", "modal", "modal-penetrable", "fullscreen", "alignCenter", "draggable", "overflow"]));
|
|
21
24
|
};
|
|
22
25
|
} });
|
|
23
26
|
export {
|
|
24
|
-
|
|
27
|
+
v as default
|
|
25
28
|
};
|