super-page-runtime 2.3.19 → 2.3.20-sit2

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