super-page-runtime 2.3.33 → 2.3.34-sit1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. package/dist/es/components/runtime/utils/api/page-expose-util.js +131 -131
  2. package/dist/es/components/runtime/utils/barcode-util.js +5 -5
  3. package/dist/es/components/runtime/utils/charts/chart-pie-util.js +46 -47
  4. package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +1 -3
  5. package/dist/es/components/runtime/utils/charts/chart-util.js +44 -46
  6. package/dist/es/components/runtime/utils/events/event-util.js +120 -120
  7. package/dist/es/components/runtime/utils/events/print-label.js +25 -27
  8. package/dist/es/components/runtime/utils/events/standard-event.js +726 -738
  9. package/dist/es/components/runtime/utils/events/validator-util.js +2 -2
  10. package/dist/es/components/runtime/utils/form/scan-util.js +3 -4
  11. package/dist/es/components/runtime/utils/page-helper-util.js +219 -219
  12. package/dist/es/components/runtime/utils/page-init-util.js +126 -131
  13. package/dist/es/components/runtime/utils/page-store.js +21 -21
  14. package/dist/es/components/runtime/utils/table-utils.js +4 -4
  15. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +3 -3
  16. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +3 -3
  17. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +3 -3
  18. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +1 -1
  19. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +3 -3
  20. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +10 -14
  21. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +6 -10
  22. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +9 -11
  23. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +1 -1
  24. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +12 -13
  25. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +14 -15
  26. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +14 -15
  27. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +15 -16
  28. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +93 -98
  29. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +68 -69
  30. package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue.js +13 -13
  31. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +23 -27
  32. package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +1 -1
  33. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +3 -3
  34. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +3 -3
  35. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +3 -3
  36. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +1 -3
  37. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +3 -3
  38. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +3 -3
  39. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +5 -5
  40. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +63 -63
  41. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +10 -12
  42. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +20 -22
  43. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +117 -120
  44. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +1 -1
  45. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +45 -46
  46. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +3 -4
  47. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +3 -3
  48. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +28 -28
  49. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +35 -35
  50. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +3 -3
  51. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +3 -3
  52. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +9 -9
  53. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +3 -3
  54. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +59 -60
  55. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +10 -12
  56. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +11 -12
  57. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +3 -4
  58. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +15 -15
  59. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +18 -19
  60. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +1 -1
  61. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +3 -3
  62. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +11 -11
  63. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +3 -3
  64. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +3 -3
  65. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +16 -18
  66. package/dist/es/components/runtime/views/assemblys/page-bottom.vue.js +1 -1
  67. package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +4 -4
  68. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue2.js +1 -1
  69. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.js +1 -1
  70. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +1 -1
  71. package/dist/es/components/runtime/views/home-chart.vue.js +9 -9
  72. package/dist/es/components/runtime/views/super-page-dialog.vue.js +4 -5
  73. package/dist/es/components/runtime/views/super-page.vue.js +1 -1
  74. package/dist/es/components/runtime/views/super-page.vue2.js +185 -186
  75. package/dist/es/i18n/langs/cn.js +1 -1
  76. package/dist/es/i18n/langs/en.js +1 -1
  77. package/dist/es/style.css +76 -76
  78. 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 {
@@ -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