super-page-runtime 2.2.74 → 2.2.77-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.
Files changed (42) hide show
  1. package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +74 -74
  2. package/dist/es/components/runtime/utils/charts/chart-util.d.ts +1 -1
  3. package/dist/es/components/runtime/utils/charts/chart-util.js +5 -5
  4. package/dist/es/components/runtime/utils/events/standard-event.js +152 -153
  5. package/dist/es/components/runtime/utils/events/validator-util.js +48 -38
  6. package/dist/es/components/runtime/utils/page-permission-util.js +16 -16
  7. package/dist/es/components/runtime/utils/tree-utils.js +24 -23
  8. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +16 -13
  9. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +4 -1
  10. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +15 -11
  11. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.js +1 -1
  12. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +6 -5
  13. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +125 -111
  14. package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +3 -2
  15. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +76 -54
  16. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +4 -4
  17. package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +1 -1
  18. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +2 -2
  19. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.js +1 -1
  20. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +6 -6
  21. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue.js +1 -1
  22. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +32 -27
  23. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +1 -1
  24. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +1 -1
  25. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +1 -0
  26. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +54 -52
  27. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +16 -14
  28. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.js +1 -1
  29. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +77 -73
  30. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +6 -1
  31. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +1 -1
  32. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +29 -29
  33. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +5 -4
  34. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +4 -1
  35. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +7 -7
  36. package/dist/es/components/runtime/views/super-page-dialog.vue.js +13 -13
  37. package/dist/es/components/runtime/views/{super-page-dialog.vue2.js → super-page-dialog.vue3.js} +1 -0
  38. package/dist/es/components/runtime/views/super-page.vue.js +1 -1
  39. package/dist/es/components/runtime/views/super-page.vue2.js +17 -15
  40. package/dist/es/index.js +1 -0
  41. package/dist/es/style.css +225 -99
  42. package/package.json +2 -2
@@ -1,5 +1,5 @@
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
- import { setTableEvents as c, gridSelectRecord as p, gridSelectAllRecords as f, gridSelectionChange as d, cellClick as b, cellDblClick as v, rowClick as g, rowDblClick as m, headerClick as h, getHandleEvent as S } from "../../../../utils/events/event-util.js";
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";
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
3
  import { caculateShowCondition as w, setVariableValue as T, getVariableValue as x, getSizeConfig as D } from "../../../../utils/page-helper-util.js";
4
4
  import { getModelFields as C, getDefaultValue as y } from "../../../../utils/page-init-util.js";
5
5
  import P from "../../../../utils/eventBus.js";
@@ -7,28 +7,28 @@ import { popupToPage as I, getOperationButtons as R } from "../../../../utils/ta
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
- const j = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure: {} }, emits: ["setSafeDeleteTableCode"], setup(e2, { expose: j2, emit: N }) {
11
- const A = e2, H = A.pageContext;
12
- let L = A.configure;
13
- const B = A.configure.runtime ? A.configure.runtime : {};
14
- H.isTest ? B.value = A.configure.runtime ? A.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 = A.pageContext.entity ? A.pageContext.entity : {};
16
- let Y = C(A.configure, z), Z = _(H.backendUrl, H.isTest);
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);
17
17
  Z || (Z = window.$vueApp.config.globalProperties.baseURL);
18
18
  const ee = t(false);
19
19
  let te = t(0);
