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.
Files changed (22) hide show
  1. package/dist/es/components/runtime/utils/events/standard-event.d.ts +2 -2
  2. package/dist/es/components/runtime/utils/events/standard-event.js +49 -41
  3. package/dist/es/components/runtime/utils/interfaces/page-design-types.d.ts +2 -0
  4. package/dist/es/components/runtime/utils/page-helper-util.js +8 -12
  5. package/dist/es/components/runtime/utils/page-init-util.d.ts +6 -1
  6. package/dist/es/components/runtime/utils/page-init-util.js +38 -35
  7. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +1 -1
  8. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +1 -1
  9. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +1 -1
  10. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +3 -3
  11. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +1 -1
  12. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.d.ts +1 -0
  13. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +146 -112
  14. package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +19 -50
  15. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +129 -105
  16. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +16 -17
  17. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +86 -82
  18. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +25 -28
  19. package/dist/es/components/runtime/views/super-page-dialog.vue.js +14 -12
  20. package/dist/es/components/runtime/views/super-page.vue.d.ts +9 -0
  21. package/dist/es/components/runtime/views/super-page.vue.js +163 -161
  22. 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 s, unref as u, createCommentVNode as r } from "vue";
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 I } from "../../../../utils/table-utils.js";
7
- import { getListCode as R, getBaseUrl as _ } from "../../../../utils/common-util.js";
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 A = e2, H = A.pageContext, N = A.configure, E = R(H.code, H.version, N.uuid), L = H.entity.data, z = N.code ? N.code : E, B = O(H), U = N.runtime && N.runtime.events ? N.runtime.events : [], G = t([]), V = H.superGridItems, q = V ? V[N.uuid] : null, J = A.configure.runtime ? A.configure.runtime : {}, Q = J.style, W = J.class, K = A.pageContext.entity ? A.pageContext.entity : {};
12
- let X = D(A.configure, z), Y = _(H.backendUrl, H.isTest);
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: H.code, pageVersion: H.version, pageContext: H, configureObj: N, showPageArea: false, showRowForm: false, showOverflowTooltip: !(!N.props || !N.props.otherSettings || void 0 !== N.props.otherSettings.isBreakLine && false !== N.props.otherSettings.isBreakLine), backendUrl: Y, cellStyleRender: function(e3) {
17
- return M(e3, e3.cellStyle, A);
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, A);
23
+ return k(e3, null, N);
20
24
  }, titleStyleRender: function(e3) {
21
- const t2 = e3.titleStyle, n2 = A.configure.style.titleStyle;
22
- return F(e3, { cellTitleStyle: t2, titleStyle: n2 }, A);
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), N.props && N.props.base && true === N.props.base.subPaging ? te.value.showPageArea = true : te.value.showPageArea = false, N.props.base.showRowForm && (te.value.showRowForm = N.props.base.showRowForm);
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(E));
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 = se, te.value.getGridData = ue, te.value.extraParam.subTableListViewCode = E, te.value.extraParam.beanName = H.beanName, te.value.extraParam.subtableSetting = N.props && N.props.otherSettings ? JSON.stringify(N.props.otherSettings) : null, te.value.extraParam.additionalParamMap = B, te.value.extraParam.entityMap = H.entity.data, te.value.extraParam.contextMap = H.entity.context, te.value.extraParam.taskMap = H.entity.task, !(N.props && N.props.base && N.props.base.showOperation)) {
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 = !(!N.props || !N.props.base) && N.props.base.showOperation, te.value.isPdfEditor = false, te.value.tableRecordMaxNum = N.props && N.props.otherSettings ? N.props.otherSettings.tableRecordMaxNum : null;
35
- let t2 = T(H, N);
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 (N.props && N.props.otherSettings) {
40
- if (N.props.otherSettings.sourceQueryTableData && N.props.otherSettings.timeToInitializeSubTable && N.props.otherSettings.timeToInitializeSubTable.length > 0) {
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 !== N.props.otherSettings.timeToInitializeSubTable.indexOf("create") && (e3 = !L.id && !L.ID), -1 !== N.props.otherSettings.timeToInitializeSubTable.indexOf("noData")) {
43
- const t2 = L[z];
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 = H.fieldPermissionMap, t2 = H.actionPermissionMap;
68
+ const e4 = A.fieldPermissionMap, t2 = A.actionPermissionMap;
65
69
  if (e4 && null != e4) {
66
- let t3 = e4.get(z);
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(z);
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(A.pageContext, N.props.base.showOperationCondition);
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 I(H, N, e5), e5;
92
+ return R(A, H, e5), e5;
89
93
  }();
90
94
  te.value.operations.operation = n2, te.value.subTableCanAdd = fe();
91
- }(), c(te.value, U, H, N);
92
- const e3 = H.customEvents;
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
- H.tableUuids || (H.tableUuids = []), H.tableUuids.indexOf(N.uuid) < 0 && H.tableUuids.push(N.uuid);
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(A.pageContext, N.props.base.showOperationCondition))
103
+ if (!S(N.pageContext, H.props.base.showOperationCondition))
100
104
  return false;
101
- const l2 = H.fieldPermissionMap, s2 = H.actionPermissionMap;
102
- let u2 = true;
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 || (u2 = false);
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 === u2 && z && s2 && null !== s2) {
108
- let e4 = s2.get(z);
109
- e4 || (e4 = s2.get("all_sub_tables")), e4 && void 0 !== e4.canAdd && false === e4.canAdd && (u2 = false);
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 u2;
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(A.pageContext, N.props.base.showAddBtnCondition, n2)), l2;
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 = H.fieldPermissionMap, s2 = H.actionPermissionMap;
119
- let u2 = true;
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 || (u2 = false);
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 === u2 && z && s2 && null !== s2) {
125
- let e4 = s2.get(z);
126
- if (e4 || (e4 = s2.get("all_sub_tables")), e4 && void 0 !== e4.canDelete && false === e4.canDelete && (u2 = false), e4 && void 0 !== e4.canDelete && true === e4.canDelete && e4.deleteRowIndexes)
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
- u2 = true;
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
- u2 = void 0 !== t3 && e4.deleteRowIndexes.indexOf(t3) >= 0;
138
+ s2 = void 0 !== t3 && e4.deleteRowIndexes.indexOf(t3) >= 0;
135
139
  }
