super-page-runtime 2.2.0 → 2.2.3
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.d.ts +2 -2
- package/dist/es/components/runtime/utils/events/standard-event.js +49 -41
- package/dist/es/components/runtime/utils/interfaces/page-design-types.d.ts +2 -0
- package/dist/es/components/runtime/utils/page-helper-util.js +8 -12
- package/dist/es/components/runtime/utils/page-init-util.d.ts +6 -1
- package/dist/es/components/runtime/utils/page-init-util.js +38 -35
- package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +3 -3
- package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +1 -1
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.d.ts +1 -0
- package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +146 -112
- package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +19 -50
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +129 -105
- package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +16 -17
- package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +86 -82
- package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +25 -28
- package/dist/es/components/runtime/views/super-page-dialog.vue.js +14 -12
- package/dist/es/components/runtime/views/super-page.vue.d.ts +9 -0
- package/dist/es/components/runtime/views/super-page.vue.js +163 -161
- package/package.json +2 -2
|
@@ -1,46 +1,50 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, onMounted as n, onUnmounted as o, resolveComponent as a, openBlock as i, createElementBlock as l, createBlock as
|
|
1
|
+
import { defineComponent as e, ref as t, onMounted as n, onUnmounted as o, resolveComponent as a, openBlock as i, createElementBlock as l, createBlock as u, unref as s, createCommentVNode as r } from "vue";
|
|
2
2
|
import { setTableEvents as c, gridSelectRecord as p, gridSelectAllRecords as f, gridSelectionChange as d, cellClick as b, cellDblClick as v, rowClick as g, rowDblClick as m, headerClick as h } from "../../../../utils/events/event-util.js";
|
|
3
3
|
import { caculateShowCondition as S, setVariableValue as w, getVariableValue as x, getSizeConfig as T } from "../../../../utils/page-helper-util.js";
|
|
4
4
|
import { getModelFields as D, getDefaultValue as C } from "../../../../utils/page-init-util.js";
|
|
5
5
|
import y from "../../../../utils/eventBus.js";
|
|
6
|
-
import { popupToPage as P, getOperationButtons as
|
|
7
|
-
import { getListCode as
|
|
6
|
+
import { popupToPage as P, getOperationButtons as R } from "../../../../utils/table-utils.js";
|
|
7
|
+
import { getListCode as I, getBaseUrl as _ } from "../../../../utils/common-util.js";
|
|
8
8
|
import { getAdditionalParamMap as O } from "../../../../utils/events/standard-event.js";
|
|
9
9
|
import { getRowStyleUtil as k, getCellStyleUtil as M, getHeaderCellStyleUtil as F } from "../../chart/table/chart-table-util.js";
|
|
10
10
|
const $ = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure: {} }, emits: ["setSafeDeleteTableCode"], setup(e2, { expose: $2, emit: j }) {
|
|
11
|
-
const
|
|
12
|
-
let
|
|
11
|
+
const N = e2, A = N.pageContext;
|
|
12
|
+
let H = N.configure;
|
|
13
|
+
const E = N.configure.runtime ? N.configure.runtime : {};
|
|
14
|
+
A.isTest ? E.value = N.configure.runtime ? N.configure.runtime : {} : A.tableRuntimes && A.tableRuntimes[H.uuid] && (H = JSON.parse(A.tableRuntimes[H.uuid].configure), E.value = H.runtime ? H.runtime : {});
|
|
15
|
+
const L = I(A.code, A.version, H.uuid), z = A.entity.data, B = H.code ? H.code : L, U = O(A), G = E && E.events ? E.events : [], V = t([]), J = A.superGridItems, q = J ? J[H.uuid] : null, Q = E.style, W = E.class, K = N.pageContext.entity ? N.pageContext.entity : {};
|
|
16
|
+
let X = D(N.configure, B), Y = _(A.backendUrl, A.isTest);
|
|
13
17
|
Y || (Y = window.$vueApp.config.globalProperties.baseURL);
|
|
14
18
|
const Z = t(false);
|
|
15
19
|
let ee = t(0);
|
|
16
|
-
const te = t({ isSql: true, subTableData: null, extraParam: {}, operations: {}, hiddenColumns: [], pageCode:
|
|
17
|
-
return M(e3, e3.cellStyle,
|
|
20
|
+
const te = t({ isSql: true, subTableData: null, extraParam: {}, operations: {}, hiddenColumns: [], pageCode: A.code, pageVersion: A.version, pageContext: A, configureObj: H, showPageArea: false, showRowForm: false, showOverflowTooltip: !(!H.props || !H.props.otherSettings || void 0 !== H.props.otherSettings.isBreakLine && false !== H.props.otherSettings.isBreakLine), backendUrl: Y, cellStyleRender: function(e3) {
|
|
21
|
+
return M(e3, e3.cellStyle, N);
|
|
18
22
|
}, rowStyleRender: function(e3) {
|
|
19
|
-
return k(e3, null,
|
|
23
|
+
return k(e3, null, N);
|
|
20
24
|
}, titleStyleRender: function(e3) {
|
|
21
|
-
const t2 = e3.titleStyle, n2 =
|
|
22
|
-
return F(e3, { cellTitleStyle: t2, titleStyle: n2 },
|
|
25
|
+
const t2 = e3.titleStyle, n2 = N.configure.style.titleStyle;
|
|
26
|
+
return F(e3, { cellTitleStyle: t2, titleStyle: n2 }, N);
|
|
23
27
|
} }), ne = j;
|
|
24
|
-
Q && (te.value.tableStyle = Q), W && (te.value.tableClass = W),
|
|
28
|
+
Q && (te.value.tableStyle = Q), W && (te.value.tableClass = W), H.props && H.props.base && true === H.props.base.subPaging ? te.value.showPageArea = true : te.value.showPageArea = false, H.props.base.showRowForm && (te.value.showRowForm = H.props.base.showRowForm);
|
|
25
29
|
const oe = t(null);
|
|
26
30
|
function ae() {
|
|
27
|
-
oe.value && (te.value.subTableData = null, oe.value.reloadSubTableData(
|
|
31
|
+
oe.value && (te.value.subTableData = null, oe.value.reloadSubTableData(L));
|
|
28
32
|
}
|
|
29
33
|
function ie(e3) {
|
|
30
|
-
if (void 0 === e3 && (e3 = le()), te.value.isPageInfo = false, te.value.isFormSubTable = true, te.value.canRrefreshSubtableData = e3, te.value.getFormData =
|
|
34
|
+
if (void 0 === e3 && (e3 = le()), te.value.isPageInfo = false, te.value.isFormSubTable = true, te.value.canRrefreshSubtableData = e3, te.value.getFormData = ue, te.value.getGridData = se, te.value.extraParam.subTableListViewCode = L, te.value.extraParam.beanName = A.beanName, te.value.extraParam.subtableSetting = H.props && H.props.otherSettings ? JSON.stringify(H.props.otherSettings) : null, te.value.extraParam.additionalParamMap = U, te.value.extraParam.entityMap = A.entity.data, te.value.extraParam.contextMap = A.entity.context, te.value.extraParam.taskMap = A.entity.task, !(H.props && H.props.base && H.props.base.showOperation)) {
|
|
31
35
|
let e4 = te.value.hiddenColumns;
|
|
32
36
|
e4 ? e4.push("operation") : e4 = ["operation"], te.value.hiddenColumns = e4;
|
|
33
37
|
}
|
|
34
|
-
te.value.showOperationButton = !(!
|
|
35
|
-
let t2 = T(
|
|
38
|
+
te.value.showOperationButton = !(!H.props || !H.props.base) && H.props.base.showOperation, te.value.isPdfEditor = false, te.value.tableRecordMaxNum = H.props && H.props.otherSettings ? H.props.otherSettings.tableRecordMaxNum : null;
|
|
39
|
+
let t2 = T(A, H);
|
|
36
40
|
t2 && t2.fixHeight && (te.value.formSetHeight = t2.fixHeight), t2 && t2.maxHeight && (te.value.formSetMaxHeight = t2.maxHeight);
|
|
37
41
|
}
|
|
38
42
|
function le() {
|
|
39
|
-
if (
|
|
40
|
-
if (
|
|
43
|
+
if (H.props && H.props.otherSettings) {
|
|
44
|
+
if (H.props.otherSettings.sourceQueryTableData && H.props.otherSettings.timeToInitializeSubTable && H.props.otherSettings.timeToInitializeSubTable.length > 0) {
|
|
41
45
|
let e3 = false;
|
|
42
|
-
if (-1 !==
|
|
43
|
-
const t2 =
|
|
46
|
+
if (-1 !== H.props.otherSettings.timeToInitializeSubTable.indexOf("create") && (e3 = !z.id && !z.ID), -1 !== H.props.otherSettings.timeToInitializeSubTable.indexOf("noData")) {
|
|
47
|
+
const t2 = z[B];
|
|
44
48
|
(!t2 || t2.length <= 0) && (e3 = true);
|
|
45
49
|
}
|
|
46
50
|
return e3;
|
|
@@ -48,10 +52,10 @@ const $ = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
48
52
|
return false;
|
|
49
53
|
}
|
|
50
54
|
}
|
|
51
|
-
function se() {
|
|
52
|
-
return H.entity.data;
|
|
53
|
-
}
|
|
54
55
|
function ue() {
|
|
56
|
+
return A.entity.data;
|
|
57
|
+
}
|
|
58
|
+
function se() {
|
|
55
59
|
return x(K, X);
|
|
56
60
|
}
|
|
57
61
|
function re(e3) {
|
|
@@ -61,9 +65,9 @@ const $ = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
61
65
|
}
|
|
62
66
|
function ce() {
|
|
63
67
|
!function() {
|
|
64
|
-
const e4 =
|
|
68
|
+
const e4 = A.fieldPermissionMap, t2 = A.actionPermissionMap;
|
|
65
69
|
if (e4 && null != e4) {
|
|
66
|
-
let t3 = e4.get(
|
|
70
|
+
let t3 = e4.get(B);
|
|
67
71
|
if (!t3) {
|
|
68
72
|
const n3 = e4.get("all_fields");
|
|
69
73
|
n3 && (t3 = [n3]);
|
|
@@ -71,12 +75,12 @@ const $ = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
71
75
|
te.value.validateRules = t3 || null;
|
|
72
76
|
}
|
|
73
77
|
if (t2 && null != t2) {
|
|
74
|
-
let e5 = t2.get(
|
|
78
|
+
let e5 = t2.get(B);
|
|
75
79
|
e5 || (e5 = t2.get("all_sub_tables")), te.value.actionPermission = e5;
|
|
76
80
|
}
|
|
77
81
|
te.value.operations || (te.value.operations = {});
|
|
78
82
|
const n2 = function() {
|
|
79
|
-
let e5 = [], t3 = S(
|
|
83
|
+
let e5 = [], t3 = S(N.pageContext, H.props.base.showOperationCondition);
|
|
80
84
|
if (t3 && fe()) {
|
|
81
85
|
const t4 = { props: { elementType: "el-button", icon: "Plus", type: "primary", circle: true, size: "mini", permission: "true" }, onClick: ge, isShow: de };
|
|
82
86
|
e5.push(t4);
|
|
@@ -85,119 +89,119 @@ const $ = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
85
89
|
const t4 = { props: { elementType: "el-button", icon: "Minus", type: "danger", circle: true, size: "mini", permission: "true" }, onClick: me, isShow: ve };
|
|
86
90
|
e5.push(t4);
|
|
87
91
|
}
|
|
88
|
-
return
|
|
92
|
+
return R(A, H, e5), e5;
|
|
89
93
|
}();
|
|
90
94
|
te.value.operations.operation = n2, te.value.subTableCanAdd = fe();
|
|
91
|
-
}(), c(te.value,
|
|
92
|
-
const e3 =
|
|
95
|
+
}(), c(te.value, G, A, H);
|
|
96
|
+
const e3 = A.customEvents;
|
|
93
97
|
e3 && (te.value.eventCallBack = e3), Z.value = true, pe();
|
|
94
98
|
}
|
|
95
99
|
function pe() {
|
|
96
|
-
|
|
100
|
+
A.tableUuids || (A.tableUuids = []), A.tableUuids.indexOf(H.uuid) < 0 && A.tableUuids.push(H.uuid);
|
|
97
101
|
}
|
|
98
102
|
function fe(e3, t2, n2, o2, a2, i2) {
|
|
99
|
-
if (!S(
|
|
103
|
+
if (!S(N.pageContext, H.props.base.showOperationCondition))
|
|
100
104
|
return false;
|
|
101
|
-
const l2 =
|
|
102
|
-
let
|
|
105
|
+
const l2 = A.fieldPermissionMap, u2 = A.actionPermissionMap;
|
|
106
|
+
let s2 = true;
|
|
103
107
|
if (l2 && null !== l2) {
|
|
104
108
|
const e4 = l2.get("all_fields");
|
|
105
|
-
void 0 === e4 || false !== e4.canEdit || void 0 !== e4.rowIndexes && null !== e4.rowIndexes && 0 !== e4.rowIndexes.length || (
|
|
109
|
+
void 0 === e4 || false !== e4.canEdit || void 0 !== e4.rowIndexes && null !== e4.rowIndexes && 0 !== e4.rowIndexes.length || (s2 = false);
|
|
106
110
|
}
|
|
107
|
-
if (true ===
|
|
108
|
-
let e4 =
|
|
109
|
-
e4 || (e4 =
|
|
111
|
+
if (true === s2 && B && u2 && null !== u2) {
|
|
112
|
+
let e4 = u2.get(B);
|
|
113
|
+
e4 || (e4 = u2.get("all_sub_tables")), e4 && void 0 !== e4.canAdd && false === e4.canAdd && (s2 = false);
|
|
110
114
|
}
|
|
111
|
-
return
|
|
115
|
+
return s2;
|
|
112
116
|
}
|
|
113
117
|
function de(e3, t2, n2, o2, a2, i2) {
|
|
114
118
|
let l2 = fe();
|
|
115
|
-
return true === l2 && (l2 = S(
|
|
119
|
+
return true === l2 && (l2 = S(N.pageContext, H.props.base.showAddBtnCondition, n2)), l2;
|
|
116
120
|
}
|
|
117
121
|
function be(e3, t2, n2, o2, a2, i2) {
|
|
118
|
-
const l2 =
|
|
119
|
-
let
|
|
122
|
+
const l2 = A.fieldPermissionMap, u2 = A.actionPermissionMap;
|
|
123
|
+
let s2 = true;
|
|
120
124
|
if (l2 && null !== l2) {
|
|
121
125
|
const e4 = l2.get("all_fields");
|
|
122
|
-
void 0 === e4 || false !== e4.canEdit || void 0 !== e4.rowIndexes && null !== e4.rowIndexes && 0 !== e4.rowIndexes.length || (
|
|
126
|
+
void 0 === e4 || false !== e4.canEdit || void 0 !== e4.rowIndexes && null !== e4.rowIndexes && 0 !== e4.rowIndexes.length || (s2 = false);
|
|
123
127
|
}
|
|
124
|
-
if (true ===
|
|
125
|
-
let e4 =
|
|
126
|
-
if (e4 || (e4 =
|
|
128
|
+
if (true === s2 && B && u2 && null !== u2) {
|
|
129
|
+
let e4 = u2.get(B);
|
|
130
|
+
if (e4 || (e4 = u2.get("all_sub_tables")), e4 && void 0 !== e4.canDelete && false === e4.canDelete && (s2 = false), e4 && void 0 !== e4.canDelete && true === e4.canDelete && e4.deleteRowIndexes)
|
|
127
131
|
if (e4.deleteRowIndexes.length > 0)
|
|
128
132
|
if (i2)
|
|
129
|
-
|
|
133
|
+
s2 = true;
|
|
130
134
|
else {
|
|
131
135
|
const t3 = function(e5) {
|
|
132
136
|
return e5 && e5.id ? e5.id : e5 && e5.ID ? e5.ID : void 0;
|
|
133
137
|
}(n2);
|
|
134
|
-
|
|
138
|
+
s2 = void 0 !== t3 && e4.deleteRowIndexes.indexOf(t3) >= 0;
|
|
135
139
|
}
|
|
136
140
|
else
|
|
137
|
-
|
|
141
|
+
s2 = false;
|
|
138
142
|
}
|
|
139
|
-
return
|
|
143
|
+
return s2;
|
|
140
144
|
}
|
|
141
145
|
function ve(e3, t2, n2, o2, a2, i2) {
|
|
142
146
|
let l2 = be(0, 0, n2, 0, 0, i2);
|
|
143
|
-
return true === l2 && (l2 = S(
|
|
147
|
+
return true === l2 && (l2 = S(N.pageContext, H.props.base.showDeleteBtnCondition, n2)), l2;
|
|
144
148
|
}
|
|
145
149
|
function ge(e3, t2, n2, o2, a2) {
|
|
146
|
-
oe.value.createRow(
|
|
150
|
+
oe.value.createRow(L, {}, { getDefaultValueFunc: C });
|
|
147
151
|
}
|
|
148
152
|
function me(e3, t2, n2, o2, a2) {
|
|
149
|
-
oe.value.deleteRow(a2,
|
|
153
|
+
oe.value.deleteRow(a2, L, false);
|
|
150
154
|
}
|
|
151
155
|
function he(e3) {
|
|
152
156
|
w(K, X, e3);
|
|
153
157
|
}
|
|
154
158
|
function Se(e3) {
|
|
155
|
-
|
|
159
|
+
A.subTablePageInfo || (A.subTablePageInfo = {}), A.subTablePageInfo[B] = { pageSize: e3 };
|
|
156
160
|
}
|
|
157
161
|
function we(e3) {
|
|
158
162
|
const t2 = e3.key, n2 = e3.value;
|
|
159
|
-
|
|
163
|
+
A.selectOptions || (A.selectOptions = {}), A.selectOptions[t2] = n2;
|
|
160
164
|
}
|
|
161
165
|
function xe(e3) {
|
|
162
|
-
const t2 =
|
|
166
|
+
const t2 = A.code + "_";
|
|
163
167
|
y.$emit(t2 + "prohibit-edit", e3);
|
|
164
168
|
}
|
|
165
169
|
function Te(e3) {
|
|
166
|
-
const t2 =
|
|
170
|
+
const t2 = A.entity.data;
|
|
167
171
|
if (e3)
|
|
168
172
|
for (const n2 in e3)
|
|
169
173
|
t2[n2] = e3[n2];
|
|
170
174
|
}
|
|
171
175
|
function De(e3, t2) {
|
|
172
176
|
if (void 0 !== t2) {
|
|
173
|
-
|
|
174
|
-
p(
|
|
177
|
+
V.value = e3;
|
|
178
|
+
p(A, H, { selection: e3, row: t2 });
|
|
175
179
|
}
|
|
176
180
|
}
|
|
177
181
|
function Ce(e3) {
|
|
178
|
-
|
|
179
|
-
f(
|
|
182
|
+
V.value = e3;
|
|
183
|
+
f(A, H, { selection: e3 });
|
|
180
184
|
}
|
|
181
185
|
function ye(e3) {
|
|
182
|
-
d(
|
|
186
|
+
d(A, H, { newSelection: e3 });
|
|
183
187
|
}
|
|
184
188
|
function Pe(e3, t2, n2, o2) {
|
|
185
|
-
b(
|
|
189
|
+
b(A, H, { row: e3, column: t2, cell: n2, event: o2 });
|
|
186
190
|
}
|
|
187
|
-
function
|
|
188
|
-
v(
|
|
191
|
+
function Re(e3, t2, n2, o2) {
|
|
192
|
+
v(A, H, { row: e3, column: t2, cell: n2, event: o2 });
|
|
189
193
|
}
|
|
190
|
-
function
|
|
191
|
-
g(
|
|
194
|
+
function Ie(e3, t2, n2) {
|
|
195
|
+
g(A, H, { row: e3, column: t2, event: n2 });
|
|
192
196
|
}
|
|
193
197
|
function _e(e3, t2, n2) {
|
|
194
|
-
m(
|
|
198
|
+
m(A, H, { row: e3, column: t2, event: n2 });
|
|
195
199
|
}
|
|
196
200
|
function Oe(e3, t2) {
|
|
197
|
-
h(
|
|
201
|
+
h(A, H, { column: e3, event: t2 });
|
|
198
202
|
}
|
|
199
203
|
function ke(e3) {
|
|
200
|
-
|
|
204
|
+
A.entity.data = e3;
|
|
201
205
|
}
|
|
202
206
|
function Me() {
|
|
203
207
|
return x(K, X);
|
|
@@ -206,7 +210,7 @@ const $ = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
206
210
|
return w(K, X, e3);
|
|
207
211
|
}
|
|
208
212
|
return n(() => {
|
|
209
|
-
const e3 =
|
|
213
|
+
const e3 = H.uuid, t2 = A.subTableWatchProps;
|
|
210
214
|
y.$on("_refreshSubTable_" + e3, (n2) => {
|
|
211
215
|
const o2 = n2.propName;
|
|
212
216
|
if (t2 && t2[e3] && t2[e3].length > 0) {
|
|
@@ -217,45 +221,45 @@ const $ = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
|
|
|
217
221
|
}), y.$on("_refreshChildData_" + e3, (e4) => {
|
|
218
222
|
!function(e5) {
|
|
219
223
|
Fe(e5), setTimeout(() => {
|
|
220
|
-
oe.value && (oe.value.refreshChildData(
|
|
224
|
+
oe.value && (oe.value.refreshChildData(L, e5, H.props && H.props.base && true === H.props.base.subPaging), te.value.extraParam.entityMap = A.entity.data);
|
|
221
225
|
}, 10);
|
|
222
226
|
}(e4);
|
|
223
|
-
}), y.$on(
|
|
227
|
+
}), y.$on(L + "-pickFileDone", (e4) => {
|
|
224
228
|
oe.value.pickFileDone(e4);
|
|
225
|
-
}), y.$on(
|
|
229
|
+
}), y.$on(L + "-scanDone", (e4) => {
|
|
226
230
|
oe.value.scanDone(e4);
|
|
227
231
|
}), te.value && te.value.configureObj.props.base && te.value.configureObj.props.base.isSafeDelete && ne("setSafeDeleteTableCode", te.value.extraParam.tableName);
|
|
228
232
|
}), o(() => {
|
|
229
|
-
const e3 =
|
|
230
|
-
y.$off("_refreshSubTable_" + e3), y.$off("_refreshSubTableHandle_" + e3), y.$off("_refreshChildData_" + e3), y.$off(
|
|
233
|
+
const e3 = H.uuid;
|
|
234
|
+
y.$off("_refreshSubTable_" + e3), y.$off("_refreshSubTableHandle_" + e3), y.$off("_refreshChildData_" + e3), y.$off(L + "-pickFileDone"), y.$off(L + "-scanDone");
|
|
231
235
|
}), function() {
|
|
232
236
|
const e3 = le();
|
|
233
237
|
e3 ? re(e3) : (ie(e3), te.value.isPageInfo = false, te.value.subTableData = Me(), ce());
|
|
234
238
|
}(), $2({ createRow: function() {
|
|
235
|
-
return oe.value.createRow(
|
|
239
|
+
return oe.value.createRow(L);
|
|
236
240
|
}, getSelections: function() {
|
|
237
|
-
return
|
|
241
|
+
return V.value;
|
|
238
242
|
}, getSelectionIds: function() {
|
|
239
243
|
const e3 = [];
|
|
240
|
-
return
|
|
244
|
+
return V.value && V.value.forEach((t2) => {
|
|
241
245
|
e3.push(t2.id ? t2.id : t2.ID ? t2.ID : null);
|
|
242
246
|
}), e3;
|
|
243
247
|
}, clearSelections: function() {
|
|
244
|
-
|
|
248
|
+
V.value = [];
|
|
245
249
|
}, getTableConfigure: function() {
|
|
246
|
-
return
|
|
250
|
+
return H;
|
|
247
251
|
}, validatorSunTableListData: function() {
|
|
248
252
|
return oe.value.validatorSunTableListData();
|
|
249
253
|
}, getValue: Me, setValue: Fe, getTableSelectOptions: function() {
|
|
250
254
|
if (oe.value)
|
|
251
|
-
return oe.value.getTableSelectOptions(
|
|
255
|
+
return oe.value.getTableSelectOptions(L);
|
|
252
256
|
}, dynamicControlTableEdit: function(e3, t2, n2) {
|
|
253
257
|
oe.value && oe.value.dynamicControlTableEdit(e3, t2, n2);
|
|
254
258
|
}, doLayout: function(e3) {
|
|
255
259
|
oe.value && oe.value.doLayout(e3);
|
|
256
260
|
} }), (e3, t2) => {
|
|
257
261
|
const n2 = a("super-grid");
|
|
258
|
-
return i(), l("div", null, [Z.value ? (i(),
|
|
262
|
+
return i(), l("div", null, [Z.value ? (i(), u(n2, { key: 0, ref_key: "gridRef", ref: oe, url: s(Y) + "/dsc/commons/sub-table", options: te.value, code: s(L), settings: s(q), onSelect: De, onSelectAll: Ce, onSelectionChange: ye, onCellClick: Pe, onCellDblclick: Re, onRowClick: Ie, onRowDblclick: _e, onHeaderClick: Oe, onFnProhibitToEdit: xe, onChangeGridData: he, onReloadGrid: re, onRefresMainTableFields: Te, onSetSelectOptions: we, onChangeRowsPerPage: Se, onNewOpenGridDialog: s(P), onChangeFormData: ke }, null, 8, ["url", "options", "code", "settings", "onNewOpenGridDialog"])) : r("", true)]);
|
|
259
263
|
};
|
|
260
264
|
} });
|
|
261
265
|
export {
|
|
@@ -1,38 +1,35 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, onMounted as l, nextTick as
|
|
2
|
-
import { getFormModelFields as
|
|
3
|
-
import { handleAfterInitEvent as
|
|
4
|
-
import
|
|
5
|
-
import { $t as
|
|
6
|
-
import "
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
const
|
|
13
|
-
const k2 = e2, S = k2.pageContext.entity ? k2.pageContext.entity : {};
|
|
14
|
-
S.data || (S.data = {});
|
|
15
|
-
const j = S.data;
|
|
16
|
-
let R = y(k2.pageContext, k2.configure);
|
|
17
|
-
const _ = R.length > 0 ? R[R.length - 1] : k2.configure.uuid, T = k2.configure.runtime ? k2.configure.runtime : {}, q = t(T.props ? T.props : {}), w = T.style, z = T.class, I = T.headerStyle, F = T.titleExceedStyle, D = t(null), E = t(null), O = t(null);
|
|
1
|
+
import { defineComponent as e, ref as t, onMounted as l, nextTick as a, computed as o, resolveComponent as i, openBlock as u, createBlock as n, normalizeClass as r, unref as p, normalizeStyle as s, withCtx as f, createElementBlock as g, Fragment as m, createTextVNode as d, toDisplayString as c, createCommentVNode as v, createVNode as y } from "vue";
|
|
2
|
+
import { getFormModelFields as x } from "../../../../utils/page-init-util.js";
|
|
3
|
+
import { handleAfterInitEvent as C, handleFormEvent as h } from "../../../../utils/events/event-util.js";
|
|
4
|
+
import b from "../common/title-suffix-element.vue.js";
|
|
5
|
+
import { $t as k } from "../../../../utils/i18n-util.js";
|
|
6
|
+
import { getVariableValue as S, setVariableValue as R } from "../../../../utils/page-helper-util.js";
|
|
7
|
+
const _ = e({ __name: "depttree-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
|
|
8
|
+
const _2 = e2, j = _2.pageContext.entity ? _2.pageContext.entity : {};
|
|
9
|
+
j.data || (j.data = {});
|
|
10
|
+
const T = j.data, w = j.page;
|
|
11
|
+
let z = x(_2.pageContext, _2.configure);
|
|
12
|
+
const q = z.length > 0 ? z[z.length - 1] : _2.configure.uuid, I = _2.configure.runtime ? _2.configure.runtime : {}, F = t(I.props ? I.props : {}), M = I.style, D = I.class, E = I.headerStyle, O = I.titleExceedStyle, V = t(null), W = t(null), A = t(null);
|
|
18
13
|
l(() => {
|
|
19
|
-
|
|
20
|
-
const e3 =
|
|
21
|
-
|
|
14
|
+
a(() => {
|
|
15
|
+
const e3 = T ? T[q] : null;
|
|
16
|
+
C(e3, _2.pageContext, _2.configure, { formItemRef: V.value, componentRef: W.value, titleRef: A.value, value: e3, entity: _2.pageContext.entity.data, pageData: _2.pageContext.entity.page });
|
|
22
17
|
});
|
|
23
18
|
});
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
|
|
19
|
+
const B = o({ get: () => S(j, z), set(e3) {
|
|
20
|
+
R(j, z, e3);
|
|
21
|
+
} }), G = F.value.autoSetFields ? F.value.autoSetFields : [];
|
|
22
|
+
function H(e3, t2) {
|
|
23
|
+
e3 === q && h(t2, _2.pageContext, _2.configure, "change");
|
|
27
24
|
}
|
|
28
|
-
function
|
|
29
|
-
|
|
25
|
+
function J() {
|
|
26
|
+
h(null, _2.pageContext, _2.configure, "click");
|
|
30
27
|
}
|
|
31
28
|
return (e3, t2) => {
|
|
32
|
-
const l2 =
|
|
33
|
-
return
|
|
29
|
+
const l2 = i("OrganizationInput"), a2 = i("el-form-item");
|
|
30
|
+
return u(), n(a2, { ref_key: "formItemRef", ref: V, required: F.value.required, class: r(p(D)), "label-width": F.value.labelWidth, style: s(p(M)) }, { label: f(() => [F.value.tittleShow ? (u(), g("div", { key: 0, ref_key: "titleRef", ref: A, style: s({ ...p(E), ...p(O) }) }, [F.value.prefixType ? (u(), n(b, { key: 0, pageContext: e3.pageContext, property: F.value }, null, 8, ["pageContext", "property"])) : (u(), g(m, { key: 1 }, [d(c(p(k)(F.value.title)), 1)], 64))], 4)) : v("", true)]), default: f(() => [y(l2, { ref_key: "componentRef", ref: W, disabled: "disabled" == F.value.state, multiple: F.value.multiple, treeType: F.value.treeType, value: B.value, models: p(T), pageModels: p(w), fields: p(G), size: F.value.size, separator: F.value.separator, onSetValue: H, onShowTree: J }, null, 8, ["disabled", "multiple", "treeType", "value", "models", "pageModels", "fields", "size", "separator"])]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
|
|
34
31
|
};
|
|
35
32
|
} });
|
|
36
33
|
export {
|
|
37
|
-
|
|
34
|
+
_ as default
|
|
38
35
|
};
|
|
@@ -1,23 +1,25 @@
|
|
|
1
1
|
import { defineComponent as e, ref as a, resolveComponent as l, openBlock as t, createBlock as u, withCtx as o, createElementBlock as n, createCommentVNode as r } from "vue";
|
|
2
|
-
import
|
|
3
|
-
const
|
|
4
|
-
const
|
|
2
|
+
import i from "./super-page.vue.js";
|
|
3
|
+
const d = ["src"], s = ["src"], p = e({ __name: "super-page-dialog", props: { parentPageContext: {}, parentPageEventParams: {}, jumpPageSetting: {}, isTest: { type: Boolean }, customParams: {} }, emits: ["open", "opened", "close", "closed"], setup(e2, { emit: p2 }) {
|
|
4
|
+
const g = e2, v = p2, m = a(true), c = g.jumpPageSetting ? g.jumpPageSetting : null, P = a(null), f = a(null), h = a(null), j = a(null), C = a(null), w = a(null), y = a({}), b = a(false), k = a(false), O = a("rtl"), I = a(null), _ = a(false), V = a(null);
|
|
5
5
|
if (c) {
|
|
6
|
-
|
|
6
|
+
_.value = !(!c || void 0 === c._isIframe) && c._isIframe, V.value = c && c._path ? c._path : null, w.value = c && c.dialogType ? c.dialogType : "dialog", b.value = !(!c || !c.draggable) && c.draggable, k.value = !(!c || !c.overflow) && c.overflow, O.value = c && c.showPosition ? c.showPosition : "rtl", f.value = c && c.jumpPageTitle ? c.jumpPageTitle : null, P.value = c && c.jumpPageWidth ? c.jumpPageWidth : "100%", I.value = c && c.jumpPageHeight ? c.jumpPageHeight : null, h.value = c && c.pageCode, j.value = c && c.dataId ? c.dataId : null, C.value = c && c.taskId ? c.taskId : null;
|
|
7
|
+
const e3 = !!c.isNeedId;
|
|
8
|
+
if (g.parentPageEventParams) {
|
|
7
9
|
try {
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
} catch (
|
|
10
|
+
const e4 = JSON.parse(JSON.stringify(g.parentPageEventParams));
|
|
11
|
+
e4.pageContext && delete e4.pageContext, e4.configureObj && delete e4.configureObj, Object.assign(y.value, e4);
|
|
12
|
+
} catch (e4) {
|
|
11
13
|
}
|
|
12
|
-
null !== j.value && void 0 !== j.value || (j.value =
|
|
14
|
+
null !== j.value && void 0 !== j.value || (j.value = g.parentPageEventParams.id);
|
|
13
15
|
}
|
|
14
|
-
y.value.parentPageCode = c && c.parentPageCode ? c.parentPageCode : null, y.value.parentPageVersion = c && c.parentPageVersion ? c.parentPageVersion : null, y.value.jumpMode = c ? c.jumpMode : null, y.value.id = j.value, y.value.taskId = C.value,
|
|
16
|
+
y.value.parentPageCode = c && c.parentPageCode ? c.parentPageCode : null, y.value.parentPageVersion = c && c.parentPageVersion ? c.parentPageVersion : null, y.value.jumpMode = c ? c.jumpMode : null, y.value.id = j.value, y.value.isNeedId = e3, y.value.taskId = C.value, g.customParams && Object.assign(y.value, g.customParams);
|
|
15
17
|
}
|
|
16
18
|
return (e3, a2) => {
|
|
17
|
-
const
|
|
18
|
-
return w.value && "drawer" === w.value ? (t(), u(
|
|
19
|
+
const p3 = l("el-drawer"), g2 = l("el-dialog");
|
|
20
|
+
return w.value && "drawer" === w.value ? (t(), u(p3, { key: 0, modelValue: m.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e4) => m.value = e4), title: f.value, direction: O.value, size: P.value, onOpen: a2[1] || (a2[1] = (e4) => v("open")), onOpened: a2[2] || (a2[2] = (e4) => v("opened")), onClose: a2[3] || (a2[3] = (e4) => v("close")), onClosed: a2[4] || (a2[4] = (e4) => v("closed")) }, { default: o(() => [!_.value && h.value ? (t(), u(i, { key: 0, pageCode: h.value, pageRequest: y.value, isDialog: true }, null, 8, ["pageCode", "pageRequest"])) : _.value ? (t(), n("iframe", { key: 1, height: "98%", width: "100%", src: V.value, frameborder: "0", allowtransparency: "no" }, null, 8, d)) : r("", true)]), _: 1 }, 8, ["modelValue", "title", "direction", "size"])) : (t(), u(g2, { key: 1, "model-value": "", title: f.value, "close-on-click-modal": false, "append-to-body": "", width: P.value, draggable: b.value, overflow: k.value, onOpen: a2[5] || (a2[5] = (a3) => e3.$emit("open")), onOpend: a2[6] || (a2[6] = (a3) => e3.$emit("opend")), onClose: a2[7] || (a2[7] = (e4) => v("close")), onClosed: a2[8] || (a2[8] = (a3) => e3.$emit("closed")) }, { default: o(() => [!_.value && h.value ? (t(), u(i, { key: 0, pageCode: h.value, pageRequest: y.value, contentHeight: I.value, isDialog: true }, null, 8, ["pageCode", "pageRequest", "contentHeight"])) : _.value ? (t(), n("iframe", { key: 1, height: "98%", width: "100%", src: V.value, frameborder: "0", allowtransparency: "no" }, null, 8, s)) : r("", true)]), _: 1 }, 8, ["title", "width", "draggable", "overflow"]));
|
|
19
21
|
};
|
|
20
22
|
} });
|
|
21
23
|
export {
|
|
22
|
-
|
|
24
|
+
p as default
|
|
23
25
|
};
|
|
@@ -49,6 +49,10 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
49
49
|
type: (NumberConstructor | StringConstructor)[];
|
|
50
50
|
default: any;
|
|
51
51
|
};
|
|
52
|
+
isDialog: {
|
|
53
|
+
type: BooleanConstructor;
|
|
54
|
+
required: false;
|
|
55
|
+
};
|
|
52
56
|
}, {
|
|
53
57
|
pickFileDone: typeof pickFileDone;
|
|
54
58
|
uploadFileDone: typeof uploadFileDone;
|
|
@@ -103,6 +107,10 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
103
107
|
type: (NumberConstructor | StringConstructor)[];
|
|
104
108
|
default: any;
|
|
105
109
|
};
|
|
110
|
+
isDialog: {
|
|
111
|
+
type: BooleanConstructor;
|
|
112
|
+
required: false;
|
|
113
|
+
};
|
|
106
114
|
}>> & {
|
|
107
115
|
onClose?: (...args: any[]) => any;
|
|
108
116
|
onOpen?: (...args: any[]) => any;
|
|
@@ -111,5 +119,6 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
111
119
|
}, {
|
|
112
120
|
isTest: boolean;
|
|
113
121
|
contentHeight: string | number;
|
|
122
|
+
isDialog: boolean;
|
|
114
123
|
}, {}>;
|
|
115
124
|
export default _default;
|