20
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) {
21
- return F(e3, e3.cellStyle, A);
21
+ return F(e3, e3.cellStyle, N);
22
22
  }, rowStyleRender: function(e3) {
23
- return M(e3, null, A);
23
+ return M(e3, null, N);
24
24
  }, titleStyleRender: function(e3) {
25
- const t2 = e3.titleStyle, n2 = A.configure.style.titleStyle;
26
- return $(e3, { cellTitleStyle: t2, titleStyle: n2 }, A);
27
- } }), ie = N;
25
+ const t2 = e3.titleStyle, n2 = N.configure.style.titleStyle;
26
+ return $(e3, { cellTitleStyle: t2, titleStyle: n2 }, N);
27
+ } }), ae = A;
28
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 ae = t(null);
29
+ const ie = t(null);
30
30
  function le() {
31
- ae.value && (oe.value.subTableData = null, ae.value.reloadSubTableData(E));
31
+ ie.value && (oe.value.subTableData = null, ie.value.reloadSubTableData(E));
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 = 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)) {
@@ -58,8 +58,8 @@ const j = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
58
58
  function ce() {
59
59
  return x(X, Y);
60
60
  }
61
- let pe, fe;
62
- function de(e3) {
61
+ let pe, de;
62
+ function fe(e3) {
63
63
  ue(e3), oe.value.subTableData = null, be(), ee.value = false, pe = setTimeout(() => {
64
64
  ee.value = true, te.value = te.value + 1, ve();
65
65
  }, 10);
@@ -81,7 +81,7 @@ 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(A.pageContext, L.props.base.showOperationCondition);
84
+ let e5 = [], t3 = w(N.pageContext, L.props.base.showOperationCondition);
85
85
  if (t3 && Se()) {
86
86
  const t4 = { props: { elementType: "el-button", icon: "Plus", type: "primary", circle: true, size: "mini", permission: "true" }, onClick: De, isShow: we };
87
87
  e5.push(t4);
@@ -111,17 +111,17 @@ 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), fe = setTimeout(() => {
115
- ae.value && (ae.value.refreshChildData(E, e5, L.props && L.props.base && true === L.props.base.subPaging), oe.value.extraParam.entityMap = H.entity.data);
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);
116
116
  }, 10);
117
117
  }(e4);
118
118
  }), P.$on(E + "-pickFileDone", (e4) => {
119
- ae.value.pickFileDone(e4);
119
+ ie.value.pickFileDone(e4);
120
120
  }), P.$on(E + "-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);
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);
123
123
  }), o(() => {
124
- pe && clearTimeout(pe), fe && clearTimeout(fe);
124
+ pe && clearTimeout(pe), de && clearTimeout(de);
125
125
  const e3 = L.uuid;
126
126
  P.$off("_refreshSubTable_" + e3), P.$off("_refreshSubTableHandle_" + e3), P.$off("_refreshChildData_" + e3), P.$off(E + "-pickFileDone"), P.$off(E + "-scanDone");
127
127
  });
@@ -130,12 +130,12 @@ 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, 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 = L;
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
135
  u2.props.base.tableUuid = r2.uuid, S(null, H, u2, "click", l2);
136
136
  }
