super-page-runtime 2.3.4-sit1 → 2.3.5-rc1

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 (43) hide show
  1. package/dist/es/components/runtime/utils/api/page-expose-util.js +35 -27
  2. package/dist/es/components/runtime/utils/common-util.d.ts +1 -1
  3. package/dist/es/components/runtime/utils/common-util.js +62 -47
  4. package/dist/es/components/runtime/utils/events/event-util.js +3 -3
  5. package/dist/es/components/runtime/utils/events/print-label.js +26 -25
  6. package/dist/es/components/runtime/utils/events/standard-event.js +21 -19
  7. package/dist/es/components/runtime/utils/events/validator-util.js +23 -23
  8. package/dist/es/components/runtime/utils/page-init-util.d.ts +1 -1
  9. package/dist/es/components/runtime/utils/page-init-util.js +60 -48
  10. package/dist/es/components/runtime/utils/page-store.js +10 -10
  11. package/dist/es/components/runtime/utils/table-utils.d.ts +14 -0
  12. package/dist/es/components/runtime/utils/table-utils.js +57 -32
  13. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +10 -6
  14. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +8 -6
  15. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +20 -20
  16. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.d.ts +8 -1
  17. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +15 -10
  18. package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +6 -6
  19. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +3 -2
  20. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +8 -4
  21. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +29 -25
  22. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +2 -0
  23. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +12 -10
  24. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +10 -9
  25. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +48 -48
  26. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +24 -15
  27. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.js +1 -1
  28. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +29 -29
  29. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +23 -22
  30. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +32 -32
  31. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +1 -1
  32. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +50 -49
  33. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +5 -3
  34. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +1 -0
  35. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +1 -0
  36. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +69 -67
  37. package/dist/es/components/runtime/views/home-chart.vue.js +7 -7
  38. package/dist/es/components/runtime/views/super-page-dialog.vue.js +1 -0
  39. package/dist/es/components/runtime/views/super-page.vue.d.ts +2 -2
  40. package/dist/es/components/runtime/views/super-page.vue.js +1 -1
  41. package/dist/es/components/runtime/views/super-page.vue2.js +12 -11
  42. package/dist/es/style.css +82 -82
  43. package/package.json +2 -2
@@ -1,9 +1,9 @@
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 a, createElementBlock as l, openBlock as i, createBlock as u, createCommentVNode as r, unref as s } from "vue";
2
2
  import { setTableEvents as c, gridSelectRecord as p, gridSelectAllRecords as f, gridSelectionChange as d, cellClick as v, cellDblClick as b, rowClick as g, rowDblClick as m, headerClick as h, getHandleEvent as S } from "../../../../utils/events/event-util.js";
3
3
  import { caculateShowCondition as w, setVariableValue as T, getVariableValue as x, getSizeConfig as C } from "../../../../utils/page-helper-util.js";
4
4
  import { getModelFields as D, getDefaultValue as y } from "../../../../utils/page-init-util.js";
5
5
  import P from "../../../../utils/eventBus.js";
6
- import { popupToPage as R, getOperationButtons as I } from "../../../../utils/table-utils.js";
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";
@@ -26,9 +26,9 @@ const j = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
26
26
  return $(e3, { cellTitleStyle: t2, titleStyle: n2 }, L);
27
27
  } }), ae = A;
28
28
  Q && (oe.value.tableStyle = Q), W && (oe.value.tableClass = W), N.props && N.props.base && true === N.props.base.subPaging ? oe.value.showPageArea = true : oe.value.showPageArea = false, N.props.base.showRowForm && (oe.value.showRowForm = N.props.base.showRowForm);
29
- const ie = t(null);
30
- function le() {
31
- ie.value && (oe.value.subTableData = null, ie.value.reloadSubTableData(G));
29
+ const le = t(null);
30
+ function ie() {
31
+ le.value && (oe.value.subTableData = null, le.value.reloadSubTableData(G));
32
32
  }
33
33
  function ue(e3) {
34
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 = G, oe.value.extraParam.beanName = B.beanName, oe.value.extraParam.subtableSetting = N.props && N.props.otherSettings ? JSON.stringify(N.props.otherSettings) : null, oe.value.extraParam.additionalParamMap = U, oe.value.extraParam.entityMap = B.entity.data, oe.value.extraParam.contextMap = B.entity.context, oe.value.extraParam.taskMap = B.entity.task, !(N.props && N.props.base && N.props.base.showOperation)) {
@@ -90,7 +90,7 @@ const j = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
90
90
  const t4 = { props: { elementType: "el-button", icon: "Minus", type: "danger", circle: true, size: "mini", permission: "true" }, onClick: De, isShow: xe };
91
91
  e5.push(t4);
92
92
  }
93
- return I(B, N, e5, me), e5;
93
+ return R(B, N, e5, me), e5;
94
94
  }();
95
95
  oe.value.operations.operation = n2, oe.value.subTableCanAdd = Se();
96
96
  }(), c(oe.value, z, B, N);
@@ -105,20 +105,20 @@ const j = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
105
105
  P.$on("_refreshSubTable_" + e3, (n2) => {
106
106
  const o2 = n2.propName;
107
107
  if (t2 && t2[e3] && t2[e3].length > 0) {
108
- t2[e3].indexOf(o2) >= 0 && le();
108
+ t2[e3].indexOf(o2) >= 0 && ie();
109
109
  }
110
110
  }), P.$on("_refreshSubTableHandle_" + e3, (e4) => {
111
- le();
111
+ ie();
112
112
  }), P.$on("_refreshChildData_" + e3, (e4) => {
113
113
  !function(e5) {
114
114
  Ee(e5), fe = setTimeout(() => {
115
- ie.value && (ie.value.refreshChildData(G, e5, N.props && N.props.base && true === N.props.base.subPaging), oe.value.extraParam.entityMap = B.entity.data);
115
+ le.value && (le.value.refreshChildData(G, e5, N.props && N.props.base && true === N.props.base.subPaging), oe.value.extraParam.entityMap = B.entity.data);
116
116
  }, 10);
117
117
  }(e4);
118
118
  }), P.$on(G + "-pickFileDone", (e4) => {
119
- ie.value.pickFileDone(e4);
119
+ le.value.pickFileDone(e4);
120
120
  }), P.$on(G + "-scanDone", (e4) => {
121
- ie.value.scanDone(e4);
121
+ le.value.scanDone(e4);
122
122
  }), oe.value && oe.value.configureObj.props.base && oe.value.configureObj.props.base.isSafeDelete && ae("setSafeDeleteTableCode", oe.value.extraParam.tableName);
