super-page-runtime 2.3.4 → 2.3.5-rc1

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 (56) hide show
  1. package/dist/es/components/runtime/utils/api/page-expose-util.js +60 -52
  2. package/dist/es/components/runtime/utils/barcode-util.js +5 -5
  3. package/dist/es/components/runtime/utils/charts/chart-pie-util.js +45 -46
  4. package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +14 -16
  5. package/dist/es/components/runtime/utils/charts/chart-util.js +24 -26
  6. package/dist/es/components/runtime/utils/common-util.d.ts +1 -1
  7. package/dist/es/components/runtime/utils/common-util.js +62 -47
  8. package/dist/es/components/runtime/utils/events/event-util.js +116 -116
  9. package/dist/es/components/runtime/utils/events/print-label.js +0 -1
  10. package/dist/es/components/runtime/utils/events/standard-event.js +465 -475
  11. package/dist/es/components/runtime/utils/events/validator-util.js +23 -23
  12. package/dist/es/components/runtime/utils/form/scan-util.js +3 -4
  13. package/dist/es/components/runtime/utils/page-helper-util.js +275 -275
  14. package/dist/es/components/runtime/utils/page-init-util.d.ts +1 -1
  15. package/dist/es/components/runtime/utils/page-init-util.js +51 -43
  16. package/dist/es/components/runtime/utils/page-store.js +10 -10
  17. package/dist/es/components/runtime/utils/table-utils.d.ts +14 -0
  18. package/dist/es/components/runtime/utils/table-utils.js +62 -37
  19. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +12 -16
  20. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +3 -3
  21. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +6 -6
  22. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +20 -20
  23. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +14 -15
  24. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +11 -12
  25. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +17 -18
  26. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +18 -19
  27. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.d.ts +8 -1
  28. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +3 -3
  29. package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +6 -6
  30. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +20 -20
  31. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +8 -4
  32. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +23 -23
  33. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +1 -1
  34. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +63 -63
  35. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +35 -37
  36. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +116 -119
  37. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +24 -15
  38. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.js +1 -1
  39. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +69 -70
  40. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +0 -1
  41. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +35 -34
  42. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +17 -17
  43. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +30 -27
  44. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +6 -6
  45. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +10 -10
  46. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +0 -1
  47. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +8 -8
  48. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +2 -2
  49. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +63 -61
  50. package/dist/es/components/runtime/views/home-chart.vue.js +4 -4
  51. package/dist/es/components/runtime/views/super-page-dialog.vue.js +6 -6
  52. package/dist/es/components/runtime/views/super-page.vue.d.ts +2 -2
  53. package/dist/es/components/runtime/views/super-page.vue.js +1 -1
  54. package/dist/es/components/runtime/views/super-page.vue2.js +138 -140
  55. package/dist/es/style.css +82 -82
  56. package/package.json +2 -2