137
- function Se(e3, t2, n2, o2, i2, a2) {
138
- if (!w(A.pageContext, L.props.base.showOperationCondition)) return false;
137
+ function Se(e3, t2, n2, o2, a2, i2) {
138
+ if (!w(N.pageContext, L.props.base.showOperationCondition)) return false;
139
139
  const l2 = H.fieldPermissionMap, u2 = H.actionPermissionMap;
140
140
  let r2 = true;
141
141
  if (l2 && null !== l2) {
@@ -148,11 +148,11 @@ 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, i2, a2) {
151
+ function we(e3, t2, n2, o2, a2, i2) {
152
152
  let l2 = Se();
153
- return true === l2 && (l2 = w(A.pageContext, L.props.base.showAddBtnCondition, n2)), l2;
153
+ return true === l2 && (l2 = w(N.pageContext, L.props.base.showAddBtnCondition, n2)), l2;
154
154
  }
155
- function Te(e3, t2, n2, o2, i2, a2) {
155
+ function Te(e3, t2, n2, o2, a2, i2) {
156
156
  const l2 = H.fieldPermissionMap, u2 = H.actionPermissionMap;
157
157
  let r2 = true;
158
158
  if (l2 && null !== l2) {
@@ -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 (a2) 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 (i2) 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,15 +172,15 @@ 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, i2, a2) {
176
- let l2 = Te(0, 0, n2, 0, 0, a2);
177
- return true === l2 && (l2 = w(A.pageContext, L.props.base.showDeleteBtnCondition, n2)), l2;
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;
178
178
  }
179
- function De(e3, t2, n2, o2, i2) {
180
- ae.value.createRow(E, {}, { getDefaultValueFunc: y });
179
+ function De(e3, t2, n2, o2, a2) {
180
+ ie.value.createRow(E, {}, { getDefaultValueFunc: y });
181
181
  }
182
- function Ce(e3, t2, n2, o2, i2) {
183
- ae.value.deleteRow(i2, E, false);
182
+ function Ce(e3, t2, n2, o2, a2) {
183
+ ie.value.deleteRow(a2, E, false);
184
184
  }
185
185
  function ye(e3) {
186
186
  T(X, Y, e3);
@@ -208,10 +208,10 @@ const j = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
208
208
  }
209
209
  function ke(e3) {
210
210
  J.value = e3;
211
- f(H, L, { selection: e3 });
211
+ d(H, L, { selection: e3 });
212
212
  }
213
213
  function Me(e3) {
214
- d(H, L, { newSelection: e3 });
214
+ f(H, L, { newSelection: e3 });
215
215
  }
216
216
  function Fe(e3, t2, n2, o2) {
217
217
  b(H, L, { row: e3, column: t2, cell: n2, event: o2 });
@@ -222,10 +222,10 @@ const j = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
222
222
  function je(e3, t2, n2) {
223
223
  g(H, L, { row: e3, column: t2, event: n2 });
224
224
  }
225
- function Ne(e3, t2, n2) {
225
+ function Ae(e3, t2, n2) {
226
226
  m(H, L, { row: e3, column: t2, event: n2 });
227
227
  }
228
- function Ae(e3, t2) {
228
+ function Ne(e3, t2) {
229
229
  h(H, L, { column: e3, event: t2 });
230
230
  }
231
231
  function He(e3) {
@@ -239,9 +239,9 @@ const j = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
239
239
  }
240
240
  return function() {
241
241
  const e3 = re();
242
- e3 ? de(e3) : (ue(e3), oe.value.isPageInfo = false, oe.value.subTableData = Le(), be());
242
+ e3 ? fe(e3) : (ue(e3), oe.value.isPageInfo = false, oe.value.subTableData = Le(), be());
243
243
  }(), j2({ createRow: function() {
244
- return ae.value.createRow(E);
244
+ return ie.value.createRow(E);
245
245
  }, getSelections: function() {
246
246
  return J.value;
247
247
  }, getSelectionIds: function() {
@@ -254,16 +254,18 @@ const j = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
254
254
  }, getTableConfigure: function() {
255
255
  return L;
256
256
  }, validatorSunTableListData: function() {
257
- return ae.value.validatorSunTableListData();
257
+ return ie.value.validatorSunTableListData();
258
258
  }, getValue: Le, setValue: Be, getTableSelectOptions: function() {
259
- if (ae.value) return ae.value.getTableSelectOptions(E);
259
+ if (ie.value) return ie.value.getTableSelectOptions(E);
260
260
  }, dynamicControlTableEdit: function(e3, t2, n2) {
261
- ae.value && ae.value.dynamicControlTableEdit(e3, t2, n2);
261
+ ie.value && ie.value.dynamicControlTableEdit(e3, t2, n2);
262
262
  }, doLayout: function(e3) {
263
- ae.value && ae.value.doLayout(e3);
263
+ ie.value && ie.value.doLayout(e3);
264
+ }, changeOperationAddState: function(e3) {
265
+ ie.value && ie.value.changeOperationAddState(e3);
264
266
  } }), (e3, t2) => {
265
- const n2 = i("super-grid");
266
- 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(E), settings: s(K), onSelect: _e, onSelectAll: ke, onSelectionChange: Me, onCellClick: Fe, onCellDblclick: $e, onRowClick: je, onRowDblclick: Ne, onHeaderClick: Ae, onFnProhibitToEdit: Re, onChangeGridData: ye, onReloadGrid: de, onRefresMainTableFields: Oe, onSetSelectOptions: Ie, onChangeRowsPerPage: Pe, onNewOpenGridDialog: s(I), onChangeFormData: He }, null, 8, ["url", "options", "code", "settings", "onNewOpenGridDialog"])) : r("", true)]);
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)]);
267
269
  };
268
270
  } });
