super-page-runtime 2.3.33-sit2 → 2.3.33

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 (76) 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 +47 -46
  4. package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +3 -1
  5. package/dist/es/components/runtime/utils/charts/chart-util.js +46 -44
  6. package/dist/es/components/runtime/utils/events/event-util.js +116 -116
  7. package/dist/es/components/runtime/utils/events/print-label.js +27 -25
  8. package/dist/es/components/runtime/utils/events/standard-event.js +738 -726
  9. package/dist/es/components/runtime/utils/events/validator-util.js +2 -2
  10. package/dist/es/components/runtime/utils/form/scan-util.js +4 -3
  11. package/dist/es/components/runtime/utils/page-helper-util.js +219 -219
  12. package/dist/es/components/runtime/utils/page-init-util.js +130 -125
  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 +14 -10
  21. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +10 -6
  22. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +11 -9
  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 +13 -12
  25. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +15 -14
  26. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +15 -14
  27. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +16 -15
  28. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +98 -93
  29. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +69 -68
  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 +27 -23
  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 +3 -1
  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 +12 -10
  42. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +22 -20
  43. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +119 -116
  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 +46 -45
  46. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +4 -3
  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 +57 -56
  55. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +12 -10
  56. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +12 -11
  57. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +4 -3
  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 +19 -18
  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 +18 -16
  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 +5 -4
  73. package/dist/es/components/runtime/views/super-page.vue2.js +183 -182
  74. package/dist/es/i18n/langs/cn.js +1 -1
  75. package/dist/es/i18n/langs/en.js +1 -1
  76. 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 i, openBlock as a, 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 a, openBlock as i, createBlock as u, createCommentVNode as r, unref as s } from "vue";
2
2
  import { setTableEvents as c, gridSelectRecord as p, gridSelectAllRecords as 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,54 +7,56 @@ 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: $ }) {
10
+ const F = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure: {} }, emits: ["setSafeDeleteTableCode"], setup(e2, { expose: F2, emit: z }) {
11
11
  var _a;
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);
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);
18
20
  Z || (Z = window.$vueApp.config.globalProperties.baseURL);
19
21
  const ee = t(false);
20
22
  let te = t(0);
21
- const ne = (_a = N.props) == null ? void 0 : _a.dataOrigin.principalLinkage, oe = t({}), le = $;
23
+ const ne = (_a = j.props) == null ? void 0 : _a.dataOrigin.principalLinkage, oe = t({}), le = z;
22
24
  oe.value = function() {
23
25
  var _a2, _b, _c, _d;
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 : {};
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 : {};
27
29
  if (t2.treeTable) {
28
30
  let n2;
29
31
  const o2 = t2.rowKey;
30
32
  if (n2 = o2 && o2.indexOf("~~") > 0 ? o2.substring(o2.indexOf("~~") + 2) : o2, e4.parentProp = n2, t2.checkStrictly && (e4.checkStrictly = t2.checkStrictly), e4.parentProp) {
31
33
  const o3 = t2.lazy, l2 = t2.defaultExpandAll;
32
34
  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
+ const a2 = { parentProp: n2, lazy: e4.lazy, defaultExpandAll: e4.defaultExpandAll };
36
+ e4.extraParam.listViewTreeSetting = JSON.stringify(a2), e4.subRowUrl = Z + "/dsc/commons/list-subs";
35
37
  }
36
38
  }
37
39
  }(e3), e3;
38
40
  }();
39
- const ie = t(null);
40
- function ae() {
41
- ie.value && (oe.value.subTableData = null, ie.value.reloadSubTableData(G));
41
+ const ae = t(null);
42
+ function ie() {
43
+ ae.value && (oe.value.subTableData = null, ae.value.reloadSubTableData(G));
42
44
  }
43
45
  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 = 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)) {
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)) {
45
47
  let e4 = t2.hiddenColumns;
46
48
  e4 ? e4.push("operation") : e4 = ["operation"], t2.hiddenColumns = e4;
47
49
  }
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;
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;
51
53
  }
