super-page-runtime 2.2.29 → 2.2.32
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/interfaces/page-design-types.d.ts +6 -0
- package/dist/es/components/runtime/utils/table-utils.d.ts +4 -0
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +186 -171
- package/dist/es/components/runtime/views/super-page.vue.js +20 -20
- package/package.json +2 -2
|
@@ -379,7 +379,7 @@ function F(t2, s2, n2, o2, i2) {
|
|
|
379
379
|
if (s3) {
|
|
380
380
|
const n4 = s3;
|
|
381
381
|
let o3;
|
|
382
|
-
n4.entity
|
|
382
|
+
o3 = n4.entity ? n4.entity : n4, n4.formNo && (e2.initFormNo = n4.formNo);
|
|
383
383
|
!function(e3, t4, s4) {
|
|
384
384
|
const n5 = t4.props.base.successOperation;
|
|
385
385
|
if (!n5 || null === n5) return;
|
|
@@ -73,6 +73,10 @@ export interface PageDesign extends Component {
|
|
|
73
73
|
subTableWatchProps?: object;
|
|
74
74
|
allChartUuids: Array<string>;
|
|
75
75
|
}
|
|
76
|
+
interface PageRuntimeStyle {
|
|
77
|
+
height?: number;
|
|
78
|
+
width?: number;
|
|
79
|
+
}
|
|
76
80
|
/**
|
|
77
81
|
* 运行时页面对象
|
|
78
82
|
*/
|
|
@@ -143,6 +147,7 @@ export interface PageContext extends Component {
|
|
|
143
147
|
subTableWatchProps?: object;
|
|
144
148
|
[otherProp: string]: any;
|
|
145
149
|
allChartUuids: Array<string>;
|
|
150
|
+
pageRuntimeStyle?: PageRuntimeStyle;
|
|
146
151
|
}
|
|
147
152
|
/**
|
|
148
153
|
* 事件对象
|
|
@@ -228,3 +233,4 @@ export interface LogicTriggerSource extends Object {
|
|
|
228
233
|
triggerType: string;
|
|
229
234
|
triggerName: string;
|
|
230
235
|
}
|
|
236
|
+
export {};
|
|
@@ -1,60 +1,63 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, onMounted as n, watch as o, onUnmounted as i, resolveComponent as a, createElementBlock as l, openBlock as r,
|
|
2
|
-
import { setTableEvents as c, canExecuteButton as p, doAfterClickEvent as d, doBeforeClickEvent as f, gridSelectRecord as g, gridSelectAllRecords as m, gridSelectionChange as v, cellClick as h, cellDblClick as b, rowClick as w, rowDblClick as S, headerClick as y, getEventNameByType as C, getEventFuncByType as
|
|
3
|
-
import { getBaseUrl as
|
|
4
|
-
import { getAdditionalParamMap as
|
|
1
|
+
import { defineComponent as e, ref as t, onMounted as n, watch as o, onUnmounted as i, resolveComponent as a, createElementBlock as l, openBlock as r, unref as u, createVNode as s } from "vue";
|
|
2
|
+
import { setTableEvents as c, canExecuteButton as p, doAfterClickEvent as d, doBeforeClickEvent as f, gridSelectRecord as g, gridSelectAllRecords as m, gridSelectionChange as v, cellClick as h, cellDblClick as b, rowClick as w, rowDblClick as S, headerClick as y, getEventNameByType as C, getEventFuncByType as x, getHandleEvent as D } from "../../../../utils/events/event-util.js";
|
|
3
|
+
import { getBaseUrl as E, getListCode as O, getRealRestApiPath as k, isWorkflowPage as T, isVariableInvalidValue as R } from "../../../../utils/common-util.js";
|
|
4
|
+
import { getAdditionalParamMap as I, getSaveFormRequestWithRow as V, standardEvents as j } from "../../../../utils/events/standard-event.js";
|
|
5
5
|
import { isPromise as N } from "agilebuilder-ui/src/utils/common-util";
|
|
6
|
-
import { getOperationButtons as P, popupToPage as
|
|
7
|
-
import
|
|
8
|
-
import { getDefaultValue as
|
|
9
|
-
import { decomposeVariable as
|
|
10
|
-
import { getRowStyleUtil as
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
let
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
const
|
|
17
|
-
let
|
|
18
|
-
|
|
19
|
-
const
|
|
20
|
-
|
|
21
|
-
const e3 =
|
|
22
|
-
let n2 =
|
|
6
|
+
import { getOperationButtons as P, popupToPage as B } from "../../../../utils/table-utils.js";
|
|
7
|
+
import F from "../../../../utils/eventBus.js";
|
|
8
|
+
import { getDefaultValue as H } from "../../../../utils/page-init-util.js";
|
|
9
|
+
import { decomposeVariable as U, getSizeConfig as M } from "../../../../utils/page-helper-util.js";
|
|
10
|
+
import { getRowStyleUtil as $, getCellStyleUtil as _, getHeaderCellStyleUtil as L } from "../../chart/table/chart-table-util.js";
|
|
11
|
+
const A = ["id"], z = e({ __name: "main-table-runtime", props: { pageContext: {}, configure: {} }, emits: ["setSafeDeleteTableCode"], setup(e2, { expose: z2, emit: W }) {
|
|
12
|
+
const q = e2, G = q.pageContext;
|
|
13
|
+
let Q = q.configure;
|
|
14
|
+
const J = t({});
|
|
15
|
+
G.isTest ? J.value = q.configure.runtime ? q.configure.runtime : {} : G.tableRuntimes && G.tableRuntimes[Q.uuid] && (Q = JSON.parse(G.tableRuntimes[Q.uuid].configure), J.value = Q.runtime ? Q.runtime : {});
|
|
16
|
+
const K = J.value.style, X = J.value.class, Y = G.systemCode, Z = G.backendUrl, ee = Q.props && Q.props.dataOrigin && Q.props.dataOrigin.tableName;
|
|
17
|
+
let te = E(G.backendUrl, G.isTest);
|
|
18
|
+
te || (te = window.$vueApp.config.globalProperties.baseURL);
|
|
19
|
+
const ne = t({}), oe = [], ie = t({});
|
|
20
|
+
ie.value = function() {
|
|
21
|
+
const e3 = G.systemCode, t2 = G.code;
|
|
22
|
+
let n2 = Q.props && Q.props.dataOrigin && "[]" !== Q.props.dataOrigin.sqlFilterCondition ? Q.props.dataOrigin.sqlFilterCondition : null;
|
|
23
23
|
null == n2 && (n2 = []);
|
|
24
|
-
const i2 = { isSql: true, rowKeyProp:
|
|
24
|
+
const i2 = { isSql: true, optionTableHeight: 0, rowKeyProp: Q.props.dataOrigin.principalLinkage, extraParam: { beanName: G.beanName, functionCode: t2 + ".listData", tableName: ee, systemCode: e3, pageCode: G.code, pageVersion: G.version }, initSearchForm: n2, lineEditOptions: { aftersaveIsCreateRow: false, autoSave: false, enter: he, esc: Ce }, indexContinuous: !(!Q.props || !Q.props.otherSettings) && Q.props.otherSettings.serialNumberContinuous, initSearch: !Q.props || false !== Q.props.dataOrigin.initializationQuery, resizeHeight: Re, pageCode: G.code, pageVersion: G.version, additionalParamMap: I(G), showOverflowTooltip: !(!Q.props || !Q.props.otherSettings || void 0 !== Q.props.otherSettings.isBreakLine && false !== Q.props.otherSettings.isBreakLine), isEnableEnterEvent: Q.props && Q.props.otherSettings && Q.props.otherSettings.isEnableEnterEvent, isWithDataPermission: !!(Q.props && Q.props.otherSettings && Q.props.otherSettings.isWithDataPermission) && Q.props.otherSettings.isWithDataPermission, pageDevMode: false, isWorkflowEntity: T(G), tableClass: X, tableStyle: K, pageContext: G, configureObj: Q, backendUrl: te, cellStyleRender: ze, rowStyleRender: Ae, titleStyleRender: We };
|
|
25
25
|
(function(e4) {
|
|
26
|
+
var _a;
|
|
27
|
+
((_a = Q.props.highOrder) == null ? void 0 : _a.mergeFields) && Q.props.highOrder.mergeFields.length > 0 && (e4.mergeFields = Q.props.highOrder.mergeFields.join(","));
|
|
28
|
+
})(i2), function(e4) {
|
|
26
29
|
const t3 = [];
|
|
27
30
|
e4.operations || (e4.operations = {});
|
|
28
|
-
P(
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
+
P(G, Q, t3, we), e4.operations.operation = t3;
|
|
32
|
+
}(i2), function(e4) {
|
|
33
|
+
Q.props && Q.props.dataOrigin && Q.props.dataOrigin.sortField && (e4.initSortInfo = [], Q.props.dataOrigin.sortField.forEach((t3) => {
|
|
31
34
|
const n3 = { order: "desc" === t3.type ? "desc" : "asc" };
|
|
32
35
|
n3.prop = t3.name, e4.initSortInfo.push(n3);
|
|
33
36
|
}));
|
|
34
|
-
}(i2),
|
|
35
|
-
const t3 =
|
|
36
|
-
t3 && t3.length > 1 &&
|
|
37
|
-
}),
|
|
37
|
+
}(i2), Q.props.linkages && Q.props.linkages.length > 0 && (Q.props.linkages.forEach((e4) => {
|
|
38
|
+
const t3 = U(e4.fieldName);
|
|
39
|
+
t3 && t3.length > 1 && oe.push(t3[1]);
|
|
40
|
+
}), oe.length > 0 && function() {
|
|
38
41
|
let e4 = [];
|
|
39
|
-
|
|
40
|
-
if (
|
|
41
|
-
const n3 =
|
|
42
|
+
q.pageContext.toolsInputComponents && q.pageContext.toolsInputComponents.length > 0 && q.pageContext.toolsInputComponents.forEach((t3) => {
|
|
43
|
+
if (Q.props.linkages.some((e5) => e5.fieldName === t3.prop) && t3.defaultValue) {
|
|
44
|
+
const n3 = U(t3.prop);
|
|
42
45
|
n3 && n3.length > 1 && e4.push(n3[1]);
|
|
43
46
|
}
|
|
44
47
|
});
|
|
45
|
-
if (0 === e4.length)
|
|
48
|
+
if (0 === e4.length) Ge();
|
|
46
49
|
else {
|
|
47
|
-
const t3 =
|
|
48
|
-
e4 = e4.filter((e5) =>
|
|
49
|
-
o(() =>
|
|
50
|
-
const t5 =
|
|
51
|
-
0 === e4.length ?
|
|
50
|
+
const t3 = qe();
|
|
51
|
+
e4 = e4.filter((e5) => R(t3, e5)), 0 === e4.length ? (Te(t3), Ge()) : oe.forEach((t4) => {
|
|
52
|
+
o(() => q.pageContext.entity.page[t4], () => {
|
|
53
|
+
const t5 = qe();
|
|
54
|
+
0 === e4.length ? Te(t5) : (e4 = e4.filter((e5) => R(t5, e5)), 0 === e4.length && Te(t5));
|
|
52
55
|
}, { immediate: true });
|
|
53
56
|
});
|
|
54
57
|
}
|
|
55
58
|
}());
|
|
56
59
|
return function(e4) {
|
|
57
|
-
const t3 =
|
|
60
|
+
const t3 = Q.props ? Q.props.dataOrigin : {};
|
|
58
61
|
if (t3.treeTable) {
|
|
59
62
|
let n3;
|
|
60
63
|
const o2 = t3.rowKey;
|
|
@@ -62,117 +65,117 @@ const H = e({ __name: "main-table-runtime", props: { pageContext: {}, configure:
|
|
|
62
65
|
const o3 = t3.lazy, i3 = t3.defaultExpandAll;
|
|
63
66
|
e4.lazy = null == o3 || o3, e4.defaultExpandAll = null != i3 && i3;
|
|
64
67
|
const a2 = { parentProp: n3, lazy: e4.lazy, defaultExpandAll: e4.defaultExpandAll };
|
|
65
|
-
e4.extraParam.listViewTreeSetting = JSON.stringify(a2), e4.subRowUrl =
|
|
68
|
+
e4.extraParam.listViewTreeSetting = JSON.stringify(a2), e4.subRowUrl = te + "/dsc/commons/list-subs";
|
|
66
69
|
}
|
|
67
70
|
}
|
|
68
71
|
}(i2), function(e4) {
|
|
69
|
-
const t3 =
|
|
70
|
-
c(e4, t3,
|
|
71
|
-
const n3 =
|
|
72
|
+
const t3 = Q.runtime && Q.runtime.events ? Q.runtime.events : [];
|
|
73
|
+
c(e4, t3, G, Q);
|
|
74
|
+
const n3 = G.customEvents;
|
|
72
75
|
n3 && (e4.eventCallBack = n3);
|
|
73
76
|
}(i2), i2;
|
|
74
77
|
}();
|
|
75
|
-
const
|
|
76
|
-
let e3 =
|
|
77
|
-
e3 && (e3 =
|
|
78
|
+
const ae = t(), le = t(), re = function() {
|
|
79
|
+
let e3 = te + "/dsc/commons/list";
|
|
80
|
+
e3 && (e3 = k(e3, Y, Z, G.isTest));
|
|
78
81
|
return e3;
|
|
79
|
-
}(),
|
|
80
|
-
function
|
|
81
|
-
|
|
82
|
+
}(), ue = O(G.code, G.version, Q.uuid), se = G.code + "_" + ue, ce = t([]), pe = G.entity.page, de = t({ data: [] }), fe = G.superGridItems, ge = fe ? fe[Q.uuid] : null, me = t(false), ve = W;
|
|
83
|
+
function he({ rowIndex: e3, column: t2, row: n2, orgRow: o2 }) {
|
|
84
|
+
be(null, null, n2, t2, e3);
|
|
82
85
|
}
|
|
83
|
-
function
|
|
84
|
-
const a2 =
|
|
85
|
-
a2.props.base.tableUuid = l2.uuid,
|
|
86
|
-
true === l3.canExecute && (
|
|
87
|
-
d(
|
|
86
|
+
function be(e3, t2, n2, o2, i2) {
|
|
87
|
+
const a2 = ne.value.lineEditSave, l2 = Q;
|
|
88
|
+
a2.props.base.tableUuid = l2.uuid, ie.value.lineEditOptions.beforeSave = Se, G.editData = n2, p({ pageContext: G, configureObj: a2 }).then((l3) => {
|
|
89
|
+
true === l3.canExecute && (ie.value.lineEditOptions.saveRow = ye, le.value.saveRow(i2, ue).then(() => {
|
|
90
|
+
d(G, a2, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
|
|
88
91
|
}));
|
|
89
92
|
}).finally(() => {
|
|
90
|
-
|
|
93
|
+
G.editData = null;
|
|
91
94
|
});
|
|
92
95
|
}
|
|
93
|
-
function
|
|
96
|
+
function we(e3) {
|
|
94
97
|
if (!e3) return;
|
|
95
98
|
let t2;
|
|
96
99
|
const n2 = C(e3.events, "click");
|
|
97
100
|
if (n2) {
|
|
98
|
-
if (
|
|
99
|
-
t2 =
|
|
101
|
+
if (ne.value[n2] = e3, "lineEditSave" === n2 ? t2 = be : "restoreEdit" === n2 ? t2 = xe : "lineEditUpdate" === n2 ? t2 = De : "lineEditDelete" === n2 && (t2 = Oe), !t2) {
|
|
102
|
+
t2 = x(G, e3.events, "click");
|
|
100
103
|
}
|
|
101
|
-
} else
|
|
104
|
+
} else ne.value[e3.uuid] = e3, t2 = Ve;
|
|
102
105
|
return t2;
|
|
103
106
|
}
|
|
104
|
-
function
|
|
105
|
-
const o2 =
|
|
107
|
+
function Se({ row: e3, columns: t2, additionalParamMap: n2 }) {
|
|
108
|
+
const o2 = ne.value.lineEditSave, i2 = Q;
|
|
106
109
|
o2.props.base.tableUuid = i2.uuid;
|
|
107
|
-
return f(
|
|
110
|
+
return f(G, o2, { row: e3, columns: t2 });
|
|
108
111
|
}
|
|
109
|
-
function
|
|
110
|
-
const l2 =
|
|
112
|
+
function ye({ row: e3, columns: t2, dataTypeMap: n2, dynamicColumnInfo: o2, additionalParamMap: i2, mainDefaultValueColumns: a2 }) {
|
|
113
|
+
const l2 = ne.value.lineEditSave, r2 = Q;
|
|
111
114
|
return l2.props.base.tableUuid = r2.uuid, new Promise((t3, n3) => {
|
|
112
115
|
const i3 = { tableName: r2.props.dataOrigin.tableName };
|
|
113
|
-
V(
|
|
116
|
+
V(G, l2, "/dsc/commons", false, a2, o2, e3, i3).then((e4) => {
|
|
114
117
|
t3(e4 ? e4.entity : {});
|
|
115
118
|
}).catch((e4) => {
|
|
116
119
|
n3(e4);
|
|
117
120
|
});
|
|
118
121
|
});
|
|
119
122
|
}
|
|
120
|
-
function
|
|
121
|
-
|
|
123
|
+
function Ce({ rowIndex: e3, column: t2, row: n2, orgRow: o2 }) {
|
|
124
|
+
xe(null, null, n2, t2, e3);
|
|
122
125
|
}
|
|
123
|
-
function
|
|
124
|
-
const a2 =
|
|
126
|
+
function xe(e3, t2, n2, o2, i2) {
|
|
127
|
+
const a2 = ne.value.restoreEdit, l2 = Q;
|
|
125
128
|
a2.props.base.tableUuid = l2.uuid;
|
|
126
|
-
const r2 = f(
|
|
129
|
+
const r2 = f(G, a2, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
|
|
127
130
|
if (!r2) return;
|
|
128
131
|
N(r2) ? r2.then((e4) => {
|
|
129
|
-
e4 &&
|
|
130
|
-
}) :
|
|
131
|
-
d(
|
|
132
|
+
e4 && le.value.restoreRow(i2, ue);
|
|
133
|
+
}) : le.value.restoreRow(i2, ue);
|
|
134
|
+
d(G, Q, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
|
|
132
135
|
}
|
|
133
|
-
function
|
|
134
|
-
const a2 =
|
|
136
|
+
function De(e3, t2, n2, o2, i2) {
|
|
137
|
+
const a2 = ne.value.lineEditUpdate, l2 = Q;
|
|
135
138
|
a2.props.base.tableUuid = l2.uuid;
|
|
136
|
-
const r2 = f(
|
|
139
|
+
const r2 = f(G, a2, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
|
|
137
140
|
r2 && (N(r2) ? r2.then((l3) => {
|
|
138
141
|
l3 && Ee(e3, t2, n2, o2, i2, a2);
|
|
139
142
|
}) : Ee(e3, t2, n2, o2, i2, a2));
|
|
140
143
|
}
|
|
141
144
|
function Ee(e3, t2, n2, o2, i2, a2) {
|
|
142
|
-
|
|
145
|
+
G.editData = n2, p({ pageContext: G, configureObj: a2 }).then((a3) => {
|
|
143
146
|
if (true === a3.canExecute) {
|
|
144
|
-
|
|
145
|
-
d(
|
|
147
|
+
le.value.editRow(i2, ue);
|
|
148
|
+
d(G, Q, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
|
|
146
149
|
}
|
|
147
150
|
}).finally(() => {
|
|
148
|
-
|
|
151
|
+
G.editData = null;
|
|
149
152
|
});
|
|
150
153
|
}
|
|
151
|
-
function
|
|
152
|
-
const a2 =
|
|
154
|
+
function Oe(e3, t2, n2, o2, i2) {
|
|
155
|
+
const a2 = ne.value.lineEditDelete, l2 = Q;
|
|
153
156
|
a2.props.base.tableUuid = l2.uuid;
|
|
154
|
-
const r2 = f(
|
|
157
|
+
const r2 = f(G, a2, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
|
|
155
158
|
r2 && (N(r2) ? r2.then((l3) => {
|
|
156
|
-
l3 &&
|
|
157
|
-
}) :
|
|
159
|
+
l3 && ke(e3, t2, n2, o2, i2, a2);
|
|
160
|
+
}) : ke(e3, t2, n2, o2, i2, a2));
|
|
158
161
|
}
|
|
159
|
-
function
|
|
160
|
-
if (n2.id || n2.ID)
|
|
162
|
+
function ke(e3, t2, n2, o2, i2, a2) {
|
|
163
|
+
if (n2.id || n2.ID) G.editData = n2, p({ pageContext: G, configureObj: a2 }).then((e4) => {
|
|
161
164
|
if (true === e4.canExecute) {
|
|
162
165
|
const e5 = [];
|
|
163
|
-
n2.id ? e5.push(n2.id) : e5.push(n2.ID), j.delete({ pageContext:
|
|
166
|
+
n2.id ? e5.push(n2.id) : e5.push(n2.ID), j.delete({ pageContext: G, configureObj: a2, ids: e5 });
|
|
164
167
|
}
|
|
165
168
|
}).finally(() => {
|
|
166
|
-
|
|
169
|
+
G.editData = null;
|
|
167
170
|
});
|
|
168
171
|
else {
|
|
169
|
-
|
|
170
|
-
d(
|
|
172
|
+
xe(e3, t2, n2, o2, i2);
|
|
173
|
+
d(G, Q, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2 });
|
|
171
174
|
}
|
|
172
175
|
}
|
|
173
|
-
function
|
|
174
|
-
if (!
|
|
175
|
-
const t2 =
|
|
176
|
+
function Te(e3) {
|
|
177
|
+
if (!G.dataTypeMaps) return;
|
|
178
|
+
const t2 = G.dataTypeMaps;
|
|
176
179
|
let n2 = [];
|
|
177
180
|
if (e3) for (var o2 in e3) {
|
|
178
181
|
const a2 = e3[o2];
|
|
@@ -190,9 +193,9 @@ const H = e({ __name: "main-table-runtime", props: { pageContext: {}, configure:
|
|
|
190
193
|
e4.propName = o2, e4.propDbName = o2, e4.dataType = t2[o2] ? t2[o2] : "TEXT", e4.operator = "EQ", e4.propValue = a2, e4.rightBracket = ")", e4.joinSign = "and", n2.push(e4);
|
|
191
194
|
}
|
|
192
195
|
}
|
|
193
|
-
|
|
196
|
+
le.value.toolbarRefresh(null, null, n2);
|
|
194
197
|
}
|
|
195
|
-
function
|
|
198
|
+
function Re(e3) {
|
|
196
199
|
const t2 = Ie();
|
|
197
200
|
if (t2) {
|
|
198
201
|
let n2 = 0;
|
|
@@ -200,123 +203,135 @@ const H = e({ __name: "main-table-runtime", props: { pageContext: {}, configure:
|
|
|
200
203
|
}
|
|
201
204
|
}
|
|
202
205
|
function Ie() {
|
|
203
|
-
if (!
|
|
204
|
-
const e3 =
|
|
205
|
-
if (e3
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
206
|
+
if (!le.value) return;
|
|
207
|
+
const e3 = M(q.pageContext, q.configure);
|
|
208
|
+
if (e3) {
|
|
209
|
+
if (e3.isCalcHeight) {
|
|
210
|
+
let e4 = le.value.$el;
|
|
211
|
+
if (e4 || (e4 = le.value), !e4) return;
|
|
212
|
+
const t2 = e4.getBoundingClientRect();
|
|
213
|
+
return window.innerHeight - t2.y - 90;
|
|
214
|
+
}
|
|
215
|
+
if (e3.fixHeight && le.value && (le.value.tableHeight = e3.fixHeight), e3.maxHeight) return e3.maxHeight;
|
|
210
216
|
}
|
|
211
217
|
}
|
|
212
|
-
function
|
|
213
|
-
const l2 = { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2, button: a2, id: n2.ID ? n2.ID : n2.id }, r2 =
|
|
214
|
-
r2.props.base.tableUuid = u2.uuid,
|
|
218
|
+
function Ve(e3, t2, n2, o2, i2, a2) {
|
|
219
|
+
const l2 = { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2, button: a2, id: n2.ID ? n2.ID : n2.id }, r2 = ne.value[a2.sourceButton.uuid], u2 = Q;
|
|
220
|
+
r2.props.base.tableUuid = u2.uuid, D(null, G, r2, "click", l2);
|
|
215
221
|
}
|
|
216
|
-
function
|
|
217
|
-
"close_open_win" === e3.data &&
|
|
222
|
+
function je(e3) {
|
|
223
|
+
"close_open_win" === e3.data && le.value && le.value.refresh();
|
|
218
224
|
}
|
|
219
|
-
function
|
|
220
|
-
|
|
221
|
-
g(
|
|
225
|
+
function Ne(e3, t2) {
|
|
226
|
+
ce.value = e3;
|
|
227
|
+
g(G, Q, { selection: e3, row: t2 });
|
|
222
228
|
}
|
|
223
|
-
function
|
|
224
|
-
|
|
225
|
-
m(
|
|
229
|
+
function Pe(e3) {
|
|
230
|
+
ce.value = e3;
|
|
231
|
+
m(G, Q, { selection: e3 });
|
|
226
232
|
}
|
|
227
|
-
function
|
|
228
|
-
v(
|
|
233
|
+
function Be(e3) {
|
|
234
|
+
v(G, Q, { newSelection: e3 });
|
|
229
235
|
}
|
|
230
|
-
function
|
|
231
|
-
h(
|
|
236
|
+
function Fe(e3, t2, n2, o2) {
|
|
237
|
+
h(G, Q, { row: e3, column: t2, cell: n2, event: o2 });
|
|
232
238
|
}
|
|
233
|
-
function
|
|
234
|
-
b(
|
|
239
|
+
function He(e3, t2, n2, o2) {
|
|
240
|
+
b(G, Q, { row: e3, column: t2, cell: n2, event: o2 });
|
|
235
241
|
}
|
|
236
|
-
function
|
|
237
|
-
w(
|
|
242
|
+
function Ue(e3, t2, n2) {
|
|
243
|
+
w(G, Q, { row: e3, column: t2, event: n2 });
|
|
238
244
|
}
|
|
239
245
|
function Me(e3, t2, n2) {
|
|
240
|
-
S(
|
|
246
|
+
S(G, Q, { row: e3, column: t2, event: n2 });
|
|
241
247
|
}
|
|
242
248
|
function $e(e3, t2) {
|
|
243
|
-
y(
|
|
249
|
+
y(G, Q, { column: e3, event: t2 });
|
|
244
250
|
}
|
|
245
|
-
function
|
|
246
|
-
|
|
251
|
+
function _e() {
|
|
252
|
+
ce.value = [];
|
|
247
253
|
}
|
|
248
254
|
function Le(e3) {
|
|
249
|
-
|
|
250
|
-
}
|
|
251
|
-
function _e(e3) {
|
|
252
|
-
return L(e3, [], W);
|
|
255
|
+
me.value = true;
|
|
253
256
|
}
|
|
254
257
|
function Ae(e3) {
|
|
255
|
-
return
|
|
258
|
+
return $(e3, [], q);
|
|
259
|
+
}
|
|
260
|
+
function ze(e3) {
|
|
261
|
+
return _(e3, e3.cellStyle, q);
|
|
256
262
|
}
|
|
257
|
-
function
|
|
258
|
-
const t2 = e3.titleStyle, n2 =
|
|
259
|
-
return
|
|
263
|
+
function We(e3) {
|
|
264
|
+
const t2 = e3.titleStyle, n2 = q.configure.style.titleStyle;
|
|
265
|
+
return L(e3, { cellTitleStyle: t2, titleStyle: n2 }, q);
|
|
260
266
|
}
|
|
261
|
-
function
|
|
267
|
+
function qe() {
|
|
262
268
|
const e3 = {};
|
|
263
|
-
return
|
|
264
|
-
e3[t2] =
|
|
269
|
+
return oe.forEach((t2) => {
|
|
270
|
+
e3[t2] = q.pageContext.entity.page[t2];
|
|
265
271
|
}), e3;
|
|
266
272
|
}
|
|
267
|
-
function
|
|
268
|
-
|
|
269
|
-
o(() =>
|
|
270
|
-
|
|
273
|
+
function Ge() {
|
|
274
|
+
oe.forEach((e3) => {
|
|
275
|
+
o(() => q.pageContext.entity.page[e3], () => {
|
|
276
|
+
Te(qe());
|
|
271
277
|
});
|
|
272
278
|
});
|
|
273
279
|
}
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
280
|
+
n(() => {
|
|
281
|
+
const e3 = Qe();
|
|
282
|
+
le.value && e3 && e3.distanceToBottom && (le.value.tableHeight = e3.distanceToBottom - 110), q.pageContext.pageRuntimeStyle, window.addEventListener("message", je), F.$on(se + "-close-component-page-dialog", function({ jumpInfo: e4, popEntity: t2, popPageCode: n2 }) {
|
|
283
|
+
le.value.closePageDialog({ entity: t2, pageCode: n2, jumpInfo: e4 });
|
|
284
|
+
}), F.$on(se + "_close-dialog-get-entity", () => {
|
|
285
|
+
F.$emit(se + "_close-super-dialog");
|
|
286
|
+
}), F.$on(ue + "-pickFileDone", (e4) => {
|
|
287
|
+
le.value.pickFileDone(e4);
|
|
288
|
+
}), F.$on(ue + "-scanDone", (e4) => {
|
|
289
|
+
le.value.scanDone(e4);
|
|
290
|
+
}), ie.value.formSetMaxHeight = Ie(), ie.value && ie.value.configureObj.props.base && ie.value.configureObj.props.base.isSafeDelete && ve("setSafeDeleteTableCode", ie.value.extraParam.tableName);
|
|
291
|
+
}), o(() => q.pageContext.searchFormData, (e3) => {
|
|
292
|
+
de.value.data = e3;
|
|
293
|
+
}), o(() => q.pageContext.entity.data, (e3) => {
|
|
294
|
+
Te(q.pageContext.entity.data);
|
|
288
295
|
}), i(() => {
|
|
289
|
-
window.removeEventListener("message",
|
|
290
|
-
})
|
|
291
|
-
|
|
296
|
+
window.removeEventListener("message", je), F.$off(se + "-close-component-page-dialog"), F.$off(se + "_close-dialog-get-entity"), F.$off(ue + "-pickFileDone"), F.$off(ue + "-scanDone");
|
|
297
|
+
});
|
|
298
|
+
const Qe = () => {
|
|
299
|
+
if (!ae.value) return null;
|
|
300
|
+
let e3 = ae.value.closest(".app-container");
|
|
301
|
+
if (!e3) return null;
|
|
302
|
+
const t2 = ae.value.getBoundingClientRect(), n2 = e3.getBoundingClientRect(), o2 = window.scrollY;
|
|
303
|
+
return { distanceToTop: t2.top + o2 - n2.top, distanceToBottom: n2.bottom - t2.top };
|
|
304
|
+
};
|
|
305
|
+
return z2({ refresh: function(e3, t2, n2, o2) {
|
|
306
|
+
return le.value.refresh(e3, t2, n2, o2);
|
|
292
307
|
}, createRow: function() {
|
|
293
|
-
return
|
|
294
|
-
}, clearSelections:
|
|
295
|
-
return
|
|
308
|
+
return le.value.createRow(ue, {}, { getDefaultValueFunc: H });
|
|
309
|
+
}, clearSelections: _e, getSelections: function() {
|
|
310
|
+
return ce.value;
|
|
296
311
|
}, getSelectionIds: function() {
|
|
297
312
|
const e3 = [];
|
|
298
|
-
return null !==
|
|
313
|
+
return null !== ce.value && ce.value.forEach((t2) => {
|
|
299
314
|
e3.push(t2.id ? t2.id : t2.ID ? t2.ID : null);
|
|
300
315
|
}), e3;
|
|
301
316
|
}, getTableConfigure: function() {
|
|
302
|
-
return
|
|
317
|
+
return Q;
|
|
303
318
|
}, isDeleteChange: function(e3) {
|
|
304
|
-
|
|
319
|
+
le.value.isDeleteChange(e3);
|
|
305
320
|
}, validatorSunTableListData: function() {
|
|
306
|
-
return
|
|
321
|
+
return le.value.validatorSunTableListData();
|
|
307
322
|
}, showMobileSearch: function() {
|
|
308
|
-
|
|
323
|
+
me.value && le.value.showMobileSearch();
|
|
309
324
|
}, getTableSelectOptions: function() {
|
|
310
|
-
if (
|
|
325
|
+
if (le.value) return le.value.getTableSelectOptions(ue);
|
|
311
326
|
}, dynamicControlTableEdit: function(e3, t2, n2) {
|
|
312
|
-
|
|
327
|
+
le.value && le.value.dynamicControlTableEdit(e3, t2, n2);
|
|
313
328
|
}, doLayout: function(e3) {
|
|
314
|
-
|
|
329
|
+
le.value && le.value.doLayout(e3);
|
|
315
330
|
} }), (e3, t2) => {
|
|
316
331
|
const n2 = a("super-grid");
|
|
317
|
-
return r(), l("div",
|
|
332
|
+
return r(), l("div", { ref_key: "tableDivRef", ref: ae, id: u(ue) + "_tableDiv" }, [s(n2, { ref_key: "gridRef", ref: le, url: u(re), options: ie.value, code: u(ue), settings: u(ge), "search-form-info": de.value, "list-toolbar-form-data": u(pe), onSelect: Ne, onSelectAll: Pe, onSelectionChange: Be, onCellClick: Fe, onCellDblclick: He, onRowClick: Ue, onRowDblclick: Me, onHeaderClick: $e, onRefresh: _e, onNewOpenGridDialog: u(B), onCanShowMobileSearch: Le }, null, 8, ["url", "options", "code", "settings", "search-form-info", "list-toolbar-form-data", "onNewOpenGridDialog"])], 8, A);
|
|
318
333
|
};
|
|
319
334
|
} });
|
|
320
335
|
export {
|
|
321
|
-
|
|
336
|
+
z as default
|
|
322
337
|
};
|
|
@@ -3,10 +3,10 @@ import y from "./assemblys/object-render.vue.js";
|
|
|
3
3
|
import { updateOptionDatasources as h, updateChartDatasources as C } from "../utils/page-helper-util.js";
|
|
4
4
|
import { queryPageSuperGrids as b, queryPageDesignByCode as P, convertToPageContext as j, packageAdditionalMapWithLocationSearch as k, packageAdditionalMapWithRoute as $, packageAdditionalMapWithPageRequest as x } from "../utils/page-init-util.js";
|
|
5
5
|
import { addComponentRef as D, removePageAllRef as w, initComponentRefState as N } from "../utils/global-refs.js";
|
|
6
|
-
import { removeCustomFuncFromWindow as q, handleEvent as
|
|
6
|
+
import { removeCustomFuncFromWindow as q, handleEvent as S, initPageEvents as T, getCustomFunc as I } from "../utils/events/event-util.js";
|
|
7
7
|
import _ from "./assemblys/common/export-form-report-dialog.vue.js";
|
|
8
|
-
import
|
|
9
|
-
import
|
|
8
|
+
import R from "./assemblys/common/task-informition-dialog.vue.js";
|
|
9
|
+
import O from "./assemblys/common/remove-signer-dialog.vue.js";
|
|
10
10
|
import F from "../utils/eventBus.js";
|
|
11
11
|
import { getTaskInformitions as M, getRemoveSigner as V, getFormData as E, exportFormReport as W, doImportFinally as B, doAddSigner as H, doCreateCopyTask as J, doAssign as U, doReturnTaskTo as G, doRemoveSigners as L, updateValuesWhenCloseDialog as z, refreshFormOrListPage as A, getAdditionalParamMap as K } from "../utils/events/standard-event.js";
|
|
12
12
|
import "../utils/api/api-util.js";
|
|
@@ -23,7 +23,7 @@ import { isMobileBrowser as re } from "agilebuilder-ui/src/utils/common-util";
|
|
|
23
23
|
import { usePageContextStore as ve } from "../utils/page-store.js";
|
|
24
24
|
import pe from "agilebuilder-ui/src/store";
|
|
25
25
|
const me = { class: "app-container" }, ge = 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 } }, emits: ["open", "opened", "close", "closed"], setup(e2, { expose: ge2, emit: fe }) {
|
|
26
|
-
const ce = ve(), { t: de } = X(), ye = e2, he = l(null), Ce = l([]), be = l(""), Pe = l({}), je = l(null), ke = l(null), $e = l(false), xe = l(false), De = l(false), we = l(false), Ne = l(false), qe = l(null),
|
|
26
|
+
const ce = ve(), { t: de } = X(), ye = e2, he = l(null), Ce = l([]), be = l(""), Pe = l({}), je = l(null), ke = l(null), $e = l(false), xe = l(false), De = l(false), we = l(false), Ne = l(false), qe = l(null), Se = l(false), Te = l([]), Ie = l([]), _e = l(false), Re = l(null), Oe = l(false), Fe = l(false), Me = l(null), Ve = l(null), Ee = l(null), We = l(null);
|
|
27
27
|
let Be = l(null);
|
|
28
28
|
const He = l(null), Je = l(null), Ue = le(), Ge = l(0), Le = re();
|
|
29
29
|
let ze, Ae, Ke;
|
|
@@ -44,7 +44,7 @@ const me = { class: "app-container" }, ge = e({ __name: "super-page", props: { p
|
|
|
44
44
|
}(Be.value, e3.initChartServiceConfigs);
|
|
45
45
|
}, 200), Be.value.initDataSources = [], N(Be.value), Ce.value = Be.value.items ? Be.value.items : [];
|
|
46
46
|
const a2 = Be.value.runtime ? Be.value.runtime : {};
|
|
47
|
-
be.value = a2.class, Pe.value = a2.style,
|
|
47
|
+
be.value = a2.class, Pe.value = a2.style, T(e3, Be.value), Z(Be.value.rules), S(null, Be.value, e3, "beforeload");
|
|
48
48
|
const t2 = Be.value.code;
|
|
49
49
|
return ce.setPageContext(Be.value), qe.value = t2 + "_", F.$on(qe.value + "export-form-report", (e4) => {
|
|
50
50
|
ke.value = e4, He.value = e4.configureObj, Je.value = e4.pageContext, $e.value = true;
|
|
@@ -60,13 +60,13 @@ const me = { class: "app-container" }, ge = e({ __name: "super-page", props: { p
|
|
|
60
60
|
ke.value = e4, xe.value = true, Ne.value = true;
|
|
61
61
|
}), F.$on(qe.value + "choose-return-node", (e4) => {
|
|
62
62
|
ke.value = e4, M(e4).then((e5) => {
|
|
63
|
-
|
|
63
|
+
Te.value = e5, Se.value = true;
|
|
64
64
|
}).catch((e5) => {
|
|
65
|
-
|
|
65
|
+
Se.value = false;
|
|
66
66
|
});
|
|
67
67
|
}), F.$on(qe.value + "remove-signer", (e4) => {
|
|
68
68
|
ke.value = e4, V(e4).then((l3) => {
|
|
69
|
-
|
|
69
|
+
Re.value = e4.pageContext.completeTaskParam.taskId, Ie.value = l3, _e.value = true;
|
|
70
70
|
}).catch((e5) => {
|
|
71
71
|
_e.value = false;
|
|
72
72
|
});
|
|
@@ -129,7 +129,7 @@ const me = { class: "app-container" }, ge = e({ __name: "super-page", props: { p
|
|
|
129
129
|
});
|
|
130
130
|
}), F.$on("pageLoaded", () => {
|
|
131
131
|
const e4 = { runtime: { events: Be.value.events }, systemCode: "", systemVersion: 0, code: "", version: 0, workflowCode: "", workflowVersion: 0, name: "", uuid: "", label: "" };
|
|
132
|
-
|
|
132
|
+
S(null, Be.value, e4, "load");
|
|
133
133
|
}), d(() => Be.value.isRefresh, (e4) => {
|
|
134
134
|
e4 && (Ge.value++, Be.value.isRefresh = false);
|
|
135
135
|
}), E(Be.value, null, (_a = ye.pageRequest) == null ? void 0 : _a.isNeedId);
|
|
@@ -143,7 +143,7 @@ const me = { class: "app-container" }, ge = e({ __name: "super-page", props: { p
|
|
|
143
143
|
l2 = Le ? window.innerHeight - a3.y - 28 : window.innerHeight - a3.y - 40;
|
|
144
144
|
}
|
|
145
145
|
let a2 = l2;
|
|
146
|
-
ie(l2) && (a2 = l2 + "px"), e3.style.height = a2, e3.style["overflow-y"] = "auto";
|
|
146
|
+
ie(l2) && (a2 = l2 + "px"), e3.style.height = a2, e3.style["overflow-y"] = "auto", Be.value && (Be.value.pageRuntimeStyle || (Be.value.pageRuntimeStyle = {}), Be.value.pageRuntimeStyle.height = l2);
|
|
147
147
|
});
|
|
148
148
|
}
|
|
149
149
|
function Ye() {
|
|
@@ -164,14 +164,14 @@ const me = { class: "app-container" }, ge = e({ __name: "super-page", props: { p
|
|
|
164
164
|
Be.value.isWorkflowEntity = e3.isWorkflowEntity, Be.value.dataTypeMaps = e3.dataTypeMaps, Be.value.superGridItems = e3.superGrids;
|
|
165
165
|
}).catch((e3) => {
|
|
166
166
|
}).finally(() => {
|
|
167
|
-
|
|
168
|
-
}) : (
|
|
167
|
+
Oe.value = true, Xe();
|
|
168
|
+
}) : (Oe.value = true, Xe()), Ye();
|
|
169
169
|
});
|
|
170
170
|
}, 0)) : ye.pageCode && P(ye.pageCode).then((e3) => {
|
|
171
171
|
if (e3 && e3.designJson) {
|
|
172
172
|
const l2 = e3.designJson, a2 = JSON.parse(l2);
|
|
173
173
|
je.value = a2, Qe(a2).then(() => {
|
|
174
|
-
Ye(),
|
|
174
|
+
Ye(), Oe.value = true, Xe();
|
|
175
175
|
});
|
|
176
176
|
}
|
|
177
177
|
});
|
|
@@ -180,17 +180,17 @@ const me = { class: "app-container" }, ge = e({ __name: "super-page", props: { p
|
|
|
180
180
|
Be.value && he.value && D(Be.value, "-1", he);
|
|
181
181
|
});
|
|
182
182
|
}), n(() => {
|
|
183
|
-
w(Be.value), je.value && q(je.value), F.$off(qe.value + "export-form-report"), F.$off(qe.value + "export-pdf-report"), F.$off(qe.value + "import-file"), F.$off(qe.value + "assign-task"), F.$off(qe.value + "copy-task"), F.$off(qe.value + "add-signer"), F.$off(qe.value + "choose-return-node"), F.$off(qe.value + "remove-signer"), F.$off(qe.value + "prohibit-edit"), F.$off(qe.value + "open-dialog"), F.$off("pageLoaded"), Be.value &&
|
|
183
|
+
w(Be.value), je.value && q(je.value), F.$off(qe.value + "export-form-report"), F.$off(qe.value + "export-pdf-report"), F.$off(qe.value + "import-file"), F.$off(qe.value + "assign-task"), F.$off(qe.value + "copy-task"), F.$off(qe.value + "add-signer"), F.$off(qe.value + "choose-return-node"), F.$off(qe.value + "remove-signer"), F.$off(qe.value + "prohibit-edit"), F.$off(qe.value + "open-dialog"), F.$off("pageLoaded"), Be.value && S(null, Be.value, Be.value, "onUnmounted"), ze && clearTimeout(ze), Ae && clearTimeout(Ae), Ke && clearTimeout(Ke);
|
|
184
184
|
});
|
|
185
185
|
const ll = l(null);
|
|
186
186
|
function al(e3) {
|
|
187
187
|
true === xe.value && (xe.value = false, H(ke.value, e3)), true === De.value && (De.value = false, J(ke.value, e3)), true === we.value && (we.value = false, U(ke.value, e3));
|
|
188
188
|
}
|
|
189
189
|
function tl(e3) {
|
|
190
|
-
|
|
190
|
+
Te.value = [], Se.value = false, G(ke.value, e3);
|
|
191
191
|
}
|
|
192
192
|
function ul(e3) {
|
|
193
|
-
|
|
193
|
+
Ie.value = [], _e.value = false, L(ke.value, e3);
|
|
194
194
|
}
|
|
195
195
|
const nl = ae();
|
|
196
196
|
function ol(e3) {
|
|
@@ -211,9 +211,9 @@ const me = { class: "app-container" }, ge = e({ __name: "super-page", props: { p
|
|
|
211
211
|
const l3 = e3.isNeedValueMapping;
|
|
212
212
|
t2 = e3.dataModel, u2 = e3.sourceTableName, l3 && z(Ve.value, o2, t2, u2, Me.value ? Me.value.valueMappings : null);
|
|
213
213
|
}
|
|
214
|
-
|
|
214
|
+
S(null, Ve.value, o2, "closePopup", { sourceModel: t2, sourceTableName: u2, jumpPageSetting: Me.value, entity: Ve.value.entity.data, targetTableName: n2, pageContext: Be.value, parentPageContext: Ve.value, parentConfigureObj: o2, columnProp: i2 }), function(e4, l3, a3) {
|
|
215
215
|
if (e4) {
|
|
216
|
-
const t3 =
|
|
216
|
+
const t3 = I(Ve.value, e4);
|
|
217
217
|
t3 && t3.apply(t3, [{ pageContext: Be.value, parentPageContext: Ve.value, parentConfigureObj: a3, jumpPageSetting: Me.value, columnProp: l3 }]);
|
|
218
218
|
}
|
|
219
219
|
}(l2, i2, o2), A(Ve.value, Ee.value, a2, void 0 !== a2 && false === a2 ? "noOperation" : null), Ve.value = null, Ee.value = null, We.value = null, F.$off(qe.value + "close-dialog"), Fe.value = false;
|
|
@@ -227,14 +227,14 @@ const me = { class: "app-container" }, ge = e({ __name: "super-page", props: { p
|
|
|
227
227
|
}, scanDone: function(e3) {
|
|
228
228
|
let l2 = e3.componentId, a2 = e3.listCode;
|
|
229
229
|
(l2 || a2) && (a2 ? F.$emit(a2 + "-scanDone", e3) : F.$emit(l2 + "-scanDone", e3));
|
|
230
|
-
} }), (e3, l2) => (i(), o("div", me, [
|
|
230
|
+
} }), (e3, l2) => (i(), o("div", me, [Oe.value ? (i(), o("div", { ref_key: "thisRef", ref: he, key: Ge.value, class: v(be.value), style: r(Pe.value) }, [(i(true), o(g, null, f(Ce.value, (e4, l3) => (i(), p(y, { key: e4.uuid, configure: e4, pageContext: c(Be) }, null, 8, ["configure", "pageContext"]))), 128)), $e.value ? (i(), p(_, { key: 0, configure: He.value, pageContext: Je.value, onClose: Ze, onExport: el }, null, 8, ["configure", "pageContext"])) : s("", true), m("input", { ref_key: "_selectFile_", ref: ll, type: "file", name: "_selectFile_", style: { display: "none" }, onChange: l2[0] || (l2[0] = (e4) => function() {
|
|
231
231
|
if (ke.value) {
|
|
232
232
|
if (!ll.value) return;
|
|
233
233
|
if ("" === ll.value.value || null === ll.value.value) return;
|
|
234
234
|
const e5 = ll.value.files[0];
|
|
235
235
|
e5 ? (ll.value.value = null, B(ke.value, e5)) : Q({ showClose: true, type: "warning", message: de("superPageRuntimeMessage.noFileSelected") });
|
|
236
236
|
}
|
|
237
|
-
}()) }, null, 544), xe.value || De.value || we.value ? (i(), p(c(Y), { key: 1, width: "60%", multiple: Ne.value, onClose: al }, null, 8, ["multiple"])) : s("", true),
|
|
237
|
+
}()) }, null, 544), xe.value || De.value || we.value ? (i(), p(c(Y), { key: 1, width: "60%", multiple: Ne.value, onClose: al }, null, 8, ["multiple"])) : s("", true), Se.value ? (i(), p(R, { key: 2, "task-informitions": Te.value, onClose: l2[1] || (l2[1] = (e4) => Se.value = false), onResult: tl }, null, 8, ["task-informitions"])) : s("", true), _e.value ? (i(), p(O, { key: 3, "task-id": Re.value, "active-tasks": Ie.value, onClose: l2[2] || (l2[2] = (e4) => _e.value = false), onResult: ul }, null, 8, ["task-id", "active-tasks"])) : s("", true), Fe.value ? (i(), p(ee, { key: 4, parentPageContext: Ve.value, parentPageEventParams: We.value, jumpPageSetting: Me.value, onClose: l2[3] || (l2[3] = (e4) => ol()) }, null, 8, ["parentPageContext", "parentPageEventParams", "jumpPageSetting"])) : s("", true)], 6)) : s("", true)]));
|
|
238
238
|
} });
|
|
239
239
|
export {
|
|
240
240
|
ge as default
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "super-page-runtime",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.32",
|
|
4
4
|
"description": "AgileBuilder super page runtime",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"main": "dist/es/index.js",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@vitejs/plugin-vue-jsx": "^3.1.0",
|
|
49
49
|
"@vue/eslint-config-prettier": "^8.0.0",
|
|
50
50
|
"@vue/test-utils": "^2.4.4",
|
|
51
|
-
"agilebuilder-ui": "1.1.
|
|
51
|
+
"agilebuilder-ui": "1.1.13",
|
|
52
52
|
"axios": "^1.6.8",
|
|
53
53
|
"cypress": "^13.6.6",
|
|
54
54
|
"element-plus": "^2.6.1",
|