super-page-runtime 2.3.33 → 2.3.34

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/barcode-util.js +5 -5
  2. package/dist/es/components/runtime/utils/charts/chart-pie-util.js +46 -47
  3. package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +1 -3
  4. package/dist/es/components/runtime/utils/charts/chart-util.js +44 -46
  5. package/dist/es/components/runtime/utils/events/event-util.js +18 -18
  6. package/dist/es/components/runtime/utils/events/print-label.js +0 -1
  7. package/dist/es/components/runtime/utils/events/standard-event.js +708 -720
  8. package/dist/es/components/runtime/utils/events/validator-util.js +1 -1
  9. package/dist/es/components/runtime/utils/form/scan-util.js +3 -4
  10. package/dist/es/components/runtime/utils/page-helper-util.js +219 -219
  11. package/dist/es/components/runtime/utils/page-init-util.js +124 -127
  12. package/dist/es/components/runtime/utils/page-store.js +21 -21
  13. package/dist/es/components/runtime/utils/table-utils.js +4 -4
  14. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +10 -14
  15. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +3 -3
  16. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +6 -6
  17. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +12 -13
  18. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +14 -15
  19. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +14 -15
  20. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +15 -16
  21. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +67 -67
  22. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +22 -24
  23. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +1 -1
  24. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +62 -62
  25. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +20 -22
  26. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +117 -120
  27. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +39 -40
  28. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +0 -1
  29. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +26 -26
  30. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +7 -7
  31. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +52 -52
  32. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +6 -6
  33. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +10 -10
  34. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +0 -1
  35. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +13 -13
  36. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +17 -17
  37. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +5 -5
  38. package/dist/es/components/runtime/views/home-chart.vue.js +4 -4
  39. package/dist/es/components/runtime/views/super-page-dialog.vue.js +4 -4
  40. package/dist/es/components/runtime/views/super-page.vue.js +1 -1
  41. package/dist/es/components/runtime/views/super-page.vue2.js +182 -182
  42. package/dist/es/style.css +76 -76
  43. package/package.json +2 -2