136
140
  else
137
- u2 = false;
141
+ s2 = false;
138
142
  }
139
- return u2;
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(A.pageContext, N.props.base.showDeleteBtnCondition, n2)), l2;
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(E, {}, { getDefaultValueFunc: C });
150
+ oe.value.createRow(L, {}, { getDefaultValueFunc: C });
147
151
  }
148
152
  function me(e3, t2, n2, o2, a2) {
149
- oe.value.deleteRow(a2, E, false);
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
- H.subTablePageInfo || (H.subTablePageInfo = {}), H.subTablePageInfo[z] = { pageSize: e3 };
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
- H.selectOptions || (H.selectOptions = {}), H.selectOptions[t2] = n2;
163
+ A.selectOptions || (A.selectOptions = {}), A.selectOptions[t2] = n2;
160
164
  }
161
165
  function xe(e3) {
162
- const t2 = H.code + "_";
166
+ const t2 = A.code + "_";
163
167
  y.$emit(t2 + "prohibit-edit", e3);
164
168
  }
165
169
  function Te(e3) {
166
- const t2 = H.entity.data;
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
- G.value = e3;
174
- p(H, N, { selection: e3, row: t2 });
177
+ V.value = e3;
178
+ p(A, H, { selection: e3, row: t2 });
175
179
  }
176
180
  }
177
181
  function Ce(e3) {
178
- G.value = e3;
179
- f(H, N, { selection: e3 });
182
+ V.value = e3;
183
+ f(A, H, { selection: e3 });
180
184
  }
181
185
  function ye(e3) {
182
- d(H, N, { newSelection: e3 });
186
+ d(A, H, { newSelection: e3 });
183
187
  }