123
123
  }), o(() => {
124
124
  pe && clearTimeout(pe), fe && clearTimeout(fe);
@@ -130,16 +130,16 @@ const j = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
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 = N;
135
- u2.props.base.tableUuid = r2.uuid, S(null, B, u2, "click", l2);
133
+ function he(e3, t2, n2, o2, a2, l2) {
134
+ const i2 = { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: a2, button: l2, id: n2.ID ? n2.ID : n2.id }, u2 = ge.value[l2.sourceButton.uuid], r2 = N;
135
+ u2.props.base.tableUuid = r2.uuid, S(null, B, u2, "click", i2);
136
136
  }
137
- function Se(e3, t2, n2, o2, a2, i2) {
137
+ function Se(e3, t2, n2, o2, a2, l2) {
138
138
  if (!w(L.pageContext, N.props.base.showOperationCondition)) return false;
139
- const l2 = B.fieldPermissionMap, u2 = B.actionPermissionMap;
139
+ const i2 = B.fieldPermissionMap, u2 = B.actionPermissionMap;
140
140
  let r2 = true;
141
- if (l2 && null !== l2) {
142
- const e4 = l2.get("all_fields");
141
+ if (i2 && null !== i2) {
142
+ const e4 = i2.get("all_fields");
143
143
  void 0 === e4 || false !== e4.canEdit || void 0 !== e4.rowIndexes && null !== e4.rowIndexes && 0 !== e4.rowIndexes.length || (r2 = false);
144
144
  }
145
145
  if (true === r2 && V && u2 && null !== u2) {
@@ -148,20 +148,20 @@ 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) {
152
- let l2 = Se();
153
- return true === l2 && (l2 = w(L.pageContext, N.props.base.showAddBtnCondition, n2)), l2;
151
+ function we(e3, t2, n2, o2, a2, l2) {
152
+ let i2 = Se();
153
+ return true === i2 && (i2 = w(L.pageContext, N.props.base.showAddBtnCondition, n2)), i2;
154
154
  }
155
- function Te(e3, t2, n2, o2, a2, i2) {
156
- const l2 = B.fieldPermissionMap, u2 = B.actionPermissionMap;
155
+ function Te(e3, t2, n2, o2, a2, l2) {
156
+ const i2 = B.fieldPermissionMap, u2 = B.actionPermissionMap;
157
157
  let r2 = true;
158
- if (l2 && null !== l2) {
159
- const e4 = l2.get("all_fields");
158
+ if (i2 && null !== i2) {
159
+ const e4 = i2.get("all_fields");
160
160
  void 0 === e4 || false !== e4.canEdit || void 0 !== e4.rowIndexes && null !== e4.rowIndexes && 0 !== e4.rowIndexes.length || (r2 = false);
161
161
  }
162
162
  if (true === r2 && V && u2 && null !== u2) {
163
163
  let e4 = u2.get(V);
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 (l2) 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,27 +172,27 @@ 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(L.pageContext, N.props.base.showDeleteBtnCondition, n2)), l2;
175
+ function xe(e3, t2, n2, o2, a2, l2) {
176
+ let i2 = Te(0, 0, n2, 0, 0, l2);
177
+ return true === i2 && (i2 = w(L.pageContext, N.props.base.showDeleteBtnCondition, n2)), i2;
178
178
  }
179
179
  function Ce(e3, t2, n2, o2, a2) {
180
- ie.value.createRow(G, {}, { getDefaultValueFunc: y }, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: a2 });
180
+ le.value.createRow(G, {}, { getDefaultValueFunc: y }, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: a2 });
181
181
  }
182
182
  function De(e3, t2, n2, o2, a2) {
183
- ie.value.deleteRow(a2, G, false);
183
+ le.value.deleteRow(a2, G, false);
184
184
  }
185
185
  function ye(e3) {
186
186
  T(X, Y, e3);
187
187
  }
188
188
  function Pe(e3) {
189
- B.subTablePageInfo || (B.subTablePageInfo = {}), B.subTablePageInfo[V] = { pageSize: e3 };
189
+ B.subTablePageInfo || (B.subTablePageInfo = {}), B.subTablePageInfo[V] || (B.subTablePageInfo[V] = {}), B.subTablePageInfo[V].pageSize = e3;
190
190
  }
191
- function Re(e3) {
191
+ function Ie(e3) {
192
192
  const t2 = e3.key, n2 = e3.value;
193
193
  B.selectOptions || (B.selectOptions = {}), B.selectOptions[t2] = n2;
194
194
  }
195
- function Ie(e3) {
195
+ function Re(e3) {
196
196
  const t2 = B.code + "_";
197
197
  P.$emit(t2 + "prohibit-edit", e3);
198
198
  }
@@ -245,7 +245,7 @@ const j = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
245
245
  const e3 = re();
246
246
  e3 ? de(e3) : (ue(e3), oe.value.isPageInfo = false, oe.value.subTableData = Ne(), ve());
247
247
  }(), j2({ createRow: function() {
248
- return ie.value.createRow(G);
248
+ return le.value.createRow(G);
249
249
  }, getSelections: function() {
250
250
  return J.value;
251
251
  }, getSelectionIds: function() {
@@ -258,34 +258,34 @@ const j = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
258
258
  }, getTableConfigure: function() {
259
259
  return N;
260
260
  }, validatorSunTableListData: function() {
261
- return ie.value.validatorSunTableListData();
261
+ return le.value.validatorSunTableListData();
262
262
  }, getValue: Ne, setValue: Ee, getTableSelectOptions: function() {
263
- if (ie.value) return ie.value.getTableSelectOptions(G);
263
+ if (le.value) return le.value.getTableSelectOptions(G);
264
264
  }, dynamicControlTableEdit: function(e3, t2, n2) {
265
- ie.value && ie.value.dynamicControlTableEdit(e3, t2, n2);
265
+ le.value && le.value.dynamicControlTableEdit(e3, t2, n2);
266
266
  }, doLayout: function(e3) {
267
- ie.value && ie.value.doLayout(e3);
267
+ le.value && le.value.doLayout(e3);
268
268
  }, changeOperationAddState: function(e3) {
269
- ie.value && ie.value.changeOperationAddState(e3);
269
+ le.value && le.value.changeOperationAddState(e3);
270
270
  }, scrollTo: function(e3, t2) {
271
- ie.value && ie.value.scrollTo(e3, t2);
271
+ le.value && le.value.scrollTo(e3, t2);
272
272
  }, setScrollTop: function(e3) {
273
- ie.value && ie.value.setScrollTop(e3);
273
+ le.value && le.value.setScrollTop(e3);
274
274
  }, setScrollLeft: function(e3) {
275
- ie.value && ie.value.setScrollLeft(e3);
275
+ le.value && le.value.setScrollLeft(e3);
276
276
  }, getSuperGridRef: function() {
277
- return ie.value;
277
+ return le.value;
278
278
  }, getSuperGridTableRef: function() {
279
- return ie.value.getSuperGridRef();
279
+ return le.value.getSuperGridRef();
280
280
  }, setCurrentRowIndex: function(e3) {
281
281
  var _a;
282
- (_a = ie.value) == null ? void 0 : _a.setCurrentRowIndex(e3);
282
+ (_a = le.value) == null ? void 0 : _a.setCurrentRowIndex(e3);
283
283
  }, setScrollTopByRowIndex: function(e3) {
284
284
  var _a;
285
- (_a = ie.value) == null ? void 0 : _a.setScrollTopByRowIndex(e3);
285
+ (_a = le.value) == null ? void 0 : _a.setScrollTopByRowIndex(e3);
286
286
  } }), (e3, t2) => {
287
287
  const n2 = a("super-grid");
288
- 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(G), settings: s(K), onSelect: _e, onSelectAll: ke, onSelectionChange: Me, onCellClick: Fe, onCellDblclick: $e, onRowClick: je, onRowDblclick: Ae, onHeaderClick: Le, onFnProhibitToEdit: Ie, onChangeGridData: ye, onReloadGrid: de, onRefresMainTableFields: Oe, onSetSelectOptions: Re, onChangeRowsPerPage: Pe, onNewOpenGridDialog: s(R), onChangeFormData: Be }, null, 8, ["url", "options", "code", "settings", "onNewOpenGridDialog"])) : r("", true)]);
288
+ return i(), l("div", null, [ee.value ? (i(), u(n2, { key: 0, ref_key: "gridRef", ref: le, url: s(Z) + "/dsc/commons/sub-table", options: oe.value, code: s(G), settings: s(K), onSelect: _e, onSelectAll: ke, onSelectionChange: Me, onCellClick: Fe, onCellDblclick: $e, onRowClick: je, onRowDblclick: Ae, onHeaderClick: Le, onFnProhibitToEdit: Re, onChangeGridData: ye, onReloadGrid: de, onRefresMainTableFields: Oe, onSetSelectOptions: Ie, onChangeRowsPerPage: Pe, onNewOpenGridDialog: s(I), onChangeFormData: Be }, null, 8, ["url", "options", "code", "settings", "onNewOpenGridDialog"])) : r("", true)]);
289
289
  };
290
290
  } });