52
54
  function re() {
53
- if (N.props && N.props.otherSettings) {
54
- if (N.props.otherSettings.sourceQueryTableData && N.props.otherSettings.timeToInitializeSubTable && N.props.otherSettings.timeToInitializeSubTable.length > 0) {
55
+ if (j.props && j.props.otherSettings) {
56
+ if (j.props.otherSettings.sourceQueryTableData && j.props.otherSettings.timeToInitializeSubTable && j.props.otherSettings.timeToInitializeSubTable.length > 0) {
55
57
  let e3 = false;
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];
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];
58
60
  (!t2 || t2.length <= 0) && (e3 = true);
59
61
  }
60
62
  return e3;
@@ -63,7 +65,7 @@ const F = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
63
65
  }
64
66
  }
65
67
  function se() {
66
- return z.entity.data;
68
+ return $.entity.data;
67
69
  }
68
70
  function ce() {
69
71
  return x(X, Y);
@@ -77,9 +79,9 @@ const F = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
77
79
  function be(e3) {
78
80
  e3 || (e3 = oe.value), function(e4) {
79
81
  e4 || (e4 = oe.value);
80
- const t3 = z.fieldPermissionMap, n2 = z.actionPermissionMap;
82
+ const t3 = $.fieldPermissionMap, n2 = $.actionPermissionMap;
81
83
  if (t3 && null != t3) {
82
- let n3 = t3.get(L);
84
+ let n3 = t3.get(V);
83
85
  if (!n3) {
84
86
  const e5 = t3.get("all_fields");
85
87
  e5 && (n3 = [e5]);
@@ -87,12 +89,12 @@ const F = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
87
89
  e4.validateRules = n3 || null;
88
90
  }
89
91
  if (n2 && null != n2) {
90
- let t4 = n2.get(L);
92
+ let t4 = n2.get(V);
91
93
  t4 || (t4 = n2.get("all_sub_tables")), e4.actionPermission = t4;
92
94
  }
93
95
  e4.operations || (e4.operations = {});
94
96
  const o2 = function() {
95
- let e5 = [], t4 = w(j.pageContext, N.props.base.showOperationCondition);
97
+ let e5 = [], t4 = w(U.pageContext, j.props.base.showOperationCondition);
96
98
  if (t4 && Se(null, null, null, null, null, true, "canAdd")) {
97
99
  const t5 = { props: { elementType: "el-button", icon: "Plus", type: "primary", circle: true, size: "mini", permission: "true" }, onClick: Ce, isShow: we, isStandard: true };
98
100
  e5.push(t5);
@@ -101,39 +103,40 @@ const F = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
101
103
  const t5 = { props: { elementType: "el-button", icon: "Minus", type: "danger", circle: true, size: "mini", permission: "true" }, onClick: De, isShow: xe, isStandard: true };
102
104
  e5.push(t5);
103
105
  }
104
- return I(z, N, e5, ve), e5;
106
+ return I($, j, e5, ve), e5;
105
107
  }();
106
108
  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, B, z, N);
108
- const t2 = z.customEvents;
109
+ }(e3), c(e3, B, $, j);
110
+ const t2 = $.customEvents;
109
111
  t2 && (e3.eventCallBack = t2), ee.value = true, ge();
110
112
  }
111
113
  function ge() {
112
- z.tableUuids || (z.tableUuids = []), z.tableUuids.indexOf(N.uuid) < 0 && z.tableUuids.push(N.uuid);
114
+ $.tableUuids || ($.tableUuids = []), $.tableUuids.indexOf(j.uuid) < 0 && $.tableUuids.push(j.uuid);
113
115
  }
114
116
  n(() => {
115
- const e3 = N.uuid, t2 = z.subTableWatchProps;
117
+ const e3 = j.uuid, t2 = $.subTableWatchProps;
116
118
  P.$on("_refreshSubTable_" + e3, (n2) => {
119
+ console.log("-_refreshSubTable--tableUuid=", e3, "params=", n2);
117
120
  const o2 = n2.propName;
118
121
  if (t2 && t2[e3] && t2[e3].length > 0) {
119
- t2[e3].indexOf(o2) >= 0 && ae();
122
+ t2[e3].indexOf(o2) >= 0 && ie();
120
123
  }
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);
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);
127
130
  }, 10);
128
- }(e4);
131
+ }(t3);
129
132
  }), P.$on(G + "-pickFileDone", (e4) => {
130
- ie.value.pickFileDone(e4);
133
+ console.log("superPage5555---listCode---pickFileDone--listCode=", G, "data=", e4), ae.value.pickFileDone(e4);
131
134
  }), P.$on(G + "-scanDone", (e4) => {
132
- ie.value.scanDone(e4);
135
+ console.log("superPage5555---listCode---scanDone--listCode=", G, "data=", e4), ae.value.scanDone(e4);
133
136
  }), oe.value && oe.value.configureObj.props.base && oe.value.configureObj.props.base.isSafeDelete && le("setSafeDeleteTableCode", oe.value.extraParam.tableName);