184
188
  function Pe(e3, t2, n2, o2) {
185
- b(H, N, { row: e3, column: t2, cell: n2, event: o2 });
189
+ b(A, H, { row: e3, column: t2, cell: n2, event: o2 });
186
190
  }
187
- function Ie(e3, t2, n2, o2) {
188
- v(H, N, { row: e3, column: t2, cell: n2, event: o2 });
191
+ function Re(e3, t2, n2, o2) {
192
+ v(A, H, { row: e3, column: t2, cell: n2, event: o2 });
189
193
  }
190
- function Re(e3, t2, n2) {
191
- g(H, N, { row: e3, column: t2, event: n2 });
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(H, N, { row: e3, column: t2, event: n2 });
198
+ m(A, H, { row: e3, column: t2, event: n2 });
195
199
  }
196
200
  function Oe(e3, t2) {
197
- h(H, N, { column: e3, event: t2 });
201
+ h(A, H, { column: e3, event: t2 });
198
202
  }
199
203
  function ke(e3) {
200
- H.entity.data = e3;
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 = N.uuid, t2 = H.subTableWatchProps;
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(E, e5, N.props && N.props.base && true === N.props.base.subPaging), te.value.extraParam.entityMap = H.entity.data);
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(E + "-pickFileDone", (e4) => {
227
+ }), y.$on(L + "-pickFileDone", (e4) => {
224
228
  oe.value.pickFileDone(e4);
225
- }), y.$on(E + "-scanDone", (e4) => {
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 = N.uuid;
230
- y.$off("_refreshSubTable_" + e3), y.$off("_refreshSubTableHandle_" + e3), y.$off("_refreshChildData_" + e3), y.$off(E + "-pickFileDone"), y.$off(E + "-scanDone");
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(E);
239
+ return oe.value.createRow(L);
236
240
  }, getSelections: function() {
237
- return G.value;
241
+ return V.value;
238
242
  }, getSelectionIds: function() {
239
243
  const e3 = [];
240
- return G.value && G.value.forEach((t2) => {
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
- G.value = [];
248
+ V.value = [];
245
249
  }, getTableConfigure: function() {
246
- return N;
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(E);
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(), s(n2, { key: 0, ref_key: "gridRef", ref: oe, url: u(Y) + "/dsc/commons/sub-table", options: te.value, code: u(E), settings: u(q), onSelect: De, onSelectAll: Ce, onSelectionChange: ye, onCellClick: Pe, onCellDblclick: Ie, onRowClick: Re, onRowDblclick: _e, onHeaderClick: Oe, onFnProhibitToEdit: xe, onChangeGridData: he, onReloadGrid: re, onRefresMainTableFields: Te, onSetSelectOptions: we, onChangeRowsPerPage: Se, onNewOpenGridDialog: u(P), onChangeFormData: ke }, null, 8, ["url", "options", "code", "settings", "onNewOpenGridDialog"])) : r("", true)]);
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 i, resolveComponent as u, openBlock as a, createBlock as r, normalizeClass as o, unref as n, normalizeStyle as s, withCtx as p, createElementBlock as f, Fragment as m, createTextVNode as c, toDisplayString as d, createCommentVNode as g, createVNode as v } from "vue";
2
- import { getFormModelFields as y } from "../../../../utils/page-init-util.js";
3
- import { handleAfterInitEvent as x, handleFormEvent as b } from "../../../../utils/events/event-util.js";
4
- import C from "../common/title-suffix-element.vue.js";
5
- import { $t as h } from "../../../../utils/i18n-util.js";
6
- import "agilebuilder-ui/src/utils/request";
7
- import "dayjs";
8
- import "agilebuilder-ui/src/utils/calculator/calculator-util";
9
- import "../../../../utils/global-refs.js";
10
- import "agilebuilder-ui/src/utils/common-util";
11
- import "agilebuilder-ui/src/utils/util";
12
- const k = e({ __name: "depttree-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
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
- i(() => {
20
- const e3 = j ? j[_] : null;
21
- x(e3, k2.pageContext, k2.configure, { formItemRef: D.value, componentRef: E.value, titleRef: O.value, value: e3, entity: k2.pageContext.entity.data, pageData: k2.pageContext.entity.page });
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 V = q.value.autoSetFields ? q.value.autoSetFields : [];
25
- function W(e3, t2) {
26
- e3 === _ && b(t2, k2.pageContext, k2.configure, "change");
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 A() {
29
- b(null, k2.pageContext, k2.configure, "click");
25
+ function J() {
26
+ h(null, _2.pageContext, _2.configure, "click");
30
27
  }
31
28
  return (e3, t2) => {
32
- const l2 = u("OrganizationInput"), i2 = u("el-form-item");
33
- return a(), r(i2, { ref_key: "formItemRef", ref: D, required: q.value.required, class: o(n(z)), "label-width": q.value.labelWidth, style: s(n(w)) }, { label: p(() => [q.value.tittleShow ? (a(), f("div", { key: 0, ref_key: "titleRef", ref: O, style: s({ ...n(I), ...n(F) }) }, [q.value.prefixType ? (a(), r(C, { key: 0, pageContext: e3.pageContext, property: q.value }, null, 8, ["pageContext", "property"])) : (a(), f(m, { key: 1 }, [c(d(n(h)(q.value.title)), 1)], 64))], 4)) : g("", true)]), default: p(() => [v(l2, { ref_key: "componentRef", ref: E, disabled: "disabled" == q.value.state, multiple: q.value.multiple, treeType: q.value.treeType, value: n(j)[n(_)], models: n(j), fields: n(V), size: q.value.size, separator: q.value.separator, onSetValue: W, onShowTree: A }, null, 8, ["disabled", "multiple", "treeType", "value", "models", "fields", "size", "separator"])]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
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
- k as default
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 d from "./super-page.vue.js";
3
- const i = ["src"], p = ["src"], s = e({ __name: "super-page-dialog", props: { parentPageContext: {}, parentPageEventParams: {}, jumpPageSetting: {}, isTest: { type: Boolean }, customParams: {} }, emits: ["open", "opened", "close", "closed"], setup(e2, { emit: s2 }) {
4
- const v = e2, g = s2, m = a(true), c = v.jumpPageSetting ? v.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"), _ = a(null), I = a(false), V = a(null);
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
- if (I.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%", _.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, v.parentPageEventParams) {
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 e3 = JSON.parse(JSON.stringify(v.parentPageEventParams));
9
- e3.pageContext && delete e3.pageContext, e3.configureObj && delete e3.configureObj, Object.assign(y.value, e3);
10
- } catch (e3) {
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 = v.parentPageEventParams.id);
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, v.customParams && Object.assign(y.value, v.customParams);
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 s3 = l("el-drawer"), v2 = l("el-dialog");
18
- return w.value && "drawer" === w.value ? (t(), u(s3, { 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) => g("open")), onOpened: a2[2] || (a2[2] = (e4) => g("opened")), onClose: a2[3] || (a2[3] = (e4) => g("close")), onClosed: a2[4] || (a2[4] = (e4) => g("closed")) }, { default: o(() => [!I.value && h.value ? (t(), u(d, { key: 0, pageCode: h.value, pageRequest: y.value }, null, 8, ["pageCode", "pageRequest"])) : I.value ? (t(), n("iframe", { key: 1, height: "98%", width: "100%", src: V.value, frameborder: "0", allowtransparency: "no" }, null, 8, i)) : r("", true)]), _: 1 }, 8, ["modelValue", "title", "direction", "size"])) : (t(), u(v2, { 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) => g("close")), onClosed: a2[8] || (a2[8] = (a3) => e3.$emit("closed")) }, { default: o(() => [!I.value && h.value ? (t(), u(d, { key: 0, pageCode: h.value, pageRequest: y.value, contentHeight: _.value }, null, 8, ["pageCode", "pageRequest", "contentHeight"])) : I.value ? (t(), n("iframe", { key: 1, height: "98%", width: "100%", src: V.value, frameborder: "0", allowtransparency: "no" }, null, 8, p)) : r("", true)]), _: 1 }, 8, ["title", "width", "draggable", "overflow"]));
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
- s as default
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;