269
271
  export {
@@ -1,4 +1,4 @@
1
- import { defineComponent as e, ref as t, createElementBlock as u, openBlock as n, createBlock as i, unref as l } from "vue";
1
+ import { defineComponent as e, ref as t, createElementBlock as n, openBlock as u, createBlock as i, unref as a } from "vue";
2
2
  import "agilebuilder-ui";
3
3
  import "agilebuilder-ui/src/utils/request";
4
4
  import "dayjs";
@@ -7,18 +7,18 @@ import "../../../../utils/global-refs.js";
7
7
  import "agilebuilder-ui/src/utils/common-util";
8
8
  import "agilebuilder-ui/src/utils/util";
9
9
  import o from "./sub-table-runtime.vue.js";
10
- import r from "./main-table-runtime.vue.js";
11
- const a = e({ __name: "table-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: a2 }) {
12
- const c = e2, s = c.pageContext.pageType, f = t(null), g = c.configure.uuid, p = c.pageContext.superGridItems, d = p ? p[g] : null;
13
- f.value = d ? d.configure ? JSON.parse(d.configure) : null : c.configure;
10
+ import l from "./main-table-runtime.vue.js";
11
+ const r = e({ __name: "table-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: r2 }) {
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
14
  const m = c.configure.runtime ? c.configure.runtime : {};
15
15
  m.style, m.class;
16
16
  const v = t(null);
17
- function b(e3) {
17
+ function S(e3) {
18
18
  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
19
  }
20
- return a2({ refresh: function(e3, t2, u2, n2) {
21
- if (s && "list" === s) return v.value.refresh(e3, t2, u2, n2);
20
+ return r2({ refresh: function(e3, t2, n2, u2) {
21
+ if (f && "list" === f) return v.value.refresh(e3, t2, n2, u2);
22
22
  }, createRow: function() {
23
23
  return v.value.createRow();
24
24
  }, clearSelections: function() {
@@ -30,21 +30,23 @@ const a = e({ __name: "table-runtime", props: { pageContext: {}, configure: {} }
30
30
  }, getTableConfigure: function() {
31
31
  return v.value.getTableConfigure();
32
32
  }, isDeleteChange: function(e3) {
33
- s && "list" === s && v.value.isDeleteChange(e3);
33
+ f && "list" === f && v.value.isDeleteChange(e3);
34
34
  }, validatorSunTableListData: function() {
35
- if (s && "form" === s) return v.value.validatorSunTableListData();
35
+ if (f && "form" === f) return v.value.validatorSunTableListData();
36
36
  }, showMobileSearch: function() {
37
37
  v.value.showMobileSearch();
38
38
  }, getTableSelectOptions: function() {
39
39
  if (v.value) return v.value.getTableSelectOptions();
40
- }, dynamicControlTableEdit: function(e3, t2, u2) {
41
- v.value && v.value.dynamicControlTableEdit(e3, t2, u2);
40
+ }, dynamicControlTableEdit: function(e3, t2, n2) {
41
+ v.value && v.value.dynamicControlTableEdit(e3, t2, n2);
42
42
  }, getTableUuid: function() {
43
43
  return c.configure.uuid;
44
44
  }, doLayout: function(e3) {
45
45
  v.value && v.value.doLayout(e3);
46
- } }), (e3, t2) => (n(), u("div", null, [l(s) && "form" === l(s) ? (n(), i(o, { key: 0, ref_key: "gridRef", ref: v, pageContext: e3.pageContext, configure: f.value, onSetSafeDeleteTableCode: b }, null, 8, ["pageContext", "configure"])) : (n(), i(r, { key: 1, ref_key: "gridRef", ref: v, pageContext: e3.pageContext, configure: f.value, onSetSafeDeleteTableCode: b }, null, 8, ["pageContext", "configure"]))]));
46
+ }, changeOperationAddState: function(e3) {
47
+ v.value && v.value.changeOperationAddState(e3);
48
+ } }), (e3, t2) => (u(), n("div", null, [a(f) && "form" === a(f) ? (u(), i(o, { key: 0, ref_key: "gridRef", ref: v, pageContext: e3.pageContext, configure: s.value, onSetSafeDeleteTableCode: S }, null, 8, ["pageContext", "configure"])) : (u(), i(l, { key: 1, ref_key: "gridRef", ref: v, pageContext: e3.pageContext, configure: s.value, onSetSafeDeleteTableCode: S }, null, 8, ["pageContext", "configure"]))]));
47
49
  } });
48
50
  export {
49
- a as default
51
+ r as default
50
52
  };
@@ -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-c18f2291"]]);
4
+ const t = r(e, [["__scopeId", "data-v-4b43ab6c"]]);
5
5
  export {
6
6
  t as default
7
7
  };
@@ -1,130 +1,134 @@
1
- import { defineComponent as e, ref as a, computed as t, onMounted as n, nextTick as l, watch as o, resolveComponent as u, createElementBlock as d, openBlock as i, normalizeClass as s, unref as c, createBlock as r, 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 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";
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 E } from "../../../../utils/page-helper-util.js";
6
- import { getMenuTreeData as L, createTreeNode as M, updateTreeNode as K, deleteNode as _ } from "../../../../utils/tree-utils.js";
7
- import { handleAfterInitEvent as w, handleFormEvent as j } from "../../../../utils/events/event-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";
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
- const P = { key: 0, class: "custom-tree-node" }, R = ["title"], D = { key: 0, class: "item-row" }, O = { class: "item-side" }, U = { key: 1, class: "item-side", style: { display: "flex", "align-items": "center" } }, W = ["onClick"], A = e({ __name: "tree-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: A2 }) {
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 }) {
11
11
  var _a, _b, _c;
12
- const q = a(), F = a(false), G = e2, H = G.pageContext.entity ? G.pageContext.entity : {}, J = a([]);
13
- ((_a = G.configure.props) == null ? void 0 : _a.contextMenus) && (G.pageContext && G.configure && !G.pageContext.isTest ? G.configure.props.contextMenus.forEach((e3) => {
14
- if (e3.functionCodes && e3.functionCodes.length > 0) for (let a2 = 0; a2 < e3.functionCodes.length; a2++) {
15
- const t2 = e3.functionCodes[a2];
16
- if (B(t2)) return void J.value.push(e3);
12
+ const $ = t(), A = t(false), X = e2, Y = X.pageContext.entity ? X.pageContext.entity : {}, q = t([]);
13
+ ((_a = X.configure.props) == null ? void 0 : _a.contextMenus) && (X.pageContext && X.configure && !X.pageContext.isTest ? X.configure.props.contextMenus.forEach((e3) => {
14
+ if (e3.functionCodes && e3.functionCodes.length > 0) for (let t2 = 0; t2 < e3.functionCodes.length; t2++) {
15
+ const a2 = e3.functionCodes[t2];
16
+ if (B(a2)) return void q.value.push(e3);
17
17
  }
18
- else J.value.push(e3);
19
- }) : J.value = G.configure.props.contextMenus);
20
- let Q = V(G.pageContext, G.configure);
21
- const X = t({ get: () => E(H, Q), set(e3) {
22
- b(H, Q, e3);
23
- } }), Y = a(!!((_c = (_b = G.configure.props) == null ? void 0 : _b.base) == null ? void 0 : _c.lazy)), Z = G.configure.runtime ? G.configure.runtime : {}, $ = Z.style, ee = Z.class, ae = a(), te = a(Z.props ? Z.props : {}), ne = a({ id: "nodeId", label: "name", children: "children", isLeaf: "leaf", disabled: "disabled", nodeType: "nodeType", iconType: "iconType", iconValue: "iconValue" }), le = a(false), oe = a([]), ue = a(null), de = a(""), ie = a(false), se = a(""), ce = a(""), re = a("");
18
+ else q.value.push(e3);
19
+ }) : q.value = X.configure.props.contextMenus);
20
+ let F = V(X.pageContext, X.configure);
21
+ const G = a({ get: () => L(Y, F), set(e3) {
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("");
24
24
  n(() => {
25
25
  l(() => {
26
- const e3 = X.value;
27
- w(e3, G.pageContext, G.configure, { componentRef: ae.value, value: e3, entity: G.pageContext.entity.data, pageData: G.pageContext.entity.page });
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 });
28
28
  });
29
- }), Y.value ? le.value = true : L(G.pageContext, G.configure).then((e3) => {
29
+ }), J.value ? le.value = true : M(X.pageContext, X.configure).then((e3) => {
30
30
  oe.value = e3, le.value = true;
31
31
  }), o(de, (e3) => {
32
- ie.value = true, ae.value.filter(e3);
32
+ ie.value = true, te.value.filter(e3);
33
33
  });
34
- const pe = (e3, a2) => !e3 || a2.name.includes(e3);
35
- function ve(e3, a2, t2) {
36
- ue.value = a2, j(null, G.pageContext, G.configure, "node-click", { data: e3, node: a2, nodeTree: t2 });
34
+ const pe = (e3, t2) => !e3 || t2.name.includes(e3);
35
+ function ve(e3, t2, a2) {
36
+ ue.value = t2, j(null, X.pageContext, X.configure, "node-click", { data: e3, node: t2, nodeTree: a2 });
37
37
  }
38
- function fe(e3, a2) {
39
- let t2 = "0";
40
- t2 = 0 === e3.level ? "0" : e3.data.nodeId, function(e4, a3, t3) {
41
- const n2 = { parentNodeId: e4, data: a3.data, searchValue: de, isSearch: ie.value };
42
- L(G.pageContext, G.configure, e4, a3, n2).then((n3) => {
43
- if (ie.value = false, t3(n3), "0" === e4) {
44
- !function(e5, a4) {
45
- const t4 = { parentNodeId: e5, data: a4.data, searchValue: de, isSearch: ie.value };
46
- L(G.pageContext, G.configure, e5, a4, t4).then((a5) => {
47
- ie.value = false, ae.value.updateKeyChildren(e5, a5), ae.value.store.nodesMap[e5] && (ae.value.store.nodesMap[e5].expanded = true);
38
+ function fe(e3, t2) {
39
+ let a2 = "0";
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) => {
43
+ if (ie.value = false, a3(n3), "0" === e4) {
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) => {
47
+ ie.value = false, te.value.updateKeyChildren(e5, t5), te.value.store.nodesMap[e5] && (te.value.store.nodesMap[e5].expanded = true);
48
48
  });
49
- }(n3[0].nodeId, a3);
49
+ }(n3[0].nodeId, t3);
50
50
  }
51
51
  });
52
- }(t2, e3, a2);
52
+ }(a2, e3, t2);
53
53
  }
54
- const ge = a({}), me = (e3, a2, t2, n2) => {
54
+ const ge = t({}), me = (e3, t2, a2, n2) => {
55
55
  if (se.value) return void z.warning("请先保存当前编辑节点!");
56
- document.removeEventListener("click", he), ge.value = t2, F.value = true;
57
- const l2 = document.documentElement.scrollTop || document.body.scrollTop;
58
- q.value.style.display = "block", q.value.style.left = e3.x + "px", q.value.style.top = e3.y + l2 - 10 + "px", document.addEventListener("click", he);
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";
61
+ }
62
+ document.addEventListener("click", he);
59
63
  }, he = () => {
60
- F.value = false, document.removeEventListener("click", he);
61
- }, ye = (e3, a2) => {
64
+ A.value = false, document.removeEventListener("click", he);
65
+ }, ye = (e3, t2) => {
62
66
  if (e3.parent && e3.parent.level > 0) {
63
- const t2 = e3.parent.data.children.findIndex((a3) => a3.nodeId === e3.data.nodeId);
64
- e3.parent.data.children[t2] = a2, e3.data = a2;
67
+ const a2 = e3.parent.data.children.findIndex((t3) => t3.nodeId === e3.data.nodeId);
68
+ e3.parent.data.children[a2] = t2, e3.data = t2;
65
69
  } else {
66
- const t2 = e3.parent.data.findIndex((a3) => a3.nodeId === e3.data.nodeId);
67
- e3.parent.data[t2] = a2, e3.data = a2;
70
+ const a2 = e3.parent.data.findIndex((t3) => t3.nodeId === e3.data.nodeId);
71
+ e3.parent.data[a2] = t2, e3.data = t2;
68
72
  }
69
73
  }, Ce = () => {
70
- se.value = "", re.value = "", ce.value = "";
74
+ se.value = "", ce.value = "", re.value = "";
71
75
  }, xe = () => ({ nodeId: "primary" + (/* @__PURE__ */ new Date()).getTime(), name: "新增节点", disabled: false, iconType: "custom", isLeaf: true });
72
76
  function ke(e3) {
73
77
  e3.tipMessage ? S.confirm(e3.tipMessage, { confirmButtonText: "确定", cancelButtonText: "取消", type: "error" }).then(() => {
74
- _(ge.value, G.configure, G.pageContext).then(() => {
78
+ K(ge.value, X.configure, X.pageContext).then(() => {
75
79
  z.success("删除成功!"), Ne(), ge.value = null;
76
80
  });
77
81
  }).catch(() => {
78
82
  ge.value = null;
79
- }) : _(ge.value, G.configure, G.pageContext).then(() => {
83
+ }) : K(ge.value, X.configure, X.pageContext).then(() => {
80
84
  z.success("删除成功!"), Ne(), ge.value = null;
81
85
  });
82
86
  }
83
87
  const Ne = () => {
84
88
  const e3 = ge.value.parent;
85
- ae.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));
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));
86
90
  };
87
- return A2({ getSelectNode: function() {
91
+ return U2({ getSelectNode: function() {
88
92
  return ue.value;
89
93
  }, expandNode: function(e3) {
90
94
  e3.loaded = false, e3.expand();
91
95
  }, loadTreeNodes: function() {
92
- L(G.pageContext, G.configure).then((e3) => {
96
+ M(X.pageContext, X.configure).then((e3) => {
93
97
  ie.value = false, oe.value = e3;
94
98
  });
95
99
  }, getNode: function(e3) {
96
- ae.value.getNode(e3);
97
- }, getCheckedNodes: (e3, a2) => ae.value.getCheckedNodes(e3, a2), setCheckedNodes: (e3) => {
98
- ae.value.setCheckedNodes(e3);
99
- }, getCheckedKeys: (e3) => ae.value.getCheckedKeysleafOnly(), setCheckedKeys: (e3, a2) => {
100
- ae.value.setCheckedKeys(e3, a2);
101
- }, setChecked: (e3, a2, t2) => {
102
- ae.value.setChecked(e3, a2, t2);
103
- }, getCurrentKey: () => ae.value.getCurrentKey(), getCurrentNode: () => ae.value.getCurrentNode(), setCurrentKey: (e3, a2 = true) => ae.value.setCurrentKey(e3, a2), setCurrentNode: (e3, a2 = true) => ae.value.setCurrentNode(e3, a2) }), (e3, a2) => {
100
+ te.value.getNode(e3);
101
+ }, getCheckedNodes: (e3, t2) => te.value.getCheckedNodes(e3, t2), setCheckedNodes: (e3) => {
102
+ te.value.setCheckedNodes(e3);
103
+ }, getCheckedKeys: (e3) => te.value.getCheckedKeysleafOnly(), setCheckedKeys: (e3, t2) => {
104
+ te.value.setCheckedKeys(e3, t2);
105
+ }, setChecked: (e3, t2, a2) => {
106
+ te.value.setChecked(e3, t2, a2);
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) => {
104
108
  var _a2;
105
- const t2 = u("el-input"), n2 = u("el-button"), l2 = u("SuperIcon"), o2 = u("el-tree");
106
- return i(), d("div", { class: s(c(ee)) }, [te.value.filter ? (i(), r(t2, { key: 0, modelValue: de.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e4) => de.value = e4), style: { width: "240px" }, placeholder: "请输入查询条件" }, null, 8, ["modelValue"])) : p("", true), le.value ? (i(), r(o2, { key: 1, ref_key: "menuTreeRef", ref: ae, style: f(c($)), load: fe, data: oe.value, "node-key": "nodeId", props: ne.value, "default-expand-all": te.value.defaultExpandAll, "expand-on-click-node": te.value.expandOnClickNode, indent: te.value.retractWidth ? te.value.retractWidth : 18, accordion: te.value.accordion, "show-checkbox": !!te.value.showCheckbox, "highlight-current": "", lazy: Y.value, "filter-node-method": pe, onNodeClick: ve, onNodeContextmenu: me }, { default: g(({ node: o3, data: u2 }) => [u2.nodeId === se.value ? (i(), d("div", P, [m(t2, { modelValue: re.value, "onUpdate:modelValue": a2[1] || (a2[1] = (e4) => re.value = e4), size: "small" }, null, 8, ["modelValue"]), h("div", null, [m(n2, { type: "primary", link: "", onClick: (e4) => ((e5) => {
107
- "" !== re.value ? (e5.data.name = re.value, ce.value && e5.data.nodeId === ce.value ? M(e5, G.configure, G.pageContext).then((a3) => {
108
- ye(e5, a3.currentNode), Ce(), z.success("保存成功!");
109
- }) : K(e5, G.configure, G.pageContext).then((a3) => {
110
- ye(e5, a3.currentNode), Ce(), z.success("保存成功!");
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) => {
112
+ ye(e5, t3.currentNode), Ce(), z.success("保存成功!");
113
+ }) : E(e5, X.configure, X.pageContext).then((t3) => {
114
+ ye(e5, t3.currentNode), Ce(), z.success("保存成功!");
111
115
  })) : z.warning("请输入节点名称");
112
- })(o3) }, { default: g(() => a2[2] || (a2[2] = [y(" 保存 ")])), _: 2 }, 1032, ["onClick"]), m(n2, { style: { "margin-left": "4px" }, type: "primary", link: "", onClick: (a3) => ((e4) => {
113
- ce.value && e4.data.nodeId === ce.value && ae.value.remove(e4), Ce();
114
- })(o3, e3.configure, e3.pageContext) }, { default: g(() => a2[3] || (a2[3] = [y(" 撤销 ")])), _: 2 }, 1032, ["onClick"])])])) : (i(), d("span", { key: 1, title: o3.label, class: "ellipsis" }, [u2.iconValue ? (i(), r(l2, { key: 0, iconType: u2.iconType, iconValue: u2.iconValue }, null, 8, ["iconType", "iconValue"])) : te.value.iconValue ? (i(), r(l2, { key: 1, iconType: te.value.iconType, iconValue: te.value.iconValue }, null, 8, ["iconType", "iconValue"])) : (i(), d(C, { key: 2 }, [u2.isLeaf ? (i(), d("div", U, [a2[5] || (a2[5] = h("img", { src: I, class: "file" }, null, -1)), h("span", null, x(u2.name), 1)])) : (i(), d("div", D, [h("div", O, [a2[4] || (a2[4] = h("img", { src: T, class: "file" }, null, -1)), h("span", null, x(u2.name), 1)])]))], 64))], 8, R))]), _: 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: q, class: "context-menu" }, [(i(true), d(C, null, k(J.value, (e4, a3) => (i(), d("li", { key: a3, tabindex: "-1", class: "menu__item", onClick: (a4) => ((e5) => {
115
- if (ge.value && "standard" === e5.type && e5.standardEvent) if ("edit" === e5.standardEvent) se.value = ge.value.data.nodeId, re.value = ge.value.data.name;
116
+ })(o3) }, { default: g(() => t2[2] || (t2[2] = [y(" 保存 ")])), _: 2 }, 1032, ["onClick"]), m(n2, { style: { "margin-left": "4px" }, type: "primary", link: "", onClick: (t3) => ((e4) => {
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) => {
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;
116
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(() => {
117
121
  ke(e5);
118
122
  }).catch(() => {
119
123
  ge.value = null;
120
124
  })) : ke(e5);
121
125
  else {
122
- const a5 = xe();
123
- se.value = a5.nodeId, ce.value = a5.nodeId, re.value = a5.name, "addSiblingNode" === e5.standardEvent ? (a5.isLeaf = ge.value.data.isLeaf, ge.value.parent && ge.value.parent.level > 0 ? ae.value.append(a5, ge.value.parent) : oe.value.push(a5)) : "addChildNode" === e5.standardEvent && (a5.isLeaf = true, ge.value.data.isLeaf = false, ae.value.append(a5, ge.value), ae.value.setCurrentKey(a5.nodeId, true));
126
+ const t5 = xe();
127
+ se.value = t5.nodeId, re.value = t5.nodeId, ce.value = t5.name, "addSiblingNode" === e5.standardEvent ? (t5.isLeaf = ge.value.data.isLeaf, ge.value.parent && ge.value.parent.level > 0 ? te.value.append(t5, ge.value.parent) : oe.value.push(t5)) : "addChildNode" === e5.standardEvent && (t5.isLeaf = true, ge.value.data.isLeaf = false, te.value.append(t5, ge.value), te.value.setCurrentKey(t5.nodeId, true));
124
128
  }
125
- })(e4) }, [h("span", null, x(e4.name), 1)], 8, W))), 128))], 512)], 512), [[N, F.value && ((_a2 = J.value) == null ? void 0 : _a2.length) > 0]])], 2);
129
+ })(e4) }, [h("span", null, x(e4.name), 1)], 8, O))), 128))], 512)], 512), [[N, A.value && ((_a2 = q.value) == null ? void 0 : _a2.length) > 0]])], 2);
126
130
  };