134
137
  }), o(() => {
135
138
  pe && clearTimeout(pe), de && clearTimeout(de);
136
- const e3 = N.uuid;
139
+ const e3 = j.uuid;
137
140
  P.$off("_refreshSubTable_" + e3), P.$off("_refreshSubTableHandle_" + e3), P.$off("_refreshChildData_" + e3), P.$off(G + "-pickFileDone"), P.$off(G + "-scanDone");
138
141
  });
139
142
  const me = t({});
@@ -141,39 +144,39 @@ const F = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
141
144
  if (!e3) return;
142
145
  return me.value[e3.uuid] = e3, he;
143
146
  }
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);
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);
147
150
  }
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;
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;
152
155
  let s2 = true;
153
156
  if (u2 && null !== u2) {
154
157
  const e4 = u2.get("all_fields");
155
158
  void 0 === e4 || false !== e4.canEdit || void 0 !== e4.rowIndexes && null !== e4.rowIndexes && 0 !== e4.rowIndexes.length || (s2 = false);
156
159
  }
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);
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);
160
163
  }
161
164
  return s2;
162
165
  }
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;
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;
166
169
  }
167
- function Te(e3, t2, n2, o2, l2, i2) {
168
- const a2 = z.fieldPermissionMap, u2 = z.actionPermissionMap;
170
+ function Te(e3, t2, n2, o2, l2, a2) {
171
+ const i2 = $.fieldPermissionMap, u2 = $.actionPermissionMap;
169
172
  let r2 = true;
170
- if (a2 && null !== a2) {
171
- const e4 = a2.get("all_fields");
173
+ if (i2 && null !== i2) {
174
+ const e4 = i2.get("all_fields");
172
175
  void 0 === e4 || false !== e4.canEdit || void 0 !== e4.rowIndexes && null !== e4.rowIndexes && 0 !== e4.rowIndexes.length || (r2 = false);
173
176
  }
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;
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;
177
180
  else {
178
181
  const t3 = function(e5) {
179
182
  return e5 && e5.id ? e5.id : e5 && e5.ID ? e5.ID : void 0;
@@ -184,96 +187,96 @@ const F = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
184
187
  }
185
188
  return r2;
186
189
  }
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;
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;
190
193
  }
191
194
  function Ce(e3, t2, n2, o2, l2) {
192
- ie.value.createRow(G, {}, { getDefaultValueFunc: y }, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: l2 }).then(() => {
195
+ ae.value.createRow(G, {}, { getDefaultValueFunc: y }, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: l2 }).then(() => {
193
196
  Be(l2);
194
197
  });
195
198
  }
196
199
  function De(e3, t2, n2, o2, l2) {
197
- ie.value.deleteRow(l2, G, false);
200
+ ae.value.deleteRow(l2, G, false);
198
201
  }
199
202
  function ye(e3) {
200
203
  T(X, Y, e3);
201
204
  }
202
205
  function Pe(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;
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;
204
207
  }
205
208
  function Re(e3) {
206
209
  const t2 = e3.key, n2 = e3.value;
207
- z.selectOptions || (z.selectOptions = {}), z.selectOptions[t2] = n2;
210
+ $.selectOptions || ($.selectOptions = {}), $.selectOptions[t2] = n2;
208
211
  }
209
212
  function Ie(e3) {
210
- const t2 = z.code + "_";
213
+ const t2 = $.code + "_";
211
214
  P.$emit(t2 + "prohibit-edit", e3);
212
215
  }
213
216
  function Oe(e3) {
214
- const t2 = z.entity.data;
217
+ const t2 = $.entity.data;
215
218
  if (e3) for (const n2 in e3) t2[n2] = e3[n2];
216
219
  }
217
220
  function _e(e3, t2) {
218
221
  if (void 0 !== t2) {
219
222
  q.value = e3;
220
- p(z, N, { selection: e3, row: t2 });
223
+ p($, j, { selection: e3, row: t2 });
221
224
  }
222
225
  }
223
226
  function ke(e3) {
224
227
  q.value = e3;
225
- d(z, N, { selection: e3 });
228
+ d($, j, { selection: e3 });
226
229
  }
227
230
  function Ae(e3) {
228
- f(z, N, { newSelection: e3 });
231
+ f($, j, { newSelection: e3 });
229
232
  }
230
233
  function Me(e3, t2, n2, o2) {
231
- b(z, N, { row: e3, column: t2, cell: n2, event: o2 });
234
+ b($, j, { row: e3, column: t2, cell: n2, event: o2 });
232
235
  }
233
236
  function Ee(e3, t2, n2, o2) {
234
- g(z, N, { row: e3, column: t2, cell: n2, event: o2 });
237
+ g($, j, { row: e3, column: t2, cell: n2, event: o2 });
235
238
  }
236
239
  function Fe(e3, t2, n2) {
237
- m(z, N, { row: e3, column: t2, event: n2 });
240
+ m($, j, { row: e3, column: t2, event: n2 });
238
241
  }
239
- function $e(e3, t2, n2) {
240
- v(z, N, { row: e3, column: t2, event: n2 });
242
+ function ze(e3, t2, n2) {
243
+ v($, j, { row: e3, column: t2, event: n2 });
241
244
  }
242
- function je(e3, t2) {
243
- h(z, N, { column: e3, event: t2 });
245
+ function Ue(e3, t2) {
246
+ h($, j, { column: e3, event: t2 });
244
247
  }
245
- function ze(e3) {
246
- z.entity.data = e3;
248
+ function $e(e3) {
249
+ $.entity.data = e3;
247
250
  }
248
- function Ne() {
251
+ function je() {
249
252
  return x(X, Y);
250
253
  }
251
- function Ve(e3) {
254
+ function Ne(e3) {
252
255
  return T(X, Y, e3);
253
256
  }
254
257
  function Ge(e3) {
255
- return A(e3, null, j);
258
+ return A(e3, null, U);
256
259
  }
257
260
  function He(e3) {
258
- return M(e3, e3.cellStyle, j);
261
+ return M(e3, e3.cellStyle, U);
259
262
  }
260
- function Le(e3) {
261
- const t2 = e3.titleStyle, n2 = j.configure.style.titleStyle;
262
- return E(e3, { cellTitleStyle: t2, titleStyle: n2 }, j);
263
+ function Ve(e3) {
264
+ const t2 = e3.titleStyle, n2 = U.configure.style.titleStyle;
265
+ return E(e3, { cellTitleStyle: t2, titleStyle: n2 }, U);
263
266
  }
264
- function Ue({ row: e3, editConditions: t2 }) {
267
+ function Le({ row: e3, editConditions: t2 }) {
265
268
  let n2 = true;
266
- return t2 && t2.length > 0 && (n2 = w(j.pageContext, t2, e3)), n2;
269
+ return t2 && t2.length > 0 && (n2 = w(U.pageContext, t2, e3)), n2;
267
270
  }
268
271
  function Be(e3) {
269
272
  var _a2;
270
- (_a2 = ie.value) == null ? void 0 : _a2.setScrollTopByRowIndex(e3);
273
+ (_a2 = ae.value) == null ? void 0 : _a2.setScrollTopByRowIndex(e3);
271
274
  }
272
275
  return function(e3) {
273
276
  const t2 = re();
274
- t2 ? fe(t2, e3) : (ue(t2, e3), e3.isPageInfo = false, e3.subTableData = Ne(), be(e3));
277
+ t2 ? fe(t2, e3) : (ue(t2, e3), e3.isPageInfo = false, e3.subTableData = je(), be(e3));
275
278
  }(oe.value), F2({ createRow: function() {
276
- return ie.value.createRow(G);
279
+ return ae.value.createRow(G);
277
280
  }, getSelections: function() {
278
281
  return q.value;
279
282
  }, getSelectionIds: function() {
@@ -284,42 +287,42 @@ const F = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
284
287
  }, clearSelections: function() {
285
288
  q.value = [];
286
289
  }, getTableConfigure: function() {
287
- return N;
290
+ return j;
288
291
  }, validatorSunTableListData: function() {
289
- return ie.value.validatorSunTableListData();
290
- }, getValue: Ne, setValue: Ve, getTableSelectOptions: function() {
291
- if (ie.value) return ie.value.getTableSelectOptions(G);
292
+ return ae.value.validatorSunTableListData();
293
+ }, getValue: je, setValue: Ne, getTableSelectOptions: function() {
294
+ if (ae.value) return ae.value.getTableSelectOptions(G);
292
295
  }, dynamicControlTableEdit: function(e3, t2, n2) {
293
- ie.value && ie.value.dynamicControlTableEdit(e3, t2, n2);
296
+ ae.value && ae.value.dynamicControlTableEdit(e3, t2, n2);
294
297
  }, doLayout: function(e3) {
295
- ie.value && ie.value.doLayout(e3);
298
+ ae.value && ae.value.doLayout(e3);
296
299
  }, changeOperationAddState: function(e3) {
297
- ie.value && ie.value.changeOperationAddState(e3);
300
+ ae.value && ae.value.changeOperationAddState(e3);
298
301
  }, scrollTo: function(e3, t2) {
299
- ie.value && ie.value.scrollTo(e3, t2);
302
+ ae.value && ae.value.scrollTo(e3, t2);
300
303
  }, setScrollTop: function(e3) {
301
- ie.value && ie.value.setScrollTop(e3);
304
+ ae.value && ae.value.setScrollTop(e3);
302
305
  }, setScrollLeft: function(e3) {
303
- ie.value && ie.value.setScrollLeft(e3);
306
+ ae.value && ae.value.setScrollLeft(e3);
304
307
  }, getSuperGridRef: function() {
305
- return ie.value;
308
+ return ae.value;
306
309
  }, getSuperGridTableRef: function() {
307
- return ie.value.getSuperGridTableRef();
310
+ return ae.value.getSuperGridTableRef();
308
311
  }, setCurrentRowIndex: function(e3) {
309
312
  var _a2;
310
- (_a2 = ie.value) == null ? void 0 : _a2.setCurrentRowIndex(e3);
313
+ (_a2 = ae.value) == null ? void 0 : _a2.setCurrentRowIndex(e3);
311
314
  }, setScrollTopByRowIndex: Be, getTableData: function() {
312
315
  var _a2;
313
- return (_a2 = ie.value) == null ? void 0 : _a2.getTableData();
316
+ return (_a2 = ae.value) == null ? void 0 : _a2.getTableData();
314
317
  }, addRequiredClass: function(e3, t2, n2) {
315
318
  var _a2;
316
- (_a2 = ie.value) == null ? void 0 : _a2.addRequiredClass(e3, G, t2, n2);
319
+ (_a2 = ae.value) == null ? void 0 : _a2.addRequiredClass(e3, G, t2, n2);
317
320
  }, getColumns: function() {
318
321
  var _a2;
319
- return (_a2 = ie.value) == null ? void 0 : _a2.getColumns();
322
+ return (_a2 = ae.value) == null ? void 0 : _a2.getColumns();
320
323
  } }), (e3, t2) => {
321
324
  const n2 = l("super-grid");
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)]);
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)]);
323
326
  };
324
327
  } });
325
328
  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
- } }), (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"]))]));
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"]))]));
82
82
  } });
83
83
  export {
84
84
  f as default