super-page-runtime 2.2.91 → 2.2.92-sit1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,49 +1,49 @@
1
- import { defineComponent as e, ref as t, onMounted as n, onUnmounted as o, resolveComponent as a, createElementBlock as i, openBlock as l, createBlock as u, createCommentVNode as r, unref as s } from "vue";
1
+ import { defineComponent as e, ref as t, onMounted as n, onUnmounted as o, resolveComponent as i, createElementBlock as a, openBlock as l, createBlock as u, createCommentVNode as r, unref as s } from "vue";
2
2
  import { setTableEvents as c, gridSelectRecord as p, gridSelectAllRecords as d, gridSelectionChange as f, cellClick as b, cellDblClick as v, rowClick as g, rowDblClick as m, headerClick as h, getHandleEvent as S } from "../../../../utils/events/event-util.js";
3
- import { caculateShowCondition as w, setVariableValue as T, getVariableValue as x, getSizeConfig as D } from "../../../../utils/page-helper-util.js";
4
- import { getModelFields as C, getDefaultValue as y } from "../../../../utils/page-init-util.js";
3
+ import { caculateShowCondition as w, setVariableValue as x, getVariableValue as T, getSizeConfig as C } from "../../../../utils/page-helper-util.js";
4
+ import { getModelFields as D, getDefaultValue as y } from "../../../../utils/page-init-util.js";
5
5
  import P from "../../../../utils/eventBus.js";
6
6
  import { popupToPage as I, getOperationButtons as R } from "../../../../utils/table-utils.js";
7
7
  import { getListCode as O, getBaseUrl as _ } from "../../../../utils/common-util.js";
8
8
  import { getAdditionalParamMap as k } from "../../../../utils/events/standard-event.js";
9
9
  import { getRowStyleUtil as M, getCellStyleUtil as F, getHeaderCellStyleUtil as $ } from "../../chart/table/chart-table-util.js";