@@ -1,52 +1,50 @@
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 a, createElementBlock as l, openBlock as i, createBlock as u, createCommentVNode as r, unref as s } from "vue";
2
+ import { setTableEvents as c, gridSelectRecord as p, gridSelectAllRecords as f, gridSelectionChange as d, cellClick as v, cellDblClick as b, rowClick as g, rowDblClick as m, headerClick as h, getHandleEvent as S } from "../../../../utils/events/event-util.js";
3
3
  import { caculateShowCondition as w, setVariableValue as T, getVariableValue as x, getSizeConfig as 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
- import { popupToPage as R, getOperationButtons as I } from "../../../../utils/table-utils.js";
7
- import { getListCode as _, getBaseUrl as O } from "../../../../utils/common-util.js";
6
+ import { popupToPage as I, getOperationButtons as R } from "../../../../utils/table-utils.js";
7
+ import { getListCode as O, getBaseUrl as _ } from "../../../../utils/common-util.js";
8
8
  import { getAdditionalParamMap as k } from "../../../../utils/events/standard-event.js";
9
9
  import { getRowStyleUtil as M, getCellStyleUtil as F, getHeaderCellStyleUtil as $ } from "../../chart/table/chart-table-util.js";
10
10
  const j = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure: {} }, emits: ["setSafeDeleteTableCode"], setup(e2, { expose: j2, emit: A }) {
11
- const L = e2, U = L.pageContext;
12
- let B = L.configure;
13
- const G = L.configure.runtime ? L.configure.runtime : {};
14
- U.isTest ? G.value = L.configure.runtime ? L.configure.runtime : {} : U.tableRuntimes && U.tableRuntimes[B.uuid] && (B = JSON.parse(U.tableRuntimes[B.uuid].configure), G.value = B.runtime ? B.runtime : {});
15
- const H = _(U.code, U.version, B.uuid), N = U.entity.data, E = B.code ? B.code : H, V = k(U), z = G && G.events ? G.events : [], J = t([]), q = U.superGridItems, K = q ? q[B.uuid] : null;
16
- console.log("superGridSetting===", q, K);
17
- const Q = G.style, W = G.class, X = L.pageContext.entity ? L.pageContext.entity : {};
18
- let Y = D(L.configure, E), Z = O(U.backendUrl, U.isTest);
11
+ const L = e2, B = L.pageContext;
12
+ let N = L.configure;
13
+ const E = L.configure.runtime ? L.configure.runtime : {};
14
+ B.isTest ? E.value = L.configure.runtime ? L.configure.runtime : {} : B.tableRuntimes && B.tableRuntimes[N.uuid] && (N = JSON.parse(B.tableRuntimes[N.uuid].configure), E.value = N.runtime ? N.runtime : {});
15
+ const G = O(B.code, B.version, N.uuid), H = B.entity.data, V = N.code ? N.code : G, U = k(B), z = E && E.events ? E.events : [], J = t([]), q = B.superGridItems, K = q ? q[N.uuid] : null, Q = E.style, W = E.class, X = L.pageContext.entity ? L.pageContext.entity : {};
16
+ let Y = D(L.configure, V), Z = _(B.backendUrl, B.isTest);
19
17
  Z || (Z = window.$vueApp.config.globalProperties.baseURL);
20
18
  const ee = t(false);
21
19
  let te = t(0);
22
- const ne = B.props.dataOrigin.principalLinkage, oe = t({ isSql: true, subTableData: null, rowKeyProp: ne, extraParam: {}, operations: {}, hiddenColumns: [], pageCode: U.code, pageVersion: U.version, pageContext: U, 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) {
20
+ const ne = N.props.dataOrigin.principalLinkage, oe = t({ isSql: true, subTableData: null, rowKeyProp: ne, extraParam: {}, operations: {}, hiddenColumns: [], pageCode: B.code, pageVersion: B.version, pageContext: B, configureObj: N, showPageArea: false, showRowForm: false, showOverflowTooltip: !(!N.props || !N.props.otherSettings || void 0 !== N.props.otherSettings.isBreakLine && false !== N.props.otherSettings.isBreakLine), backendUrl: Z, cellStyleRender: function(e3) {
23
21
  return F(e3, e3.cellStyle, L);
24
22
  }, rowStyleRender: function(e3) {
25
23
  return M(e3, null, L);
26
24
  }, titleStyleRender: function(e3) {
27
25
  const t2 = e3.titleStyle, n2 = L.configure.style.titleStyle;
28
26
  return $(e3, { cellTitleStyle: t2, titleStyle: n2 }, L);
29
- } }), le = A;
30
- 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);
31
- const ae = t(null);
27
+ } }), ae = A;
28
+ Q && (oe.value.tableStyle = Q), W && (oe.value.tableClass = W), N.props && N.props.base && true === N.props.base.subPaging ? oe.value.showPageArea = true : oe.value.showPageArea = false, N.props.base.showRowForm && (oe.value.showRowForm = N.props.base.showRowForm);
29
+ const le = t(null);
32
30
  function ie() {
33
- ae.value && (oe.value.subTableData = null, ae.value.reloadSubTableData(H));
31
+ le.value && (oe.value.subTableData = null, le.value.reloadSubTableData(G));
34
32
  }
35
33
  function ue(e3) {
36
- 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 = H, oe.value.extraParam.beanName = U.beanName, oe.value.extraParam.subtableSetting = B.props && B.props.otherSettings ? JSON.stringify(B.props.otherSettings) : null, oe.value.extraParam.additionalParamMap = V, oe.value.extraParam.entityMap = U.entity.data, oe.value.extraParam.contextMap = U.entity.context, oe.value.extraParam.taskMap = U.entity.task, !(B.props && B.props.base && B.props.base.showOperation)) {
34
+ if (void 0 === e3 && (e3 = re()), oe.value.isPageInfo = false, oe.value.isFormSubTable = true, oe.value.canRrefreshSubtableData = e3, oe.value.getFormData = se, oe.value.getGridData = ce, oe.value.extraParam.subTableListViewCode = G, oe.value.extraParam.beanName = B.beanName, oe.value.extraParam.subtableSetting = N.props && N.props.otherSettings ? JSON.stringify(N.props.otherSettings) : null, oe.value.extraParam.additionalParamMap = U, oe.value.extraParam.entityMap = B.entity.data, oe.value.extraParam.contextMap = B.entity.context, oe.value.extraParam.taskMap = B.entity.task, !(N.props && N.props.base && N.props.base.showOperation)) {
37
35
  let e4 = oe.value.hiddenColumns;
38
36
  e4 ? e4.push("operation") : e4 = ["operation"], oe.value.hiddenColumns = e4;
39
37
  }
40
- 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;
41
- let t2 = C(U, B);
42
- t2 && t2.fixHeight && (oe.value.formSetHeight = t2.fixHeight), t2 && t2.maxHeight && (oe.value.formSetMaxHeight = t2.maxHeight), oe.value.validateEitConditions = He;
38
+ oe.value.showOperationButton = !(!N.props || !N.props.base) && N.props.base.showOperation, oe.value.isPdfEditor = false, oe.value.tableRecordMaxNum = N.props && N.props.otherSettings ? N.props.otherSettings.tableRecordMaxNum : null;
39
+ let t2 = C(B, N);
40
+ t2 && t2.fixHeight && (oe.value.formSetHeight = t2.fixHeight), t2 && t2.maxHeight && (oe.value.formSetMaxHeight = t2.maxHeight), oe.value.validateEitConditions = Ge;
43
41
  }