127
131
  } });
128
132
  export {
129
- A as default
133
+ U as default
130
134
  };
@@ -12,7 +12,12 @@ const U = { key: 0, style: { width: "100%", height: "100%" } }, O = { key: 1, st
12
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
13
  x(z, F, e3);
14
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) {
15
- if (e3) for (let t2 in e3) e3.value[t2] = b(q.pageContext, t2);
15
+ let t2 = {};
16
+ if (e3) for (let o2 in e3) {
17
+ const a2 = e3[o2];
18
+ t2[o2] = b(q.pageContext, a2);
19
+ }
20
+ return t2;
16
21
  }(H.customParams ? H.customParams : {}), J = E(q.pageContext), K = o(q.configure.props && q.configure.props.base ? q.configure.props.base.name : null);
17
22
  function L(e3, t2) {
18
23
  j(z, e3, t2);
@@ -25,7 +25,7 @@ const _ = e({ __name: "datepicker-runtime", props: { pageContext: {}, configure:
25
25
  if (a2) try {
26
26
  const l2 = j(e3);
27
27
  let t2 = null;
28
- return t2 = "x" === a2 ? l2.toDate().getTime() : j(e3).format(a2), t2;
28
+ return t2 = "x" === a2 ? l2.toDate().getTime() : j(e3 + "").format(a2), t2;
29
29
  } catch (a3) {
30
30
  return e3;
31
31
  }