10
10
  const j = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure: {} }, emits: ["setSafeDeleteTableCode"], setup(e2, { expose: j2, emit: A }) {
11
- const N = e2, H = N.pageContext;
12
- let L = N.configure;
13
- const B = N.configure.runtime ? N.configure.runtime : {};
14
- H.isTest ? B.value = N.configure.runtime ? N.configure.runtime : {} : H.tableRuntimes && H.tableRuntimes[L.uuid] && (L = JSON.parse(H.tableRuntimes[L.uuid].configure), B.value = L.runtime ? L.runtime : {});
15
- const E = O(H.code, H.version, L.uuid), U = H.entity.data, z = L.code ? L.code : E, V = k(H), G = B && B.events ? B.events : [], J = t([]), q = H.superGridItems, K = q ? q[L.uuid] : null, Q = B.style, W = B.class, X = N.pageContext.entity ? N.pageContext.entity : {};
16
- let Y = C(N.configure, z), Z = _(H.backendUrl, H.isTest);
11
+ const N = e2, E = N.pageContext;
12
+ let H = N.configure;
13
+ const L = N.configure.runtime ? N.configure.runtime : {};
14
+ E.isTest ? L.value = N.configure.runtime ? N.configure.runtime : {} : E.tableRuntimes && E.tableRuntimes[H.uuid] && (H = JSON.parse(E.tableRuntimes[H.uuid].configure), L.value = H.runtime ? H.runtime : {});
15
+ const B = O(E.code, E.version, H.uuid), U = E.entity.data, z = H.code ? H.code : B, V = k(E), G = L && L.events ? L.events : [], J = t([]), q = E.superGridItems, K = q ? q[H.uuid] : null, Q = L.style, W = L.class, X = N.pageContext.entity ? N.pageContext.entity : {};
16
+ let Y = D(N.configure, z), Z = _(E.backendUrl, E.isTest);
17
17
  Z || (Z = window.$vueApp.config.globalProperties.baseURL);
18
18
  const ee = t(false);
19
19
  let te = t(0);
20
- const ne = L.props.dataOrigin.principalLinkage, oe = t({ isSql: true, subTableData: null, rowKeyProp: ne, extraParam: {}, operations: {}, hiddenColumns: [], pageCode: H.code, pageVersion: H.version, pageContext: H, configureObj: L, showPageArea: false, showRowForm: false, showOverflowTooltip: !(!L.props || !L.props.otherSettings || void 0 !== L.props.otherSettings.isBreakLine && false !== L.props.otherSettings.isBreakLine), backendUrl: Z, cellStyleRender: function(e3) {
20
+ const ne = H.props.dataOrigin.principalLinkage, oe = t({ isSql: true, subTableData: null, rowKeyProp: ne, extraParam: {}, operations: {}, hiddenColumns: [], pageCode: E.code, pageVersion: E.version, pageContext: E, configureObj: H, showPageArea: false, showRowForm: false, showOverflowTooltip: !(!H.props || !H.props.otherSettings || void 0 !== H.props.otherSettings.isBreakLine && false !== H.props.otherSettings.isBreakLine), backendUrl: Z, cellStyleRender: function(e3) {
21
21
  return F(e3, e3.cellStyle, N);
22
22
  }, rowStyleRender: function(e3) {
23
23
  return M(e3, null, N);
24
24
  }, titleStyleRender: function(e3) {
25
25
  const t2 = e3.titleStyle, n2 = N.configure.style.titleStyle;
26
26
  return $(e3, { cellTitleStyle: t2, titleStyle: n2 }, N);
27
- } }), ae = A;
28
- Q && (oe.value.tableStyle = Q), W && (oe.value.tableClass = W), L.props && L.props.base && true === L.props.base.subPaging ? oe.value.showPageArea = true : oe.value.showPageArea = false, L.props.base.showRowForm && (oe.value.showRowForm = L.props.base.showRowForm);
29
- const ie = t(null);
27
+ } }), ie = A;
28
+ Q && (oe.value.tableStyle = Q), W && (oe.value.tableClass = W), H.props && H.props.base && true === H.props.base.subPaging ? oe.value.showPageArea = true : oe.value.showPageArea = false, H.props.base.showRowForm && (oe.value.showRowForm = H.props.base.showRowForm);
29
+ const ae = t(null);
30
30
  function le() {
31
- ie.value && (oe.value.subTableData = null, ie.value.reloadSubTableData(E));
31
+ ae.value && (oe.value.subTableData = null, ae.value.reloadSubTableData(B));
32
32
  }
33
33
  function ue(e3) {
34
- if (void 0 === e3 && (e3 = re()), oe.value.isPageInfo = false, oe.value.isFormSubTable = true, oe.value.canRrefreshSubtableData = e3, oe.value.getFormData = se, oe.value.getGridData = ce, oe.value.extraParam.subTableListViewCode = E, oe.value.extraParam.beanName = H.beanName, oe.value.extraParam.subtableSetting = L.props && L.props.otherSettings ? JSON.stringify(L.props.otherSettings) : null, oe.value.extraParam.additionalParamMap = V, oe.value.extraParam.entityMap = H.entity.data, oe.value.extraParam.contextMap = H.entity.context, oe.value.extraParam.taskMap = H.entity.task, !(L.props && L.props.base && L.props.base.showOperation)) {
34
+ if (void 0 === e3 && (e3 = re()), oe.value.isPageInfo = false, oe.value.isFormSubTable = true, oe.value.canRrefreshSubtableData = e3, oe.value.getFormData = se, oe.value.getGridData = ce, oe.value.extraParam.subTableListViewCode = B, oe.value.extraParam.beanName = E.beanName, oe.value.extraParam.subtableSetting = H.props && H.props.otherSettings ? JSON.stringify(H.props.otherSettings) : null, oe.value.extraParam.additionalParamMap = V, oe.value.extraParam.entityMap = E.entity.data, oe.value.extraParam.contextMap = E.entity.context, oe.value.extraParam.taskMap = E.entity.task, !(H.props && H.props.base && H.props.base.showOperation)) {
35
35
  let e4 = oe.value.hiddenColumns;
36
36
  e4 ? e4.push("operation") : e4 = ["operation"], oe.value.hiddenColumns = e4;
37
37
  }
38
- oe.value.showOperationButton = !(!L.props || !L.props.base) && L.props.base.showOperation, oe.value.isPdfEditor = false, oe.value.tableRecordMaxNum = L.props && L.props.otherSettings ? L.props.otherSettings.tableRecordMaxNum : null;
39
- let t2 = D(H, L);
40
- t2 && t2.fixHeight && (oe.value.formSetHeight = t2.fixHeight), t2 && t2.maxHeight && (oe.value.formSetMaxHeight = t2.maxHeight);
38
+ oe.value.showOperationButton = !(!H.props || !H.props.base) && H.props.base.showOperation, oe.value.isPdfEditor = false, oe.value.tableRecordMaxNum = H.props && H.props.otherSettings ? H.props.otherSettings.tableRecordMaxNum : null;
39
+ let t2 = C(E, H);
40
+ t2 && t2.fixHeight && (oe.value.formSetHeight = t2.fixHeight), t2 && t2.maxHeight && (oe.value.formSetMaxHeight = t2.maxHeight), oe.value.validateEitConditions = Be;
41
41
  }
42
42
  function re() {
43
- if (L.props && L.props.otherSettings) {
44
- if (L.props.otherSettings.sourceQueryTableData && L.props.otherSettings.timeToInitializeSubTable && L.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) {
45
45
  let e3 = false;
46
- if (-1 !== L.props.otherSettings.timeToInitializeSubTable.indexOf("create") && (e3 = !U.id && !U.ID), -1 !== L.props.otherSettings.timeToInitializeSubTable.indexOf("noData")) {
46
+ if (-1 !== H.props.otherSettings.timeToInitializeSubTable.indexOf("create") && (e3 = !U.id && !U.ID), -1 !== H.props.otherSettings.timeToInitializeSubTable.indexOf("noData")) {
47
47
  const t2 = U[z];
48
48
  (!t2 || t2.length <= 0) && (e3 = true);
49
49
  }
@@ -53,10 +53,10 @@ const j = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
53
53
  }
54
54
  }
55
55
  function se() {
56
- return H.entity.data;
56
+ return E.entity.data;
57
57
  }
58
58
  function ce() {
59
- return x(X, Y);
59
+ return T(X, Y);
60
60
  }
61
61
  let pe, de;
62
62
  function fe(e3) {
@@ -66,7 +66,7 @@ const j = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
66
66
  }
67
67
  function be() {
68
68
  !function() {
69
- const e4 = H.fieldPermissionMap, t2 = H.actionPermissionMap;
69
+ const e4 = E.fieldPermissionMap, t2 = E.actionPermissionMap;
70
70
  if (e4 && null != e4) {
71
71
  let t3 = e4.get(z);
72
72
  if (!t3) {
@@ -81,27 +81,27 @@ const j = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
81
81
  }
82
82
  oe.value.operations || (oe.value.operations = {});
83
83
  const n2 = function() {
84
- let e5 = [], t3 = w(N.pageContext, L.props.base.showOperationCondition);
84
+ let e5 = [], t3 = w(N.pageContext, H.props.base.showOperationCondition);
85
85
  if (t3 && Se()) {
86
- const t4 = { props: { elementType: "el-button", icon: "Plus", type: "primary", circle: true, size: "mini", permission: "true" }, onClick: De, isShow: we };
86
+ const t4 = { props: { elementType: "el-button", icon: "Plus", type: "primary", circle: true, size: "mini", permission: "true" }, onClick: Ce, isShow: we };
87
87
  e5.push(t4);
88
88
  }
89
- if (t3 && Te(null, null, null, null, null, true)) {
90
- const t4 = { props: { elementType: "el-button", icon: "Minus", type: "danger", circle: true, size: "mini", permission: "true" }, onClick: Ce, isShow: xe };
89
+ if (t3 && xe(null, null, null, null, null, true)) {
90
+ const t4 = { props: { elementType: "el-button", icon: "Minus", type: "danger", circle: true, size: "mini", permission: "true" }, onClick: De, isShow: Te };
91
91
  e5.push(t4);
92
92
  }
93
- return R(H, L, e5, me), e5;
93
+ return R(E, H, e5, me), e5;
94
94
  }();
95
95
  oe.value.operations.operation = n2, oe.value.subTableCanAdd = Se();
96
- }(), c(oe.value, G, H, L);
97
- const e3 = H.customEvents;
96
+ }(), c(oe.value, G, E, H);
97
+ const e3 = E.customEvents;
98
98
  e3 && (oe.value.eventCallBack = e3), ee.value = true, ve();
99
99
  }
100
100
  function ve() {
101
- H.tableUuids || (H.tableUuids = []), H.tableUuids.indexOf(L.uuid) < 0 && H.tableUuids.push(L.uuid);
101
+ E.tableUuids || (E.tableUuids = []), E.tableUuids.indexOf(H.uuid) < 0 && E.tableUuids.push(H.uuid);
102
102
  }
103
103
  n(() => {
104
- const e3 = L.uuid, t2 = H.subTableWatchProps;
104
+ const e3 = H.uuid, t2 = E.subTableWatchProps;
105
105
  P.$on("_refreshSubTable_" + e3, (n2) => {
106
106
  const o2 = n2.propName;
107
107
  if (t2 && t2[e3] && t2[e3].length > 0) {
@@ -111,32 +111,32 @@ const j = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
111
111
  le();
112
112
  }), P.$on("_refreshChildData_" + e3, (e4) => {
113
113
  !function(e5) {
114
- Be(e5), de = setTimeout(() => {
115
- ie.value && (ie.value.refreshChildData(E, e5, L.props && L.props.base && true === L.props.base.subPaging), oe.value.extraParam.entityMap = H.entity.data);
114
+ Le(e5), de = setTimeout(() => {
115
+ ae.value && (ae.value.refreshChildData(B, e5, H.props && H.props.base && true === H.props.base.subPaging), oe.value.extraParam.entityMap = E.entity.data);
116
116
  }, 10);
117
117
  }(e4);
118
- }), P.$on(E + "-pickFileDone", (e4) => {
119
- ie.value.pickFileDone(e4);
120
- }), P.$on(E + "-scanDone", (e4) => {
121
- ie.value.scanDone(e4);
122
- }), oe.value && oe.value.configureObj.props.base && oe.value.configureObj.props.base.isSafeDelete && ae("setSafeDeleteTableCode", oe.value.extraParam.tableName);
118
+ }), P.$on(B + "-pickFileDone", (e4) => {
119
+ ae.value.pickFileDone(e4);
120
+ }), P.$on(B + "-scanDone", (e4) => {
121
+ ae.value.scanDone(e4);
122
+ }), oe.value && oe.value.configureObj.props.base && oe.value.configureObj.props.base.isSafeDelete && ie("setSafeDeleteTableCode", oe.value.extraParam.tableName);
123
123
  }), o(() => {
124
124
  pe && clearTimeout(pe), de && clearTimeout(de);
125
- const e3 = L.uuid;
126
- P.$off("_refreshSubTable_" + e3), P.$off("_refreshSubTableHandle_" + e3), P.$off("_refreshChildData_" + e3), P.$off(E + "-pickFileDone"), P.$off(E + "-scanDone");
125
+ const e3 = H.uuid;
126
+ P.$off("_refreshSubTable_" + e3), P.$off("_refreshSubTableHandle_" + e3), P.$off("_refreshChildData_" + e3), P.$off(B + "-pickFileDone"), P.$off(B + "-scanDone");
127
127
  });
128
128
  const ge = t({});
129
129
  function me(e3) {
130
130
  if (!e3) return;
131
131
  return ge.value[e3.uuid] = e3, he;
132
132
  }
133
- function he(e3, t2, n2, o2, a2, i2) {
134
- const l2 = { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: a2, button: i2, id: n2.ID ? n2.ID : n2.id }, u2 = ge.value[i2.sourceButton.uuid], r2 = L;
135
- u2.props.base.tableUuid = r2.uuid, S(null, H, u2, "click", l2);
133
+ function he(e3, t2, n2, o2, i2, a2) {
134
+ const l2 = { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: i2, button: a2, id: n2.ID ? n2.ID : n2.id }, u2 = ge.value[a2.sourceButton.uuid], r2 = H;
135
+ u2.props.base.tableUuid = r2.uuid, S(null, E, u2, "click", l2);
136
136
  }
137
- function Se(e3, t2, n2, o2, a2, i2) {
138
- if (!w(N.pageContext, L.props.base.showOperationCondition)) return false;
139
- const l2 = H.fieldPermissionMap, u2 = H.actionPermissionMap;
137
+ function Se(e3, t2, n2, o2, i2, a2) {
138
+ if (!w(N.pageContext, H.props.base.showOperationCondition)) return false;
139
+ const l2 = E.fieldPermissionMap, u2 = E.actionPermissionMap;
140
140
  let r2 = true;
141
141
  if (l2 && null !== l2) {
142
142
  const e4 = l2.get("all_fields");
@@ -148,12 +148,12 @@ const j = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
148
148
  }
149
149
  return r2;
150
150
  }
151
- function we(e3, t2, n2, o2, a2, i2) {
151
+ function we(e3, t2, n2, o2, i2, a2) {
152
152
  let l2 = Se();
153
- return true === l2 && (l2 = w(N.pageContext, L.props.base.showAddBtnCondition, n2)), l2;
153
+ return true === l2 && (l2 = w(N.pageContext, H.props.base.showAddBtnCondition, n2)), l2;
154
154
  }
155
- function Te(e3, t2, n2, o2, a2, i2) {
156
- const l2 = H.fieldPermissionMap, u2 = H.actionPermissionMap;
155
+ function xe(e3, t2, n2, o2, i2, a2) {
156
+ const l2 = E.fieldPermissionMap, u2 = E.actionPermissionMap;
157
157
  let r2 = true;
158
158
  if (l2 && null !== l2) {
159
159
  const e4 = l2.get("all_fields");
@@ -161,7 +161,7 @@ const j = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
161
161
  }
162
162
  if (true === r2 && z && u2 && null !== u2) {
163
163
  let e4 = u2.get(z);
164
- if (e4 || (e4 = u2.get("all_sub_tables")), e4 && void 0 !== e4.canDelete && false === e4.canDelete && (r2 = false), e4 && void 0 !== e4.canDelete && true === e4.canDelete && e4.deleteRowIndexes) if (e4.deleteRowIndexes.length > 0) if (i2) r2 = true;
164
+ if (e4 || (e4 = u2.get("all_sub_tables")), e4 && void 0 !== e4.canDelete && false === e4.canDelete && (r2 = false), e4 && void 0 !== e4.canDelete && true === e4.canDelete && e4.deleteRowIndexes) if (e4.deleteRowIndexes.length > 0) if (a2) r2 = true;
165
165
  else {
166
166
  const t3 = function(e5) {
167
167
  return e5 && e5.id ? e5.id : e5 && e5.ID ? e5.ID : void 0;
@@ -172,76 +172,80 @@ const j = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
172
172
  }
173
173
  return r2;
174
174
  }
175
- function xe(e3, t2, n2, o2, a2, i2) {
176
- let l2 = Te(0, 0, n2, 0, 0, i2);
177
- return true === l2 && (l2 = w(N.pageContext, L.props.base.showDeleteBtnCondition, n2)), l2;
175
+ function Te(e3, t2, n2, o2, i2, a2) {
176
+ let l2 = xe(0, 0, n2, 0, 0, a2);
177
+ return true === l2 && (l2 = w(N.pageContext, H.props.base.showDeleteBtnCondition, n2)), l2;
178
178
  }
179
- function De(e3, t2, n2, o2, a2) {
180
- ie.value.createRow(E, {}, { getDefaultValueFunc: y });
179
+ function Ce(e3, t2, n2, o2, i2) {
180
+ ae.value.createRow(B, {}, { getDefaultValueFunc: y });
181
181
  }
182
- function Ce(e3, t2, n2, o2, a2) {
183
- ie.value.deleteRow(a2, E, false);
182
+ function De(e3, t2, n2, o2, i2) {
183
+ ae.value.deleteRow(i2, B, false);
184
184
  }
185
185
  function ye(e3) {
186
- T(X, Y, e3);
186
+ x(X, Y, e3);
187
187
  }
188
188
  function Pe(e3) {
189
- H.subTablePageInfo || (H.subTablePageInfo = {}), H.subTablePageInfo[z] = { pageSize: e3 };
189
+ E.subTablePageInfo || (E.subTablePageInfo = {}), E.subTablePageInfo[z] = { pageSize: e3 };
190
190
  }
191
191
  function Ie(e3) {
192
192
  const t2 = e3.key, n2 = e3.value;
193
- H.selectOptions || (H.selectOptions = {}), H.selectOptions[t2] = n2;
193
+ E.selectOptions || (E.selectOptions = {}), E.selectOptions[t2] = n2;
194
194
  }
195
195
  function Re(e3) {
196
- const t2 = H.code + "_";
196
+ const t2 = E.code + "_";
197
197
  P.$emit(t2 + "prohibit-edit", e3);
198
198
  }
199
199
  function Oe(e3) {
200
- const t2 = H.entity.data;
200
+ const t2 = E.entity.data;
201
201
  if (e3) for (const n2 in e3) t2[n2] = e3[n2];
202
202
  }
203
203
  function _e(e3, t2) {
204
204
  if (void 0 !== t2) {
205
205
  J.value = e3;
206
- p(H, L, { selection: e3, row: t2 });
206
+ p(E, H, { selection: e3, row: t2 });
207
207
  }
208
208
  }
209
209
  function ke(e3) {
210
210
  J.value = e3;
211
- d(H, L, { selection: e3 });
211
+ d(E, H, { selection: e3 });
212
212
  }
213
213
  function Me(e3) {
214
- f(H, L, { newSelection: e3 });
214
+ f(E, H, { newSelection: e3 });
215
215
  }
216
216
  function Fe(e3, t2, n2, o2) {
217
- b(H, L, { row: e3, column: t2, cell: n2, event: o2 });
217
+ b(E, H, { row: e3, column: t2, cell: n2, event: o2 });
218
218
  }
219
219
  function $e(e3, t2, n2, o2) {
220
- v(H, L, { row: e3, column: t2, cell: n2, event: o2 });
220
+ v(E, H, { row: e3, column: t2, cell: n2, event: o2 });
221
221
  }
222
222
  function je(e3, t2, n2) {
223
- g(H, L, { row: e3, column: t2, event: n2 });
223
+ g(E, H, { row: e3, column: t2, event: n2 });
224
224
  }
225
225
  function Ae(e3, t2, n2) {
226
- m(H, L, { row: e3, column: t2, event: n2 });
226
+ m(E, H, { row: e3, column: t2, event: n2 });
227
227
  }
228
228
  function Ne(e3, t2) {
229
- h(H, L, { column: e3, event: t2 });
229
+ h(E, H, { column: e3, event: t2 });
230
230
  }
231
- function He(e3) {
232
- H.entity.data = e3;
231
+ function Ee(e3) {
232
+ E.entity.data = e3;
233
233
  }
234
- function Le() {
235
- return x(X, Y);
234
+ function He() {
235
+ return T(X, Y);
236
236
  }
237
- function Be(e3) {
238
- return T(X, Y, e3);
237
+ function Le(e3) {
238
+ return x(X, Y, e3);
239
+ }
240
+ function Be({ row: e3, editConditions: t2 }) {
241
+ let n2 = true;
242
+ return t2 && t2.length > 0 && (n2 = w(N.pageContext, t2, e3)), n2;
239
243
  }
240
244
  return function() {
241
245
  const e3 = re();
242
- e3 ? fe(e3) : (ue(e3), oe.value.isPageInfo = false, oe.value.subTableData = Le(), be());
246
+ e3 ? fe(e3) : (ue(e3), oe.value.isPageInfo = false, oe.value.subTableData = He(), be());
243
247
  }(), j2({ createRow: function() {
244
- return ie.value.createRow(E);
248
+ return ae.value.createRow(B);
245
249
  }, getSelections: function() {
246
250
  return J.value;
247
251
  }, getSelectionIds: function() {
@@ -252,20 +256,20 @@ const j = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
252
256
  }, clearSelections: function() {
253
257
  J.value = [];
254
258
  }, getTableConfigure: function() {
255
- return L;
259
+ return H;
256
260
  }, validatorSunTableListData: function() {
257
- return ie.value.validatorSunTableListData();
258
- }, getValue: Le, setValue: Be, getTableSelectOptions: function() {
259
- if (ie.value) return ie.value.getTableSelectOptions(E);
261
+ return ae.value.validatorSunTableListData();
262
+ }, getValue: He, setValue: Le, getTableSelectOptions: function() {
263
+ if (ae.value) return ae.value.getTableSelectOptions(B);
260
264
  }, dynamicControlTableEdit: function(e3, t2, n2) {
261
- ie.value && ie.value.dynamicControlTableEdit(e3, t2, n2);
265
+ ae.value && ae.value.dynamicControlTableEdit(e3, t2, n2);
262
266
  }, doLayout: function(e3) {
263
- ie.value && ie.value.doLayout(e3);
267
+ ae.value && ae.value.doLayout(e3);
264
268
  }, changeOperationAddState: function(e3) {
265
- ie.value && ie.value.changeOperationAddState(e3);
269
+ ae.value && ae.value.changeOperationAddState(e3);
266
270
  } }), (e3, t2) => {
267
- const n2 = a("super-grid");
268
- return l(), i("div", null, [ee.value ? (l(), u(n2, { key: 0, ref_key: "gridRef", ref: ie, url: s(Z) + "/dsc/commons/sub-table", options: oe.value, code: s(E), settings: s(K), onSelect: _e, onSelectAll: ke, onSelectionChange: Me, onCellClick: Fe, onCellDblclick: $e, onRowClick: je, onRowDblclick: Ae, onHeaderClick: Ne, onFnProhibitToEdit: Re, onChangeGridData: ye, onReloadGrid: fe, onRefresMainTableFields: Oe, onSetSelectOptions: Ie, onChangeRowsPerPage: Pe, onNewOpenGridDialog: s(I), onChangeFormData: He }, null, 8, ["url", "options", "code", "settings", "onNewOpenGridDialog"])) : r("", true)]);
271
+ const n2 = i("super-grid");
272
+ return l(), a("div", null, [ee.value ? (l(), u(n2, { key: 0, ref_key: "gridRef", ref: ae, url: s(Z) + "/dsc/commons/sub-table", options: oe.value, code: s(B), settings: s(K), onSelect: _e, onSelectAll: ke, onSelectionChange: Me, onCellClick: Fe, onCellDblclick: $e, onRowClick: je, onRowDblclick: Ae, onHeaderClick: Ne, onFnProhibitToEdit: Re, onChangeGridData: ye, onReloadGrid: fe, onRefresMainTableFields: Oe, onSetSelectOptions: Ie, onChangeRowsPerPage: Pe, onNewOpenGridDialog: s(I), onChangeFormData: Ee }, null, 8, ["url", "options", "code", "settings", "onNewOpenGridDialog"])) : r("", true)]);
269
273
  };
270
274
  } });
271
275
  export {
@@ -1,22 +1,30 @@
1
- import { defineComponent as e, ref as a, onMounted as l, nextTick as t, computed as r, resolveComponent as o, createBlock as u, openBlock as n, normalizeStyle as i, normalizeClass as p, unref as s, withCtx as c, createElementBlock as d, createCommentVNode as v, Fragment as f, createTextVNode as g, toDisplayString as m } from "vue";
1
+ import { defineComponent as e, ref as a, onMounted as t, nextTick as l, computed as o, resolveComponent as r, createBlock as u, openBlock as n, normalizeStyle as i, normalizeClass as p, unref as s, withCtx as c, createElementBlock as d, createCommentVNode as v, Fragment as f, createTextVNode as g, toDisplayString as m } from "vue";
2
2
  import { getFormModelFields as h } from "../../../../utils/page-init-util.js";
3
3
  import { getDateShortCuts as y } from "../../../../utils/form/date-shortcuts.js";
4
- import { getValueFromVariable as C, setVariableValue as x, getVariableValue as b } from "../../../../utils/page-helper-util.js";
5
- import { handleAfterInitEvent as k, getCustomFunc as F, handleFormEvent as T } from "../../../../utils/events/event-util.js";
6
- import V from "../common/title-suffix-element.vue.js";
7
- import j from "dayjs";
8
- import { $t as R } from "../../../../utils/i18n-util.js";
9
- const _ = e({ __name: "datepicker-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
10
- const _2 = e2, z = _2.pageContext.entity ? _2.pageContext.entity : {}, P = _2.configure.runtime ? _2.configure.runtime : {}, S = P.style, w = P.class, A = P.headerStyle, D = P.titleExceedStyle, q = a(P.props ? P.props : {});
11
- let I = h(_2.pageContext, _2.configure, q.value.prop), B = null, N = false;
12
- if (q.value.dateType && q.value.dateType.includes("range")) {
4
+ import { getModelFieldFromPageContext as C, getValueFromVariable as x, setVariableValue as b, getVariableValue as F, isDateDataType as T } from "../../../../utils/page-helper-util.js";
5
+ import { handleAfterInitEvent as k, getCustomFunc as V, handleFormEvent as j } from "../../../../utils/events/event-util.js";
6
+ import Y from "../common/title-suffix-element.vue.js";
7
+ import R from "dayjs";
8
+ import { $t as _ } from "../../../../utils/i18n-util.js";
9
+ const z = e({ __name: "datepicker-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
10
+ const z2 = e2, P = z2.pageContext.entity ? z2.pageContext.entity : {}, S = z2.configure.runtime ? z2.configure.runtime : {}, w = S.style, A = S.class, D = S.headerStyle, q = S.titleExceedStyle, I = a(S.props ? S.props : {});
11
+ let M = h(z2.pageContext, z2.configure, I.value.prop);
12
+ if (z2.pageContext.modelFieldsMap) {
13
+ const e3 = C(M, z2.pageContext);
14
+ e3 && function(e4) {
15
+ const a2 = e4.dataType;
16
+ T(a2) && ("year" === I.value.dateType && "YYYY" === I.value.valueFormat || "month" === I.value.dateType && "YYYY-MM" === I.value.valueFormat) && (I.value.valueFormat = "x");
17
+ }(e3);
18
+ }
19
+ let B = null, N = false;
20
+ if (I.value.dateType && I.value.dateType.includes("range")) {
13
21
  N = true;
14
- let e3 = q.value.prop2;
15
- e3 && e3.startsWith("${") || (e3 = "${page." + _2.configure.uuid + "-2}");
16
- const a2 = C(z, e3, null);
17
- if (e3 = e3.substring(2, e3.length - 1), B = e3.split("."), !(a2 || z.data && (z.data.id || z.data.ID)) && q.value.defaultValue2) {
18
- const e4 = C(z, q.value.defaultValue2);
19
- x(z, B, e4);
22
+ let e3 = I.value.prop2;
23
+ e3 && e3.startsWith("${") || (e3 = "${page." + z2.configure.uuid + "-2}");
24
+ const a2 = x(P, e3, null);
25
+ if (e3 = e3.substring(2, e3.length - 1), B = e3.split("."), !(a2 || P.data && (P.data.id || P.data.ID)) && I.value.defaultValue2) {
26
+ const e4 = x(P, I.value.defaultValue2);
27
+ b(P, B, e4);
20
28
  }
21
29
  }
22
30
  const U = a(null), W = a(null), $ = a(null);
@@ -25,44 +33,44 @@ const _ = e({ __name: "datepicker-runtime", props: { pageContext: {}, configure:
25
33
  if (a2) {
26
34
  "number" != typeof e3 || isNaN(e3) || 4 !== e3.toString().length || (e3 = e3.toString());
27
35
  try {
28
- const l2 = j(e3);
29
- let t2 = null;
30
- return t2 = "x" === a2 ? l2.toDate().getTime() : j(e3).format(a2), t2;
36
+ const t2 = R(e3);
37
+ let l2 = null;
38
+ return l2 = "x" === a2 ? t2.toDate().getTime() : R(e3).format(a2), l2;
31
39
  } catch (a3) {
32
40
  return e3;
33
41
  }
34
42
  }
35
43
  return e3;
36
44
  }
37
- if (l(() => {
38
- t(() => {
45
+ if (t(() => {
46
+ l(() => {
39
47
  const e3 = O.value;
40
- k(e3, _2.pageContext, _2.configure, { formItemRef: U.value, componentRef: W.value, titleRef: $.value, value: e3, entity: _2.pageContext.entity.data, pageData: _2.pageContext.entity.page });
48
+ k(e3, z2.pageContext, z2.configure, { formItemRef: U.value, componentRef: W.value, titleRef: $.value, value: e3, entity: z2.pageContext.entity.data, pageData: z2.pageContext.entity.page });
41
49
  });
42
- }), I) {
43
- const e3 = b(z, I), a2 = E(e3, q.value.valueFormat);
44
- e3 !== a2 && x(z, I, a2);
50
+ }), M) {
51
+ const e3 = F(P, M), a2 = E(e3, I.value.valueFormat);
52
+ e3 !== a2 && b(P, M, a2);
45
53
  }
46
54
  if (B) {
47
- const e3 = b(z, B), a2 = E(e3, q.value.valueFormat);
48
- e3 !== a2 && x(z, B, a2);
55
+ const e3 = F(P, B), a2 = E(e3, I.value.valueFormat);
56
+ e3 !== a2 && b(P, B, a2);
49
57
  }
50
- const O = r({ get() {
58
+ const O = o({ get() {
51
59
  if (N) {
52
60
  const e3 = [];
53
- let a2 = b(z, I);
54
- e3.push(E(a2, q.value.valueFormat));
55
- let l2 = b(z, B);
56
- return e3.push(E(l2, q.value.valueFormat)), e3;
61
+ let a2 = F(P, M);
62
+ e3.push(E(a2, I.value.valueFormat));
63
+ let t2 = F(P, B);
64
+ return e3.push(E(t2, I.value.valueFormat)), e3;
57
65
  }
58
- return E(b(z, I), q.value.valueFormat);
66
+ return E(F(P, M), I.value.valueFormat);
59
67
  }, set(e3) {
60
- N ? Array.isArray(e3) ? (x(z, I, e3[0]), x(z, B, e3[1])) : null === e3 && (x(z, I, null), x(z, B, null)) : x(z, I, e3);
61
- } }), G = a(y(q.value.dateScopeDetails, q.value.sourceType, q.value.dateType));
62
- if (q.value.shortcutsFunc) {
63
- const e3 = F(_2.pageContext, q.value.shortcutsFunc);
68
+ N ? Array.isArray(e3) ? (b(P, M, e3[0]), b(P, B, e3[1])) : null === e3 && (b(P, M, null), b(P, B, null)) : b(P, M, e3);
69
+ } }), G = a(y(I.value.dateScopeDetails, I.value.sourceType, I.value.dateType));
70
+ if (I.value.shortcutsFunc) {
71
+ const e3 = V(z2.pageContext, I.value.shortcutsFunc);
64
72
  if (e3) {
65
- let a2 = e3.apply(e3, [{ pageContext: _2.pageContext, configureObj: _2.configure }]);
73
+ let a2 = e3.apply(e3, [{ pageContext: z2.pageContext, configureObj: z2.configure }]);
66
74
  if (a2) {
67
75
  Array.isArray(a2) || (a2 = [a2]), G.value || (G.value = []);
68
76
  for (let e4 of a2) e4.text && e4.value && G.value.push(e4);
@@ -70,10 +78,10 @@ const _ = e({ __name: "datepicker-runtime", props: { pageContext: {}, configure:
70
78
  }
71
79
  }
72
80
  return (e3, a2) => {
73
- const l2 = o("el-time-picker"), t2 = o("el-date-picker"), r2 = o("el-form-item");
74
- return n(), u(r2, { ref_key: "formItemRef", ref: U, required: q.value.required, class: p(s(w)), "label-width": q.value.labelWidth, style: i(s(S)) }, { label: c(() => [q.value.tittleShow ? (n(), d("div", { key: 0, ref_key: "titleRef", ref: $, style: i({ ...s(A), ...s(D) }) }, [q.value.prefixType ? (n(), u(V, { key: 0, pageContext: e3.pageContext, property: q.value }, null, 8, ["pageContext", "property"])) : (n(), d(f, { key: 1 }, [g(m(s(R)(q.value.title)), 1)], 64))], 4)) : v("", true)]), default: c(() => ["time" == q.value.dateType || "timerange" == q.value.dateType ? (n(), u(l2, { key: 0, ref_key: "componentRef", ref: W, "is-range": "timerange" == q.value.dateType, style: { width: "100%" }, "range-separator": "-", clearable: q.value.clearable, disabled: "disabled" === q.value.state, readonly: "readonly" === q.value.state, size: q.value.size, placeholder: q.value.placeholder, "start-placeholder": q.value.placeholder, "end-placeholder": q.value.endPlaceholder ? q.value.endPlaceholder : q.value.placeholder, format: q.value.format, "value-format": q.value.valueFormat, modelValue: O.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e4) => O.value = e4), shortcuts: G.value, type: q.value.dateType, onChange: a2[1] || (a2[1] = (a3) => s(T)(a3, e3.pageContext, e3.configure, "change")), onBlur: a2[2] || (a2[2] = (a3) => s(T)(a3, e3.pageContext, e3.configure, "blur")), onFocus: a2[3] || (a2[3] = (a3) => s(T)(a3, e3.pageContext, e3.configure, "focus")), onVisibleChange: a2[4] || (a2[4] = (a3) => s(T)(a3, e3.pageContext, e3.configure, "visible-change")), onPanelChange: a2[5] || (a2[5] = (a3) => s(T)(a3, e3.pageContext, e3.configure, "panel-change")), onClear: a2[6] || (a2[6] = (a3) => s(T)(a3, e3.pageContext, e3.configure, "clear")) }, null, 8, ["is-range", "clearable", "disabled", "readonly", "size", "placeholder", "start-placeholder", "end-placeholder", "format", "value-format", "modelValue", "shortcuts", "type"])) : (n(), u(t2, { key: 1, ref_key: "componentRef", ref: W, clearable: q.value.clearable, style: { width: "100%" }, disabled: "disabled" === q.value.state, readonly: "readonly" === q.value.state, size: q.value.size, placeholder: q.value.placeholder, "start-placeholder": q.value.placeholder, "end-placeholder": q.value.endPlaceholder ? q.value.endPlaceholder : q.value.placeholder, format: q.value.format, "value-format": q.value.valueFormat, modelValue: O.value, "onUpdate:modelValue": a2[7] || (a2[7] = (e4) => O.value = e4), shortcuts: G.value, type: q.value.dateType, onChange: a2[8] || (a2[8] = (a3) => s(T)(a3, e3.pageContext, e3.configure, "change")), onBlur: a2[9] || (a2[9] = (a3) => s(T)(a3, e3.pageContext, e3.configure, "blur")), onFocus: a2[10] || (a2[10] = (a3) => s(T)(a3, e3.pageContext, e3.configure, "focus")), onVisibleChange: a2[11] || (a2[11] = (a3) => s(T)(a3, e3.pageContext, e3.configure, "visible-change")), onPanelChange: a2[12] || (a2[12] = (a3) => s(T)(a3, e3.pageContext, e3.configure, "panel-change")), onClear: a2[13] || (a2[13] = (a3) => s(T)(a3, e3.pageContext, e3.configure, "clear")) }, null, 8, ["clearable", "disabled", "readonly", "size", "placeholder", "start-placeholder", "end-placeholder", "format", "value-format", "modelValue", "shortcuts", "type"]))]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
81
+ const t2 = r("el-time-picker"), l2 = r("el-date-picker"), o2 = r("el-form-item");
82
+ return n(), u(o2, { ref_key: "formItemRef", ref: U, required: I.value.required, class: p(s(A)), "label-width": I.value.labelWidth, style: i(s(w)) }, { label: c(() => [I.value.tittleShow ? (n(), d("div", { key: 0, ref_key: "titleRef", ref: $, style: i({ ...s(D), ...s(q) }) }, [I.value.prefixType ? (n(), u(Y, { key: 0, pageContext: e3.pageContext, property: I.value }, null, 8, ["pageContext", "property"])) : (n(), d(f, { key: 1 }, [g(m(s(_)(I.value.title)), 1)], 64))], 4)) : v("", true)]), default: c(() => ["time" == I.value.dateType || "timerange" == I.value.dateType ? (n(), u(t2, { key: 0, ref_key: "componentRef", ref: W, "is-range": "timerange" == I.value.dateType, style: { width: "100%" }, "range-separator": "-", clearable: I.value.clearable, disabled: "disabled" === I.value.state, readonly: "readonly" === I.value.state, size: I.value.size, placeholder: I.value.placeholder, "start-placeholder": I.value.placeholder, "end-placeholder": I.value.endPlaceholder ? I.value.endPlaceholder : I.value.placeholder, format: I.value.format, "value-format": I.value.valueFormat, modelValue: O.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e4) => O.value = e4), shortcuts: G.value, type: I.value.dateType, onChange: a2[1] || (a2[1] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "change")), onBlur: a2[2] || (a2[2] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "blur")), onFocus: a2[3] || (a2[3] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "focus")), onVisibleChange: a2[4] || (a2[4] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "visible-change")), onPanelChange: a2[5] || (a2[5] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "panel-change")), onClear: a2[6] || (a2[6] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "clear")) }, null, 8, ["is-range", "clearable", "disabled", "readonly", "size", "placeholder", "start-placeholder", "end-placeholder", "format", "value-format", "modelValue", "shortcuts", "type"])) : (n(), u(l2, { key: 1, ref_key: "componentRef", ref: W, clearable: I.value.clearable, style: { width: "100%" }, disabled: "disabled" === I.value.state, readonly: "readonly" === I.value.state, size: I.value.size, placeholder: I.value.placeholder, "start-placeholder": I.value.placeholder, "end-placeholder": I.value.endPlaceholder ? I.value.endPlaceholder : I.value.placeholder, format: I.value.format, "value-format": I.value.valueFormat, modelValue: O.value, "onUpdate:modelValue": a2[7] || (a2[7] = (e4) => O.value = e4), shortcuts: G.value, type: I.value.dateType, onChange: a2[8] || (a2[8] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "change")), onBlur: a2[9] || (a2[9] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "blur")), onFocus: a2[10] || (a2[10] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "focus")), onVisibleChange: a2[11] || (a2[11] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "visible-change")), onPanelChange: a2[12] || (a2[12] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "panel-change")), onClear: a2[13] || (a2[13] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "clear")) }, null, 8, ["clearable", "disabled", "readonly", "size", "placeholder", "start-placeholder", "end-placeholder", "format", "value-format", "modelValue", "shortcuts", "type"]))]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
75
83
  };
76
84
  } });
77
85
  export {
78
- _ as default
86
+ z as default
79
87
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as e, ref as t, watch as l, onMounted as i, nextTick as o, onUnmounted as a, resolveComponent as s, createBlock as n, createCommentVNode as u, openBlock as p, normalizeStyle as r, normalizeClass as m, unref as f, withCtx as c, createElementBlock as v, toDisplayString as d } from "vue";
1
+ import { defineComponent as e, ref as l, watch as t, onMounted as i, nextTick as o, onUnmounted as a, resolveComponent as s, createBlock as n, createCommentVNode as u, openBlock as p, normalizeStyle as r, normalizeClass as m, unref as f, withCtx as v, createElementBlock as c, toDisplayString as d } from "vue";
2
2
  import { getVariableValue as h, setVariableValue as y } from "../../../../utils/page-helper-util.js";
3
3
  import { handleAfterInitEvent as g, fileUploadBeforeUpload as C } from "../../../../utils/events/event-util.js";
4
4
  import x from "agilebuilder-ui/src/utils/request";
@@ -6,29 +6,29 @@ import { FsUploadNew as b } from "agilebuilder-ui";
6
6
  import k from "../../../../utils/eventBus.js";
7
7
  import { $t as _ } from "../../../../utils/i18n-util.js";
8
8
  const w = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
9
- const w2 = e2, P = w2.configure.runtime ? w2.configure.runtime : {}, j = t(P.props ? P.props : {}), R = P.style, T = P.class, z = P.headerStyle, I = P.titleExceedStyle, O = w2.pageContext.entity ? w2.pageContext.entity : {}, S = w2.configure.props.base ? w2.configure.props.base : {}, F = G(S.prop), N = G(S.propName);
10
- F && F.length > 1 && l(() => w2.pageContext.entity[F[0]][F[1]], (e3) => {
9
+ const w2 = e2, P = w2.configure.runtime ? w2.configure.runtime : {}, j = l(P.props ? P.props : {}), R = P.style, T = P.class, z = P.headerStyle, I = P.titleExceedStyle, O = w2.pageContext.entity ? w2.pageContext.entity : {}, S = w2.configure.props.base ? w2.configure.props.base : {}, F = G(S.prop), N = G(S.propName);
10
+ F && F.length > 1 && t(() => w2.pageContext.entity[F[0]][F[1]], (e3) => {
11
11
  A(h(O, F));
12
12
  });
13
- const q = w2.pageContext.code, D = t(F ? q + "__" + F.join("__") : null), U = h(O, F), $ = t(null), W = t(false), B = t([]), E = t({});
13
+ const q = w2.pageContext.code, D = l(F ? q + "__" + F.join("__") : null), U = h(O, F), $ = l(null), W = l(false), B = l([]), E = l({});
14
14
  function A(e3) {
15
15
  if (e3) {
16
- const t2 = e3.split(",");
17
- if (t2.length > 0) {
16
+ const l2 = e3.split(",");
17
+ if (l2.length > 0) {
18
18
  const e4 = w2.pageContext.backendUrl;
19
- x.post(e4 + "/common/fs-upload/search-file-names", t2).then((e5) => {
19
+ x.post(e4 + "/common/fs-upload/search-file-names", l2).then((e5) => {
20
20
  B.value = [];
21
- const l2 = [];
22
- for (let i2 = 0; i2 < t2.length; i2++) {
23
- const o2 = t2[i2];
24
- l2.push(e5[o2]), B.value.push({ showName: e5[o2], serverPath: o2 });
21
+ const t2 = [];
22
+ for (let i2 = 0; i2 < l2.length; i2++) {
23
+ const o2 = l2[i2];
24
+ t2.push(e5[o2]), B.value.push({ showName: e5[o2], serverPath: o2 });
25
25
  }
26
- "input" === j.value.displayType && (E.value.showName = l2.join(","), E.value.serverPath = t2.join(","));
26
+ "input" === j.value.displayType && (E.value.showName = t2.join(","), E.value.serverPath = l2.join(","));
27
27
  }).finally(() => {
28
28
  W.value = true;
29
29
  });
30
30
  } else W.value = true;
31
- } else W.value = true;
31
+ } else B.value = [], E.value = {}, W.value = true;
32
32
  }
33
33
  function G(e3) {
34
34
  return e3 ? (e3.startsWith("${") && (e3 = e3.substring(2, e3.length - 1)), e3.split(".")) : [];
@@ -37,31 +37,31 @@ const w = e({ __name: "fileupload-runtime", props: { pageContext: {}, configure:
37
37
  return C(e3);
38
38
  }
39
39
  A(U);
40
- const J = (e3, t2, l2) => {
40
+ const J = (e3, l2, t2) => {
41
41
  L();
42
42
  }, K = (e3) => {
43
43
  L();
44
44
  }, L = () => {
45
- const e3 = [], t2 = [];
45
+ const e3 = [], l2 = [];
46
46
  if (j.value.limit && B.value.length > j.value.limit) {
47
47
  const e4 = B.value.length - j.value.limit;
48
- for (let t3 = 0; t3 < e4; t3++) B.value.shift();
48
+ for (let l3 = 0; l3 < e4; l3++) B.value.shift();
49
49
  }
50
- for (let l2 = 0; l2 < B.value.length; l2++) e3.push(B.value[l2].showName), t2.push(B.value[l2].serverPath);
51
- y(w2.pageContext.entity, F, t2.join(",")), y(w2.pageContext.entity, N, e3.join(","));
52
- }, M = t(null), Q = t(null);
50
+ for (let t2 = 0; t2 < B.value.length; t2++) e3.push(B.value[t2].showName), l2.push(B.value[t2].serverPath);
51
+ y(w2.pageContext.entity, F, l2.join(",")), y(w2.pageContext.entity, N, e3.join(","));
52
+ }, M = l(null), Q = l(null);
53
53
  return i(() => {
54
54
  k.$on(D.value + "-pickFileDone", (e3) => {
55
55
  $.value.pickFileDone(e3);
56
56
  }), o(() => {
57
- const e3 = h(O, F), t2 = { showName: h(O, N), serverPath: e3 };
58
- g(t2, w2.pageContext, w2.configure, { formItemRef: M.value, componentRef: $.value, titleRef: Q.value, value: t2, entity: w2.pageContext.entity.data, pageData: w2.pageContext.entity.page });
57
+ const e3 = h(O, F), l2 = { showName: h(O, N), serverPath: e3 };
58
+ g(l2, w2.pageContext, w2.configure, { formItemRef: M.value, componentRef: $.value, titleRef: Q.value, value: l2, entity: w2.pageContext.entity.data, pageData: w2.pageContext.entity.page });
59
59
  });
60
60
  }), a(() => {
61
61
  k.$off(D.value + "-pickFileDone");
62
- }), (e3, t2) => {
63
- const l2 = s("el-form-item");
64
- return j.value.tittleShow ? (p(), n(l2, { key: 0, ref_key: "formItemRef", ref: M, required: j.value.required, class: m(f(T)), "label-width": j.value.labelWidth, style: r(f(R)) }, { label: c(() => [j.value.tittleShow ? (p(), v("div", { key: 0, ref_key: "titleRef", ref: Q, style: r({ ...f(z), ...f(I) }) }, d(f(_)(j.value.title)), 5)) : u("", true)]), default: c(() => [W.value ? (p(), n(f(b), { key: 0, ref_key: "fileUploadRef", ref: $, style: { width: "100%" }, disabled: "disabled" === j.value.state, displayType: j.value.displayType, accept: j.value.accept, multiple: j.value.multiple, placeholder: j.value.placeholder, limit: j.value.limit, "limit-file-size": j.value.limitFileSize, openCameraOrChoosePhoto: j.value.openCameraOrChoosePhoto, "file-info": E.value, "file-list": B.value, "system-code": e3.pageContext.systemCode, componentId: D.value, "on-success": J, "on-remove": K, "before-upload": H, pageContext: e3.pageContext }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "openCameraOrChoosePhoto", "file-info", "file-list", "system-code", "componentId", "pageContext"])) : u("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : W.value ? (p(), n(f(b), { key: 1, ref_key: "fileUploadRef", ref: $, style: { width: "100%" }, disabled: "disabled" === j.value.state, displayType: j.value.displayType, accept: j.value.accept, multiple: j.value.multiple, placeholder: j.value.placeholder, limit: j.value.limit, "limit-file-size": j.value.limitFileSize, openCameraOrChoosePhoto: j.value.openCameraOrChoosePhoto, "file-info": E.value, "file-list": B.value, "system-code": e3.pageContext.systemCode, componentId: D.value, "on-success": J, "on-remove": K, "before-upload": H, pageContext: e3.pageContext }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "openCameraOrChoosePhoto", "file-info", "file-list", "system-code", "componentId", "pageContext"])) : u("", true);
62
+ }), (e3, l2) => {
63
+ const t2 = s("el-form-item");
64
+ return j.value.tittleShow ? (p(), n(t2, { key: 0, ref_key: "formItemRef", ref: M, required: j.value.required, class: m(f(T)), "label-width": j.value.labelWidth, style: r(f(R)) }, { label: v(() => [j.value.tittleShow ? (p(), c("div", { key: 0, ref_key: "titleRef", ref: Q, style: r({ ...f(z), ...f(I) }) }, d(f(_)(j.value.title)), 5)) : u("", true)]), default: v(() => [W.value ? (p(), n(f(b), { key: 0, ref_key: "fileUploadRef", ref: $, style: { width: "100%" }, disabled: "disabled" === j.value.state, displayType: j.value.displayType, accept: j.value.accept, multiple: j.value.multiple, placeholder: j.value.placeholder, limit: j.value.limit, "limit-file-size": j.value.limitFileSize, openCameraOrChoosePhoto: j.value.openCameraOrChoosePhoto, "file-info": E.value, "file-list": B.value, "system-code": e3.pageContext.systemCode, componentId: D.value, "on-success": J, "on-remove": K, "before-upload": H, pageContext: e3.pageContext }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "openCameraOrChoosePhoto", "file-info", "file-list", "system-code", "componentId", "pageContext"])) : u("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : W.value ? (p(), n(f(b), { key: 1, ref_key: "fileUploadRef", ref: $, style: { width: "100%" }, disabled: "disabled" === j.value.state, displayType: j.value.displayType, accept: j.value.accept, multiple: j.value.multiple, placeholder: j.value.placeholder, limit: j.value.limit, "limit-file-size": j.value.limitFileSize, openCameraOrChoosePhoto: j.value.openCameraOrChoosePhoto, "file-info": E.value, "file-list": B.value, "system-code": e3.pageContext.systemCode, componentId: D.value, "on-success": J, "on-remove": K, "before-upload": H, pageContext: e3.pageContext }, null, 8, ["disabled", "displayType", "accept", "multiple", "placeholder", "limit", "limit-file-size", "openCameraOrChoosePhoto", "file-info", "file-list", "system-code", "componentId", "pageContext"])) : u("", true);
65
65
  };
66
66
  } });
67
67
  export {