44
42
  function re() {
45
- if (B.props && B.props.otherSettings) {
46
- if (B.props.otherSettings.sourceQueryTableData && B.props.otherSettings.timeToInitializeSubTable && B.props.otherSettings.timeToInitializeSubTable.length > 0) {
43
+ if (N.props && N.props.otherSettings) {
44
+ if (N.props.otherSettings.sourceQueryTableData && N.props.otherSettings.timeToInitializeSubTable && N.props.otherSettings.timeToInitializeSubTable.length > 0) {
47
45
  let e3 = false;
48
- if (-1 !== B.props.otherSettings.timeToInitializeSubTable.indexOf("create") && (e3 = !N.id && !N.ID), -1 !== B.props.otherSettings.timeToInitializeSubTable.indexOf("noData")) {
49
- const t2 = N[E];
46
+ if (-1 !== N.props.otherSettings.timeToInitializeSubTable.indexOf("create") && (e3 = !H.id && !H.ID), -1 !== N.props.otherSettings.timeToInitializeSubTable.indexOf("noData")) {
47
+ const t2 = H[V];
50
48
  (!t2 || t2.length <= 0) && (e3 = true);
51
49
  }
52
50
  return e3;
@@ -55,22 +53,22 @@ const j = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
55
53
  }
56
54
  }
57
55
  function se() {
58
- return U.entity.data;
56
+ return B.entity.data;
59
57
  }
60
58
  function ce() {
61
59
  return x(X, Y);
62
60
  }
63
- let pe, de;
64
- function fe(e3) {
65
- ue(e3), oe.value.subTableData = null, be(), ee.value = false, pe = setTimeout(() => {
66
- ee.value = true, te.value = te.value + 1, ve();
61
+ let pe, fe;
62
+ function de(e3) {
63
+ ue(e3), oe.value.subTableData = null, ve(), ee.value = false, pe = setTimeout(() => {
64
+ ee.value = true, te.value = te.value + 1, be();
67
65
  }, 10);
68
66
  }
69
- function be() {
67
+ function ve() {
70
68
  !function() {
71
- const e4 = U.fieldPermissionMap, t2 = U.actionPermissionMap;
69
+ const e4 = B.fieldPermissionMap, t2 = B.actionPermissionMap;
72
70
  if (e4 && null != e4) {
73
- let t3 = e4.get(E);
71
+ let t3 = e4.get(V);
74
72
  if (!t3) {
75
73
  const n3 = e4.get("all_fields");
76
74
  n3 && (t3 = [n3]);
@@ -78,12 +76,12 @@ const j = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
78
76
  oe.value.validateRules = t3 || null;
79
77
  }
80
78
  if (t2 && null != t2) {
81
- let e5 = t2.get(E);
79
+ let e5 = t2.get(V);
82
80
  e5 || (e5 = t2.get("all_sub_tables")), oe.value.actionPermission = e5;
83
81
  }
84
82
  oe.value.operations || (oe.value.operations = {});
85
83
  const n2 = function() {
86
- let e5 = [], t3 = w(L.pageContext, B.props.base.showOperationCondition);
84
+ let e5 = [], t3 = w(L.pageContext, N.props.base.showOperationCondition);
87
85
  if (t3 && Se()) {
88
86
  const t4 = { props: { elementType: "el-button", icon: "Plus", type: "primary", circle: true, size: "mini", permission: "true" }, onClick: Ce, isShow: we };
89
87
  e5.push(t4);
@@ -92,79 +90,78 @@ const j = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
92
90
  const t4 = { props: { elementType: "el-button", icon: "Minus", type: "danger", circle: true, size: "mini", permission: "true" }, onClick: De, isShow: xe };
93
91
  e5.push(t4);
94
92
  }
95
- return I(U, B, e5, me), e5;
93
+ return R(B, N, e5, me), e5;
96
94
  }();
97
95
  oe.value.operations.operation = n2, oe.value.subTableCanAdd = Se();
98
- }(), c(oe.value, z, U, B);
99
- const e3 = U.customEvents;
100
- e3 && (oe.value.eventCallBack = e3), ee.value = true, ve();
96
+ }(), c(oe.value, z, B, N);
97
+ const e3 = B.customEvents;
98
+ e3 && (oe.value.eventCallBack = e3), ee.value = true, be();
101
99
  }
102
- function ve() {
103
- U.tableUuids || (U.tableUuids = []), U.tableUuids.indexOf(B.uuid) < 0 && U.tableUuids.push(B.uuid);
100
+ function be() {
101
+ B.tableUuids || (B.tableUuids = []), B.tableUuids.indexOf(N.uuid) < 0 && B.tableUuids.push(N.uuid);
104
102
  }
105
103
  n(() => {
106
- const e3 = B.uuid, t2 = U.subTableWatchProps;
104
+ const e3 = N.uuid, t2 = B.subTableWatchProps;
107
105
  P.$on("_refreshSubTable_" + e3, (n2) => {
108
- console.log("-_refreshSubTable--tableUuid=", e3, "params=", n2);
109
106
  const o2 = n2.propName;
110
107
  if (t2 && t2[e3] && t2[e3].length > 0) {
111
108
  t2[e3].indexOf(o2) >= 0 && ie();
112
109
  }
113
- }), P.$on("_refreshSubTableHandle_" + e3, (t3) => {
114
- console.log("-_refreshSubTableHandle_--tableUuid=", e3, "params=", t3), ie();
115
- }), P.$on("_refreshChildData_" + e3, (t3) => {
116
- console.log("-_refreshChildData_--tableUuid=", e3), function(e4) {
117
- Ge(e4), de = setTimeout(() => {
118
- ae.value && (ae.value.refreshChildData(H, e4, B.props && B.props.base && true === B.props.base.subPaging), oe.value.extraParam.entityMap = U.entity.data);
110
+ }), P.$on("_refreshSubTableHandle_" + e3, (e4) => {
111
+ ie();
112
+ }), P.$on("_refreshChildData_" + e3, (e4) => {
113
+ !function(e5) {
114
+ Ee(e5), fe = setTimeout(() => {
115
+ le.value && (le.value.refreshChildData(G, e5, N.props && N.props.base && true === N.props.base.subPaging), oe.value.extraParam.entityMap = B.entity.data);
119
116
  }, 10);
120
- }(t3);
121
- }), P.$on(H + "-pickFileDone", (e4) => {
122
- console.log("superPage5555---listCode---pickFileDone--listCode=", H, "data=", e4), ae.value.pickFileDone(e4);
123
- }), P.$on(H + "-scanDone", (e4) => {
124
- console.log("superPage5555---listCode---scanDone--listCode=", H, "data=", e4), ae.value.scanDone(e4);
125
- }), oe.value && oe.value.configureObj.props.base && oe.value.configureObj.props.base.isSafeDelete && le("setSafeDeleteTableCode", oe.value.extraParam.tableName);
117
+ }(e4);
118
+ }), P.$on(G + "-pickFileDone", (e4) => {
119
+ le.value.pickFileDone(e4);
120
+ }), P.$on(G + "-scanDone", (e4) => {
121
+ le.value.scanDone(e4);
122
+ }), oe.value && oe.value.configureObj.props.base && oe.value.configureObj.props.base.isSafeDelete && ae("setSafeDeleteTableCode", oe.value.extraParam.tableName);
126
123
  }), o(() => {
127
- pe && clearTimeout(pe), de && clearTimeout(de);
128
- const e3 = B.uuid;
129
- P.$off("_refreshSubTable_" + e3), P.$off("_refreshSubTableHandle_" + e3), P.$off("_refreshChildData_" + e3), P.$off(H + "-pickFileDone"), P.$off(H + "-scanDone");
124
+ pe && clearTimeout(pe), fe && clearTimeout(fe);
125
+ const e3 = N.uuid;
126
+ P.$off("_refreshSubTable_" + e3), P.$off("_refreshSubTableHandle_" + e3), P.$off("_refreshChildData_" + e3), P.$off(G + "-pickFileDone"), P.$off(G + "-scanDone");
130
127
  });
131
128
  const ge = t({});
132
129
  function me(e3) {
133
130
  if (!e3) return;
134
131
  return ge.value[e3.uuid] = e3, he;
135
132
  }
136
- function he(e3, t2, n2, o2, l2, a2) {
137
- 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;
138
- u2.props.base.tableUuid = r2.uuid, S(null, U, u2, "click", i2);
133
+ function he(e3, t2, n2, o2, a2, l2) {
134
+ const i2 = { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: a2, button: l2, id: n2.ID ? n2.ID : n2.id }, u2 = ge.value[l2.sourceButton.uuid], r2 = N;
135
+ u2.props.base.tableUuid = r2.uuid, S(null, B, u2, "click", i2);
139
136
  }
140
- function Se(e3, t2, n2, o2, l2, a2) {
141
- if (!w(L.pageContext, B.props.base.showOperationCondition)) return false;
142
- const i2 = U.fieldPermissionMap, u2 = U.actionPermissionMap;
137
+ function Se(e3, t2, n2, o2, a2, l2) {
138
+ if (!w(L.pageContext, N.props.base.showOperationCondition)) return false;
139
+ const i2 = B.fieldPermissionMap, u2 = B.actionPermissionMap;
143
140
  let r2 = true;
144
141
  if (i2 && null !== i2) {
145
142
  const e4 = i2.get("all_fields");
146
143
  void 0 === e4 || false !== e4.canEdit || void 0 !== e4.rowIndexes && null !== e4.rowIndexes && 0 !== e4.rowIndexes.length || (r2 = false);
147
144
  }
148
- if (true === r2 && E && u2 && null !== u2) {
149
- let e4 = u2.get(E);
145
+ if (true === r2 && V && u2 && null !== u2) {
146
+ let e4 = u2.get(V);
150
147
  e4 || (e4 = u2.get("all_sub_tables")), e4 && void 0 !== e4.canAdd && false === e4.canAdd && (r2 = false);
151
148
  }
152
149
  return r2;
153
150
  }
154
- function we(e3, t2, n2, o2, l2, a2) {
151
+ function we(e3, t2, n2, o2, a2, l2) {
155
152
  let i2 = Se();
156
- return true === i2 && (i2 = w(L.pageContext, B.props.base.showAddBtnCondition, n2)), i2;
153
+ return true === i2 && (i2 = w(L.pageContext, N.props.base.showAddBtnCondition, n2)), i2;
157
154
  }
158
- function Te(e3, t2, n2, o2, l2, a2) {
159
- const i2 = U.fieldPermissionMap, u2 = U.actionPermissionMap;
155
+ function Te(e3, t2, n2, o2, a2, l2) {
156
+ const i2 = B.fieldPermissionMap, u2 = B.actionPermissionMap;
160
157
  let r2 = true;
161
158
  if (i2 && null !== i2) {
162
159
  const e4 = i2.get("all_fields");
163
160
  void 0 === e4 || false !== e4.canEdit || void 0 !== e4.rowIndexes && null !== e4.rowIndexes && 0 !== e4.rowIndexes.length || (r2 = false);
164
161
  }
165
- if (true === r2 && E && u2 && null !== u2) {
166
- let e4 = u2.get(E);
167
- 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;
162
+ if (true === r2 && V && u2 && null !== u2) {
163
+ let e4 = u2.get(V);
164
+ if (e4 || (e4 = u2.get("all_sub_tables")), e4 && void 0 !== e4.canDelete && false === e4.canDelete && (r2 = false), e4 && void 0 !== e4.canDelete && true === e4.canDelete && e4.deleteRowIndexes) if (e4.deleteRowIndexes.length > 0) if (l2) r2 = true;
168
165
  else {
169
166
  const t3 = function(e5) {
170
167
  return e5 && e5.id ? e5.id : e5 && e5.ID ? e5.ID : void 0;
@@ -175,80 +172,80 @@ const j = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
175
172
  }
176
173
  return r2;
177
174
  }
178
- function xe(e3, t2, n2, o2, l2, a2) {
179
- let i2 = Te(0, 0, n2, 0, 0, a2);
180
- return true === i2 && (i2 = w(L.pageContext, B.props.base.showDeleteBtnCondition, n2)), i2;
175
+ function xe(e3, t2, n2, o2, a2, l2) {
176
+ let i2 = Te(0, 0, n2, 0, 0, l2);
177
+ return true === i2 && (i2 = w(L.pageContext, N.props.base.showDeleteBtnCondition, n2)), i2;
181
178
  }
182
- function Ce(e3, t2, n2, o2, l2) {
183
- ae.value.createRow(H, {}, { getDefaultValueFunc: y }, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: l2 });
179
+ function Ce(e3, t2, n2, o2, a2) {
180
+ le.value.createRow(G, {}, { getDefaultValueFunc: y }, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: a2 });
184
181
  }
185
- function De(e3, t2, n2, o2, l2) {
186
- ae.value.deleteRow(l2, H, false);
182
+ function De(e3, t2, n2, o2, a2) {
183
+ le.value.deleteRow(a2, G, false);
187
184
  }
188
185
  function ye(e3) {
189
186
  T(X, Y, e3);
190
187
  }
191
188
  function Pe(e3) {
192
- console.log("表单组件--Item--changeRowsPerpage==pageSize=", e3), U.subTablePageInfo || (U.subTablePageInfo = {}), U.subTablePageInfo[E] = { pageSize: e3 };
189
+ B.subTablePageInfo || (B.subTablePageInfo = {}), B.subTablePageInfo[V] || (B.subTablePageInfo[V] = {}), B.subTablePageInfo[V].pageSize = e3;
193
190
  }
194
- function Re(e3) {
191
+ function Ie(e3) {
195
192
  const t2 = e3.key, n2 = e3.value;
196
- U.selectOptions || (U.selectOptions = {}), U.selectOptions[t2] = n2;
193
+ B.selectOptions || (B.selectOptions = {}), B.selectOptions[t2] = n2;
197
194
  }
198
- function Ie(e3) {
199
- const t2 = U.code + "_";
195
+ function Re(e3) {
196
+ const t2 = B.code + "_";
200
197
  P.$emit(t2 + "prohibit-edit", e3);
201
198
  }
202
- function _e(e3) {
203
- const t2 = U.entity.data;
199
+ function Oe(e3) {
200
+ const t2 = B.entity.data;
204
201
  if (e3) for (const n2 in e3) t2[n2] = e3[n2];
205
202
  }
206
- function Oe(e3, t2) {
203
+ function _e(e3, t2) {
207
204
  if (void 0 !== t2) {
208
205
  J.value = e3;
209
- p(U, B, { selection: e3, row: t2 });
206
+ p(B, N, { selection: e3, row: t2 });
210
207
  }
211
208
  }
212
209
  function ke(e3) {
213
210
  J.value = e3;
214
- d(U, B, { selection: e3 });
211
+ f(B, N, { selection: e3 });
215
212
  }
216
213
  function Me(e3) {
217
- f(U, B, { newSelection: e3 });
214
+ d(B, N, { newSelection: e3 });
218
215
  }
219
216
  function Fe(e3, t2, n2, o2) {
220
- b(U, B, { row: e3, column: t2, cell: n2, event: o2 });
217
+ v(B, N, { row: e3, column: t2, cell: n2, event: o2 });
221
218
  }
222
219
  function $e(e3, t2, n2, o2) {
223
- v(U, B, { row: e3, column: t2, cell: n2, event: o2 });
220
+ b(B, N, { row: e3, column: t2, cell: n2, event: o2 });
224
221
  }
225
222
  function je(e3, t2, n2) {
226
- g(U, B, { row: e3, column: t2, event: n2 });
223
+ g(B, N, { row: e3, column: t2, event: n2 });
227
224
  }
228
225
  function Ae(e3, t2, n2) {
229
- m(U, B, { row: e3, column: t2, event: n2 });
226
+ m(B, N, { row: e3, column: t2, event: n2 });
230
227
  }
231
228
  function Le(e3, t2) {
232
- h(U, B, { column: e3, event: t2 });
229
+ h(B, N, { column: e3, event: t2 });
233
230
  }
234
- function Ue(e3) {
235
- U.entity.data = e3;
231
+ function Be(e3) {
232
+ B.entity.data = e3;
236
233
  }
237
- function Be() {
234
+ function Ne() {
238
235
  return x(X, Y);
239
236
  }
240
- function Ge(e3) {
237
+ function Ee(e3) {
241
238
  return T(X, Y, e3);
242
239
  }
243
- function He({ row: e3, editConditions: t2 }) {
240
+ function Ge({ row: e3, editConditions: t2 }) {
244
241
  let n2 = true;
245
242
  return t2 && t2.length > 0 && (n2 = w(L.pageContext, t2, e3)), n2;
246
243
  }
247
244
  return function() {
248
245
  const e3 = re();
249
- e3 ? fe(e3) : (ue(e3), oe.value.isPageInfo = false, oe.value.subTableData = Be(), be());
246
+ e3 ? de(e3) : (ue(e3), oe.value.isPageInfo = false, oe.value.subTableData = Ne(), ve());
250
247
  }(), j2({ createRow: function() {
251
- return ae.value.createRow(H);
248
+ return le.value.createRow(G);
252
249
  }, getSelections: function() {
253
250
  return J.value;
254
251
  }, getSelectionIds: function() {
@@ -259,36 +256,36 @@ const j = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
259
256
  }, clearSelections: function() {
260
257
  J.value = [];
261
258
  }, getTableConfigure: function() {
262
- return B;
259
+ return N;
263
260
  }, validatorSunTableListData: function() {
264
- return ae.value.validatorSunTableListData();
265
- }, getValue: Be, setValue: Ge, getTableSelectOptions: function() {
266
- if (ae.value) return ae.value.getTableSelectOptions(H);
261
+ return le.value.validatorSunTableListData();
262
+ }, getValue: Ne, setValue: Ee, getTableSelectOptions: function() {
263
+ if (le.value) return le.value.getTableSelectOptions(G);
267
264
  }, dynamicControlTableEdit: function(e3, t2, n2) {
268
- ae.value && ae.value.dynamicControlTableEdit(e3, t2, n2);
265
+ le.value && le.value.dynamicControlTableEdit(e3, t2, n2);
269
266
  }, doLayout: function(e3) {
270
- ae.value && ae.value.doLayout(e3);
267
+ le.value && le.value.doLayout(e3);
271
268
  }, changeOperationAddState: function(e3) {
272
- ae.value && ae.value.changeOperationAddState(e3);
269
+ le.value && le.value.changeOperationAddState(e3);
273
270
  }, scrollTo: function(e3, t2) {
274
- ae.value && ae.value.scrollTo(e3, t2);
271
+ le.value && le.value.scrollTo(e3, t2);
275
272
  }, setScrollTop: function(e3) {
276
- ae.value && ae.value.setScrollTop(e3);
273
+ le.value && le.value.setScrollTop(e3);
277
274
  }, setScrollLeft: function(e3) {
278
- ae.value && ae.value.setScrollLeft(e3);
275
+ le.value && le.value.setScrollLeft(e3);
279
276
  }, getSuperGridRef: function() {
280
- return ae.value;
277
+ return le.value;
281
278
  }, getSuperGridTableRef: function() {
282
- return ae.value.getSuperGridRef();
279
+ return le.value.getSuperGridRef();
283
280
  }, setCurrentRowIndex: function(e3) {
284
281
  var _a;
285
- (_a = ae.value) == null ? void 0 : _a.setCurrentRowIndex(e3);
282
+ (_a = le.value) == null ? void 0 : _a.setCurrentRowIndex(e3);
286
283
  }, setScrollTopByRowIndex: function(e3) {
287
284
  var _a;
288
- (_a = ae.value) == null ? void 0 : _a.setScrollTopByRowIndex(e3);
285
+ (_a = le.value) == null ? void 0 : _a.setScrollTopByRowIndex(e3);
289
286
  } }), (e3, t2) => {
290
- const n2 = l("super-grid");
291
- 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(H), settings: s(K), onSelect: Oe, onSelectAll: ke, onSelectionChange: Me, onCellClick: Fe, onCellDblclick: $e, onRowClick: je, onRowDblclick: Ae, onHeaderClick: Le, onFnProhibitToEdit: Ie, onChangeGridData: ye, onReloadGrid: fe, onRefresMainTableFields: _e, onSetSelectOptions: Re, onChangeRowsPerPage: Pe, onNewOpenGridDialog: s(R), onChangeFormData: Ue }, null, 8, ["url", "options", "code", "settings", "onNewOpenGridDialog"])) : r("", true)]);
287
+ const n2 = a("super-grid");
288
+ return i(), l("div", null, [ee.value ? (i(), u(n2, { key: 0, ref_key: "gridRef", ref: le, url: s(Z) + "/dsc/commons/sub-table", options: oe.value, code: s(G), settings: s(K), onSelect: _e, onSelectAll: ke, onSelectionChange: Me, onCellClick: Fe, onCellDblclick: $e, onRowClick: je, onRowDblclick: Ae, onHeaderClick: Le, onFnProhibitToEdit: Re, onChangeGridData: ye, onReloadGrid: de, onRefresMainTableFields: Oe, onSetSelectOptions: Ie, onChangeRowsPerPage: Pe, onNewOpenGridDialog: s(I), onChangeFormData: Be }, null, 8, ["url", "options", "code", "settings", "onNewOpenGridDialog"])) : r("", true)]);
292
289
  };
293
290
  } });
294
291
  export {
@@ -1,4 +1,4 @@
1
- import { defineComponent as e, ref as t, createElementBlock as n, openBlock as u, createBlock as o, unref as l } from "vue";
1
+ import { defineComponent as e, ref as t, createElementBlock as u, openBlock as i, createBlock as n, unref as l } from "vue";
2
2
  import "agilebuilder-ui";
3
3
  import "agilebuilder-ui/src/utils/request";
4
4
  import "dayjs";
@@ -6,19 +6,28 @@ import "agilebuilder-ui/src/utils/calculator/calculator-util";
6
6
  import "../../../../utils/global-refs.js";
7
7
  import "agilebuilder-ui/src/utils/common-util";
8
8
  import "agilebuilder-ui/src/utils/util";
9
- import r from "./sub-table-runtime.vue.js";
10
- import i from "./main-table-runtime.vue.js";
9
+ import "element-plus";
10
+ import "agilebuilder-ui/src/utils/auth";
11
+ import "../../../../utils/eventBus.js";
12
+ import "axios";
13
+ import "async-validator";
14
+ import "../../../../utils/page-store.js";
15
+ import "agilebuilder-ui/src/utils/i18n-util";
16
+ import "vue-i18n";
17
+ import "../../../../utils/events/print-label.js";
18
+ import o from "./sub-table-runtime.vue.js";
19
+ import r from "./main-table-runtime.vue.js";
11
20
  const a = e({ __name: "table-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: a2 }) {
12
- const c = e2, f = c.pageContext.pageType, s = t(null), g = c.configure.uuid, p = c.pageContext.superGridItems, d = p ? p[g] : null;
13
- s.value = d ? d.configure ? JSON.parse(d.configure) : null : c.configure;
14
- const S = c.configure.runtime ? c.configure.runtime : {};
15
- S.style, S.class;
21
+ const c = e2, s = c.pageContext.pageType, f = t(null), p = c.configure.uuid, g = c.pageContext.superGridItems, d = g ? g[p] : null;
22
+ f.value = d ? d.configure ? JSON.parse(d.configure) : null : c.configure;
23
+ const m = c.configure.runtime ? c.configure.runtime : {};
24
+ m.style, m.class;
16
25
  const v = t(null);
17
- function m(e3) {
26
+ function S(e3) {
18
27
  c.pageContext.entity.data._SAFE_DELETE_TABLE_NAMES ? c.pageContext.entity.data._SAFE_DELETE_TABLE_NAMES.push(e3) : c.pageContext.entity.data._SAFE_DELETE_TABLE_NAMES = [e3];
19
28
  }
20
- return a2({ refresh: function(e3, t2, n2, u2) {
21
- if (f && "list" === f) return v.value.refresh(e3, t2, n2, u2);
29
+ return a2({ refresh: function(e3, t2, u2, i2) {
30
+ if (s && "list" === s) return v.value.refresh(e3, t2, u2, i2);
22
31
  }, createRow: function() {
23
32
  return v.value.createRow();
24
33
  }, clearSelections: function() {
@@ -30,15 +39,15 @@ const a = e({ __name: "table-runtime", props: { pageContext: {}, configure: {} }
30
39
  }, getTableConfigure: function() {
31
40
  return v.value.getTableConfigure();
32
41
  }, isDeleteChange: function(e3) {
33
- f && "list" === f && v.value.isDeleteChange(e3);
42
+ s && "list" === s && v.value.isDeleteChange(e3);
34
43
  }, validatorSunTableListData: function() {
35
- if (f && "form" === f) return v.value.validatorSunTableListData();
44
+ if (s && "form" === s) return v.value.validatorSunTableListData();
36
45
  }, showMobileSearch: function() {
37
46
  v.value.showMobileSearch();
38
47
  }, getTableSelectOptions: function() {
39
48
  if (v.value) return v.value.getTableSelectOptions();
40
- }, dynamicControlTableEdit: function(e3, t2, n2) {
41
- v.value && v.value.dynamicControlTableEdit(e3, t2, n2);
49
+ }, dynamicControlTableEdit: function(e3, t2, u2) {
50
+ v.value && v.value.dynamicControlTableEdit(e3, t2, u2);
42
51
  }, getTableUuid: function() {
43
52
  return c.configure.uuid;
44
53
  }, doLayout: function(e3) {
@@ -66,7 +75,7 @@ const a = e({ __name: "table-runtime", props: { pageContext: {}, configure: {} }
66
75
  }, setScrollTopByRowIndex: function(e3) {
67
76
  var _a;
68
77
  (_a = v.value) == null ? void 0 : _a.setScrollTopByRowIndex(e3);
69
- } }), (e3, t2) => (u(), n("div", null, [l(f) && "form" === l(f) ? (u(), o(r, { key: 0, ref_key: "gridRef", ref: v, pageContext: e3.pageContext, configure: s.value, onSetSafeDeleteTableCode: m }, null, 8, ["pageContext", "configure"])) : (u(), o(i, { key: 1, ref_key: "gridRef", ref: v, pageContext: e3.pageContext, configure: s.value, onSetSafeDeleteTableCode: m }, null, 8, ["pageContext", "configure"]))]));
78
+ } }), (e3, t2) => (i(), u("div", null, [l(s) && "form" === l(s) ? (i(), n(o, { key: 0, ref_key: "gridRef", ref: v, pageContext: e3.pageContext, configure: f.value, onSetSafeDeleteTableCode: S }, null, 8, ["pageContext", "configure"])) : (i(), n(r, { key: 1, ref_key: "gridRef", ref: v, pageContext: e3.pageContext, configure: f.value, onSetSafeDeleteTableCode: S }, null, 8, ["pageContext", "configure"]))]));
70
79
  } });
71
80
  export {
72
81
  a as default
@@ -1,7 +1,7 @@
1
1
  import e from "./tree-runtime.vue2.js";
2
2
  /* empty css */
3
3
  import r from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const t = r(e, [["__scopeId", "data-v-4b43ab6c"]]);
4
+ const t = r(e, [["__scopeId", "data-v-89330064"]]);
5
5
  export {
6
6
  t as default
7
7
  };