@@ -1,4 +1,4 @@
1
- import { defineComponent as e, ref as t, onMounted as n, onUnmounted as o, resolveComponent as l, createElementBlock as a, openBlock as i, 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 l, createElementBlock as i, openBlock as a, createBlock as u, createCommentVNode as r, unref as s } from "vue";
2
2
  import { setTableEvents as c, gridSelectRecord as p, gridSelectAllRecords as d, gridSelectionChange as f, cellClick as b, cellDblClick as g, rowClick as m, rowDblClick as v, 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";
@@ -7,56 +7,54 @@ import { popupToPage as R, getOperationButtons as I } 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 A, getCellStyleUtil as M, getHeaderCellStyleUtil as E } from "../../chart/table/chart-table-util.js";
10
- const F = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure: {} }, emits: ["setSafeDeleteTableCode"], setup(e2, { expose: F2, emit: z }) {
10
+ const F = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure: {} }, emits: ["setSafeDeleteTableCode"], setup(e2, { expose: F2, emit: $ }) {
11
11
  var _a;
12
- const U = e2, $ = U.pageContext;
13
- let j = U.configure;
14
- const N = U.configure.runtime ? U.configure.runtime : {};
15
- $.isTest ? N.value = U.configure.runtime ? U.configure.runtime : {} : $.tableRuntimes && $.tableRuntimes[j.uuid] && (j = JSON.parse($.tableRuntimes[j.uuid].configure), N.value = j.runtime ? j.runtime : {});
16
- const G = O($.code, $.version, j.uuid), H = $.entity.data, V = j.code ? j.code : G, L = k($), B = N && N.events ? N.events : [], q = t([]), J = $.superGridItems, K = J ? J[j.uuid] : null;
17
- console.log("superGridSetting===", J, K);
18
- const Q = N.style, W = N.class, X = U.pageContext.entity ? U.pageContext.entity : {};
19
- let Y = D(U.configure, V), Z = _($.backendUrl, $.isTest);
12
+ const j = e2, z = j.pageContext;
13
+ let N = j.configure;
14
+ const V = j.configure.runtime ? j.configure.runtime : {};
15
+ z.isTest ? V.value = j.configure.runtime ? j.configure.runtime : {} : z.tableRuntimes && z.tableRuntimes[N.uuid] && (N = JSON.parse(z.tableRuntimes[N.uuid].configure), V.value = N.runtime ? N.runtime : {});
16
+ const G = O(z.code, z.version, N.uuid), H = z.entity.data, L = N.code ? N.code : G, U = k(z), B = V && V.events ? V.events : [], q = t([]), J = z.superGridItems, K = J ? J[N.uuid] : null, Q = V.style, W = V.class, X = j.pageContext.entity ? j.pageContext.entity : {};
17
+ let Y = D(j.configure, L), Z = _(z.backendUrl, z.isTest);
20
18
  Z || (Z = window.$vueApp.config.globalProperties.baseURL);
21
19
  const ee = t(false);
22
20
  let te = t(0);
23
- const ne = (_a = j.props) == null ? void 0 : _a.dataOrigin.principalLinkage, oe = t({}), le = z;
21
+ const ne = (_a = N.props) == null ? void 0 : _a.dataOrigin.principalLinkage, oe = t({}), le = $;
24
22
  oe.value = function() {
25
23
  var _a2, _b, _c, _d;
26
- const e3 = { title: (j == null ? void 0 : j.title) || null, isSql: true, subTableData: null, rowKeyProp: ne, extraParam: {}, operations: {}, hiddenColumns: [], pageCode: $.code, pageVersion: $.version, pageContext: $, configureObj: j, showPageArea: false, showRowForm: false, showOverflowTooltip: (_b = (_a2 = j == null ? void 0 : j.props) == null ? void 0 : _a2.otherSettings) == null ? void 0 : _b.showOverflowTooltip, backendUrl: Z, cellStyleRender: He, rowStyleRender: Ge, titleStyleRender: Ve, allEditable: (_d = (_c = j.props) == null ? void 0 : _c.base) == null ? void 0 : _d.allEditable };
27
- return Q && (e3.tableStyle = Q), W && (e3.tableClass = W), j.props && j.props.base && true === j.props.base.subPaging ? e3.showPageArea = true : e3.showPageArea = false, j.props.base.showRowForm && (e3.showRowForm = j.props.base.showRowForm), function(e4) {
28
- const t2 = j.props ? j.props.dataOrigin : {};
24
+ const e3 = { title: (N == null ? void 0 : N.title) || null, isSql: true, subTableData: null, rowKeyProp: ne, extraParam: {}, operations: {}, hiddenColumns: [], pageCode: z.code, pageVersion: z.version, pageContext: z, configureObj: N, showPageArea: false, showRowForm: false, showOverflowTooltip: (_b = (_a2 = N == null ? void 0 : N.props) == null ? void 0 : _a2.otherSettings) == null ? void 0 : _b.showOverflowTooltip, backendUrl: Z, cellStyleRender: He, rowStyleRender: Ge, titleStyleRender: Le, allEditable: (_d = (_c = N.props) == null ? void 0 : _c.base) == null ? void 0 : _d.allEditable };
25
+ return Q && (e3.tableStyle = Q), W && (e3.tableClass = W), N.props && N.props.base && true === N.props.base.subPaging ? e3.showPageArea = true : e3.showPageArea = false, N.props.base.showRowForm && (e3.showRowForm = N.props.base.showRowForm), function(e4) {
26
+ const t2 = N.props ? N.props.dataOrigin : {};
29
27
  if (t2.treeTable) {
30
28
  let n2;
31
29
  const o2 = t2.rowKey;
32
30
  if (n2 = o2 && o2.indexOf("~~") > 0 ? o2.substring(o2.indexOf("~~") + 2) : o2, e4.parentProp = n2, t2.checkStrictly && (e4.checkStrictly = t2.checkStrictly), e4.parentProp) {
33
31
  const o3 = t2.lazy, l2 = t2.defaultExpandAll;
34
32
  e4.lazy = null == o3 || o3, e4.defaultExpandAll = null != l2 && l2;
35
- const a2 = { parentProp: n2, lazy: e4.lazy, defaultExpandAll: e4.defaultExpandAll };
36
- e4.extraParam.listViewTreeSetting = JSON.stringify(a2), e4.subRowUrl = Z + "/dsc/commons/list-subs";
33
+ const i2 = { parentProp: n2, lazy: e4.lazy, defaultExpandAll: e4.defaultExpandAll };
34
+ e4.extraParam.listViewTreeSetting = JSON.stringify(i2), e4.subRowUrl = Z + "/dsc/commons/list-subs";
37
35
  }
38
36
  }
39
37
  }(e3), e3;
40
38
  }();
41
- const ae = t(null);
42
- function ie() {
43
- ae.value && (oe.value.subTableData = null, ae.value.reloadSubTableData(G));
39
+ const ie = t(null);
40
+ function ae() {
41
+ ie.value && (oe.value.subTableData = null, ie.value.reloadSubTableData(G));
44
42
  }
45
43
  function ue(e3, t2) {
46
- if (t2 || (t2 = oe.value), void 0 === e3 && (e3 = re()), t2.isPageInfo = false, t2.isFormSubTable = true, t2.canRrefreshSubtableData = e3, t2.getFormData = se, t2.getGridData = ce, t2.extraParam.subTableListViewCode = G, t2.extraParam.beanName = $.beanName, t2.extraParam.subtableSetting = j.props && j.props.otherSettings ? JSON.stringify(j.props.otherSettings) : null, t2.extraParam.additionalParamMap = L, t2.extraParam.entityMap = $.entity.data, t2.extraParam.contextMap = $.entity.context, t2.extraParam.taskMap = $.entity.task, !(j.props && j.props.base && j.props.base.showOperation)) {
44
+ if (t2 || (t2 = oe.value), void 0 === e3 && (e3 = re()), t2.isPageInfo = false, t2.isFormSubTable = true, t2.canRrefreshSubtableData = e3, t2.getFormData = se, t2.getGridData = ce, t2.extraParam.subTableListViewCode = G, t2.extraParam.beanName = z.beanName, t2.extraParam.subtableSetting = N.props && N.props.otherSettings ? JSON.stringify(N.props.otherSettings) : null, t2.extraParam.additionalParamMap = U, t2.extraParam.entityMap = z.entity.data, t2.extraParam.contextMap = z.entity.context, t2.extraParam.taskMap = z.entity.task, !(N.props && N.props.base && N.props.base.showOperation)) {
47
45
  let e4 = t2.hiddenColumns;
48
46
  e4 ? e4.push("operation") : e4 = ["operation"], t2.hiddenColumns = e4;
49
47
  }
50
- t2.showOperationButton = !(!j.props || !j.props.base) && j.props.base.showOperation, t2.isPdfEditor = false, t2.tableRecordMaxNum = j.props && j.props.otherSettings ? j.props.otherSettings.tableRecordMaxNum : null;
51
- let n2 = C($, j);
52
- n2 && n2.fixHeight && (t2.formSetHeight = n2.fixHeight), n2 && n2.maxHeight && (t2.formSetMaxHeight = n2.maxHeight), t2.validateEitConditions = Le;
48
+ t2.showOperationButton = !(!N.props || !N.props.base) && N.props.base.showOperation, t2.isPdfEditor = false, t2.tableRecordMaxNum = N.props && N.props.otherSettings ? N.props.otherSettings.tableRecordMaxNum : null;
49
+ let n2 = C(z, N);
50
+ n2 && n2.fixHeight && (t2.formSetHeight = n2.fixHeight), n2 && n2.maxHeight && (t2.formSetMaxHeight = n2.maxHeight), t2.validateEitConditions = Ue;
53
51
  }
54
52
  function re() {
55
- if (j.props && j.props.otherSettings) {
56
- if (j.props.otherSettings.sourceQueryTableData && j.props.otherSettings.timeToInitializeSubTable && j.props.otherSettings.timeToInitializeSubTable.length > 0) {
53
+ if (N.props && N.props.otherSettings) {
54
+ if (N.props.otherSettings.sourceQueryTableData && N.props.otherSettings.timeToInitializeSubTable && N.props.otherSettings.timeToInitializeSubTable.length > 0) {
57
55
  let e3 = false;
58
- if (-1 !== j.props.otherSettings.timeToInitializeSubTable.indexOf("create") && (e3 = !H.id && !H.ID), -1 !== j.props.otherSettings.timeToInitializeSubTable.indexOf("noData")) {
59
- const t2 = H[V];
56
+ if (-1 !== N.props.otherSettings.timeToInitializeSubTable.indexOf("create") && (e3 = !H.id && !H.ID), -1 !== N.props.otherSettings.timeToInitializeSubTable.indexOf("noData")) {
57
+ const t2 = H[L];
60
58
  (!t2 || t2.length <= 0) && (e3 = true);
61
59
  }
62
60
  return e3;
@@ -65,7 +63,7 @@ const F = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
65
63
  }
66
64
  }
67
65
  function se() {
68
- return $.entity.data;
66
+ return z.entity.data;
69
67
  }
70
68
  function ce() {
71
69
  return x(X, Y);
@@ -79,9 +77,9 @@ const F = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
79
77
  function be(e3) {
80
78
  e3 || (e3 = oe.value), function(e4) {
81
79
  e4 || (e4 = oe.value);
82
- const t3 = $.fieldPermissionMap, n2 = $.actionPermissionMap;
80
+ const t3 = z.fieldPermissionMap, n2 = z.actionPermissionMap;
83
81
  if (t3 && null != t3) {
84
- let n3 = t3.get(V);
82
+ let n3 = t3.get(L);
85
83
  if (!n3) {
86
84
  const e5 = t3.get("all_fields");
87
85
  e5 && (n3 = [e5]);
@@ -89,12 +87,12 @@ const F = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
89
87
  e4.validateRules = n3 || null;
90
88
  }
91
89
  if (n2 && null != n2) {
92
- let t4 = n2.get(V);
90
+ let t4 = n2.get(L);
93
91
  t4 || (t4 = n2.get("all_sub_tables")), e4.actionPermission = t4;
94
92
  }
95
93
  e4.operations || (e4.operations = {});
96
94
  const o2 = function() {
97
- let e5 = [], t4 = w(U.pageContext, j.props.base.showOperationCondition);
95
+ let e5 = [], t4 = w(j.pageContext, N.props.base.showOperationCondition);
98
96
  if (t4 && Se(null, null, null, null, null, true, "canAdd")) {
99
97
  const t5 = { props: { elementType: "el-button", icon: "Plus", type: "primary", circle: true, size: "mini", permission: "true" }, onClick: Ce, isShow: we, isStandard: true };
100
98
  e5.push(t5);
@@ -103,40 +101,39 @@ const F = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
103
101
  const t5 = { props: { elementType: "el-button", icon: "Minus", type: "danger", circle: true, size: "mini", permission: "true" }, onClick: De, isShow: xe, isStandard: true };
104
102
  e5.push(t5);
105
103
  }
106
- return I($, j, e5, ve), e5;
104
+ return I(z, N, e5, ve), e5;
107
105
  }();
108
106
  e4.operations.operation = o2, e4.subTableCanAdd = Se(null, null, null, null, null, true, "canAdd"), e4.subTableCanDelete = Se(null, null, null, null, null, true, "canDelete");
109
- }(e3), c(e3, B, $, j);
110
- const t2 = $.customEvents;
107
+ }(e3), c(e3, B, z, N);
108
+ const t2 = z.customEvents;
111
109
  t2 && (e3.eventCallBack = t2), ee.value = true, ge();
112
110
  }
113
111
  function ge() {
114
- $.tableUuids || ($.tableUuids = []), $.tableUuids.indexOf(j.uuid) < 0 && $.tableUuids.push(j.uuid);
112
+ z.tableUuids || (z.tableUuids = []), z.tableUuids.indexOf(N.uuid) < 0 && z.tableUuids.push(N.uuid);
115
113
  }
116
114
  n(() => {
117
- const e3 = j.uuid, t2 = $.subTableWatchProps;
115
+ const e3 = N.uuid, t2 = z.subTableWatchProps;
118
116
  P.$on("_refreshSubTable_" + e3, (n2) => {
119
- console.log("-_refreshSubTable--tableUuid=", e3, "params=", n2);
120
117
  const o2 = n2.propName;
121
118
  if (t2 && t2[e3] && t2[e3].length > 0) {
122
- t2[e3].indexOf(o2) >= 0 && ie();
119
+ t2[e3].indexOf(o2) >= 0 && ae();
123
120
  }
124
- }), P.$on("_refreshSubTableHandle_" + e3, (t3) => {
125
- console.log("-_refreshSubTableHandle_--tableUuid=", e3, "params=", t3), ie();
126
- }), P.$on("_refreshChildData_" + e3, (t3) => {
127
- console.log("-_refreshChildData_--tableUuid=", e3), function(e4) {
128
- Ne(e4), de = setTimeout(() => {
129
- ae.value && (ae.value.refreshChildData(G, e4, j.props && j.props.base && true === j.props.base.subPaging), oe.value.extraParam.entityMap = $.entity.data);
121
+ }), P.$on("_refreshSubTableHandle_" + e3, (e4) => {
122
+ ae();
123
+ }), P.$on("_refreshChildData_" + e3, (e4) => {
124
+ !function(e5) {
125
+ Ve(e5), de = setTimeout(() => {
126
+ ie.value && (ie.value.refreshChildData(G, e5, N.props && N.props.base && true === N.props.base.subPaging), oe.value.extraParam.entityMap = z.entity.data);
130
127
  }, 10);
131
- }(t3);
128
+ }(e4);
132
129
  }), P.$on(G + "-pickFileDone", (e4) => {
133
- console.log("superPage5555---listCode---pickFileDone--listCode=", G, "data=", e4), ae.value.pickFileDone(e4);
130
+ ie.value.pickFileDone(e4);
134
131
  }), P.$on(G + "-scanDone", (e4) => {
135
- console.log("superPage5555---listCode---scanDone--listCode=", G, "data=", e4), ae.value.scanDone(e4);
132
+ ie.value.scanDone(e4);
136
133
  }), oe.value && oe.value.configureObj.props.base && oe.value.configureObj.props.base.isSafeDelete && le("setSafeDeleteTableCode", oe.value.extraParam.tableName);
137
134
  }), o(() => {
138
135
  pe && clearTimeout(pe), de && clearTimeout(de);
139
- const e3 = j.uuid;
136
+ const e3 = N.uuid;
140
137
  P.$off("_refreshSubTable_" + e3), P.$off("_refreshSubTableHandle_" + e3), P.$off("_refreshChildData_" + e3), P.$off(G + "-pickFileDone"), P.$off(G + "-scanDone");
141
138
  });
142
139
  const me = t({});
@@ -144,39 +141,39 @@ const F = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
144
141
  if (!e3) return;
145
142
  return me.value[e3.uuid] = e3, he;
146
143
  }
147
- function he(e3, t2, n2, o2, l2, a2) {
148
- const i2 = { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: l2, button: a2, id: n2.ID ? n2.ID : n2.id }, u2 = me.value[a2.sourceButton.uuid], r2 = j;
149
- u2.props.base.tableUuid = r2.uuid, S(null, $, u2, "click", i2);
144
+ function he(e3, t2, n2, o2, l2, i2) {
145
+ const a2 = { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: l2, button: i2, id: n2.ID ? n2.ID : n2.id }, u2 = me.value[i2.sourceButton.uuid], r2 = N;
146
+ u2.props.base.tableUuid = r2.uuid, S(null, z, u2, "click", a2);
150
147
  }
151
- function Se(e3, t2, n2, o2, l2, a2, i2) {
152
- i2 || (i2 = "canAdd");
153
- if (!w(U.pageContext, j.props.base.showOperationCondition)) return false;
154
- const u2 = $.fieldPermissionMap, r2 = $.actionPermissionMap;
148
+ function Se(e3, t2, n2, o2, l2, i2, a2) {
149
+ a2 || (a2 = "canAdd");
150
+ if (!w(j.pageContext, N.props.base.showOperationCondition)) return false;
151
+ const u2 = z.fieldPermissionMap, r2 = z.actionPermissionMap;
155
152
  let s2 = true;
156
153
  if (u2 && null !== u2) {
157
154
  const e4 = u2.get("all_fields");
158
155
  void 0 === e4 || false !== e4.canEdit || void 0 !== e4.rowIndexes && null !== e4.rowIndexes && 0 !== e4.rowIndexes.length || (s2 = false);
159
156
  }
160
- if (true === s2 && V && r2 && null !== r2) {
161
- let e4 = r2.get(V);
162
- e4 || (e4 = r2.get("all_sub_tables")), e4 && void 0 !== e4[i2] && false === e4[i2] && (s2 = false);
157
+ if (true === s2 && L && r2 && null !== r2) {
158
+ let e4 = r2.get(L);
159
+ e4 || (e4 = r2.get("all_sub_tables")), e4 && void 0 !== e4[a2] && false === e4[a2] && (s2 = false);
163
160
  }
164
161
  return s2;
165
162
  }
166
- function we(e3, t2, n2, o2, l2, a2) {
167
- let i2 = Se(0, 0, 0, 0, 0, 0, "canAdd");
168
- return true === i2 && (i2 = w(U.pageContext, j.props.base.showAddBtnCondition, n2)), i2;
163
+ function we(e3, t2, n2, o2, l2, i2) {
164
+ let a2 = Se(0, 0, 0, 0, 0, 0, "canAdd");
165
+ return true === a2 && (a2 = w(j.pageContext, N.props.base.showAddBtnCondition, n2)), a2;
169
166
  }
170
- function Te(e3, t2, n2, o2, l2, a2) {
171
- const i2 = $.fieldPermissionMap, u2 = $.actionPermissionMap;
167
+ function Te(e3, t2, n2, o2, l2, i2) {
168
+ const a2 = z.fieldPermissionMap, u2 = z.actionPermissionMap;
172
169
  let r2 = true;
173
- if (i2 && null !== i2) {
174
- const e4 = i2.get("all_fields");
170
+ if (a2 && null !== a2) {
171
+ const e4 = a2.get("all_fields");
175
172
  void 0 === e4 || false !== e4.canEdit || void 0 !== e4.rowIndexes && null !== e4.rowIndexes && 0 !== e4.rowIndexes.length || (r2 = false);
176
173
  }
177
- if (true === r2 && V && u2 && null !== u2) {
178
- let e4 = u2.get(V);
179
- 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;
174
+ if (true === r2 && L && u2 && null !== u2) {
175
+ let e4 = u2.get(L);
176
+ 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;
180
177
  else {
181
178
  const t3 = function(e5) {
182
179
  return e5 && e5.id ? e5.id : e5 && e5.ID ? e5.ID : void 0;
@@ -187,96 +184,96 @@ const F = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
187
184
  }
188
185
  return r2;
189
186
  }
190
- function xe(e3, t2, n2, o2, l2, a2) {
191
- let i2 = Te(0, 0, n2, 0, 0, a2);
192
- return true === i2 && (i2 = w(U.pageContext, j.props.base.showDeleteBtnCondition, n2)), i2;
187
+ function xe(e3, t2, n2, o2, l2, i2) {
188
+ let a2 = Te(0, 0, n2, 0, 0, i2);
189
+ return true === a2 && (a2 = w(j.pageContext, N.props.base.showDeleteBtnCondition, n2)), a2;
193
190
  }
194
191
  function Ce(e3, t2, n2, o2, l2) {
195
- ae.value.createRow(G, {}, { getDefaultValueFunc: y }, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: l2 }).then(() => {
192
+ ie.value.createRow(G, {}, { getDefaultValueFunc: y }, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: l2 }).then(() => {
196
193
  Be(l2);
197
194
  });
198
195
  }
199
- function De(e3, t2, n2, o2, l2) {
200
- ae.value.deleteRow(l2, G, false);
196
+ function De(e3, t2, n2, o2, l2, i2, a2, u2) {
197
+ ie.value.deleteRow(l2, G, false, a2, u2);
201
198
  }
202
199
  function ye(e3) {
203
200
  T(X, Y, e3);
204
201
  }
205
202
  function Pe(e3) {
206
- console.log("表单组件--Item--changeRowsPerpage==pageSize=", e3), $.subTablePageInfo || ($.subTablePageInfo = {}), $.subTablePageInfo[V] || ($.subTablePageInfo[V] = {}), $.subTablePageInfo[V].title = j.title ? j.title : j.code, $.subTablePageInfo[V].pageSize = e3;
203
+ z.subTablePageInfo || (z.subTablePageInfo = {}), z.subTablePageInfo[L] || (z.subTablePageInfo[L] = {}), z.subTablePageInfo[L].title = N.title ? N.title : N.code, z.subTablePageInfo[L].pageSize = e3;
207
204
  }
208
205
  function Re(e3) {
209
206
  const t2 = e3.key, n2 = e3.value;
210
- $.selectOptions || ($.selectOptions = {}), $.selectOptions[t2] = n2;
207
+ z.selectOptions || (z.selectOptions = {}), z.selectOptions[t2] = n2;
211
208
  }
212
209
  function Ie(e3) {
213
- const t2 = $.code + "_";
210
+ const t2 = z.code + "_";
214
211
  P.$emit(t2 + "prohibit-edit", e3);
215
212
  }
216
213
  function Oe(e3) {
217
- const t2 = $.entity.data;
214
+ const t2 = z.entity.data;
218
215
  if (e3) for (const n2 in e3) t2[n2] = e3[n2];
219
216
  }
220
217
  function _e(e3, t2) {
221
218
  if (void 0 !== t2) {
222
219
  q.value = e3;
223
- p($, j, { selection: e3, row: t2 });
220
+ p(z, N, { selection: e3, row: t2 });
224
221
  }
225
222
  }
226
223
  function ke(e3) {
227
224
  q.value = e3;
228
- d($, j, { selection: e3 });
225
+ d(z, N, { selection: e3 });
229
226
  }
230
227
  function Ae(e3) {
231
- f($, j, { newSelection: e3 });
228
+ f(z, N, { newSelection: e3 });
232
229
  }
233
230
  function Me(e3, t2, n2, o2) {
234
- b($, j, { row: e3, column: t2, cell: n2, event: o2 });
231
+ b(z, N, { row: e3, column: t2, cell: n2, event: o2 });
235
232
  }
236
233
  function Ee(e3, t2, n2, o2) {
237
- g($, j, { row: e3, column: t2, cell: n2, event: o2 });
234
+ g(z, N, { row: e3, column: t2, cell: n2, event: o2 });
238
235
  }
239
236
  function Fe(e3, t2, n2) {
240
- m($, j, { row: e3, column: t2, event: n2 });
237
+ m(z, N, { row: e3, column: t2, event: n2 });
241
238
  }
242
- function ze(e3, t2, n2) {
243
- v($, j, { row: e3, column: t2, event: n2 });
239
+ function $e(e3, t2, n2) {
240
+ v(z, N, { row: e3, column: t2, event: n2 });
244
241
  }
245
- function Ue(e3, t2) {
246
- h($, j, { column: e3, event: t2 });
242
+ function je(e3, t2) {
243
+ h(z, N, { column: e3, event: t2 });
247
244
  }
248
- function $e(e3) {
249
- $.entity.data = e3;
245
+ function ze(e3) {
246
+ z.entity.data = e3;
250
247
  }
251
- function je() {
248
+ function Ne() {
252
249
  return x(X, Y);
253
250
  }
254
- function Ne(e3) {
251
+ function Ve(e3) {
255
252
  return T(X, Y, e3);
256
253
  }
257
254
  function Ge(e3) {
258
- return A(e3, null, U);
255
+ return A(e3, null, j);
259
256
  }
260
257
  function He(e3) {
261
- return M(e3, e3.cellStyle, U);
258
+ return M(e3, e3.cellStyle, j);
262
259
  }
263
- function Ve(e3) {
264
- const t2 = e3.titleStyle, n2 = U.configure.style.titleStyle;
265
- return E(e3, { cellTitleStyle: t2, titleStyle: n2 }, U);
260
+ function Le(e3) {
261
+ const t2 = e3.titleStyle, n2 = j.configure.style.titleStyle;
262
+ return E(e3, { cellTitleStyle: t2, titleStyle: n2 }, j);
266
263
  }
267
- function Le({ row: e3, editConditions: t2 }) {
264
+ function Ue({ row: e3, editConditions: t2 }) {
268
265
  let n2 = true;
269
- return t2 && t2.length > 0 && (n2 = w(U.pageContext, t2, e3)), n2;
266
+ return t2 && t2.length > 0 && (n2 = w(j.pageContext, t2, e3)), n2;
270
267
  }
271
268
  function Be(e3) {
272
269
  var _a2;
273
- (_a2 = ae.value) == null ? void 0 : _a2.setScrollTopByRowIndex(e3);
270
+ (_a2 = ie.value) == null ? void 0 : _a2.setScrollTopByRowIndex(e3);
274
271
  }
275
272
  return function(e3) {
276
273
  const t2 = re();
277
- t2 ? fe(t2, e3) : (ue(t2, e3), e3.isPageInfo = false, e3.subTableData = je(), be(e3));
274
+ t2 ? fe(t2, e3) : (ue(t2, e3), e3.isPageInfo = false, e3.subTableData = Ne(), be(e3));
278
275
  }(oe.value), F2({ createRow: function() {
279
- return ae.value.createRow(G);
276
+ return ie.value.createRow(G);
280
277
  }, getSelections: function() {
281
278
  return q.value;
282
279
  }, getSelectionIds: function() {
@@ -287,42 +284,42 @@ const F = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
287
284
  }, clearSelections: function() {
288
285
  q.value = [];
289
286
  }, getTableConfigure: function() {
290
- return j;
287
+ return N;
291
288
  }, validatorSunTableListData: function() {
292
- return ae.value.validatorSunTableListData();
293
- }, getValue: je, setValue: Ne, getTableSelectOptions: function() {
294
- if (ae.value) return ae.value.getTableSelectOptions(G);
289
+ return ie.value.validatorSunTableListData();
290
+ }, getValue: Ne, setValue: Ve, getTableSelectOptions: function() {
291
+ if (ie.value) return ie.value.getTableSelectOptions(G);
295
292
  }, dynamicControlTableEdit: function(e3, t2, n2) {
296
- ae.value && ae.value.dynamicControlTableEdit(e3, t2, n2);
293
+ ie.value && ie.value.dynamicControlTableEdit(e3, t2, n2);
297
294
  }, doLayout: function(e3) {
298
- ae.value && ae.value.doLayout(e3);
295
+ ie.value && ie.value.doLayout(e3);
299
296
  }, changeOperationAddState: function(e3) {
300
- ae.value && ae.value.changeOperationAddState(e3);
297
+ ie.value && ie.value.changeOperationAddState(e3);
301
298
  }, scrollTo: function(e3, t2) {
302
- ae.value && ae.value.scrollTo(e3, t2);
299
+ ie.value && ie.value.scrollTo(e3, t2);
303
300
  }, setScrollTop: function(e3) {
304
- ae.value && ae.value.setScrollTop(e3);
301
+ ie.value && ie.value.setScrollTop(e3);
305
302
  }, setScrollLeft: function(e3) {
306
- ae.value && ae.value.setScrollLeft(e3);
303
+ ie.value && ie.value.setScrollLeft(e3);
307
304
  }, getSuperGridRef: function() {
308
- return ae.value;
305
+ return ie.value;
309
306
  }, getSuperGridTableRef: function() {
310
- return ae.value.getSuperGridTableRef();
307
+ return ie.value.getSuperGridTableRef();
311
308
  }, setCurrentRowIndex: function(e3) {
312
309
  var _a2;
313
- (_a2 = ae.value) == null ? void 0 : _a2.setCurrentRowIndex(e3);
310
+ (_a2 = ie.value) == null ? void 0 : _a2.setCurrentRowIndex(e3);
314
311
  }, setScrollTopByRowIndex: Be, getTableData: function() {
315
312
  var _a2;
316
- return (_a2 = ae.value) == null ? void 0 : _a2.getTableData();
313
+ return (_a2 = ie.value) == null ? void 0 : _a2.getTableData();
317
314
  }, addRequiredClass: function(e3, t2, n2) {
318
315
  var _a2;
319
- (_a2 = ae.value) == null ? void 0 : _a2.addRequiredClass(e3, G, t2, n2);
316
+ (_a2 = ie.value) == null ? void 0 : _a2.addRequiredClass(e3, G, t2, n2);
320
317
  }, getColumns: function() {
321
318
  var _a2;
322
- return (_a2 = ae.value) == null ? void 0 : _a2.getColumns();
319
+ return (_a2 = ie.value) == null ? void 0 : _a2.getColumns();
323
320
  } }), (e3, t2) => {
324
321
  const n2 = l("super-grid");
325
- return i(), a("div", null, [ee.value ? (i(), u(n2, { key: 0, ref_key: "gridRef", ref: ae, url: s(Z) + "/dsc/commons/sub-table", options: oe.value, code: s(G), settings: s(K), isDialog: s($).isDialog, onSelect: _e, onSelectAll: ke, onSelectionChange: Ae, onCellClick: Me, onCellDblclick: Ee, onRowClick: Fe, onRowDblclick: ze, onHeaderClick: Ue, onFnProhibitToEdit: Ie, onChangeGridData: ye, onReloadGrid: fe, onRefresMainTableFields: Oe, onSetSelectOptions: Re, onChangeRowsPerPage: Pe, onNewOpenGridDialog: s(R), onChangeFormData: $e }, null, 8, ["url", "options", "code", "settings", "isDialog", "onNewOpenGridDialog"])) : r("", true)]);
322
+ return a(), i("div", null, [ee.value ? (a(), 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), isDialog: s(z).isDialog, onSelect: _e, onSelectAll: ke, onSelectionChange: Ae, onCellClick: Me, onCellDblclick: Ee, onRowClick: Fe, onRowDblclick: $e, onHeaderClick: je, onFnProhibitToEdit: Ie, onChangeGridData: ye, onReloadGrid: fe, onRefresMainTableFields: Oe, onSetSelectOptions: Re, onChangeRowsPerPage: Pe, onNewOpenGridDialog: s(R), onChangeFormData: ze }, null, 8, ["url", "options", "code", "settings", "isDialog", "onNewOpenGridDialog"])) : r("", true)]);
326
323
  };
327
324
  } });
328
325
  export {
@@ -1,4 +1,4 @@
1
- import { defineComponent as e, ref as t, computed as n, onMounted as a, nextTick as l, watch as o, resolveComponent as d, createElementBlock as u, 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 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";
@@ -12,16 +12,16 @@ const P = { key: 0, class: "custom-tree-node" }, W = ["title"], R = { key: 0, cl
12
12
  const $ = t(), A = t(false), X = e2, Y = X.pageContext.entity ? X.pageContext.entity : {}, q = t([]);
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
- const n2 = e3.functionCodes[t2];
16
- if (B(n2, X.pageContext.systemCode)) return void q.value.push(e3);
15
+ const a2 = e3.functionCodes[t2];
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 = n({ get: () => L(Y, F), set(e3) {
21
+ const G = a({ get: () => L(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(), ne = t(Q.props ? Q.props : {}), ae = 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(""), ce = t(""), re = t("");
24
- a(() => {
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
+ n(() => {
25
25
  l(() => {
26
26
  const e3 = G.value;
27
27
  _(e3, X.pageContext, X.configure, { componentRef: te.value, value: e3, entity: X.pageContext.entity.data, pageData: X.pageContext.entity.page });
@@ -32,31 +32,31 @@ const P = { key: 0, class: "custom-tree-node" }, W = ["title"], R = { key: 0, cl
32
32
  ie.value = true, te.value.filter(e3);
33
33
  });
34
34
  const pe = (e3, t2) => !e3 || t2.name.includes(e3);
35
- function ve(e3, t2, n2) {
36
- de.value = t2, j(null, X.pageContext, X.configure, "node-click", { data: e3, node: t2, nodeTree: n2 });
35
+ function ve(e3, t2, 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
- let n2 = "0";
40
- n2 = 0 === e3.level ? "0" : e3.data.nodeId, function(e4, t3, n3) {
41
- const a2 = { parentNodeId: e4, data: t3.data, searchValue: ue, isSearch: ie.value };
42
- M(X.pageContext, X.configure, e4, t3, a2).then((a3) => {
43
- if (ie.value = false, n3(a3), "0" === e4) {
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: ue, isSearch: ie.value };
42
+ M(X.pageContext, X.configure, e4, t3, n2).then((n3) => {
43
+ if (ie.value = false, a3(n3), "0" === e4) {
44
44
  !function(e5, t4) {
45
- const n4 = { parentNodeId: e5, data: t4.data, searchValue: ue, isSearch: ie.value };
46
- M(X.pageContext, X.configure, e5, t4, n4).then((t5) => {
45
+ const a4 = { parentNodeId: e5, data: t4.data, searchValue: ue, isSearch: ie.value };
46
+ M(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
- }(a3[0].nodeId, t3);
49
+ }(n3[0].nodeId, t3);
50
50
  }
51
51
  });
52
- }(n2, e3, t2);
52
+ }(a2, e3, t2);
53
53
  }
54
- const ge = t({}), me = (e3, t2, n2, a2) => {
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 = n2, A.value = true;
56
+ document.removeEventListener("click", he), ge.value = a2, A.value = true;
57
57
  const { clientX: l2, clientY: o2 } = e3, d2 = $.value;
58
58
  if (d2) {
59
- const { innerWidth: e4, innerHeight: t3 } = window, { offsetWidth: n3, offsetHeight: a3 } = d2, u2 = l2 + n3 > e4 ? l2 - n3 : l2, i2 = o2 + a3 > t3 ? o2 - a3 : o2;
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
60
  d2.style.left = `${u2}px`, d2.style.top = `${i2}px`, d2.style.display = "block";
61
61
  }
62
62
  document.addEventListener("click", he);
@@ -64,14 +64,14 @@ const P = { key: 0, class: "custom-tree-node" }, W = ["title"], R = { key: 0, cl
64
64
  A.value = false, document.removeEventListener("click", he);
65
65
  }, ye = (e3, t2) => {
66
66
  if (e3.parent && e3.parent.level > 0) {
67
- const n2 = e3.parent.data.children.findIndex((t3) => t3.nodeId === e3.data.nodeId);
68
- e3.parent.data.children[n2] = t2, e3.data = t2;
67
+ const a2 = e3.parent.data.children.findIndex((t3) => t3.nodeId === e3.data.nodeId);
68
+ e3.parent.data.children[a2] = t2, e3.data = t2;
69
69
  } else {
70
- const n2 = e3.parent.data.findIndex((t3) => t3.nodeId === e3.data.nodeId);
71
- e3.parent.data[n2] = t2, e3.data = t2;
70
+ const a2 = e3.parent.data.findIndex((t3) => t3.nodeId === e3.data.nodeId);
71
+ e3.parent.data[a2] = t2, e3.data = t2;
72
72
  }
73
73
  }, Ce = () => {
74
- se.value = "", re.value = "", ce.value = "";
74
+ se.value = "", ce.value = "", re.value = "";
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(() => {
@@ -79,7 +79,7 @@ const P = { key: 0, class: "custom-tree-node" }, W = ["title"], R = { key: 0, cl
79
79
  z.success("删除成功!"), Ne(), ge.value = null;
80
80
  });
81
81
  }).catch(() => {
82
- ge.value = null, console.log("取消");
82
+ ge.value = null;
83
83
  }) : K(ge.value, X.configure, X.pageContext).then(() => {
84
84
  z.success("删除成功!"), Ne(), ge.value = null;
85
85
  });
@@ -102,31 +102,30 @@ const P = { key: 0, class: "custom-tree-node" }, W = ["title"], R = { key: 0, cl
102
102
  te.value.setCheckedNodes(e3);
103
103
  }, getCheckedKeys: (e3) => te.value.getCheckedKeysleafOnly(), setCheckedKeys: (e3, t2) => {
104
104
  te.value.setCheckedKeys(e3, t2);
105
- }, setChecked: (e3, t2, n2) => {
106
- te.value.setChecked(e3, t2, n2);
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) }), (t2, n2) => {
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) }), (t2, a2) => {
108
108
  var _a2;
109
- const a2 = d("el-input"), l2 = d("el-button"), o2 = d("SuperIcon"), V2 = d("el-tree");
110
- return i(), u("div", { class: s(["amb-tree-runtime-main", c(ee)]) }, [ne.value.filter ? (i(), r(a2, { key: 0, modelValue: ue.value, "onUpdate:modelValue": n2[0] || (n2[0] = (e3) => ue.value = e3), style: { width: "100%" }, placeholder: "请输入查询条件" }, null, 8, ["modelValue"])) : p("", true), le.value ? (i(), r(V2, { key: 1, ref_key: "menuTreeRef", ref: te, style: f(c(Z)), load: fe, data: oe.value, "node-key": "nodeId", props: ae.value, "default-expand-all": ne.value.defaultExpandAll, "expand-on-click-node": ne.value.expandOnClickNode, indent: ne.value.retractWidth ? ne.value.retractWidth : 18, accordion: ne.value.accordion, "show-checkbox": !!ne.value.showCheckbox, "highlight-current": "", lazy: J.value, "filter-node-method": pe, onNodeClick: ve, onNodeContextmenu: me }, { default: g(({ node: t3, data: d2 }) => [d2.nodeId === se.value ? (i(), u("div", P, [m(a2, { modelValue: re.value, "onUpdate:modelValue": n2[1] || (n2[1] = (e3) => re.value = e3), size: "small" }, null, 8, ["modelValue"]), h("div", null, [m(l2, { type: "primary", link: "", onClick: (e3) => ((e4) => {
111
- "" !== re.value ? (e4.data.name = re.value, ce.value && e4.data.nodeId === ce.value ? w(e4, X.configure, X.pageContext).then((t4) => {
109
+ const n2 = d("el-input"), l2 = d("el-button"), o2 = d("SuperIcon"), V2 = d("el-tree");
110
+ return i(), u("div", { class: s(["amb-tree-runtime-main", r(ee)]) }, [ae.value.filter ? (i(), c(n2, { key: 0, modelValue: ue.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e3) => ue.value = e3), style: { width: "100%" }, placeholder: "请输入查询条件" }, null, 8, ["modelValue"])) : p("", true), le.value ? (i(), c(V2, { 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: t3, data: d2 }) => [d2.nodeId === se.value ? (i(), u("div", P, [m(n2, { modelValue: ce.value, "onUpdate:modelValue": a2[1] || (a2[1] = (e3) => ce.value = e3), size: "small" }, null, 8, ["modelValue"]), h("div", null, [m(l2, { type: "primary", link: "", onClick: (e3) => ((e4) => {
111
+ "" !== ce.value ? (e4.data.name = ce.value, re.value && e4.data.nodeId === re.value ? w(e4, X.configure, X.pageContext).then((t4) => {
112
112
  ye(e4, t4.currentNode), Ce(), z.success("保存成功!");
113
113
  }) : E(e4, X.configure, X.pageContext).then((t4) => {
114
- console.log(t4), ye(e4, t4.currentNode), Ce(), z.success("保存成功!");
114
+ ye(e4, t4.currentNode), Ce(), z.success("保存成功!");
115
115
  })) : z.warning("请输入节点名称");
116
- })(t3) }, { default: g(() => [...n2[2] || (n2[2] = [y(" 保存 ", -1)])]), _: 1 }, 8, ["onClick"]), m(l2, { style: { "margin-left": "4px" }, type: "primary", link: "", onClick: (n3) => ((e3) => {
117
- ce.value && e3.data.nodeId === ce.value && te.value.remove(e3), Ce();
118
- })(t3, e2.configure, e2.pageContext) }, { default: g(() => [...n2[3] || (n2[3] = [y(" 撤销 ", -1)])]), _: 1 }, 8, ["onClick"])])])) : (i(), u("span", { key: 1, title: t3.label, class: "ellipsis" }, [d2.iconValue ? (i(), r(o2, { key: 0, iconType: d2.iconType, iconValue: d2.iconValue }, null, 8, ["iconType", "iconValue"])) : ne.value.iconValue ? (i(), r(o2, { key: 1, iconType: ne.value.iconType, iconValue: ne.value.iconValue }, null, 8, ["iconType", "iconValue"])) : (i(), u(C, { key: 2 }, [d2.isLeaf ? (i(), u("div", H, [n2[5] || (n2[5] = h("img", { src: I, class: "file" }, null, -1)), h("span", null, x(d2.name), 1)])) : (i(), u("div", R, [h("div", D, [n2[4] || (n2[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, (e3, t3) => (i(), u("li", { key: t3, tabindex: "-1", class: "menu__item", onClick: (t4) => ((e4) => {
119
- if (ge.value) if ("standard" === e4.type && e4.standardEvent) if ("edit" === e4.standardEvent) se.value = ge.value.data.nodeId, re.value = ge.value.data.name;
116
+ })(t3) }, { default: g(() => [...a2[2] || (a2[2] = [y(" 保存 ", -1)])]), _: 1 }, 8, ["onClick"]), m(l2, { style: { "margin-left": "4px" }, type: "primary", link: "", onClick: (a3) => ((e3) => {
117
+ re.value && e3.data.nodeId === re.value && te.value.remove(e3), Ce();
118
+ })(t3, e2.configure, e2.pageContext) }, { default: g(() => [...a2[3] || (a2[3] = [y(" 撤销 ", -1)])]), _: 1 }, 8, ["onClick"])])])) : (i(), u("span", { key: 1, title: t3.label, class: "ellipsis" }, [d2.iconValue ? (i(), c(o2, { key: 0, iconType: d2.iconType, iconValue: d2.iconValue }, null, 8, ["iconType", "iconValue"])) : ae.value.iconValue ? (i(), c(o2, { 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, [a2[5] || (a2[5] = h("img", { src: I, class: "file" }, null, -1)), h("span", null, x(d2.name), 1)])) : (i(), u("div", R, [h("div", D, [a2[4] || (a2[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, (e3, t3) => (i(), u("li", { key: t3, tabindex: "-1", class: "menu__item", onClick: (t4) => ((e4) => {
119
+ if (ge.value && "standard" === e4.type && e4.standardEvent) if ("edit" === e4.standardEvent) se.value = ge.value.data.nodeId, ce.value = ge.value.data.name;
120
120
  else if ("delete" === e4.standardEvent) ge.value.childNodes && ge.value.childNodes.length > 0 && e4.deleteParentNodeTip ? (e4.deleteParentNodeTipMessage || (e4.deleteParentNodeTipMessage = "当前节点下有子节点,确认删除?"), S.confirm(e4.deleteParentNodeTipMessage, { confirmButtonText: "确定", cancelButtonText: "取消", type: "error" }).then(() => {
121
121
  ke(e4);
122
122
  }).catch(() => {
123
- ge.value = null, console.log("取消");
123
+ ge.value = null;
124
124
  })) : ke(e4);
125
125
  else {
126
126
  const t5 = xe();
127
- se.value = t5.nodeId, ce.value = t5.nodeId, re.value = t5.name, "addSiblingNode" === e4.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" === e4.standardEvent && (t5.isLeaf = true, ge.value.data.isLeaf = false, te.value.append(t5, ge.value), te.value.setCurrentKey(t5.nodeId, true));
127
+ se.value = t5.nodeId, re.value = t5.nodeId, ce.value = t5.name, "addSiblingNode" === e4.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" === e4.standardEvent && (t5.isLeaf = true, ge.value.data.isLeaf = false, te.value.append(t5, ge.value), te.value.setCurrentKey(t5.nodeId, true));
128
128
  }
129
- else console.log("自定义事件", e4);
130
129
  })(e3) }, [h("span", null, x(e3.name), 1)], 8, O))), 128))], 512)], 512), [[N, A.value && ((_a2 = q.value) == null ? void 0 : _a2.length) > 0]])], 2);
131
130
  };
132
131
  } });
@@ -28,7 +28,6 @@ const V = e({ __name: "checkbox-runtime", props: { pageContext: {}, configure: {
28
28
  const L = U.value.monitorFields;
29
29
  C(w.pageContext, L, function() {
30
30
  S(w.pageContext, K, void 0).then((e3) => {
31
- console.log("动态查询结果", e3);
32
31
  });
33
32
  });
34
33
  const N = t(null), Q = t(null), X = t(null);