291
291
  export {
@@ -1,4 +1,4 @@
1
- import { defineComponent as e, ref as t, createElementBlock as n, openBlock as u, createBlock as o, unref as l } from "vue";
1
+ import { defineComponent as e, ref as t, createElementBlock as u, openBlock as i, createBlock as n, unref as l } from "vue";
2
2
  import "agilebuilder-ui";
3
3
  import "agilebuilder-ui/src/utils/request";
4
4
  import "dayjs";
@@ -6,19 +6,28 @@ import "agilebuilder-ui/src/utils/calculator/calculator-util";
6
6
  import "../../../../utils/global-refs.js";
7
7
  import "agilebuilder-ui/src/utils/common-util";
8
8
  import "agilebuilder-ui/src/utils/util";
9
- import r from "./sub-table-runtime.vue.js";
10
- import i from "./main-table-runtime.vue.js";
9
+ import "element-plus";
10
+ import "agilebuilder-ui/src/utils/auth";
11
+ import "../../../../utils/eventBus.js";
12
+ import "axios";
13
+ import "async-validator";
14
+ import "../../../../utils/page-store.js";
15
+ import "agilebuilder-ui/src/utils/i18n-util";
16
+ import "vue-i18n";
17
+ import "../../../../utils/events/print-label.js";
18
+ import o from "./sub-table-runtime.vue.js";
19
+ import r from "./main-table-runtime.vue.js";
11
20
  const a = e({ __name: "table-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: a2 }) {
12
- const c = e2, f = c.pageContext.pageType, s = t(null), g = c.configure.uuid, p = c.pageContext.superGridItems, d = p ? p[g] : null;
13
- s.value = d ? d.configure ? JSON.parse(d.configure) : null : c.configure;
14
- const S = c.configure.runtime ? c.configure.runtime : {};
15
- S.style, S.class;
21
+ const c = e2, s = c.pageContext.pageType, f = t(null), p = c.configure.uuid, g = c.pageContext.superGridItems, d = g ? g[p] : null;
22
+ f.value = d ? d.configure ? JSON.parse(d.configure) : null : c.configure;
23
+ const m = c.configure.runtime ? c.configure.runtime : {};
24
+ m.style, m.class;
16
25
  const v = t(null);
17
- function m(e3) {
26
+ function S(e3) {
18
27
  c.pageContext.entity.data._SAFE_DELETE_TABLE_NAMES ? c.pageContext.entity.data._SAFE_DELETE_TABLE_NAMES.push(e3) : c.pageContext.entity.data._SAFE_DELETE_TABLE_NAMES = [e3];
19
28
  }
20
- return a2({ refresh: function(e3, t2, n2, u2) {
21
- if (f && "list" === f) return v.value.refresh(e3, t2, n2, u2);
29
+ return a2({ refresh: function(e3, t2, u2, i2) {
30
+ if (s && "list" === s) return v.value.refresh(e3, t2, u2, i2);
22
31
  }, createRow: function() {
23
32
  return v.value.createRow();
24
33
  }, clearSelections: function() {
@@ -30,15 +39,15 @@ const a = e({ __name: "table-runtime", props: { pageContext: {}, configure: {} }
30
39
  }, getTableConfigure: function() {
31
40
  return v.value.getTableConfigure();
32
41
  }, isDeleteChange: function(e3) {
33
- f && "list" === f && v.value.isDeleteChange(e3);
42
+ s && "list" === s && v.value.isDeleteChange(e3);
34
43
  }, validatorSunTableListData: function() {
35
- if (f && "form" === f) return v.value.validatorSunTableListData();
44
+ if (s && "form" === s) return v.value.validatorSunTableListData();
36
45
  }, showMobileSearch: function() {
37
46
  v.value.showMobileSearch();
38
47
  }, getTableSelectOptions: function() {
39
48
  if (v.value) return v.value.getTableSelectOptions();
40
- }, dynamicControlTableEdit: function(e3, t2, n2) {
41
- v.value && v.value.dynamicControlTableEdit(e3, t2, n2);
49
+ }, dynamicControlTableEdit: function(e3, t2, u2) {
50
+ v.value && v.value.dynamicControlTableEdit(e3, t2, u2);
42
51
  }, getTableUuid: function() {
43
52
  return c.configure.uuid;
44
53
  }, doLayout: function(e3) {
@@ -66,7 +75,7 @@ const a = e({ __name: "table-runtime", props: { pageContext: {}, configure: {} }
66
75
  }, setScrollTopByRowIndex: function(e3) {
67
76
  var _a;
68
77
  (_a = v.value) == null ? void 0 : _a.setScrollTopByRowIndex(e3);
69
- } }), (e3, t2) => (u(), n("div", null, [l(f) && "form" === l(f) ? (u(), o(r, { key: 0, ref_key: "gridRef", ref: v, pageContext: e3.pageContext, configure: s.value, onSetSafeDeleteTableCode: m }, null, 8, ["pageContext", "configure"])) : (u(), o(i, { key: 1, ref_key: "gridRef", ref: v, pageContext: e3.pageContext, configure: s.value, onSetSafeDeleteTableCode: m }, null, 8, ["pageContext", "configure"]))]));
78
+ } }), (e3, t2) => (i(), u("div", null, [l(s) && "form" === l(s) ? (i(), n(o, { key: 0, ref_key: "gridRef", ref: v, pageContext: e3.pageContext, configure: f.value, onSetSafeDeleteTableCode: S }, null, 8, ["pageContext", "configure"])) : (i(), n(r, { key: 1, ref_key: "gridRef", ref: v, pageContext: e3.pageContext, configure: f.value, onSetSafeDeleteTableCode: S }, null, 8, ["pageContext", "configure"]))]));
70
79
  } });
71
80
  export {
72
81
  a as default
@@ -1,7 +1,7 @@
1
1
  import e from "./tree-runtime.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const t = r(e, [["__scopeId", "data-v-4b43ab6c"]]);
4
+ const t = r(e, [["__scopeId", "data-v-89330064"]]);
5
5
  export {
6
6
  t as default
7
7
  };
@@ -1,10 +1,10 @@
1
- import { defineComponent as e, ref as t, computed as a, onMounted as n, nextTick as l, watch as o, resolveComponent as u, createElementBlock as d, openBlock as i, normalizeClass as s, unref as r, createBlock as c, createCommentVNode as p, withDirectives as v, normalizeStyle as f, withCtx as g, createVNode as m, createElementVNode as h, createTextVNode as y, Fragment as C, toDisplayString as x, renderList as k, vShow as N } from "vue";
1
+ import { defineComponent as e, ref as t, computed as a, onMounted as n, nextTick as l, watch as o, resolveComponent as d, createElementBlock as u, openBlock as i, normalizeClass as s, unref as r, createBlock as c, createCommentVNode as p, withDirectives as v, normalizeStyle as f, withCtx as g, createVNode as m, createElementVNode as h, createTextVNode as y, Fragment as C, toDisplayString as x, renderList as k, vShow as N } from "vue";
2
2
  import T from "../../../../../../assets/folder.png.js";
3
3
  import I from "../../../../../../assets/file.png.js";
4
4
  import { getFormModelFields as V } from "../../../../utils/page-init-util.js";
5
- import { setVariableValue as b, getVariableValue as L } from "../../../../utils/page-helper-util.js";
6
- import { getMenuTreeData as M, createTreeNode as w, updateTreeNode as E, deleteNode as K } from "../../../../utils/tree-utils.js";
7
- import { handleAfterInitEvent as _, handleFormEvent as j } from "../../../../utils/events/event-util.js";
5
+ import { setVariableValue as b, getVariableValue as _ } from "../../../../utils/page-helper-util.js";
6
+ import { getMenuTreeData as L, createTreeNode as M, updateTreeNode as w, deleteNode as E } from "../../../../utils/tree-utils.js";
7
+ import { handleAfterInitEvent as K, handleFormEvent as j } from "../../../../utils/events/event-util.js";
8
8
  import { ElMessageBox as S, ElMessage as z } from "element-plus";
9
9
  import { checkPermission as B } from "agilebuilder-ui/src/utils/permission";
10
10
  const P = { key: 0, class: "custom-tree-node" }, W = ["title"], R = { key: 0, class: "item-row" }, D = { class: "item-side" }, H = { key: 1, class: "item-side", style: { display: "flex", "align-items": "center" } }, O = ["onClick"], U = e({ __name: "tree-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: U2 }) {
@@ -13,37 +13,37 @@ const P = { key: 0, class: "custom-tree-node" }, W = ["title"], R = { key: 0, cl
13
13
  ((_a = X.configure.props) == null ? void 0 : _a.contextMenus) && (X.pageContext && X.configure && !X.pageContext.isTest ? X.configure.props.contextMenus.forEach((e3) => {
14
14
  if (e3.functionCodes && e3.functionCodes.length > 0) for (let t2 = 0; t2 < e3.functionCodes.length; t2++) {
15
15
  const a2 = e3.functionCodes[t2];
16
- if (B(a2)) return void q.value.push(e3);
16
+ if (B(a2, X.pageContext.systemCode)) return void q.value.push(e3);
17
17
  }
18
18
  else q.value.push(e3);
19
19
  }) : q.value = X.configure.props.contextMenus);
20
20
  let F = V(X.pageContext, X.configure);
21
- const G = a({ get: () => L(Y, F), set(e3) {
21
+ const G = a({ get: () => _(Y, F), set(e3) {
22
22
  b(Y, F, e3);
23
- } }), J = t(!!((_c = (_b = X.configure.props) == null ? void 0 : _b.base) == null ? void 0 : _c.lazy)), Q = X.configure.runtime ? X.configure.runtime : {}, Z = Q.style, ee = Q.class, te = t(), ae = t(Q.props ? Q.props : {}), ne = t({ id: "nodeId", label: "name", children: "children", isLeaf: "leaf", disabled: "disabled", nodeType: "nodeType", iconType: "iconType", iconValue: "iconValue" }), le = t(false), oe = t([]), ue = t(null), de = t(""), ie = t(false), se = t(""), re = t(""), ce = t("");
23
+ } }), J = t(!!((_c = (_b = X.configure.props) == null ? void 0 : _b.base) == null ? void 0 : _c.lazy)), Q = X.configure.runtime ? X.configure.runtime : {}, Z = Q.style, ee = Q.class, te = t(), ae = t(Q.props ? Q.props : {}), ne = t({ id: "nodeId", label: "name", children: "children", isLeaf: "leaf", disabled: "disabled", nodeType: "nodeType", iconType: "iconType", iconValue: "iconValue" }), le = t(false), oe = t([]), de = t(null), ue = t(""), ie = t(false), se = t(""), re = t(""), ce = t("");
24
24
  n(() => {
25
25
  l(() => {
26
26
  const e3 = G.value;
27
- _(e3, X.pageContext, X.configure, { componentRef: te.value, value: e3, entity: X.pageContext.entity.data, pageData: X.pageContext.entity.page });
27
+ K(e3, X.pageContext, X.configure, { componentRef: te.value, value: e3, entity: X.pageContext.entity.data, pageData: X.pageContext.entity.page });
28
28
  });
29
- }), J.value ? le.value = true : M(X.pageContext, X.configure).then((e3) => {
29
+ }), J.value ? le.value = true : L(X.pageContext, X.configure).then((e3) => {
30
30
  oe.value = e3, le.value = true;
31
- }), o(de, (e3) => {
31
+ }), o(ue, (e3) => {
32
32
  ie.value = true, te.value.filter(e3);
33
33
  });
34
34
  const pe = (e3, t2) => !e3 || t2.name.includes(e3);
35
35
  function ve(e3, t2, a2) {
36
- ue.value = t2, j(null, X.pageContext, X.configure, "node-click", { data: e3, node: t2, nodeTree: a2 });
36
+ de.value = t2, j(null, X.pageContext, X.configure, "node-click", { data: e3, node: t2, nodeTree: a2 });
37
37
  }
38
38
  function fe(e3, t2) {
39
39
  let a2 = "0";
40
40
  a2 = 0 === e3.level ? "0" : e3.data.nodeId, function(e4, t3, a3) {
41
- const n2 = { parentNodeId: e4, data: t3.data, searchValue: de, isSearch: ie.value };
42
- M(X.pageContext, X.configure, e4, t3, n2).then((n3) => {
41
+ const n2 = { parentNodeId: e4, data: t3.data, searchValue: ue, isSearch: ie.value };
42
+ L(X.pageContext, X.configure, e4, t3, n2).then((n3) => {
43
43
  if (ie.value = false, a3(n3), "0" === e4) {
44
44
  !function(e5, t4) {
45
- const a4 = { parentNodeId: e5, data: t4.data, searchValue: de, isSearch: ie.value };
46
- M(X.pageContext, X.configure, e5, t4, a4).then((t5) => {
45
+ const a4 = { parentNodeId: e5, data: t4.data, searchValue: ue, isSearch: ie.value };
46
+ L(X.pageContext, X.configure, e5, t4, a4).then((t5) => {
47
47
  ie.value = false, te.value.updateKeyChildren(e5, t5), te.value.store.nodesMap[e5] && (te.value.store.nodesMap[e5].expanded = true);
48
48
  });
49
49
  }(n3[0].nodeId, t3);
@@ -54,10 +54,10 @@ const P = { key: 0, class: "custom-tree-node" }, W = ["title"], R = { key: 0, cl
54
54
  const ge = t({}), me = (e3, t2, a2, n2) => {
55
55
  if (se.value) return void z.warning("请先保存当前编辑节点!");
56
56
  document.removeEventListener("click", he), ge.value = a2, A.value = true;
57
- const { clientX: l2, clientY: o2 } = e3, u2 = $.value;
58
- if (u2) {
59
- const { innerWidth: e4, innerHeight: t3 } = window, { offsetWidth: a3, offsetHeight: n3 } = u2, d2 = l2 + a3 > e4 ? l2 - a3 : l2, i2 = o2 + n3 > t3 ? o2 - n3 : o2;
60
- u2.style.left = `${d2}px`, u2.style.top = `${i2}px`, u2.style.display = "block";
57
+ const { clientX: l2, clientY: o2 } = e3, d2 = $.value;
58
+ if (d2) {
59
+ const { innerWidth: e4, innerHeight: t3 } = window, { offsetWidth: a3, offsetHeight: n3 } = d2, u2 = l2 + a3 > e4 ? l2 - a3 : l2, i2 = o2 + n3 > t3 ? o2 - n3 : o2;
60
+ d2.style.left = `${u2}px`, d2.style.top = `${i2}px`, d2.style.display = "block";
61
61
  }
62
62
  document.addEventListener("click", he);
63
63
  }, he = () => {
@@ -75,12 +75,12 @@ const P = { key: 0, class: "custom-tree-node" }, W = ["title"], R = { key: 0, cl
75
75
  }, xe = () => ({ nodeId: "primary" + (/* @__PURE__ */ new Date()).getTime(), name: "新增节点", disabled: false, iconType: "custom", isLeaf: true });
76
76
  function ke(e3) {
77
77
  e3.tipMessage ? S.confirm(e3.tipMessage, { confirmButtonText: "确定", cancelButtonText: "取消", type: "error" }).then(() => {
78
- K(ge.value, X.configure, X.pageContext).then(() => {
78
+ E(ge.value, X.configure, X.pageContext).then(() => {
79
79
  z.success("删除成功!"), Ne(), ge.value = null;
80
80
  });
81
81
  }).catch(() => {
82
82
  ge.value = null;
83
- }) : K(ge.value, X.configure, X.pageContext).then(() => {
83
+ }) : E(ge.value, X.configure, X.pageContext).then(() => {
84
84
  z.success("删除成功!"), Ne(), ge.value = null;
85
85
  });
86
86
  }
@@ -89,11 +89,11 @@ const P = { key: 0, class: "custom-tree-node" }, W = ["title"], R = { key: 0, cl
89
89
  te.value.remove(ge.value), e3.childNodes && 0 === e3.childNodes.length && (e3.data.isLeaf = true), e3.data.children && e3.data.children.length > 0 && (e3.data.children = e3.data.children.filter((e4) => e4.nodeId !== ge.value.data.nodeId));
90
90
  };
91
91
  return U2({ getSelectNode: function() {
92
- return ue.value;
92
+ return de.value;
93
93
  }, expandNode: function(e3) {
94
94
  e3.loaded = false, e3.expand();
95
95
  }, loadTreeNodes: function() {
96
- M(X.pageContext, X.configure).then((e3) => {
96
+ L(X.pageContext, X.configure).then((e3) => {
97
97
  ie.value = false, oe.value = e3;
98
98
  });
99
99
  }, getNode: function(e3) {
@@ -106,16 +106,16 @@ const P = { key: 0, class: "custom-tree-node" }, W = ["title"], R = { key: 0, cl
106
106
  te.value.setChecked(e3, t2, a2);
107
107
  }, getCurrentKey: () => te.value.getCurrentKey(), getCurrentNode: () => te.value.getCurrentNode(), setCurrentKey: (e3, t2 = true) => te.value.setCurrentKey(e3, t2), setCurrentNode: (e3, t2 = true) => te.value.setCurrentNode(e3, t2) }), (e3, t2) => {
108
108
  var _a2;
109
- const a2 = u("el-input"), n2 = u("el-button"), l2 = u("SuperIcon"), o2 = u("el-tree");
110
- return i(), d("div", { class: s(["amb-tree-runtime-main", r(ee)]) }, [ae.value.filter ? (i(), c(a2, { key: 0, modelValue: de.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => de.value = e4), style: { width: "100%" }, placeholder: "请输入查询条件" }, null, 8, ["modelValue"])) : p("", true), le.value ? (i(), c(o2, { key: 1, ref_key: "menuTreeRef", ref: te, style: f(r(Z)), load: fe, data: oe.value, "node-key": "nodeId", props: ne.value, "default-expand-all": ae.value.defaultExpandAll, "expand-on-click-node": ae.value.expandOnClickNode, indent: ae.value.retractWidth ? ae.value.retractWidth : 18, accordion: ae.value.accordion, "show-checkbox": !!ae.value.showCheckbox, "highlight-current": "", lazy: J.value, "filter-node-method": pe, onNodeClick: ve, onNodeContextmenu: me }, { default: g(({ node: o3, data: u2 }) => [u2.nodeId === se.value ? (i(), d("div", P, [m(a2, { modelValue: ce.value, "onUpdate:modelValue": t2[1] || (t2[1] = (e4) => ce.value = e4), size: "small" }, null, 8, ["modelValue"]), h("div", null, [m(n2, { type: "primary", link: "", onClick: (e4) => ((e5) => {
111
- "" !== ce.value ? (e5.data.name = ce.value, re.value && e5.data.nodeId === re.value ? w(e5, X.configure, X.pageContext).then((t3) => {
109
+ const a2 = d("el-input"), n2 = d("el-button"), l2 = d("SuperIcon"), o2 = d("el-tree");
110
+ return i(), u("div", { class: s(["amb-tree-runtime-main", r(ee)]) }, [ae.value.filter ? (i(), c(a2, { key: 0, modelValue: ue.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => ue.value = e4), style: { width: "100%" }, placeholder: "请输入查询条件" }, null, 8, ["modelValue"])) : p("", true), le.value ? (i(), c(o2, { key: 1, ref_key: "menuTreeRef", ref: te, style: f(r(Z)), load: fe, data: oe.value, "node-key": "nodeId", props: ne.value, "default-expand-all": ae.value.defaultExpandAll, "expand-on-click-node": ae.value.expandOnClickNode, indent: ae.value.retractWidth ? ae.value.retractWidth : 18, accordion: ae.value.accordion, "show-checkbox": !!ae.value.showCheckbox, "highlight-current": "", lazy: J.value, "filter-node-method": pe, onNodeClick: ve, onNodeContextmenu: me }, { default: g(({ node: o3, data: d2 }) => [d2.nodeId === se.value ? (i(), u("div", P, [m(a2, { modelValue: ce.value, "onUpdate:modelValue": t2[1] || (t2[1] = (e4) => ce.value = e4), size: "small" }, null, 8, ["modelValue"]), h("div", null, [m(n2, { type: "primary", link: "", onClick: (e4) => ((e5) => {
111
+ "" !== ce.value ? (e5.data.name = ce.value, re.value && e5.data.nodeId === re.value ? M(e5, X.configure, X.pageContext).then((t3) => {
112
112
  ye(e5, t3.currentNode), Ce(), z.success("保存成功!");
113
- }) : E(e5, X.configure, X.pageContext).then((t3) => {
113
+ }) : w(e5, X.configure, X.pageContext).then((t3) => {
114
114
  ye(e5, t3.currentNode), Ce(), z.success("保存成功!");
115
115
  })) : z.warning("请输入节点名称");
116
- })(o3) }, { default: g(() => t2[2] || (t2[2] = [y(" 保存 ")])), _: 2 }, 1032, ["onClick"]), m(n2, { style: { "margin-left": "4px" }, type: "primary", link: "", onClick: (t3) => ((e4) => {
116
+ })(o3) }, { default: g(() => t2[2] || (t2[2] = [y(" 保存 ", -1)])), _: 2, __: [2] }, 1032, ["onClick"]), m(n2, { style: { "margin-left": "4px" }, type: "primary", link: "", onClick: (t3) => ((e4) => {
117
117
  re.value && e4.data.nodeId === re.value && te.value.remove(e4), Ce();
118
- })(o3, e3.configure, e3.pageContext) }, { default: g(() => t2[3] || (t2[3] = [y(" 撤销 ")])), _: 2 }, 1032, ["onClick"])])])) : (i(), d("span", { key: 1, title: o3.label, class: "ellipsis" }, [u2.iconValue ? (i(), c(l2, { key: 0, iconType: u2.iconType, iconValue: u2.iconValue }, null, 8, ["iconType", "iconValue"])) : ae.value.iconValue ? (i(), c(l2, { key: 1, iconType: ae.value.iconType, iconValue: ae.value.iconValue }, null, 8, ["iconType", "iconValue"])) : (i(), d(C, { key: 2 }, [u2.isLeaf ? (i(), d("div", H, [t2[5] || (t2[5] = h("img", { src: I, class: "file" }, null, -1)), h("span", null, x(u2.name), 1)])) : (i(), d("div", R, [h("div", D, [t2[4] || (t2[4] = h("img", { src: T, class: "file" }, null, -1)), h("span", null, x(u2.name), 1)])]))], 64))], 8, W))]), _: 1 }, 8, ["style", "data", "props", "default-expand-all", "expand-on-click-node", "indent", "accordion", "show-checkbox", "lazy"])) : p("", true), v(h("div", null, [h("ul", { ref_key: "contxtMenuRef", ref: $, class: "context-menu" }, [(i(true), d(C, null, k(q.value, (e4, t3) => (i(), d("li", { key: t3, tabindex: "-1", class: "menu__item", onClick: (t4) => ((e5) => {
118
+ })(o3, e3.configure, e3.pageContext) }, { default: g(() => t2[3] || (t2[3] = [y(" 撤销 ", -1)])), _: 2, __: [3] }, 1032, ["onClick"])])])) : (i(), u("span", { key: 1, title: o3.label, class: "ellipsis" }, [d2.iconValue ? (i(), c(l2, { key: 0, iconType: d2.iconType, iconValue: d2.iconValue }, null, 8, ["iconType", "iconValue"])) : ae.value.iconValue ? (i(), c(l2, { key: 1, iconType: ae.value.iconType, iconValue: ae.value.iconValue }, null, 8, ["iconType", "iconValue"])) : (i(), u(C, { key: 2 }, [d2.isLeaf ? (i(), u("div", H, [t2[5] || (t2[5] = h("img", { src: I, class: "file" }, null, -1)), h("span", null, x(d2.name), 1)])) : (i(), u("div", R, [h("div", D, [t2[4] || (t2[4] = h("img", { src: T, class: "file" }, null, -1)), h("span", null, x(d2.name), 1)])]))], 64))], 8, W))]), _: 1 }, 8, ["style", "data", "props", "default-expand-all", "expand-on-click-node", "indent", "accordion", "show-checkbox", "lazy"])) : p("", true), v(h("div", null, [h("ul", { ref_key: "contxtMenuRef", ref: $, class: "context-menu" }, [(i(true), u(C, null, k(q.value, (e4, t3) => (i(), u("li", { key: t3, tabindex: "-1", class: "menu__item", onClick: (t4) => ((e5) => {
119
119
  if (ge.value && "standard" === e5.type && e5.standardEvent) if ("edit" === e5.standardEvent) se.value = ge.value.data.nodeId, ce.value = ge.value.data.name;
120
120
  else if ("delete" === e5.standardEvent) ge.value.childNodes && ge.value.childNodes.length > 0 && e5.deleteParentNodeTip ? (e5.deleteParentNodeTipMessage || (e5.deleteParentNodeTipMessage = "当前节点下有子节点,确认删除?"), S.confirm(e5.deleteParentNodeTipMessage, { confirmButtonText: "确定", cancelButtonText: "取消", type: "error" }).then(() => {
121
121
  ke(e5);
@@ -1,4 +1,4 @@
1
- import { defineComponent as e, computed as t, ref as o, onMounted as a, nextTick as n, onUnmounted as i, resolveComponent as u, createBlock as l, createElementBlock as r, createCommentVNode as s, openBlock as p, normalizeStyle as g, normalizeClass as c, unref as m, withCtx as f, resolveDynamicComponent as d, toDisplayString as v } from "vue";
1
+ import { defineComponent as e, computed as t, ref as o, onMounted as a, nextTick as n, onUnmounted as i, resolveComponent as u, createBlock as l, createElementBlock as r, createCommentVNode as s, openBlock as p, normalizeStyle as c, normalizeClass as g, unref as m, withCtx as d, resolveDynamicComponent as f, toDisplayString as v } from "vue";
2
2
  import { getFormModelFields as C } from "../../../../utils/page-init-util.js";
3
3
  import { setVariableValue as x, getVariableValue as y, formatVariableValue as b, getFormPropName as h, setVariableValueWithProp as j } from "../../../../utils/page-helper-util.js";
4
4
  import { handleAfterInitEvent as R, handleEvent as k } from "../../../../utils/events/event-util.js";
@@ -8,24 +8,25 @@ import { getComponentRef as D } from "../../../../utils/global-refs.js";
8
8
  import { getAdditionalParamMap as E } from "../../../../utils/events/standard-event.js";
9
9
  import { $t as w } from "../../../../utils/i18n-util.js";
10
10
  import S from "../../../../utils/eventBus.js";
11
- const U = { key: 0, style: { width: "100%", height: "100%" } }, O = { key: 1, style: { width: "100%", height: "100%" }, class: "amb-widget-richtext-single" }, $ = e({ __name: "custom-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: $2 }) {
12
- const q = e2, z = q.pageContext.entity ? q.pageContext.entity : {}, F = C(q.pageContext, q.configure), G = t({ get: () => y(z, F), set(e3) {
13
- x(z, F, e3);
14
- } }), H = q.configure.runtime ? q.configure.runtime : {}, I = H.style, P = H.class, B = H.headerStyle, W = o(H.props ? H.props : {}), A = function(e3) {
11
+ import { functions as U } from "../../../../utils/api/page-expose-util.js";
12
+ const F = { key: 0, style: { width: "100%", height: "100%" } }, O = { key: 1, style: { width: "100%", height: "100%" }, class: "amb-widget-richtext-single" }, $ = e({ __name: "custom-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: $2 }) {
13
+ const q = e2, z = q.pageContext.entity ? q.pageContext.entity : {}, G = C(q.pageContext, q.configure), H = t({ get: () => y(z, G), set(e3) {
14
+ x(z, G, e3);
15
+ } }), P = q.configure.runtime ? q.configure.runtime : {}, I = P.style, A = P.class, B = P.headerStyle, W = o(P.props ? P.props : {}), J = function(e3) {
15
16
  let t2 = {};
16
17
  if (e3) for (let o2 in e3) {
17
18
  const a2 = e3[o2];
18
19
  t2[o2] = b(q.pageContext, a2);
19
20
  }
20
21
  return t2;
21
- }(H.customParams ? H.customParams : {}), J = E(q.pageContext), K = o(q.configure.props && q.configure.props.base ? q.configure.props.base.name : null);
22
- function L(e3, t2) {
22
+ }(P.customParams ? P.customParams : {}), K = E(q.pageContext), L = o(q.configure.props && q.configure.props.base ? q.configure.props.base.name : null);
23
+ function M(e3, t2) {
23
24
  j(z, e3, t2);
24
25
  }
25
- function M(e3) {
26
- V(q.pageContext, e3);
26
+ function N(e3) {
27
+ U.isHasFieldAuthPermission(q.configure) ? V(q.pageContext, e3) : console.error("没有该字段的权限,dynamicFields=", G ? G.join(".") : "");
27
28
  }
28
- function N() {
29
+ function Q() {
29
30
  const e3 = q.pageContext.tableUuids;
30
31
  e3 && e3.forEach((e4) => {
31
32
  const t2 = _(q.pageContext.code, q.pageContext.version, q.configure.uuid), o2 = D(q.pageContext, e4);
@@ -33,27 +34,27 @@ const U = { key: 0, style: { width: "100%", height: "100%" } }, O = { key: 1, st
33
34
  });
34
35
  }
35
36
  q.configure.props.verification.custom && q.configure.props.verification.custom.enabled && (q.pageContext.customValidatorUuids || (q.pageContext.customValidatorUuids = []), q.pageContext.customValidatorUuids.push(q.configure.uuid));
36
- const Q = q.pageContext.code, T = o(F && F.length > 0 ? Q + "__" + F.join("__") : null), X = o(null), Y = o(null), Z = o(null);
37
- function ee(e3) {
38
- k(G.value, q.pageContext, q.configure, e3);
37
+ const T = q.pageContext.code, X = o(G && G.length > 0 ? T + "__" + G.join("__") : null), Y = o(null), Z = o(null), ee = o(null);
38
+ function te(e3) {
39
+ k(H.value, q.pageContext, q.configure, e3);
39
40
  }
40
41
  return a(() => {
41
- S.$on(T.value + "-scanDone", (e3) => {
42
+ S.$on(X.value + "-scanDone", (e3) => {
42
43
  const t2 = e3.result;
43
- x(z, F, t2);
44
- }), S.$on(T.value + "-pickFileDone", (e3) => {
45
- X.value.pickFileDone(e3);
44
+ x(z, G, t2);
45
+ }), S.$on(X.value + "-pickFileDone", (e3) => {
46
+ X.value, Y.value.pickFileDone(e3);
46
47
  }), n(() => {
47
- const e3 = G.value;
48
- R(e3, q.pageContext, q.configure, { formItemRef: Y.value, componentRef: X.value, titleRef: Z.value, value: e3, entity: q.pageContext.entity.data, pageData: q.pageContext.entity.page });
48
+ const e3 = H.value;
49
+ R(e3, q.pageContext, q.configure, { formItemRef: Z.value, componentRef: Y.value, titleRef: ee.value, value: e3, entity: q.pageContext.entity.data, pageData: q.pageContext.entity.page });
49
50
  });
50
51
  }), i(() => {
51
- S.$off(T.value + "-scanDone"), S.$off(T.value + "-pickFileDone");
52
+ S.$off(X.value + "-scanDone"), S.$off(X.value + "-pickFileDone");
52
53
  }), $2({ getCustomRef: function() {
53
- return X.value;
54
+ return Y.value;
54
55
  } }), (e3, t2) => {
55
56
  const o2 = u("el-form-item");
56
- return W.value.tittleShow ? (p(), l(o2, { key: 0, ref_key: "formItemRef", ref: Y, required: W.value.required, class: c(m(P)), "label-width": W.value.labelWidth, style: g(m(I)) }, { label: f(() => [W.value.tittleShow ? (p(), r("div", { key: 0, ref_key: "titleRef", ref: Z, style: g({ ...m(B) }) }, v(m(w)(W.value.title)), 5)) : s("", true)]), default: f(() => [K.value ? (p(), r("div", U, [(p(), l(d(K.value), { ref_key: "customRef", ref: X, size: W.value.size, entity: e3.pageContext.entity.data, pageData: e3.pageContext.entity.page, pageContext: e3.pageContext, configureObj: e3.configure, prop: m(h)(e3.configure.props && e3.configure.props.base ? e3.configure.props.base.prop : null), "custom-params": m(A), modelValue: G.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => G.value = e4), disabled: "disabled" === W.value.state, "additional-param-map": m(J), "component-id": T.value, onSetEntityValue: L, onSetCustomRules: M, onRestoreGridEdit: N, onHandleEvent: ee, onChange: t2[1] || (t2[1] = (t3) => m(k)(G.value, e3.pageContext, e3.configure, "change")) }, null, 40, ["size", "entity", "pageData", "pageContext", "configureObj", "prop", "custom-params", "modelValue", "disabled", "additional-param-map", "component-id"]))])) : s("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : K.value ? (p(), r("div", O, [(p(), l(d(K.value), { ref_key: "customRef", ref: X, entity: e3.pageContext.entity.data, pageData: e3.pageContext.entity.page, pageContext: e3.pageContext, configureObj: e3.configure, prop: m(h)(e3.configure.props && e3.configure.props.base ? e3.configure.props.base.prop : null), "custom-params": m(A), modelValue: G.value, "onUpdate:modelValue": t2[2] || (t2[2] = (e4) => G.value = e4), disabled: "disabled" === W.value.state, "additional-param-map": m(J), "component-id": T.value, onSetEntityValue: L, onSetCustomRules: M, onRestoreGridEdit: N, onHandleEvent: ee, onChange: t2[3] || (t2[3] = (t3) => m(k)(G.value, e3.pageContext, e3.configure, "change")) }, null, 40, ["entity", "pageData", "pageContext", "configureObj", "prop", "custom-params", "modelValue", "disabled", "additional-param-map", "component-id"]))])) : s("", true);
57
+ return W.value.tittleShow ? (p(), l(o2, { key: 0, ref_key: "formItemRef", ref: Z, required: W.value.required, class: g(m(A)), "label-width": W.value.labelWidth, style: c(m(I)) }, { label: d(() => [W.value.tittleShow ? (p(), r("div", { key: 0, ref_key: "titleRef", ref: ee, style: c({ ...m(B) }) }, v(m(w)(W.value.title)), 5)) : s("", true)]), default: d(() => [L.value ? (p(), r("div", F, [(p(), l(f(L.value), { ref_key: "customRef", ref: Y, size: W.value.size, entity: e3.pageContext.entity.data, pageData: e3.pageContext.entity.page, pageContext: e3.pageContext, configureObj: e3.configure, prop: m(h)(e3.configure.props && e3.configure.props.base ? e3.configure.props.base.prop : null), "custom-params": m(J), modelValue: H.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => H.value = e4), disabled: "disabled" === W.value.state, "additional-param-map": m(K), "component-id": X.value, onSetEntityValue: M, onSetCustomRules: N, onRestoreGridEdit: Q, onHandleEvent: te, onChange: t2[1] || (t2[1] = (t3) => m(k)(H.value, e3.pageContext, e3.configure, "change")) }, null, 40, ["size", "entity", "pageData", "pageContext", "configureObj", "prop", "custom-params", "modelValue", "disabled", "additional-param-map", "component-id"]))])) : s("", true)]), _: 1 }, 8, ["required", "class", "label-width", "style"])) : L.value ? (p(), r("div", O, [(p(), l(f(L.value), { ref_key: "customRef", ref: Y, entity: e3.pageContext.entity.data, pageData: e3.pageContext.entity.page, pageContext: e3.pageContext, configureObj: e3.configure, prop: m(h)(e3.configure.props && e3.configure.props.base ? e3.configure.props.base.prop : null), "custom-params": m(J), modelValue: H.value, "onUpdate:modelValue": t2[2] || (t2[2] = (e4) => H.value = e4), disabled: "disabled" === W.value.state, "additional-param-map": m(K), "component-id": X.value, onSetEntityValue: M, onSetCustomRules: N, onRestoreGridEdit: Q, onHandleEvent: te, onChange: t2[3] || (t2[3] = (t3) => m(k)(H.value, e3.pageContext, e3.configure, "change")) }, null, 40, ["entity", "pageData", "pageContext", "configureObj", "prop", "custom-params", "modelValue", "disabled", "additional-param-map", "component-id"]))])) : s("", true);
57
58
  };
58
59
  } });
59
60
  export {