super-page-runtime 2.2.23 → 2.2.29-tmp1

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