agilebuilder-ui 1.1.65-tmp23 → 1.1.65-tmp24

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 (80) hide show
  1. package/dist/index.full.min.js +462 -281
  2. package/dist/style.css +181 -175
  3. package/es/chat-embed/src/chat-sender.vue.mjs +1 -1
  4. package/es/chat-embed/src/chat-sender.vue2.mjs +26 -28
  5. package/es/chat-embed/src/index.vue.mjs +1 -1
  6. package/es/chat-embed/src/index.vue2.mjs +29 -29
  7. package/es/department-tree-mobile/src/department-tree-inline-app.vue.mjs +68 -68
  8. package/es/department-tree-mobile/src/department-tree-service.mjs +20 -18
  9. package/es/department-tree-mobile/src/dept-result.vue.mjs +12 -11
  10. package/es/department-user-tree-inline/src/department-user-single-tree-inline.vue.mjs +3 -3
  11. package/es/department-user-tree-inline/src/department-user-tree-inline.vue.mjs +6 -6
  12. package/es/department-user-tree-inline/src/department-user-tree-single-service.mjs +1 -1
  13. package/es/fs-preview/src/fs-preview.vue.mjs +26 -18
  14. package/es/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue.mjs +1 -1
  15. package/es/fs-upload-new/src/file-upload-mobile/file-upload-input.vue.mjs +1 -1
  16. package/es/index.mjs +2 -1
  17. package/es/src/components/Card/index.mjs +34 -31
  18. package/es/src/components/Scrollbar/index.vue.mjs +6 -6
  19. package/es/src/i18n/langs/cn.mjs +1 -1
  20. package/es/src/i18n/langs/en.mjs +1 -1
  21. package/es/src/utils/common-util.mjs +47 -39
  22. package/es/style.css +738 -732
  23. package/es/super-grid/src/apis.mjs +199 -173
  24. package/es/super-grid/src/components/mobile-table-card.mjs +53 -53
  25. package/es/super-grid/src/normal-column-content.vue.mjs +12 -12
  26. package/es/super-grid/src/normal-column.vue.mjs +4 -5
  27. package/es/super-grid/src/search-button.vue.mjs +4 -2
  28. package/es/super-grid/src/search-form-dialog.vue.mjs +22 -11
  29. package/es/super-grid/src/search-form-item.vue.mjs +5 -5
  30. package/es/super-grid/src/search-form-mobile.vue.mjs +19 -19
  31. package/es/super-grid/src/search-form-open.vue.mjs +5 -3
  32. package/es/super-grid/src/search-form-ordinarySearch.vue.mjs +3 -1
  33. package/es/super-grid/src/search-form.vue.mjs +19 -13
  34. package/es/super-grid/src/super-grid.vue.mjs +271 -209
  35. package/es/super-grid/src/utils.mjs +346 -300
  36. package/es/utils/organization.mjs +24 -11
  37. package/lib/chat-embed/src/chat-sender.vue.cjs +1 -1
  38. package/lib/chat-embed/src/chat-sender.vue2.cjs +44 -46
  39. package/lib/chat-embed/src/index.vue.cjs +1 -1
  40. package/lib/chat-embed/src/index.vue2.cjs +14 -14
  41. package/lib/department-tree-mobile/src/department-tree-inline-app.vue.cjs +58 -58
  42. package/lib/department-tree-mobile/src/department-tree-service.cjs +10 -8
  43. package/lib/department-tree-mobile/src/dept-result.vue.cjs +10 -10
  44. package/lib/department-user-tree-inline/src/department-user-single-tree-inline.vue.cjs +16 -16
  45. package/lib/department-user-tree-inline/src/department-user-tree-inline.vue.cjs +5 -5
  46. package/lib/department-user-tree-inline/src/department-user-tree-single-service.cjs +1 -1
  47. package/lib/fs-preview/src/fs-preview.vue.cjs +13 -5
  48. package/lib/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue.cjs +1 -1
  49. package/lib/fs-upload-new/src/file-upload-mobile/file-upload-input.vue.cjs +13 -13
  50. package/lib/index.cjs +7 -7
  51. package/lib/src/components/Card/index.cjs +14 -11
  52. package/lib/src/components/Scrollbar/index.vue.cjs +2 -2
  53. package/lib/src/i18n/langs/cn.cjs +1 -1
  54. package/lib/src/i18n/langs/en.cjs +1 -1
  55. package/lib/src/utils/common-util.cjs +24 -17
  56. package/lib/style.css +665 -659
  57. package/lib/super-grid/src/apis.cjs +190 -164
  58. package/lib/super-grid/src/components/mobile-table-card.cjs +37 -37
  59. package/lib/super-grid/src/normal-column-content.vue.cjs +2 -2
  60. package/lib/super-grid/src/normal-column.vue.cjs +10 -11
  61. package/lib/super-grid/src/search-button.vue.cjs +3 -1
  62. package/lib/super-grid/src/search-form-dialog.vue.cjs +19 -8
  63. package/lib/super-grid/src/search-form-item.vue.cjs +2 -2
  64. package/lib/super-grid/src/search-form-mobile.vue.cjs +7 -7
  65. package/lib/super-grid/src/search-form-open.vue.cjs +7 -5
  66. package/lib/super-grid/src/search-form-ordinarySearch.vue.cjs +3 -1
  67. package/lib/super-grid/src/search-form.vue.cjs +15 -10
  68. package/lib/super-grid/src/super-grid.vue.cjs +220 -158
  69. package/lib/super-grid/src/utils.cjs +349 -274
  70. package/lib/utils/organization.cjs +35 -24
  71. package/package.json +1 -1
  72. package/src/components/Card/index.jsx +12 -2
  73. package/src/components/Scrollbar/index.vue +165 -154
  74. package/src/i18n/langs/cn.js +10 -2
  75. package/src/i18n/langs/en.js +10 -2
  76. package/src/styles/index.scss +9 -2
  77. package/src/styles/theme/default.scss +18 -13
  78. package/src/styles/theme/tiffany-blue-mobile/home.scss +44 -1
  79. package/src/utils/auth-api.js +1 -0
  80. package/src/utils/common-util.js +13 -0
@@ -11,26 +11,26 @@ import d from "./row-detail.vue.mjs";
11
11
  import c from "./components/mobile-table-card.mjs";
12
12
  import { setEntityFieldValue as p, getEntityFieldValueWithOutCase as u } from "../../src/utils/util.mjs";
13
13
  import g from "./eventBus.mjs";
14
- import { getSpanValuesForColumn as m, getRowIndexPage as b, getGridParams as f, isHasOptionFunction as C, getTableHeight as S, isEditOptionFunction as D, isHasEditOption as w, isObjectValueEqual as y, getControlConfig as P, getExtraParam as T, getFirstEditableColumn as v, addDynamicProp as x, isCanRefreshGrid as O, rowBeforeValidate as F, parseSubTableActionCondition as E } from "./utils.mjs";
15
- import $ from "sortablejs";
16
- import k from "./store.mjs";
17
- import M from "./events.mjs";
18
- import R from "./public-methods.mjs";
19
- import G from "./super-grid-service.mjs";
20
- import I from "./formValidatorUtil.mjs";
21
- import j from "./apis.mjs";
22
- import L from "./header-context-menu.vue.mjs";
23
- import { isMobileBrowser as H, isPromise as z } from "../../src/utils/common-util.mjs";
24
- import A from "../../src/utils/permission.mjs";
25
- import { getGuId as N } from "../../src/utils/guid.mjs";
26
- import q from "../../src/store/index.mjs";
27
- import { setPageInfoToChatStore as V, addListRefToStore as _ } from "../../src/utils/chat-ai-util.mjs";
28
- import B from "./search-methods.mjs";
29
- import { doFormat as J } from "./formatter.mjs";
30
- import { resolveComponent as U, resolveDirective as W, withDirectives as K, openBlock as Q, createElementBlock as X, normalizeStyle as Y, createBlock as Z, vShow as ee, createCommentVNode as te, createElementVNode as ie, normalizeClass as oe, withCtx as ae, Fragment as se, renderList as re, resolveDynamicComponent as ne, mergeProps as le, toHandlers as he, createVNode as de } from "vue";
14
+ import { getSpanValuesForColumn as m, getRowIndexPage as b, getGridParams as f, isHasOptionFunction as S, getHeaderLable as C, getTableHeight as w, isEditOptionFunction as D, isHasEditOption as y, isObjectValueEqual as T, getControlConfig as P, getExtraParam as v, getFirstEditableColumn as x, addDynamicProp as F, caculateSearchCondition as O, isCanRefreshGrid as $, rowBeforeValidate as E, parseSubTableActionCondition as M } from "./utils.mjs";
15
+ import k from "sortablejs";
16
+ import R from "./store.mjs";
17
+ import G from "./events.mjs";
18
+ import I from "./public-methods.mjs";
19
+ import L from "./super-grid-service.mjs";
20
+ import j from "./formValidatorUtil.mjs";
21
+ import H from "./apis.mjs";
22
+ import z from "./header-context-menu.vue.mjs";
23
+ import { isMobileBrowser as A, isPromise as N } from "../../src/utils/common-util.mjs";
24
+ import q from "../../src/utils/permission.mjs";
25
+ import { getGuId as _ } from "../../src/utils/guid.mjs";
26
+ import V from "../../src/store/index.mjs";
27
+ import { setPageInfoToChatStore as U, addListRefToStore as B } from "../../src/utils/chat-ai-util.mjs";
28
+ import J from "./search-methods.mjs";
29
+ import { doFormat as W } from "./formatter.mjs";
30
+ import { resolveComponent as K, resolveDirective as Q, withDirectives as X, openBlock as Y, createElementBlock as Z, normalizeStyle as ee, createBlock as te, vShow as ie, createCommentVNode as oe, createElementVNode as ae, withCtx as se, createTextVNode as re, toDisplayString as ne, createVNode as le, Fragment as he, renderList as de, normalizeClass as ce, resolveDynamicComponent as pe, mergeProps as ue, toHandlers as ge } from "vue";
31
31
  import "./super-grid.vue2.mjs";
32
- import ce from "../../_virtual/_plugin-vue_export-helper.mjs";
33
- const pe = { components: { IndexColumn: o, SelectionColumn: a, NormalColumn: s, GroupColumn: r, ColumnsConfig: n, SearchForm: l, headerContextMenu: L, searchFormDialog: h, ElIconSetting: e, ElIconRefresh: t, RowDetail: d, MobileCard: c }, name: "SuperGrid", props: { isShowAutoCard: { type: Boolean, default: true }, code: { type: String, default: "" }, url: { type: String, default: "" }, options: { type: Object, default: function() {
32
+ import me from "../../_virtual/_plugin-vue_export-helper.mjs";
33
+ const be = { components: { IndexColumn: o, SelectionColumn: a, NormalColumn: s, GroupColumn: r, ColumnsConfig: n, SearchForm: l, headerContextMenu: z, searchFormDialog: h, ElIconSetting: e, ElIconRefresh: t, RowDetail: d, MobileCard: c }, name: "SuperGrid", props: { isShowAutoCard: { type: Boolean, default: true }, code: { type: String, default: "" }, url: { type: String, default: "" }, options: { type: Object, default: function() {
34
34
  return {};
35
35
  } }, publishVersion: { type: Number, default: 0 }, customFormatter: { type: Object, default: null }, searchFormInfo: { type: Object, default: () => ({}) }, showPagination: { type: Boolean, default: true }, listToolbarFormData: { type: Object, default: null }, settings: { type: Object, default: null }, additionalParamMap: { type: Object, default: null }, manualHeightOffset: { type: [void 0, Number], default: void 0 }, isDialog: { type: Boolean, default: false } }, data() {
36
36
  let e2;
@@ -46,9 +46,9 @@ const pe = { components: { IndexColumn: o, SelectionColumn: a, NormalColumn: s,
46
46
  window.$vueApp.config.globalProperties.dataSourceType && (l2 = window.$vueApp.config.globalProperties.dataSourceType.toLowerCase());
47
47
  let h2, d2, c2, p2, u2 = this.options.pageDevMode;
48
48
  void 0 === u2 && (u2 = false), this.options && this.options.tableStyle && (h2 = this.options.tableStyle), h2 || (h2 = {}), h2.width = "100%", this.options && this.options.tableClass && (d2 = this.options.tableClass), d2 || (d2 = ""), d2 += " elTable", this.options && this.options.configureObj && (c2 = this.options.configureObj), this.options && this.options.pageContext && (p2 = this.options.pageContext);
49
- const g2 = H();
49
+ const g2 = A();
50
50
  let m2 = false;
51
- return this.options.checkStrictly && (m2 = true), { isLoading: false, currentPage: 1, showColumnConfig: false, basicInfo: { summary: "no" }, columns: [], loadCompleteQuery: false, pagination: null, query: null, lineEdit: null, gridData: [], summaries: null, sortInfo: null, pageSize: null, showSearch: false, myCustomFormatter: null, height: null, timer: null, timer2: null, isSql: false, parentProp: e2, checkStrictly: m2, hasLoadData: false, mergeFields: s2, newWidth: null, dragColumnProp: null, hasLoadedColumns: false, backgroundColorMap: {}, showHeaderContextmenu: false, rightClickColumn: null, externalClickFlag: false, dataTableCode: null, dynamicColumnInfo: null, mainDefaultValueColumns: null, dynamicServiceName: null, searchFormContent: null, initSearchProps: [], refreshGrid: true, optionTableHeight: i2, isFormSubTable: false, isShowPageDialog: false, jumpPageSetting: null, pageCode: o2, maxHeight: void 0, tableHeight: void 0, pageHeight: a2, currentSelectCell: null, isLazy: r2, defaultExpandAll: n2, parentFormData: null, stripe: true, dataSourceType: l2, pageDevMode: u2, toolbarFieldParam: [], tableName: null, listName: null, subTableData: [], isShowPage: false, isSubTableShowPage: false, isDelete: false, tableStyle: h2, tableClass: d2, pageContext: p2, configureObj: c2, isMobile: g2, isShowMobileSearch: false, subTableStyle: {}, detailColumn: null, currentEditRowIndex: null, showRowForm: false, baseURL: null, hasFilterDataEvent: false, selectionTableData: [], isScrollbarOnTop: false };
51
+ return this.options.checkStrictly && (m2 = true), { isLoading: false, currentPage: 1, showColumnConfig: false, basicInfo: { summary: "no" }, columns: [], loadCompleteQuery: false, pagination: null, query: null, lineEdit: null, gridData: [], summaries: null, sortInfo: null, pageSize: null, showSearch: false, myCustomFormatter: null, height: null, timer: null, timer2: null, isSql: false, parentProp: e2, checkStrictly: m2, hasLoadData: false, mergeFields: s2, newWidth: null, dragColumnProp: null, hasLoadedColumns: false, backgroundColorMap: {}, showHeaderContextmenu: false, rightClickColumn: null, externalClickFlag: false, dataTableCode: null, dynamicColumnInfo: null, mainDefaultValueColumns: null, dynamicServiceName: null, searchFormContent: null, initSearchProps: [], refreshGrid: true, optionTableHeight: i2, isFormSubTable: false, isShowPageDialog: false, jumpPageSetting: null, pageCode: o2, maxHeight: void 0, tableHeight: void 0, pageHeight: a2, currentSelectCell: null, isLazy: r2, defaultExpandAll: n2, parentFormData: null, stripe: true, dataSourceType: l2, pageDevMode: u2, toolbarFieldParam: [], tableName: null, listName: null, subTableData: [], isShowPage: false, isSubTableShowPage: false, isDelete: false, tableStyle: h2, tableClass: d2, pageContext: p2, configureObj: c2, isMobile: g2, isShowMobileSearch: false, subTableStyle: {}, detailColumn: null, currentEditRowIndex: null, showRowForm: false, baseURL: null, hasFilterDataEvent: false, selectionTableData: [], isScrollbarOnTop: false, showSubTableSearchDialog: false, subTableDataSearch: [], isSubSearch: false, isHasSearchColumn: false, orderField: null, orderType: "ascending", orderColumns: [], orderColumn: null, columnsMap: null };
52
52
  }, computed: { heightOffset() {
53
53
  var _a, _b, _c, _d, _e;
54
54
  return Number(this.manualHeightOffset ?? ((_e = (_d = (_c = (_b = (_a = this.options) == null ? void 0 : _a.configureObj) == null ? void 0 : _b.props) == null ? void 0 : _c.size) == null ? void 0 : _d.pc) == null ? void 0 : _e.heightOffset) ?? 0);
@@ -58,35 +58,45 @@ const pe = { components: { IndexColumn: o, SelectionColumn: a, NormalColumn: s,
58
58
  }, hasTableHeight() {
59
59
  if (this.tableHeight)
60
60
  return this.tableHeight <= 100 ? 100 : this.tableHeight + (0 !== this.heightOffset ? this.heightOffset : 30);
61
- }, isMobileListCard: () => q.getters.isMobileListCard, isShowCard() {
61
+ }, isMobileListCard: () => V.getters.isMobileListCard, isShowCard() {
62
62
  var _a, _b, _c, _d;
63
- return this.isShowAutoCard && this.isMobileListCard && !this.options.isAdministerListView && (((_d = (_c = (_b = (_a = this.options) == null ? void 0 : _a.configureObj) == null ? void 0 : _b.props) == null ? void 0 : _c.base) == null ? void 0 : _d.isMobileCard) ?? true);
63
+ return this.isMobile || this.isShowAutoCard && this.isMobileListCard && !this.options.isAdministerListView && (((_d = (_c = (_b = (_a = this.options) == null ? void 0 : _a.configureObj) == null ? void 0 : _b.props) == null ? void 0 : _c.base) == null ? void 0 : _d.isMobileCard) ?? true);
64
64
  }, visibleColumns() {
65
- const e2 = k.get(this.code), t2 = this.getOptionOperations();
65
+ const e2 = R.get(this.code), t2 = this.getOptionOperations();
66
66
  e2.canntEdit = false;
67
67
  const i2 = (e3) => e3.map((e4) => ({ property: e4.prop, ...e4 }));
68
- return t2 && t2.operation && t2.operation.length > 0 && t2.operation.forEach((t3) => {
69
- "lineEditUpdate" === t3.props.code && A(t3.props.functionCode, this.basicInfo.systemCode) && (e2.canntEdit = true);
70
- }), void 0 !== this.options.isAdministerListView && null != this.options.isAdministerListView && true === this.options.isAdministerListView ? i2(this.columns) : i2(this.columns.filter((i3) => {
71
- if (void 0 !== this.options.multiple && false === this.options.multiple && "$selection" === i3.prop)
72
- return false;
73
- if (void 0 !== this.options.showIndex && false === this.options.showIndex && "$index" === i3.prop)
74
- return false;
75
- let o2;
76
- if (this.storeHasDefaultValueColumns(i3, e2), void 0 === i3.show || i3.show) {
77
- o2 = true;
78
- const a2 = this.options.hiddenColumns;
79
- if (i3.children && i3.children.length > 0 && this.packageHiddenColumnsWithChildren(i3, a2), a2 && a2.length > 0 && i3.prop && -1 !== a2.indexOf(i3.prop))
80
- return o2 = false, o2;
81
- this.initColumnOperation(i3, t2), e2.$dataTypeMap || (e2.$dataTypeMap = {}), e2.$dataTypeMap[i3.prop] = i3.dataType;
82
- } else
83
- o2 = false;
84
- return o2;
85
- }));
68
+ if (t2 && t2.operation && t2.operation.length > 0 && t2.operation.forEach((t3) => {
69
+ "lineEditUpdate" === t3.props.code && q(t3.props.functionCode, this.basicInfo.systemCode) && (e2.canntEdit = true);
70
+ }), void 0 !== this.options.isAdministerListView && null != this.options.isAdministerListView && true === this.options.isAdministerListView)
71
+ return i2(this.columns);
72
+ {
73
+ const o2 = this.options.updateColumnsInfo;
74
+ let a2;
75
+ o2 && (a2 = {}, o2.forEach((e3) => {
76
+ e3.prop && (a2[e3.prop] = e3);
77
+ }));
78
+ let s2 = {}, r2 = [];
79
+ return i2(this.columns.filter((i3) => {
80
+ if (!this.isHasSearchColumn && i3.queryType && "normal" === i3.queryType && (this.isHasSearchColumn = true), void 0 !== this.options.multiple && false === this.options.multiple && "$selection" === i3.prop)
81
+ return false;
82
+ if (void 0 !== this.options.showIndex && false === this.options.showIndex && "$index" === i3.prop)
83
+ return false;
84
+ let o3;
85
+ if (this.storeHasDefaultValueColumns(i3, e2), void 0 === i3.show || i3.show) {
86
+ o3 = true;
87
+ const n2 = this.options.hiddenColumns;
88
+ if (n2 && n2.length > 0 && i3.prop && -1 !== n2.indexOf(i3.prop) && (o3 = false), o3 = this.packageUpdateColunmInfo(i3, a2), i3.children && i3.children.length > 0 ? this.packageHiddenColumnsWithChildren(i3, n2, r2, a2, s2) : this.isMobileOrderColumn(i3) && r2.push(i3), i3.prop && (s2[i3.prop] = i3), this.orderColumns = r2, this.columnsMap = s2, !o3)
89
+ return o3;
90
+ this.initColumnOperation(i3, t2), e2.$dataTypeMap || (e2.$dataTypeMap = {}), e2.$dataTypeMap[i3.prop] = i3.dataType;
91
+ } else
92
+ o3 = false;
93
+ return o3;
94
+ }));
95
+ }
86
96
  }, visibleColumnsComponentData() {
87
97
  return this.visibleColumns.map((e2) => this.getColumnComponentData(e2, this.myCustomFormatter));
88
98
  }, mobileColumns: () => "Layout", tableDatas() {
89
- const e2 = k.get(this.code), t2 = this.hasFilterDataEvent ? this.filterGridData : this.gridData;
99
+ const e2 = R.get(this.code), t2 = this.hasFilterDataEvent ? this.filterGridData : this.isFormSubTable && !this.isShowPageArea ? this.isSubSearch ? this.subTableDataSearch : this.subTableData : this.gridData;
90
100
  return e2 && e2.options && e2 && e2.options.allEditable && t2.forEach((e3) => {
91
101
  e3.$editing = true;
92
102
  }), t2;
@@ -98,7 +108,7 @@ const pe = { components: { IndexColumn: o, SelectionColumn: a, NormalColumn: s,
98
108
  }, showSummary() {
99
109
  return void 0 !== this.basicInfo.summary && "no" !== this.basicInfo.summary;
100
110
  }, getRowKeyProp() {
101
- const e2 = k.get(this.code);
111
+ const e2 = R.get(this.code);
102
112
  return e2 && e2.options && e2.options.rowKeyProp ? e2.options.rowKeyProp : "$rowDataGuId";
103
113
  }, filterGridData() {
104
114
  return this.hasFilterDataEvent ? this.filterData() : this.gridData;
@@ -107,56 +117,50 @@ const pe = { components: { IndexColumn: o, SelectionColumn: a, NormalColumn: s,
107
117
  var _a;
108
118
  this.resizeTableHeight(), (_a = this.$refs.superGrid) == null ? void 0 : _a.doLayout();
109
119
  });
110
- } }, tableDatas: { deep: true, immediate: true, handler(e2, t2) {
111
120
  } }, "options.SuperGrid": { deep: true, handler: function() {
112
121
  this.externalClickFlag = true, this.initSetting(), this.initialize();
113
- } }, gridData: { deep: true, handler: function(e2) {
114
- this.isSubTableShowPage || i(this, "change-grid-data", this.gridData);
115
122
  } }, subTableData: { deep: true, immediate: true, handler: function() {
116
- if (this.isSubTableShowPage) {
117
- const e2 = k.get(this.code);
118
- if (i(this, "change-grid-data", this.subTableData), void 0 !== e2.isChangePage && e2.isChangePage || void 0 !== e2.isDelete && e2.isDelete) {
123
+ const e2 = R.get(this.code);
124
+ if (e2)
125
+ if (i(this, "change-grid-data", this.subTableData), void 0 !== e2.isAddRow && e2.isAddRow || void 0 !== e2.isChangePage && e2.isChangePage || void 0 !== e2.isDelete && e2.isDelete) {
119
126
  if (void 0 !== e2.isChangePage && e2.isChangePage) {
120
127
  const t2 = b(this.pageSize, e2.addRowIndex);
121
128
  this.currentPage = t2, this.changePage();
122
129
  } else
123
- this.gridData = this.getSubTableGridData(this.subTableData), e2.gridData = this.gridData, e2.orgGridData = [].concat(JSON.parse(JSON.stringify(this.gridData)));
124
- e2.lineEdit.editingCell && (e2.lineEdit.editingCell.row = this.gridData.length), e2.isChangePage = false, e2.isDelete = false;
130
+ this.isSubSearch ? this.gridData = this.getSubTableGridData(this.subTableDataSearch) : this.gridData = this.getSubTableGridData(this.subTableData), e2.gridData = this.gridData, e2.orgGridData = [].concat(JSON.parse(JSON.stringify(this.gridData)));
131
+ e2.lineEdit.editingCell && (e2.lineEdit.editingCell.row = this.gridData.length), e2.isChangePage = false, e2.isDelete = false, e2.isAddRow = false;
125
132
  } else
126
- this.gridData = this.getSubTableGridData(this.subTableData), e2.gridData = this.gridData, e2.orgGridData = [].concat(JSON.parse(JSON.stringify(this.gridData))), e2.isChangePage = false, e2.isDelete = false;
127
- }
133
+ this.isSubSearch ? this.gridData = this.getSubTableGridData(this.subTableDataSearch) : this.gridData = this.getSubTableGridData(this.subTableData), e2.gridData = this.gridData, e2.orgGridData = [].concat(JSON.parse(JSON.stringify(this.gridData))), e2.isChangePage = false, e2.isDelete = false, e2.isAddRow = false;
128
134
  } }, currentSelectCell: { deep: true, handler: function(e2, t2) {
129
135
  this.$nextTick(() => {
130
136
  t2 && (t2.style.border = "");
131
137
  });
132
138
  } }, "options.validateRules": { deep: true, handler: function() {
133
139
  this.externalClickFlag = true;
134
- const e2 = k.get(this.code);
135
- e2 && e2.options && (e2.options.validateRules = this.options.validateRules, k.set(this.code, e2));
140
+ const e2 = R.get(this.code);
141
+ e2 && e2.options && (e2.options.validateRules = this.options.validateRules, R.set(this.code, e2));
136
142
  } }, "options.subTableCanAdd": { deep: true, handler: function() {
137
- const e2 = k.get(this.code);
138
- e2 && e2.options && (e2.options.subTableCanAdd = this.options.subTableCanAdd, k.set(this.code, e2));
143
+ const e2 = R.get(this.code);
144
+ e2 && e2.options && (e2.options.subTableCanAdd = this.options.subTableCanAdd, R.set(this.code, e2));
139
145
  } }, pageSize: { deep: true, handler(e2, t2) {
140
146
  i(this, "change-rows-per-page", this.pageSize);
141
- } }, "options.extraParam.entityMap": { deep: true, handler(e2, t2) {
142
- this.parentFormData = e2, this.$emit("change-form-data", this.parentFormData);
143
147
  } } }, provide: () => ({}), created() {
144
148
  var _a, _b;
145
- (_b = (_a = q) == null ? void 0 : _a.dispatch) == null ? void 0 : _b.call(_a, "startListeningToResize"), k.set(this.code, f()), k.set("_list_code", this.code), this.initSetting(), this.judgeIsFormSubTable();
149
+ (_b = (_a = V) == null ? void 0 : _a.dispatch) == null ? void 0 : _b.call(_a, "startListeningToResize"), R.set(this.code, f()), R.set("_list_code", this.code), this.initSetting(), this.judgeIsFormSubTable();
146
150
  let e2 = true;
147
- C("rowStyleRender", this.code) && (e2 = false), this.stripe = e2, C("filterDataEvent", this.code) && (this.hasFilterDataEvent = true);
151
+ S("rowStyleRender", this.code) && (e2 = false), this.stripe = e2, S("filterDataEvent", this.code) && (this.hasFilterDataEvent = true);
148
152
  }, mounted() {
149
153
  this.initialize().then(() => {
150
- const e2 = k.get(this.code);
154
+ const e2 = R.get(this.code);
151
155
  e2 && e2.basicInfo && e2.basicInfo.tableName && (this.tableName = e2.basicInfo.tableName), e2 && e2.basicInfo && e2.basicInfo.name && (this.listName = e2.basicInfo.name), i(this, "grid-onmounted"), this.$nextTick(() => {
152
156
  this.columns.forEach((e4) => {
153
157
  e4.valueSet && i(this, "set-select-options", { prop: this.code + "." + e4.prop, valueSet: e4.valueSet });
154
- }), this.rowDrop(), this.columnDrop(), k.get(this.code).superGrid = this.$refs.superGrid, this.query && "embedded" === this.query.showType ? this.resizeTableHeight() : this.$watch("showSearch", function(e4, t3) {
158
+ }), this.rowDrop(), this.columnDrop(), R.get(this.code).superGrid = this.$refs.superGrid, this.query && "embedded" === this.query.showType ? this.resizeTableHeight() : this.$watch("showSearch", function(e4, t3) {
155
159
  this.resizeTableHeight();
156
160
  }, { immediate: true, deep: true }), window.addEventListener("resize", this.resizeTableHeight), this.isFormSubTable && this.initScrollbarPositionCheck(), this.$watch("hasLoadData", function(e4, t3) {
157
161
  true === e4 && this.$nextTick(() => {
158
- const e5 = k.get(this.code);
159
- C("gridComplete", this.code) && e5.options.gridComplete.call(this, { gridData: this.isSubTableShowPage ? this.subTableData : this.gridData, columns: e5.columns, superGrid: this.$refs.superGrid, pageGridData: this.isSubTableShowPage ? this.gridData : null, listCode: this.code, additionalParamMap: e5.additionalParamMap, pageContext: this.pageContext, configureObj: this.configureObj }), this.$emit("gridComplete", { gridData: this.isSubTableShowPage ? this.subTableData : this.gridData, columns: e5.columns, superGrid: this.$refs.superGrid, isMobile: false, listCode: this.code, pageGridData: this.isSubTableShowPage ? this.gridData : null, additionalParamMap: e5.additionalParamMap });
162
+ const e5 = R.get(this.code);
163
+ S("gridComplete", this.code) && e5.options.gridComplete.call(this, { gridData: this.isFormSubTable ? this.subTableData : this.gridData, columns: e5.columns, superGrid: this.$refs.superGrid, pageGridData: this.isSubTableShowPage ? this.gridData : null, listCode: this.code, additionalParamMap: e5.additionalParamMap, pageContext: this.pageContext, configureObj: this.configureObj }), this.$emit("gridComplete", { gridData: this.isFormSubTable ? this.subTableData : this.gridData, columns: e5.columns, superGrid: this.$refs.superGrid, isMobile: false, listCode: this.code, pageGridData: this.isSubTableShowPage ? this.gridData : null, additionalParamMap: e5.additionalParamMap });
160
164
  });
161
165
  }, { immediate: true, deep: true });
162
166
  const e3 = this, t2 = null !== document.querySelector(".user-tree");
@@ -168,15 +172,24 @@ const pe = { components: { IndexColumn: o, SelectionColumn: a, NormalColumn: s,
168
172
  };
169
173
  }), this.query && "popup" === this.query.showType && i(this, "setSearchType", true), this.$watch("options.extraParam", function(e3, t2) {
170
174
  this.options.extraParam = e3;
171
- k.get(this.code).options.extraParam = e3;
172
- }, { deep: true }), this.isFormSubTable ? _(this.pageContext, this) : V(this.pageContext, { listRefs: [{ ref: this }], pageType: "list" });
175
+ R.get(this.code).options.extraParam = e3;
176
+ }, { deep: true }), this.isFormSubTable ? B(this.pageContext, this) : U(this.pageContext, { listRefs: [{ ref: this }], pageType: "list" });
173
177
  });
174
178
  }, beforeDestroy() {
175
179
  window.removeEventListener("resize", this.resizeTableHeight), this.isFormSubTable && (window.removeEventListener("scroll", this.checkScrollbarPosition, true), window.removeEventListener("resize", this.checkScrollbarPosition));
176
- }, methods: { ...M, ...R, ...G, ...B, ...j, packageHiddenColumnsWithChildren(e2, t2) {
180
+ }, methods: { ...G, ...I, ...L, ...J, ...H, isMobileOrderColumn(e2) {
181
+ return this.isMobile && e2.prop && "$selection" !== e2.prop && "$index" !== e2.prop && ("true" === e2.sortable || true === e2.sortable);
182
+ }, getColumnLabel: (e2) => C(e2), packageHiddenColumnsWithChildren(e2, t2, i2, o2, a2) {
177
183
  e2.children && e2.children.length > 0 && e2.children.forEach((e3) => {
178
- (void 0 === e3.show || e3.show) && (e3.children && e3.children.length > 0 && this.packageHiddenColumnsWithChildren(e3, t2), t2 && t2.length > 0 && e3.prop && -1 !== t2.indexOf(e3.prop) ? e3.dyn_show = false : e3.dyn_show = true);
184
+ !this.isHasSearchColumn && e3.queryType && "normal" === e3.queryType && (this.isHasSearchColumn = true), (void 0 === e3.show || e3.show) && (e3.children && e3.children.length > 0 && this.packageHiddenColumnsWithChildren(e3, t2, i2, o2, a2), t2 && t2.length > 0 && e3.prop && -1 !== t2.indexOf(e3.prop) ? e3.dyn_show = false : e3.dyn_show = true, this.packageUpdateColunmInfo(e3, o2), e3.dyn_show && (this.isMobileOrderColumn(e3) && i2.push(e3), e3.prop && (a2[e3.prop] = e3)));
179
185
  });
186
+ }, packageUpdateColunmInfo(e2, t2) {
187
+ if (t2 && e2.prop && t2[e2.prop]) {
188
+ const i2 = t2[e2.prop];
189
+ void 0 !== i2.show && false === i2.show ? e2.dyn_show = false : void 0 !== i2.show && i2.show && (e2.dyn_show = true), i2.label ? void 0 !== i2.label && i2.label && (e2.orgLabel || (e2.orgLabel = e2.label), e2.label = i2.label) : e2.orgLabel && (e2.label = e2.orgLabel);
190
+ } else
191
+ t2 && e2.prop && !t2[e2.prop] && (e2.dyn_show = e2.show, e2.orgLabel && (e2.label = e2.orgLabel));
192
+ return !(void 0 !== e2.dyn_show && !e2.dyn_show) || e2.dyn_show;
180
193
  }, onResize(e2) {
181
194
  this.resizeTableHeight(), this.isFormSubTable && this.checkScrollbarPosition();
182
195
  }, initScrollbarPositionCheck() {
@@ -200,21 +213,21 @@ const pe = { components: { IndexColumn: o, SelectionColumn: a, NormalColumn: s,
200
213
  t2 && (this.isScrollbarOnTop ? t2.classList.add("scrollbar-on-top") : t2.classList.remove("scrollbar-on-top"));
201
214
  }, onClickMain() {
202
215
  var _a, _b;
203
- (_b = (_a = q) == null ? void 0 : _a.dispatch) == null ? void 0 : _b.call(_a, "clearAllEditing");
216
+ (_b = (_a = V) == null ? void 0 : _a.dispatch) == null ? void 0 : _b.call(_a, "clearAllEditing");
204
217
  }, isDeleteChange(e2) {
205
218
  this.isDelete = e2;
206
219
  }, isCallEnterEvent(e2) {
207
220
  let t2 = true;
208
221
  void 0 !== e2.options.isEnableEnterEvent && false === e2.options.isEnableEnterEvent && (t2 = false);
209
- const i2 = k.get(e2.code);
222
+ const i2 = R.get(e2.code);
210
223
  return t2 && i2.options && i2.options.isFormSubTable && (t2 = false), t2;
211
224
  }, isShowPageArea() {
212
225
  return !this.isFormSubTable || void 0 !== this.options.showPageArea && true === this.options.showPageArea;
213
226
  }, resizeTableHeight() {
214
227
  this.$nextTick(() => {
215
- let e2, t2 = S(this.$refs.superGrid, this.code, this.pageHeight, this.isDialog);
216
- const i2 = k.get(this.code);
217
- if (C("resizeHeight", this.code)) {
228
+ let e2, t2 = w(this.$refs.superGrid, this.code, this.pageHeight, this.isDialog);
229
+ const i2 = R.get(this.code);
230
+ if (S("resizeHeight", this.code)) {
218
231
  let o2 = 0;
219
232
  this.$refs.sf && !this.isMobile && (o2 = this.$refs.sf.$el.offsetHeight);
220
233
  const a2 = i2.options.resizeHeight.call(this, { code: this.code, height: t2, searchHeight: o2, additionalParamMap: i2.additionalParamMap, pageContext: this.pageContext, configureObj: this.configureObj });
@@ -223,7 +236,7 @@ const pe = { components: { IndexColumn: o, SelectionColumn: a, NormalColumn: s,
223
236
  i2.options && i2.options.isFormSubTable && i2.options.isPdfEditor ? e2 = void 0 : i2.options && i2.options.isFormSubTable && i2.options.formSetMaxHeight && (e2 = i2.options.formSetMaxHeight), null == e2 && (e2 = this.optionTableHeight ? this.optionTableHeight : i2.options && i2.options.isFormSubTable && i2.options.isPdfEditor ? void 0 : i2.options && i2.options.isFormSubTable && i2.options.formSetHeight ? i2.options.formSetHeight : t2), null === e2 && (e2 = void 0), null != e2 && parseFloat(e2 + "") < 100 && (e2 = 100), null != e2 && (e2 = parseFloat(e2 + "")), i2.options && i2.options.isFormSubTable ? this.basicInfo.displayEffect && "" !== this.basicInfo.displayEffect && "default" !== this.basicInfo.displayEffect ? (this.tableHeight = e2, this.maxHeight = void 0) : (this.maxHeight = e2, this.tableHeight = void 0) : this.basicInfo.displayEffect && "" !== this.basicInfo.displayEffect && "cover" !== this.basicInfo.displayEffect ? (this.maxHeight = e2, this.tableHeight = void 0) : (this.tableHeight = e2, this.maxHeight = void 0);
224
237
  });
225
238
  }, enterOperation(e2) {
226
- const t2 = k.get(e2.code);
239
+ const t2 = R.get(e2.code);
227
240
  if (t2.options && t2.options.isFormSubTable) {
228
241
  const e3 = t2.$editRow;
229
242
  e3 && (p(e3, "$editing", false), t2.$editRow = null);
@@ -240,7 +253,7 @@ const pe = { components: { IndexColumn: o, SelectionColumn: a, NormalColumn: s,
240
253
  }
241
254
  }
242
255
  }, escOperation(e2) {
243
- const t2 = k.get(e2.code);
256
+ const t2 = R.get(e2.code);
244
257
  if (t2.options && !t2.options.isFormSubTable) {
245
258
  const i2 = t2.$rowIndex;
246
259
  if (null != i2) {
@@ -350,7 +363,7 @@ const pe = { components: { IndexColumn: o, SelectionColumn: a, NormalColumn: s,
350
363
  t2.defaultValueColumns.find((t3) => t3.prop === e2.prop) || t2.defaultValueColumns.push(e2);
351
364
  }
352
365
  }, judgeIsFormSubTable() {
353
- const e2 = k.get(this.code);
366
+ const e2 = R.get(this.code);
354
367
  e2 && e2.options && void 0 !== e2.options.isFormSubTable && true === e2.options.isFormSubTable && (this.isFormSubTable = true, this.subTableStyle = { width: "100%" });
355
368
  }, initColumnOperation(e2, t2) {
356
369
  if (t2 && t2[e2.prop]) {
@@ -361,23 +374,23 @@ const pe = { components: { IndexColumn: o, SelectionColumn: a, NormalColumn: s,
361
374
  if (void 0 !== this.options.operations && null !== this.options.operations)
362
375
  return this.options.operations;
363
376
  }, initSetting() {
364
- const e2 = k.get(this.code);
377
+ const e2 = R.get(this.code);
365
378
  let t2;
366
- void 0 !== this.options ? (Object.assign(e2.options, this.options), e2.options.lineEditOptions || (e2.options.lineEditOptions = e2.defaultLineEditOptions), void 0 !== this.options.customFormatter && null !== this.options.customFormatter && (this.myCustomFormatter = this.options.customFormatter)) : (e2.options = {}, e2.options.lineEditOptions = e2.defaultLineEditOptions), w("input", this.code) || (e2.options.lineEditOptions.input = e2.defaultLineEditOptions.input), this.myCustomFormatter || void 0 === this.customFormatter || null === this.customFormatter || (this.myCustomFormatter = this.customFormatter), this.options && this.options.dynamicServiceName && void 0 !== this.options.dynamicServiceName && (this.dynamicServiceName = this.options.dynamicServiceName, e2.dynamicServiceName = this.dynamicServiceName), this.options && this.options.system && void 0 !== this.options.system && (e2.system = this.options.system), this.options && this.options.additionalParamMap && void 0 !== this.options.additionalParamMap && (e2.additionalParamMap = this.options.additionalParamMap), e2.options && e2.options.backendUrl && (t2 = e2.options.backendUrl), t2 || (t2 = window.$vueApp.config.globalProperties.baseURL), this.baseURL = t2, e2.colConfigureMap = this.packageListColumnSetting();
379
+ void 0 !== this.options ? (Object.assign(e2.options, this.options), e2.options.lineEditOptions || (e2.options.lineEditOptions = e2.defaultLineEditOptions), void 0 !== this.options.customFormatter && null !== this.options.customFormatter && (this.myCustomFormatter = this.options.customFormatter)) : (e2.options = {}, e2.options.lineEditOptions = e2.defaultLineEditOptions), y("input", this.code) || (e2.options.lineEditOptions.input = e2.defaultLineEditOptions.input), this.myCustomFormatter || void 0 === this.customFormatter || null === this.customFormatter || (this.myCustomFormatter = this.customFormatter), this.options && this.options.dynamicServiceName && void 0 !== this.options.dynamicServiceName && (this.dynamicServiceName = this.options.dynamicServiceName, e2.dynamicServiceName = this.dynamicServiceName), this.options && this.options.system && void 0 !== this.options.system && (e2.system = this.options.system), this.options && this.options.additionalParamMap && void 0 !== this.options.additionalParamMap && (e2.additionalParamMap = this.options.additionalParamMap), e2.options && e2.options.backendUrl && (t2 = e2.options.backendUrl), t2 || (t2 = window.$vueApp.config.globalProperties.baseURL), this.baseURL = t2, e2.colConfigureMap = this.packageListColumnSetting();
367
380
  }, changeRowStyle(e2) {
368
381
  if (e2.row.$editing)
369
382
  return { background: "var(--el-table-row-hover-bg-color)" };
370
- const t2 = k.get(this.code);
371
- return this.lineEdit && this.lineEdit.editable && e2.rowIndex === t2.$rowIndex && y(e2.row, t2.orgGridData[t2.$rowIndex]), C("rowStyleRender", this.code) ? (e2.additionalParamMap = t2.additionalParamMap, e2.pageContext = this.pageContext, e2.configureOb = this.configureObj, e2.row && (e2.row = this.handRowKeyToUpperCase(e2.row)), t2.options.rowStyleRender.call(this, e2)) : this.options && this.options.renderRow && this.options.renderRow.hasOwnProperty(e2.rowIndex) ? { background: this.options.renderRow[e2.rowIndex] } : void 0;
383
+ const t2 = R.get(this.code);
384
+ return this.lineEdit && this.lineEdit.editable && e2.rowIndex === t2.$rowIndex && T(e2.row, t2.orgGridData[t2.$rowIndex]), S("rowStyleRender", this.code) ? (e2.additionalParamMap = t2.additionalParamMap, e2.pageContext = this.pageContext, e2.configureOb = this.configureObj, e2.row && (e2.row = this.handRowKeyToUpperCase(e2.row)), t2.options.rowStyleRender.call(this, e2)) : this.options && this.options.renderRow && this.options.renderRow.hasOwnProperty(e2.rowIndex) ? { background: this.options.renderRow[e2.rowIndex] } : void 0;
372
385
  }, changeCellStyle(e2) {
373
- const t2 = k.get(this.code);
386
+ const t2 = R.get(this.code);
374
387
  let i2 = null, o2 = null, a2 = null;
375
388
  if (e2 && e2.column && e2.column.property && t2 && t2.columnOptionMap && t2.columnOptionMap[e2.column.property]) {
376
389
  o2 = t2.columnOptionMap[e2.column.property], o2.events && o2.events.cellStyle && (i2 = o2.events.cellStyle);
377
390
  const s2 = P(o2);
378
391
  s2 && s2.cellStyle && (a2 = s2.cellStyle);
379
392
  }
380
- if (C("cellStyleRender", this.code))
393
+ if (S("cellStyleRender", this.code))
381
394
  return e2.additionalParamMap = t2.additionalParamMap, e2.pageContext = this.pageContext, e2.configureObj = this.configureObj, e2.cellStyle = a2, e2.row && (e2.row = this.handRowKeyToUpperCase(e2.row)), t2.options.cellStyleRender.call(this, e2);
382
395
  if (null !== i2 && null !== o2 && t2.options && t2.options.eventCallBack && t2.options.eventCallBack[i2] && "function" == typeof t2.options.eventCallBack[i2]) {
383
396
  const s2 = { value: e2.row[e2.column.property], row: e2.row, column: o2, prop: e2.column.property, additionalParamMap: t2.additionalParamMap, rowIndex: e2.rowIndex, cellStyle: a2 };
@@ -395,14 +408,14 @@ const pe = { components: { IndexColumn: o, SelectionColumn: a, NormalColumn: s,
395
408
  } else if (t2.property && this.backgroundColorMap[t2.property])
396
409
  return { background: this.backgroundColorMap[t2.property] };
397
410
  } else {
398
- const t2 = k.get(this.code);
411
+ const t2 = R.get(this.code);
399
412
  let i2 = null, o2 = null, a2 = null;
400
413
  if (e2 && e2.column && e2.column.property && t2 && t2.columnOptionMap && t2.columnOptionMap[e2.column.property]) {
401
414
  o2 = t2.columnOptionMap[e2.column.property], o2.events && o2.events.headerCellStyle && (i2 = o2.events.headerCellStyle);
402
415
  const s2 = P(o2);
403
416
  s2 && s2.titleStyle && (a2 = s2.titleStyle);
404
417
  }
405
- if (C("titleStyleRender", this.code))
418
+ if (S("titleStyleRender", this.code))
406
419
  return e2.additionalParamMap = t2.additionalParamMap, e2.pageContext = this.pageContext, e2.configureObj = this.configureObj, e2.titleStyle = a2, t2.options.titleStyleRender.call(this, e2);
407
420
  if (t2.options.renderHeader && t2.options.renderHeader.props) {
408
421
  const i3 = e2.column, o3 = t2.options.renderHeader.props.split(",");
@@ -417,12 +430,12 @@ const pe = { components: { IndexColumn: o, SelectionColumn: a, NormalColumn: s,
417
430
  return e2.additionalParamMap = t2.additionalParamMap, e2.titleStyle = a2, t2.options.eventCallBack[i2].call(this, e2);
418
431
  }
419
432
  }, fetchData(e2, t2, i2, o2) {
420
- const a2 = k.get(this.code);
433
+ const a2 = R.get(this.code);
421
434
  if (a2.options && a2.options.isPageInfo)
422
435
  ;
423
436
  else if (a2.options && a2.options.isAdministerListView) {
424
437
  if (a2.options.SuperGrid && a2.options.SuperGrid.simulationDate) {
425
- if (C("gridDataLoaded", this.code)) {
438
+ if (S("gridDataLoaded", this.code)) {
426
439
  const e3 = a2.options.gridDataLoaded.call(this, { gridData: a2.options.SuperGrid.simulationDate, columns: a2.columns, additionalParamMap: a2.additionalParamMap, pageContext: this.pageContext, configureObj: this.configureObj });
427
440
  this.gridData = e3 || a2.options.SuperGrid.simulationDate;
428
441
  } else
@@ -430,7 +443,7 @@ const pe = { components: { IndexColumn: o, SelectionColumn: a, NormalColumn: s,
430
443
  a2.gridData = this.gridData;
431
444
  }
432
445
  } else if (a2.options && a2.options.isFormSubTable && a2.options.subTableData && a2.options.subTableData.length > 0)
433
- this.packageSubTableData(a2, a2.options.subTableData);
446
+ this.packageSubTableData(a2, a2.options.subTableData, e2 == null ? void 0 : e2.sorts);
434
447
  else {
435
448
  if (this.canRefreshTableData(a2))
436
449
  return this.fetchListData(e2, t2, i2, o2);
@@ -440,36 +453,51 @@ const pe = { components: { IndexColumn: o, SelectionColumn: a, NormalColumn: s,
440
453
  }
441
454
  this.hasLoadData = true, a2.loaded = true;
442
455
  }
443
- }, isSubTableEmpty: (e2) => e2.options && e2.options.isFormSubTable && (void 0 === e2.options.subTableData || null === e2.options.subTableData || 0 === e2.options.subTableData.length), packageSubTableData(e2, t2) {
456
+ }, isSubTableEmpty: (e2) => e2.options && e2.options.isFormSubTable && (void 0 === e2.options.subTableData || null === e2.options.subTableData || 0 === e2.options.subTableData.length), packageSubTableData(e2, t2, i2, o2, a2) {
444
457
  this.hasLoadData = false, e2.loaded = true;
445
- let i2 = [];
446
- if (C("gridDataLoaded", this.code)) {
447
- const o2 = e2.options.gridDataLoaded.call(this, { gridData: t2, columns: e2.columns, additionalParamMap: e2.additionalParamMap, pageContext: this.pageContext, configureObj: this.configureObj });
448
- o2 ? (i2 = o2, this.hasLoadData = true) : (i2 = t2, this.hasLoadData = true);
458
+ let s2 = [];
459
+ if (S("gridDataLoaded", this.code)) {
460
+ const i3 = e2.options.gridDataLoaded.call(this, { gridData: t2, columns: e2.columns, additionalParamMap: e2.additionalParamMap, pageContext: this.pageContext, configureObj: this.configureObj });
461
+ i3 ? (s2 = i3, this.hasLoadData = true) : (s2 = t2, this.hasLoadData = true);
449
462
  } else
450
- i2 = t2, this.hasLoadData = true;
451
- i2 && i2.forEach((t3) => {
452
- this.setColumnsDefaultValue(e2.allColumns, t3);
453
- }), this.pagination && true === this.isSubTableShowPage ? (this.subTableData = i2, this.pagination.total = this.subTableData.length, e2.subTableData = this.subTableData, this.gridData = this.getSubTableGridData(this.subTableData)) : (this.subTableAddGuId(i2), this.gridData = i2), e2.gridData = this.gridData, e2.orgGridData = [].concat(JSON.parse(JSON.stringify(this.gridData)));
463
+ s2 = t2, this.hasLoadData = true;
464
+ if (s2) {
465
+ const t3 = i2 && i2.length > 0 ? i2[0] : null, o3 = t3 && t3.prop ? t3.prop : null, r2 = t3 && t3.order ? t3.order : null;
466
+ let n2 = [];
467
+ s2.forEach((t4) => {
468
+ this.setColumnsDefaultValue(e2.allColumns, t4);
469
+ }), a2 ? n2.push(a2) : this.getSortColumn(this.visibleColumns, { property: o3 }, n2), this.sortSubTableData(s2, o3, r2, n2);
470
+ }
471
+ this.pagination && true === this.isSubTableShowPage ? (this.pagination.total = s2.length, o2 ? (this.subTableDataSearch = s2, this.gridData = this.getSubTableGridData(this.subTableDataSearch)) : (this.subTableDataSearch = [], this.subTableData = s2, this.gridData = this.getSubTableGridData(this.subTableData))) : (this.subTableAddGuId(s2), o2 ? this.subTableDataSearch = s2 : (this.subTableDataSearch = [], this.subTableData = s2), this.gridData = s2), e2.subTableData = this.subTableData, e2.subTableDataSearch = this.subTableDataSearch, e2.gridData = this.gridData, e2.orgGridData = [].concat(JSON.parse(JSON.stringify(this.gridData)));
472
+ }, sortSubTableData(e2, t2, i2, o2) {
473
+ if (t2 && i2 && o2.length > 0) {
474
+ let a2 = o2[0];
475
+ e2.sort((e3, o3) => void 0 !== e3[t2] && null !== e3[t2] || void 0 !== o3[t2] && null !== o3[t2] ? void 0 !== e3[t2] && null !== e3[t2] || void 0 === o3[t2] || null === o3[t2] ? void 0 === e3[t2] || null === e3[t2] || void 0 !== o3[t2] && null !== o3[t2] ? "INTEGER" === a2.dataType || "LONG" === a2.dataType || "FLOAT" === a2.dataType || "DOUBLE" === a2.dataType || "DATE" === a2.dataType || "TIME" === a2.dataType ? "asc" === i2 || "ascending" === i2 ? e3[t2] - o3[t2] : o3[t2] - e3[t2] : "asc" === i2 || "ascending" === i2 ? e3[t2] < o3[t2] ? -1 : e3[t2] > o3[t2] ? 1 : 0 : e3[t2] < o3[t2] ? 1 : e3[t2] > o3[t2] ? -1 : 0 : "asc" === i2 || "ascending" === i2 ? 1 : -1 : "asc" === i2 || "ascending" === i2 ? -1 : 1 : 0);
476
+ }
454
477
  }, canRefreshTableData(e2) {
455
478
  let t2 = false;
456
479
  return (e2.options && !e2.options.isFormSubTable || e2.options && e2.options.isFormSubTable && void 0 !== e2.options.canRrefreshSubtableData && true === e2.options.canRrefreshSubtableData) && (t2 = true), t2;
457
480
  }, getSubTableGridData(e2, t2) {
458
- let i2 = e2;
459
- if (true === this.isSubTableShowPage && e2 && e2.length > 0) {
460
- this.pagination.total = e2.length;
461
- let o2 = null != t2 ? t2 : this.currentPage;
462
- null == o2 && (o2 = 1);
463
- let a2 = this.pageSize;
464
- null === a2 && this.pagination && (a2 = this.pagination.pageSize), null == a2 && (a2 = 20);
465
- const s2 = (o2 - 1) * a2;
466
- let r2 = s2 + a2;
467
- e2.length > s2 && (r2 > e2.length && (r2 = e2.length), i2 = e2.slice(s2, r2));
481
+ let i2 = null != t2 ? t2 : this.currentPage;
482
+ null == i2 && (i2 = 1);
483
+ let o2 = e2;
484
+ if (true === this.isSubTableShowPage) {
485
+ if (e2 && e2.length > 0) {
486
+ this.pagination.total = e2.length;
487
+ let t4 = this.pageSize;
488
+ null === t4 && this.pagination && (t4 = this.pagination.pageSize), null == t4 && (t4 = 20);
489
+ const a2 = (i2 - 1) * t4;
490
+ let s2 = a2 + t4;
491
+ e2.length > a2 && (s2 > e2.length && (s2 = e2.length), o2 = e2.slice(a2, s2));
492
+ }
493
+ let t3 = [];
494
+ this.isShowCard && i2 > 1 && (this.gridData.length !== e2.length ? (t3 = this.gridData.concat(o2), o2 = t3) : o2 = e2);
468
495
  }
469
- return null == i2 && (i2 = []), this.subTableAddGuId(i2), i2;
496
+ return null == o2 && (o2 = []), this.subTableAddGuId(o2), o2;
470
497
  }, subTableAddGuId(e2) {
471
- e2.forEach((e3) => {
472
- e3.$rowDataGuId || (e3.$rowDataGuId = N());
498
+ const t2 = e2.filter((e3) => !e3.$rowDataGuId);
499
+ t2 && t2.length > 0 && t2.forEach((e3) => {
500
+ e3.$rowDataGuId || (e3.$rowDataGuId = _());
473
501
  });
474
502
  }, fetchListData(e2, t2, i2, o2) {
475
503
  if (this.isLoading = true, this.hasLoadData = false, void 0 === t2 || false === t2) {
@@ -483,14 +511,14 @@ const pe = { components: { IndexColumn: o, SelectionColumn: a, NormalColumn: s,
483
511
  }
484
512
  }
485
513
  window.sessionStorage.removeItem("refreshList-" + this.code), void 0 === e2 && (e2 = this.getSearchParam());
486
- const a2 = k.get(this.code);
514
+ const a2 = R.get(this.code);
487
515
  let s2 = e2;
488
- this.resetAdditionalParamMap(s2, a2), (a2.options.extraParam || void 0 !== i2) && (s2 = T(e2, a2)), a2.searchParam = e2, a2.url = this.url;
516
+ this.resetAdditionalParamMap(s2, a2), (a2.options.extraParam || void 0 !== i2) && (s2 = v(e2, a2)), a2.searchParam = e2, a2.url = this.url;
489
517
  let r2 = this.url;
490
518
  null != i2 && (s2 = Object.assign({}, s2), s2.searchParam.pagination = null, s2.parentIds = i2, s2.parentProp = this.parentProp, s2.systemCode = this.basicInfo.systemCode, r2 = this.options.subRowUrl), a2.isCreateRow = false, a2.isEditRow = false, a2.$lastSaveRowIndex = null, a2.$rowIndex = null, a2.canSaveRow = true, a2.withDataPermission = a2.options.isWithDataPermission, a2.isWorkflowEntity = a2.options.isWorkflowEntity, window.sessionStorage.setItem("searchParam-" + this.code, JSON.stringify(s2)), this.parentProp && e2.searchForm && e2.searchForm.length > 0 && (s2.listViewTreeSetting = null);
491
519
  let n2 = true;
492
- return C("beforeRequest", this.code) && (n2 = a2.options.beforeRequest.call(this, { columns: this.columns, gridParams: a2, additionalParamMap: a2.additionalParamMap, requestParam: s2, pageContext: this.pageContext, configureObj: this.configureObj })), new Promise((e3, t3) => {
493
- z(n2) ? n2.then((n3) => {
520
+ return S("beforeRequest", this.code) && (n2 = a2.options.beforeRequest.call(this, { columns: this.columns, gridParams: a2, additionalParamMap: a2.additionalParamMap, requestParam: s2, pageContext: this.pageContext, configureObj: this.configureObj })), new Promise((e3, t3) => {
521
+ N(n2) ? n2.then((n3) => {
494
522
  void 0 === n3 || n3 ? r2 ? this.doRequest(r2, s2, i2, a2, o2).then(() => {
495
523
  e3();
496
524
  }).catch((e4) => {
@@ -504,78 +532,67 @@ const pe = { components: { IndexColumn: o, SelectionColumn: a, NormalColumn: s,
504
532
  a2.loaded = true, t3(e4);
505
533
  }) : (a2.loaded = true, e3()) : (console.error("beforeRequest result is false!!"), a2.loaded = true, e3());
506
534
  });
535
+ }, getChildren(e2) {
536
+ return (e2 == null ? void 0 : e2.map((e3) => {
537
+ var _a;
538
+ return { $rowDataGuId: e3.$rowDataGuId ? e3.$rowDataGuId : _(), ...e3, ...((_a = e3 == null ? void 0 : e3.children) == null ? void 0 : _a.length) ? { children: this.getChildren(e3.children) } : {} };
539
+ })) ?? [];
507
540
  }, doRequest(e2, t2, i2, o2, a2) {
508
541
  return new Promise((s2, r2) => {
509
542
  this.$http.post(e2, t2).then((e3) => {
510
543
  if (null == i2) {
511
- const t3 = (e4) => (e4 == null ? void 0 : e4.map((e5) => {
512
- var _a;
513
- return { $rowDataGuId: N(), ...e5, ...((_a = e5 == null ? void 0 : e5.children) == null ? void 0 : _a.length) ? { children: t3(e5.children) } : {} };
514
- })) ?? [], i3 = [...this.isShowCard && this.currentPage > 1 ? this.gridData : [], ...t3((e3 == null ? void 0 : e3.data) ?? [])];
515
- let a3 = [];
516
- if (C("gridDataLoaded", this.code)) {
517
- const e4 = { gridData: i3, columns: o2.columns, additionalParamMap: o2.additionalParamMap, pageContext: this.pageContext, configureObj: this.configureObj };
544
+ const t3 = [...this.isShowCard && this.currentPage > 1 ? this.gridData : [], ...this.getChildren((e3 == null ? void 0 : e3.data) ?? [])];
545
+ let i3 = [];
546
+ if (S("gridDataLoaded", this.code)) {
547
+ const e4 = { gridData: t3, columns: o2.columns, additionalParamMap: o2.additionalParamMap, pageContext: this.pageContext, configureObj: this.configureObj };
518
548
  o2.searchParam && (e4.searchForm = o2.searchParam.searchForm, e4.additionalParamMap = o2.searchParam.additionalParamMap);
519
- const t4 = o2.options.gridDataLoaded.call(this, e4);
520
- a3 = t4 || i3;
549
+ const a3 = o2.options.gridDataLoaded.call(this, e4);
550
+ i3 = a3 || t3;
521
551
  } else
522
- a3 = i3;
523
- a3 || (a3 = []), o2.options.isFormSubTable ? (a3 && a3.forEach((e4) => {
552
+ i3 = t3;
553
+ i3 || (i3 = []), o2.options.isFormSubTable ? (i3 && i3.forEach((e4) => {
524
554
  this.setColumnsDefaultValue(o2.allColumns, e4);
525
- }), this.pagination && true === this.isSubTableShowPage ? (this.subTableData = a3, this.gridData = this.getSubTableGridData(this.subTableData), o2.subTableData = this.subTableData) : this.gridData = a3, this.pagination && (this.pagination.total = a3.length)) : (this.gridData = a3, this.pagination && (this.pagination.total = e3.total)), e3.summaries && Object.keys(e3.summaries).length > 0 && (this.summaries = e3.summaries), o2.gridData = this.gridData, o2.orgGridData = [].concat(JSON.parse(JSON.stringify(this.gridData))), o2.pagination = this.pagination, o2.loaded = true, this.lineEdit && this.lineEdit.editable && ("undefined" != typeof isSearch && false !== isSearch || (0 === this.gridData.length && this.options && null !== this.options.isDefaultShowEdit && void 0 !== this.options.isDefaultShowEdit && true === this.options.isDefaultShowEdit && this.createRow(this.code, null, this.gridData), this.gridData.length > 0 && (this.lineEdit.editingCell = { row: 0, prop: v(this.code) }))), this.hasLoadData = true;
555
+ }), this.pagination && true === this.isSubTableShowPage ? (this.subTableData = i3, this.gridData = this.getSubTableGridData(this.subTableData), o2.subTableData = this.subTableData) : this.gridData = i3, this.pagination && (this.pagination.total = i3.length)) : (this.gridData = i3, this.pagination && (this.pagination.total = e3.total)), e3.summaries && Object.keys(e3.summaries).length > 0 && (this.summaries = e3.summaries), o2.gridData = this.gridData, o2.orgGridData = [].concat(JSON.parse(JSON.stringify(this.gridData))), o2.pagination = this.pagination, o2.loaded = true, this.lineEdit && this.lineEdit.editable && ("undefined" != typeof isSearch && false !== isSearch || (0 === this.gridData.length && this.options && null !== this.options.isDefaultShowEdit && void 0 !== this.options.isDefaultShowEdit && true === this.options.isDefaultShowEdit && this.createRow(this.code, null, this.gridData), this.gridData.length > 0 && (this.lineEdit.editingCell = { row: 0, prop: x(this.code) }))), this.hasLoadData = true;
526
556
  } else
527
- o2.loaded = true, C("gridDataLoaded", this.code) && o2.options.gridDataLoaded.call(this, { gridData: e3, additionalParamMap: o2.additionalParamMap, pageContext: this.pageContext, configureObj: this.configureObj }), C("loadChildrenComplete", this.code) && o2.options.loadChildrenComplete.call(this, { parentRowIds: i2, gridData: e3, columns: o2.columns, additionalParamMap: o2.additionalParamMap, pageContext: this.pageContext, configureObj: this.configureObj }), null != a2 ? (this.removeGridStoreSelection(i2), a2(e3[i2[0]])) : (i2.forEach((t3) => {
557
+ o2.loaded = true, S("gridDataLoaded", this.code) && o2.options.gridDataLoaded.call(this, { gridData: e3, additionalParamMap: o2.additionalParamMap, pageContext: this.pageContext, configureObj: this.configureObj }), S("loadChildrenComplete", this.code) && o2.options.loadChildrenComplete.call(this, { parentRowIds: i2, gridData: e3, columns: o2.columns, additionalParamMap: o2.additionalParamMap, pageContext: this.pageContext, configureObj: this.configureObj }), null != a2 ? (this.removeGridStoreSelection(i2), a2(e3[i2[0]])) : (i2.forEach((t3) => {
528
558
  this.$refs.superGrid && (this.$refs.superGrid.store.states.lazyTreeNodeMap[t3] = e3[t3], this.$refs.superGrid.store.states.treeData[t3].children = e3[t3]);
529
559
  }), this.removeGridStoreSelection(i2)), this.hasLoadData = true;
530
560
  s2();
531
561
  }).catch((e3) => {
532
- C("loadError", this.code) && o2.options.loadError.call(this, this.code, e3), r2(e3);
562
+ S("loadError", this.code) && o2.options.loadError.call(this, this.code, e3), r2(e3);
533
563
  });
534
564
  });
535
565
  }, getInitSearchForm(e2) {
536
- const t2 = k.get(this.code);
566
+ const t2 = R.get(this.code);
537
567
  e2 && e2.length > 0 ? (this.searchFormContent = {}, e2.forEach((e3) => {
538
568
  let t3 = e3.propName;
539
569
  const i2 = e3.columnProp, o2 = e3.dataType;
540
570
  o2 && "BOOLEAN" === o2 && (t3 = i2), this.initSearchProps.push(t3);
541
571
  const a2 = e3.propValue;
542
- t3 && t3.indexOf(".") > 0 ? x(this.searchFormContent, t3, a2) : this.searchFormContent[t3] = a2;
572
+ t3 && t3.indexOf(".") > 0 ? F(this.searchFormContent, t3, a2) : this.searchFormContent[t3] = a2;
543
573
  }), t2.searchForm = e2, this.showSearchForm()) : t2.searchForm = null;
544
- }, showDemo() {
545
- this.isLoading = true, this.$http.get(this.url).then((e2) => {
546
- this.getShowColumns(e2), Object.assign(this, e2);
547
- const t2 = k.get(this.code);
548
- if (t2.listCode = this.code, t2.columns = this.columns, t2.columns && this.options.dynamicColumns)
549
- for (var i2 = 0; i2 < this.options.dynamicColumns.length; i2++)
550
- this.options.dynamicColumns[i2].dynamic = true, t2.columns.push(this.options.dynamicColumns[i2]);
551
- if (t2.lineEdit = this.lineEdit, t2.basicInfo = this.basicInfo, t2.pagination = this.pagination, t2.query = this.query, this.gridData = e2.gridData, C("gridDataLoaded", this.code)) {
552
- const i3 = t2.options.gridDataLoaded.call(this, { gridData: e2.gridData, additionalParamMap: t2.additionalParamMap, pageContext: this.pageContext, configureObj: this.configureObj });
553
- this.gridData = i3 || e2.gridData;
554
- } else
555
- this.gridData = e2.gridData;
556
- this.pagination && (this.pagination.total = e2.total), this.gridData || (this.gridData = []), t2.gridData = this.gridData, t2.orgGridData = [].concat(JSON.parse(JSON.stringify(this.gridData))), t2.pagination = this.pagination, this.lineEdit.editable && (0 === this.gridData.length && this.createRow(this.code, null, this.gridData), this.lineEdit.editingCell = { row: 0, prop: v(this.code) }), C("gridComplete", this.code) && t2.options.gridComplete.call(this, this.gridData, t2.columns, this.pageContext, this.configureObj);
557
- }).catch((e2) => {
558
- if (C("loadError", this.code)) {
559
- k.get(this.code).options.loadError.call(this, this.code, e2);
560
- }
561
- });
562
574
  }, doSearch(e2) {
563
575
  this.currentPage = 1, e2 && e2.length > 0 ? this.toolbarFieldParam && this.toolbarFieldParam.length > 0 && (1 === e2.length && (e2[0].leftBracket = "(", e2[0].rightBracket = ")"), "or" === e2[e2.length - 1].joinSign && (e2[e2.length - 1].joinSign = "and"), Array.prototype.push.apply(e2, this.toolbarFieldParam)) : this.toolbarFieldParam && this.toolbarFieldParam.length > 0 && (e2 = this.toolbarFieldParam), this.search(e2, true);
564
576
  }, doSearchDialog(e2) {
565
577
  this.currentPage = 1, this.search(e2, true), this.closeSearchFormDialog();
578
+ }, searSubTable(e2, t2) {
579
+ let i2 = [];
580
+ return e2 && e2.forEach((e3) => {
581
+ O(t2, e3) && i2.push(e3);
582
+ }), i2;
566
583
  }, search(e2, t2, o2) {
567
584
  i(this, "refresh");
568
585
  const a2 = this;
569
586
  return new Promise((s2, r2) => {
570
- const n2 = k.get(a2.code);
587
+ const n2 = R.get(a2.code);
571
588
  if (n2.searchForm = null != e2 ? e2 : null, n2.options && n2.options.isAdministerListView) {
572
589
  if (n2.options.SuperGrid && n2.options.SuperGrid.simulationDate) {
573
590
  let e3;
574
- C("gridDataLoaded", a2.code) ? (e3 = n2.options.gridDataLoaded.call(this, { gridData: n2.options.SuperGrid.simulationDate, columns: n2.columns, additionalParamMap: n2.additionalParamMap, pageContext: this.pageContext, configureObj: this.configureObj }), e3 || (e3 = n2.options.SuperGrid.simulationDate)) : e3 = n2.options.SuperGrid.simulationDate, s2(e3);
591
+ S("gridDataLoaded", a2.code) ? (e3 = n2.options.gridDataLoaded.call(this, { gridData: n2.options.SuperGrid.simulationDate, columns: n2.columns, additionalParamMap: n2.additionalParamMap, pageContext: this.pageContext, configureObj: this.configureObj }), e3 || (e3 = n2.options.SuperGrid.simulationDate)) : e3 = n2.options.SuperGrid.simulationDate, s2(e3);
575
592
  }
576
593
  } else if (n2.options && n2.options.isFormSubTable && n2.options.subTableData && n2.options.subTableData.length > 0) {
577
- let e3;
578
- a2.hasLoadData = false, n2.loaded = true, C("gridDataLoaded", a2.code) ? (e3 = n2.options.gridDataLoaded.call(this, { gridData: n2.options.subTableData, columns: n2.columns, additionalParamMap: n2.additionalParamMap, pageContext: this.pageContext, configureObj: this.configureObj }), e3 || (e3 = n2.options.subTableData, a2.hasLoadData = true)) : (e3 = n2.options.subTableData, a2.hasLoadData = true), s2(e3);
594
+ let o3 = n2.options.subTableData;
595
+ this.searchSubTable(o3, e2, t2, n2), a2.$refs && a2.$refs.sf && (a2.$refs.sf.loading = false, a2.$refs.sf.searchComplete()), a2.$refs && a2.$refs.sfDialog && (a2.$refs.sfDialog.loading = false, a2.$refs.sfDialog.searchComplete()), a2.showSubTableSearchDialog = false, i(a2, "cancel-search"), s2(o3);
579
596
  } else
580
597
  a2.fetchData(a2.getSearchParam(), t2, o2).then((e3) => {
581
598
  void 0 !== n2 && void 0 !== n2.options && void 0 !== n2.options.isHiddenSearchForm && true === n2.options.isHiddenSearchForm && (a2.showSearch = false, i(a2, "cancel-search")), a2.$refs && a2.$refs.sf && (a2.$refs.sf.loading = false, a2.$refs.sf.searchComplete()), this.resizeTableHeight(), s2(e3);
@@ -583,8 +600,11 @@ const pe = { components: { IndexColumn: o, SelectionColumn: a, NormalColumn: s,
583
600
  a2.$refs.sf && (a2.$refs.sf.loading = false, a2.$refs.sf.searchComplete()), r2(e3);
584
601
  });
585
602
  });
603
+ }, searchSubTable(e2, t2, i2, o2) {
604
+ let a2 = e2;
605
+ i2 && (a2 = this.searSubTable(e2, t2)), this.packageSubTableData(o2, a2, this.sortInfo, i2, this.orderColumn), i2 ? (o2.isSubSearch = true, this.isSubSearch = true, this.subTableDataSearch = a2) : (o2.isSubSearch = false, this.isSubSearch = false, this.subTableDataSearch = []);
586
606
  }, getPaginationInfo() {
587
- const e2 = k.get(this.code);
607
+ const e2 = R.get(this.code);
588
608
  if (this.pagination) {
589
609
  if (this.isDelete && this.currentPage > 1) {
590
610
  const e3 = Math.ceil((this.pagination.total - this.gridData.length) / this.pagination.pageSize);
@@ -595,7 +615,7 @@ const pe = { components: { IndexColumn: o, SelectionColumn: a, NormalColumn: s,
595
615
  }
596
616
  return { currentPage: 1, pageSize: 20, showTotal: true };
597
617
  }, getSearchParam() {
598
- const e2 = { code: this.code, tableName: this.tableName }, t2 = k.get(this.code), i2 = this.getPaginationInfo();
618
+ const e2 = { code: this.code, tableName: this.tableName }, t2 = R.get(this.code), i2 = this.getPaginationInfo();
599
619
  if (i2 && null !== i2 && (e2.pagination = i2), null !== this.sortInfo && (e2.sorts = this.sortInfo), this.mergeFields && this.mergeFields.length > 0) {
600
620
  e2.sorts || (e2.sorts = []);
601
621
  const t3 = [];
@@ -616,27 +636,37 @@ const pe = { components: { IndexColumn: o, SelectionColumn: a, NormalColumn: s,
616
636
  }, getComponentType(e2) {
617
637
  const t2 = e2.prop;
618
638
  let i2 = "NormalColumn";
619
- return "$index" === t2 ? i2 = "IndexColumn" : "$selection" === t2 ? (k.get(this.code).isMulitiSelect = true, i2 = "SelectionColumn") : void 0 === t2 && e2.children && e2.children.length > 0 && (i2 = "GroupColumn"), i2;
639
+ return "$index" === t2 ? i2 = "IndexColumn" : "$selection" === t2 ? (R.get(this.code).isMulitiSelect = true, i2 = "SelectionColumn") : void 0 === t2 && e2.children && e2.children.length > 0 && (i2 = "GroupColumn"), i2;
620
640
  }, focusOnFirstEditableInput() {
621
- this.basicInfo.editable && (this.lineEdit.editingCell.row = 0, this.lineEdit.editingCell.prop = v(this.code));
641
+ this.basicInfo.editable && (this.lineEdit.editingCell.row = 0, this.lineEdit.editingCell.prop = x(this.code));
622
642
  }, handleSizeChange(e2) {
623
643
  this.options && this.options.isPageShow || (this.currentPage = 1, this.pageSize = e2, this.pagination.pageSize = e2, this.changePage());
624
644
  }, handleCurrentChange(e2) {
625
- this.options && this.options.isPageShow || this.changePage();
645
+ this.options && this.options.isPageShow || this.changePage(e2);
626
646
  }, changePage(e2) {
627
647
  var _a;
628
648
  if ((_a = this.$refs.superGrid) == null ? void 0 : _a.clearFilter(), this.isSubTableShowPage) {
629
- this.gridData = this.getSubTableGridData(this.subTableData, e2);
630
- const t2 = k.get(this.code);
631
- t2.gridData = this.gridData, t2.orgGridData = [].concat(JSON.parse(JSON.stringify(this.gridData)));
649
+ let t2;
650
+ t2 = this.isSubSearch ? this.getSubTableGridData(this.subTableDataSearch, e2) : this.getSubTableGridData(this.subTableData, e2), this.gridData = t2;
651
+ const i2 = R.get(this.code);
652
+ i2.gridData = this.gridData, i2.orgGridData = [].concat(JSON.parse(JSON.stringify(this.gridData)));
632
653
  } else
633
654
  this.fetchData(this.getSearchParam());
655
+ }, getSortColumn(e2, t2, i2) {
656
+ for (let o2 = 0; o2 < e2.length; o2++) {
657
+ const a2 = e2[o2];
658
+ if (a2.children && a2.children.length > 0)
659
+ this.getSortColumn(a2.children, t2, i2);
660
+ else if (t2.property === a2.prop) {
661
+ i2.push(a2);
662
+ break;
663
+ }
664
+ }
634
665
  }, handleSortChange({ column: e2, prop: t2, order: o2 }) {
635
666
  var _a;
636
667
  if (!this.options || !this.options.isPageShow) {
637
- let a2 = null;
638
- const s2 = this.visibleColumns.filter((t3) => e2.property === t3.prop);
639
- if (s2 && s2.length > 0 && (a2 = s2[0]), O(this.code)) {
668
+ let a2 = null, s2 = [];
669
+ if (this.getSortColumn(this.visibleColumns, e2, s2), s2 && s2.length > 0 && (a2 = s2[0]), $(this.code)) {
640
670
  if (null !== t2 && a2 && null !== a2) {
641
671
  let e3 = a2.orgProp;
642
672
  const t3 = "__";
@@ -645,7 +675,7 @@ const pe = { components: { IndexColumn: o, SelectionColumn: a, NormalColumn: s,
645
675
  this.sortInfo = null;
646
676
  this.fetchData(this.getSearchParam()), this.focusOnFirstEditableInput(), i(this, "sort-change", { columnSetting: a2, prop: t2, order: o2, column: e2 });
647
677
  } else {
648
- k.get(this.code).$rowIndex, (_a = this.$refs.superGrid) == null ? void 0 : _a.clearSort();
678
+ R.get(this.code).$rowIndex, (_a = this.$refs.superGrid) == null ? void 0 : _a.clearSort();
649
679
  }
650
680
  }
651
681
  }, isMergeable(e2) {
@@ -674,7 +704,13 @@ const pe = { components: { IndexColumn: o, SelectionColumn: a, NormalColumn: s,
674
704
  const { columns: i2 } = e2, o2 = [];
675
705
  return i2.forEach((e3, i3) => {
676
706
  const a2 = e3.property, s2 = t2[a2];
677
- o2[i3] = null != s2 ? s2 : "";
707
+ if (null != s2) {
708
+ let e4;
709
+ a2 && this.columnsMap && this.columnsMap[a2] && (e4 = this.columnsMap[a2]);
710
+ let t3 = s2;
711
+ e4 && (t3 = W(e4, s2)), o2[i3] = t3;
712
+ } else
713
+ o2[i3] = "";
678
714
  }), o2;
679
715
  }, getDefaultSummaries(e2) {
680
716
  const t2 = [], i2 = this.packageSummaryColumnProps();
@@ -686,16 +722,22 @@ const pe = { components: { IndexColumn: o, SelectionColumn: a, NormalColumn: s,
686
722
  const n2 = e3.property;
687
723
  if (n2 && "$selection" !== n2 && "$index" !== n2 && null == s2)
688
724
  return s2 = o3, void (t2[o3] = "合计");
689
- i2.indexOf(n2) >= 0 ? (a2 && a2.forEach((e4) => {
690
- let t3, i3 = u(e4, n2);
691
- if (null != i3)
692
- t3 = Number(i3);
693
- else {
694
- const o4 = /[A-Z]+/;
695
- this.isSql && o4.test(n2) && (i3 = u(e4, n2.toLowerCase()), null != i3 && (t3 = Number(i3)));
696
- }
697
- null == t3 || isNaN(t3) || (r2 += t3);
698
- }), t2[o3] = r2) : t2[o3] = "";
725
+ if (i2.indexOf(n2) >= 0) {
726
+ let e4;
727
+ a2 && a2.forEach((e5) => {
728
+ let t3, i4 = u(e5, n2);
729
+ if (null != i4)
730
+ t3 = Number(i4);
731
+ else {
732
+ const o4 = /[A-Z]+/;
733
+ this.isSql && o4.test(n2) && (i4 = u(e5, n2.toLowerCase()), null != i4 && (t3 = Number(i4)));
734
+ }
735
+ null == t3 || isNaN(t3) || (r2 += t3);
736
+ }), n2 && this.columnsMap && this.columnsMap[n2] && (e4 = this.columnsMap[n2]), this.columnsMap;
737
+ let i3 = r2;
738
+ e4 && (i3 = W(e4, r2)), t2[o3] = i3;
739
+ } else
740
+ t2[o3] = "";
699
741
  });
700
742
  }
701
743
  return t2;
@@ -706,7 +748,7 @@ const pe = { components: { IndexColumn: o, SelectionColumn: a, NormalColumn: s,
706
748
  const e2 = document.querySelector(".el-table__body-wrapper tbody");
707
749
  if (null != e2) {
708
750
  const t2 = this;
709
- $.create(e2, { onEnd({ newIndex: e3, oldIndex: i2 }) {
751
+ k.create(e2, { onEnd({ newIndex: e3, oldIndex: i2 }) {
710
752
  const o2 = { oldIndex: i2, newIndex: e3 };
711
753
  this.$http.post(this.lineEdit.urlToSaveOrder, o2).then((o3) => {
712
754
  const a2 = t2.gridData.splice(i2, 1)[0];
@@ -750,8 +792,8 @@ const pe = { components: { IndexColumn: o, SelectionColumn: a, NormalColumn: s,
750
792
  }, changeHederWidth(e2, t2, o2, a2) {
751
793
  let s2 = e2 - 5;
752
794
  this.dragColumnProp = o2.property;
753
- const r2 = k.get(this.code);
754
- if (C("resizeColumn", this.code)) {
795
+ const r2 = R.get(this.code);
796
+ if (S("resizeColumn", this.code)) {
755
797
  const e3 = r2.options.resizeColumn.call(this, { code: this.code, newWidth: e3, oldWidth: t2, column: o2, additionalParamMap: r2.additionalParamMap, pageContext: this.pageContext, configureObj: this.configureObj });
756
798
  e3 && (s2 = e3);
757
799
  }
@@ -797,7 +839,7 @@ const pe = { components: { IndexColumn: o, SelectionColumn: a, NormalColumn: s,
797
839
  }, validatorSunTableListData() {
798
840
  let e2 = this.gridData;
799
841
  if (this.isSubTableShowPage && (e2 = this.subTableData), e2 && e2.length > 0) {
800
- const t2 = k.get(this.code), o2 = t2.options.customRules, a2 = this.pagination && this.pagination.pageSize, s2 = I.getValidator(this.code);
842
+ const t2 = R.get(this.code), o2 = t2.options.customRules, a2 = this.pagination && this.pagination.pageSize, s2 = j.getValidator(this.code);
801
843
  for (let r2 = 0; r2 < e2.length; r2++) {
802
844
  const n2 = e2[r2];
803
845
  let l2 = s2;
@@ -806,17 +848,17 @@ const pe = { components: { IndexColumn: o, SelectionColumn: a, NormalColumn: s,
806
848
  if (e3.length > 0) {
807
849
  for (const i2 of e3)
808
850
  if (o2[i2].beforeValidate) {
809
- false === F(o2[i2], t2, n2) && l2[i2] && (l2 = JSON.parse(JSON.stringify(s2)), l2[i2] = []);
851
+ false === E(o2[i2], t2, n2) && l2[i2] && (l2 = JSON.parse(JSON.stringify(s2)), l2[i2] = []);
810
852
  }
811
853
  }
812
854
  }
813
855
  void 0 !== n2.$editing && true === n2.$editing && (p(n2, "$editing", false), i(g, "un-edit", { row: n2 }));
814
856
  let h2 = true;
815
- w("isEnableValidate", this.code) && (h2 = t2.options.lineEditOptions.isEnableValidate);
857
+ y("isEnableValidate", this.code) && (h2 = t2.options.lineEditOptions.isEnableValidate);
816
858
  let d2 = true;
817
859
  if (true === h2) {
818
860
  let e3, t3;
819
- this.isSubTableShowPage && void 0 !== a2 && a2 > 0 && (e3 = Math.ceil((r2 + 1) / a2), t3 = r2 + 1 - (e3 - 1) * a2), d2 = I.validator(n2, this.code, r2, l2, this.isSubTableShowPage, e3, t3);
861
+ this.isSubTableShowPage && void 0 !== a2 && a2 > 0 && (e3 = Math.ceil((r2 + 1) / a2), t3 = r2 + 1 - (e3 - 1) * a2), d2 = j.validator(n2, this.code, r2, l2, this.isSubTableShowPage, e3, t3);
820
862
  }
821
863
  if (null != d2 && ("string" == typeof d2 || false === d2))
822
864
  return false;
@@ -827,18 +869,18 @@ const pe = { components: { IndexColumn: o, SelectionColumn: a, NormalColumn: s,
827
869
  }, getSunTableListData() {
828
870
  return this.isSubTableShowPage ? this.subTableData : this.gridData;
829
871
  }, rowDblclickEvent(e2, t2, i2) {
830
- const o2 = k.get(this.code);
872
+ const o2 = R.get(this.code);
831
873
  if (o2.options && o2.options.isFormSubTable && o2.options.isPdfEditor)
832
874
  ;
833
875
  else if (this.isFormSubTable) {
834
876
  if (t2.property && "operation" !== t2.property) {
835
877
  let t3 = true;
836
- const i3 = k.get(this.code);
878
+ const i3 = R.get(this.code);
837
879
  if (D("beforeEdit", this.code)) {
838
880
  const o3 = i3.isSubTableShowPage, a2 = i3.pagination && i3.pagination.pageSize;
839
881
  t3 = i3.options.lineEditOptions.beforeEdit.call(this, { gridData: o3 ? i3.subTableData : i3.gridData, listCode: this.code, entity: e2, columns: i3.columns, isMobile: this.isMobile, pageGridData: o3 ? i3.gridData : null, pageSize: a2, additionalParamMap: i3.additionalParamMap, pageContext: i3.pageContext, configureObj: i3.configureObj });
840
882
  }
841
- z(t3) ? t3.then((t4) => {
883
+ N(t3) ? t3.then((t4) => {
842
884
  void 0 !== t4 && true !== t4 || this.rowDbClickEditRow(i3, e2);
843
885
  }) : void 0 !== t3 && true !== t3 || this.rowDbClickEditRow(i3, e2);
844
886
  }
@@ -852,10 +894,10 @@ const pe = { components: { IndexColumn: o, SelectionColumn: a, NormalColumn: s,
852
894
  }, rowDbClickEditRow(e2, t2) {
853
895
  var _a;
854
896
  let i2;
855
- i2 = this.isSubTableShowPage ? this.subTableData.filter((e3) => void 0 !== e3.$editing && true === e3.$editing) : this.gridData.filter((e3) => void 0 !== e3.$editing && true === e3.$editing), i2 && i2.length > 0 && i2.forEach((e3) => {
897
+ i2 = this.isFormSubTable ? this.subTableData.filter((e3) => void 0 !== e3.$editing && true === e3.$editing) : this.gridData.filter((e3) => void 0 !== e3.$editing && true === e3.$editing), i2 && i2.length > 0 && i2.forEach((e3) => {
856
898
  p(e3, "$editing", false), g.$emit("un-edit", { row: e3 });
857
899
  }), e2.isEditRow = false;
858
- false !== E(e2, this.parentFormData, t2, (_a = e2.options.actionPermission) == null ? void 0 : _a.updateCondition) ? (p(t2, "$editing", true), e2.$editRow = t2, e2.isEditRow = true) : window.$vueApp.config.globalProperties.$message({ showClose: true, message: this.$t("superGrid.rowCanntEditTip"), type: "warning" });
900
+ false !== M(e2, this.parentFormData, t2, (_a = e2.options.actionPermission) == null ? void 0 : _a.updateCondition) ? (p(t2, "$editing", true), e2.$editRow = t2, e2.isEditRow = true) : window.$vueApp.config.globalProperties.$message({ showClose: true, message: this.$t("superGrid.rowCanntEditTip"), type: "warning" });
859
901
  }, rowClickEvent(e2, t2, i2) {
860
902
  this.rowClick(e2, t2, i2);
861
903
  }, openPageDialog(e2) {
@@ -865,7 +907,7 @@ const pe = { components: { IndexColumn: o, SelectionColumn: a, NormalColumn: s,
865
907
  if (this.pageContext) {
866
908
  const e3 = this.isMobile;
867
909
  if ("popup" === t2 || "refresh" === t2 || e3 && "newTab" === t2) {
868
- const t3 = k.get(this.code);
910
+ const t3 = R.get(this.code);
869
911
  this.jumpPageSetting = i2;
870
912
  const o2 = t3.isSubTableShowPage, a2 = t3.pagination && t3.pagination.pageSize, s2 = i2.row, r2 = { position: i2._position, listCode: i2._listCode, rowIndex: i2._rowIndex, row: i2.row, columnProp: i2._columnProp, id: s2 ? s2.ID ? s2.ID : s2.id : null, isMobile: e3, gridData: o2 ? t3.subTableData : t3.gridData, pageGridData: o2 ? t3.gridData : null, pageSize: a2 };
871
913
  this.$emit("new-open-grid-dialog", { pageContext: this.pageContext, configureObj: this.configureObj, eventParams: r2, jumpPageSetting: this.jumpPageSetting });
@@ -873,7 +915,7 @@ const pe = { components: { IndexColumn: o, SelectionColumn: a, NormalColumn: s,
873
915
  } else
874
916
  "popup" === t2 ? (this.jumpPageSetting = i2, this.$emit("open-grid-dialog", this.jumpPageSetting), this.isShowPageDialog = true) : "refresh" === t2 && this.$router.push({ path: "/dsc/page", query: i2 });
875
917
  }, closeSearchFormDialog() {
876
- this.showSearch = false;
918
+ this.showSearch = false, this.showSubTableSearchDialog = false;
877
919
  }, getQueryMode() {
878
920
  return this.query && "popup" === this.query.showType ? "popup" : "embedded";
879
921
  }, selectCell(e2, t2, i2, o2) {
@@ -883,8 +925,8 @@ const pe = { components: { IndexColumn: o, SelectionColumn: a, NormalColumn: s,
883
925
  }, refreshGridData() {
884
926
  this.refresh(false, true);
885
927
  }, refresData(e2) {
886
- const t2 = k.get(this.code);
887
- t2.gridData = e2, k.set(this.code, t2), this.parentFormData && (this.parentFormData[this.code] = e2), this.gridData = e2;
928
+ const t2 = R.get(this.code);
929
+ t2.gridData = e2, R.set(this.code, t2), this.parentFormData && (this.parentFormData[this.code] = e2), this.gridData = e2;
888
930
  }, refresPortData(e2, t2, i2) {
889
931
  this.gridData[i2] && (this.gridData[i2][e2] = t2, this.$forceUpdate());
890
932
  }, refresPortsData(e2, t2) {
@@ -914,21 +956,21 @@ const pe = { components: { IndexColumn: o, SelectionColumn: a, NormalColumn: s,
914
956
  }
915
957
  return this.checkStrictly && (a2.checkStrictly = true), a2;
916
958
  }, refreshSubTableData(e2) {
917
- const t2 = k.get(this.code);
918
- t2.subTableData = e2, k.set(this.code, t2), this.subTableData = e2;
959
+ const t2 = R.get(this.code);
960
+ t2.subTableData = e2, R.set(this.code, t2), this.subTableData = e2;
919
961
  }, refreshList() {
920
962
  this.fetchData(this.getSearchParam());
921
963
  }, selectRecord(e2, t2) {
922
964
  var _a;
923
965
  this.selectionTableData = t2;
924
966
  let i2 = true;
925
- const o2 = k.get(this.code);
926
- C("selectRecord", this.code) && (i2 = o2.options.selectRecord.call(this, { gridData: this.isSubTableShowPage ? this.subTableData : this.gridData, columns: o2.columns, superGrid: this.$refs.superGrid, pageGridData: this.isSubTableShowPage ? this.gridData : null, additionalParamMap: o2.additionalParamMap, selection: e2, row: t2, parentFormData: this.parentFormData, pageContext: this.pageContext, configureObj: this.configureObj }), void 0 !== i2 && false === i2 && ((_a = this.$refs.superGrid) == null ? void 0 : _a.toggleRowSelection(t2, false))), this.select(e2, t2);
967
+ const o2 = R.get(this.code);
968
+ S("selectRecord", this.code) && (i2 = o2.options.selectRecord.call(this, { gridData: this.isSubTableShowPage ? this.subTableData : this.gridData, columns: o2.columns, superGrid: this.$refs.superGrid, pageGridData: this.isSubTableShowPage ? this.gridData : null, additionalParamMap: o2.additionalParamMap, selection: e2, row: t2, parentFormData: this.parentFormData, pageContext: this.pageContext, configureObj: this.configureObj }), void 0 !== i2 && false === i2 && ((_a = this.$refs.superGrid) == null ? void 0 : _a.toggleRowSelection(t2, false))), this.select(e2, t2);
927
969
  }, selectAllRecord(e2) {
928
970
  var _a;
929
971
  let t2 = true;
930
- const i2 = k.get(this.code);
931
- C("selectAllRecords", this.code) && (t2 = i2.options.selectAllRecords.call(this, { gridData: this.isSubTableShowPage ? this.subTableData : this.gridData, columns: i2.columns, superGrid: this.$refs.superGrid, pageGridData: this.isSubTableShowPage ? this.gridData : null, additionalParamMap: i2.additionalParamMap, selection: e2, parentFormData: this.parentFormData, pageContext: this.pageContext, configureObj: this.configureObj }), void 0 !== t2 && false === t2 && ((_a = this.$refs.superGrid) == null ? void 0 : _a.toggleAllSelection())), this.selectAll(e2);
972
+ const i2 = R.get(this.code);
973
+ S("selectAllRecords", this.code) && (t2 = i2.options.selectAllRecords.call(this, { gridData: this.isSubTableShowPage ? this.subTableData : this.gridData, columns: i2.columns, superGrid: this.$refs.superGrid, pageGridData: this.isSubTableShowPage ? this.gridData : null, additionalParamMap: i2.additionalParamMap, selection: e2, parentFormData: this.parentFormData, pageContext: this.pageContext, configureObj: this.configureObj }), void 0 !== t2 && false === t2 && ((_a = this.$refs.superGrid) == null ? void 0 : _a.toggleAllSelection())), this.selectAll(e2);
932
974
  }, cardSelectionChangeEvent(e2) {
933
975
  var _a, _b;
934
976
  try {
@@ -943,8 +985,8 @@ const pe = { components: { IndexColumn: o, SelectionColumn: a, NormalColumn: s,
943
985
  this.selectionChangeEvent(e2);
944
986
  }, selectionChangeEvent(e2) {
945
987
  this.selectionTableData = e2;
946
- const t2 = k.get(this.code);
947
- C("selectionChange", this.code) && t2.options.selectionChange.call(this, { gridData: this.isSubTableShowPage ? this.subTableData : this.gridData, columns: t2.columns, superGrid: this.$refs.superGrid, pageGridData: this.isSubTableShowPage ? this.gridData : null, additionalParamMap: t2.additionalParamMap, selection: e2, parentFormData: this.parentFormData, pageContext: this.pageContext, configureObj: this.configureObj }), this.selectionChange(e2);
988
+ const t2 = R.get(this.code);
989
+ S("selectionChange", this.code) && t2.options.selectionChange.call(this, { gridData: this.isSubTableShowPage ? this.subTableData : this.gridData, columns: t2.columns, superGrid: this.$refs.superGrid, pageGridData: this.isSubTableShowPage ? this.gridData : null, additionalParamMap: t2.additionalParamMap, selection: e2, parentFormData: this.parentFormData, pageContext: this.pageContext, configureObj: this.configureObj }), this.selectionChange(e2);
948
990
  }, showMobileSearch() {
949
991
  this.isShowMobileSearch, this.isMobile, this.isShowMobileSearch = true, this.$refs.sf && this.$refs.sf.showMobileSearch();
950
992
  }, pickFileDone(e2) {
@@ -958,7 +1000,7 @@ const pe = { components: { IndexColumn: o, SelectionColumn: a, NormalColumn: s,
958
1000
  }, closeRowForm() {
959
1001
  this.showRowForm = false;
960
1002
  }, filterData() {
961
- const e2 = k.get(this.code), t2 = { pageContext: this.pageContext, configureObj: this.configureObj, gridData: this.gridData };
1003
+ const e2 = R.get(this.code), t2 = { pageContext: this.pageContext, configureObj: this.configureObj, gridData: this.gridData };
962
1004
  return e2.options.filterDataEvent.call(this, t2);
963
1005
  }, resetAdditionalParamMap(e2, t2) {
964
1006
  if (this.pageContext && this.pageContext.entity) {
@@ -983,7 +1025,7 @@ const pe = { components: { IndexColumn: o, SelectionColumn: a, NormalColumn: s,
983
1025
  var _a, _b;
984
1026
  try {
985
1027
  const i2 = this.getComponentType(e2);
986
- return { column: e2, getComponentType: this.getComponentType, customFormat: t2, $bind: { column: e2, ref: e2.prop, "is-sql": this.isSql, "list-code": this.code, "new-width": this.newWidth, "drag-column-prop": this.dragColumnProp, "right-click-menu-arr": (_a = this.options) == null ? void 0 : _a.rightClickMenuArr, "table-name": this.tableName, "page-code": this.pageCode, "list-name": this.listName, options: this.options, "current-page": this.currentPage, pagination: this.pagination, "is-data-children": this.tableDatas.some((e3) => Array.isArray(e3 == null ? void 0 : e3.children)), "grid-data": this.isSubTableShowPage ? this.subTableData : this.gridData, "page-grid-data": this.isSubTableShowPage ? this.getSubTableGridData(this.subTableData) : this.gridData, ...t2 ? { "custom-format": ["GroupColumn"].includes(i2) ? t2 : t2[e2.prop] } : { "is-line-edit": ((_b = this.lineEdit) == null ? void 0 : _b.editable) ?? false, "list-toolbar-form-data": this.listToolbarFormData } }, $on: { "open-page": this.openPageDialog, refresData: this.refresData, "refresh-list": this.refreshList, refresPortData: this.refresPortData, refresPortsData: this.refresPortsData, refresMainTableFields: this.refresMainTableFields, prohibitToEdit: this.prohibitToEdit, batchDeleteSubTableRow: this.batchDeleteSubTableRow } };
1028
+ return { column: e2, getComponentType: this.getComponentType, customFormat: t2, $bind: { column: e2, ref: e2.prop, "is-sql": this.isSql, "list-code": this.code, "new-width": this.newWidth, "drag-column-prop": this.dragColumnProp, "right-click-menu-arr": (_a = this.options) == null ? void 0 : _a.rightClickMenuArr, "table-name": this.tableName, "page-code": this.pageCode, "list-name": this.listName, options: this.options, "current-page": this.currentPage, pagination: this.pagination, "grid-data": this.isFormSubTable ? this.isSubSearch ? this.subTableDataSearch : this.subTableData : this.gridData, ...t2 ? { "custom-format": ["GroupColumn"].includes(i2) ? t2 : t2[e2.prop] } : { "is-line-edit": ((_b = this.lineEdit) == null ? void 0 : _b.editable) ?? false, "list-toolbar-form-data": this.listToolbarFormData } }, $on: { "open-page": this.openPageDialog, refresData: this.refresData, "refresh-list": this.refreshList, refresPortData: this.refresPortData, refresPortsData: this.refresPortsData, refresMainTableFields: this.refresMainTableFields, prohibitToEdit: this.prohibitToEdit, batchDeleteSubTableRow: this.batchDeleteSubTableRow } };
987
1029
  } catch (t3) {
988
1030
  return console.error(t3), { column: e2 };
989
1031
  }
@@ -1041,12 +1083,32 @@ const pe = { components: { IndexColumn: o, SelectionColumn: a, NormalColumn: s,
1041
1083
  a2 && (o2[a2.label] = e3[t3]);
1042
1084
  }), t2.push(o2);
1043
1085
  }), t2;
1044
- }, rowDoFormat: (e2, t2) => J(e2, t2) }, emits: ["change-grid-data", "change-rows-per-page", "set-select-options", "setSearchType", "sort-change", "changeHederWidth", "header-click", "un-edit", "refresMainTableFields", "refresh", "cancel-search", "changeOperationAddState"] }, ue = { key: 2, class: "super-grid-main-table-footer-view" }, ge = { class: "yx-flex-wrap", style: { gap: "10px" } }, me = ["title"], be = ["title"];
1045
- const fe = ce(pe, [["render", function(e2, t2, i2, o2, a2, s2) {
1046
- var _a, _b, _c;
1047
- const r2 = U("search-form"), n2 = U("search-form-dialog"), l2 = U("MobileCard"), h2 = U("row-detail"), d2 = U("el-table"), c2 = U("el-icon-setting"), p2 = U("el-icon-refresh"), u2 = U("el-pagination"), g2 = U("columns-config"), m2 = U("header-context-menu"), b2 = U("row-form"), f2 = W("resize");
1048
- return K((Q(), X("div", { "data-v": "1.0.0", class: "super-grid-main-view", style: Y(a2.subTableStyle), onClick: t2[9] || (t2[9] = (...t3) => e2.onClickTableMain && e2.onClickTableMain(...t3)) }, [!a2.isFormSubTable && a2.hasLoadedColumns && a2.query && "embedded" === a2.query.showType ? K((Q(), Z(r2, { key: 0, ref: "sf", columns: a2.columns, code: i2.code, url: i2.url, pagination: a2.pagination, query: a2.query, "search-form-info": i2.searchFormInfo, "search-param": a2.searchFormContent, "init-search-props": a2.initSearchProps, "list-toolbar-form-data": i2.listToolbarFormData, "load-complete-query": a2.loadCompleteQuery, class: "super-grid-main-search-view", onSearch: s2.doSearch, onReset: s2.resetSearch, onOpenFold: s2.openFold, onCanShowMobileSearch: t2[0] || (t2[0] = (t3) => e2.$emit("can-show-mobile-search", i2.code)), onCloseMobileSearch: t2[1] || (t2[1] = (e3) => a2.isShowMobileSearch = false) }, null, 8, ["columns", "code", "url", "pagination", "query", "search-form-info", "search-param", "init-search-props", "list-toolbar-form-data", "load-complete-query", "onSearch", "onReset", "onOpenFold"])), [[ee, !a2.isMobile || a2.isMobile && a2.isShowMobileSearch]]) : te("", true), a2.hasLoadedColumns && a2.query && "popup" === a2.query.showType ? (Q(), Z(n2, { key: 1, ref: "sfDialog", columns: a2.columns, code: i2.code, url: i2.url, pagination: a2.pagination, query: a2.query, "search-param": a2.searchFormContent, "init-search-props": a2.initSearchProps, onSearch: s2.doSearchDialog, onReset: s2.resetSearch, onClose: s2.closeSearchFormDialog }, null, 8, ["columns", "code", "url", "pagination", "query", "search-param", "init-search-props", "onSearch", "onReset", "onClose"])) : te("", true), ie("div", { ref: "superGridMain", class: oe(["grid-area " + i2.code, "super-grid-main-body"]) }, [s2.isShowCard ? (Q(), Z(l2, { key: 0, selection: a2.selectionTableData, columns: s2.visibleColumns, listCode: i2.code, getColumnComponentData: s2.getColumnComponentData, data: s2.tableDatas, "current-page": a2.currentPage, "onUpdate:currentPage": t2[2] || (t2[2] = (e3) => a2.currentPage = e3), "page-size": (_b = (_a = a2.pagination) == null ? void 0 : _a.pageSizes) == null ? void 0 : _b[0], "page-total": (_c = a2.pagination) == null ? void 0 : _c.total, class: "super-grid-main-card-view", onSelect: s2.selectRecord, onSelectionChange: s2.cardSelectionChangeEvent, onCurrentChange: s2.handleCurrentChange, onRowClick: s2.rowClickEvent, onRowDblclick: s2.rowDblclickEvent }, null, 8, ["selection", "columns", "listCode", "getColumnComponentData", "data", "current-page", "page-size", "page-total", "onSelect", "onSelectionChange", "onCurrentChange", "onRowClick", "onRowDblclick"])) : a2.refreshGrid && a2.hasLoadedColumns && !s2.isShowCard ? (Q(), Z(d2, { key: 1, ref: "superGrid", data: s2.tableDatas, "row-key": s2.getRowKeyProp, "show-summary": s2.showSummary, "summary-method": s2.getSummaries, style: Y(a2.tableStyle), stripe: a2.stripe, border: true, "default-expand-all": a2.defaultExpandAll, lazy: a2.isLazy, load: s2.loadChildren, "row-style": s2.changeRowStyle, "cell-style": s2.changeCellStyle, "header-cell-style": s2.changeHeaderStyle, "highlight-current-row": true, "span-method": s2.rowSpan, "max-height": s2.hasMaxHeight, height: s2.hasTableHeight, class: oe([a2.tableClass, "super-grid-main-table-view"]), "tree-props": s2.getTreeProps(a2.parentProp, a2.isSql, a2.isLazy, a2.dataSourceType), "scrollbar-always-on": s2.scrollbarAlwaysOn, onSortChange: s2.handleSortChange, onSelect: s2.selectRecord, onSelectAll: s2.selectAllRecord, onSelectionChange: s2.selectionChangeEvent, onRowClick: s2.rowClickEvent, onRowDblclick: s2.rowDblclickEvent, onExpandChange: s2.expandChange, onHeaderClick: s2.headerClickEvent, onHeaderDragend: s2.changeHederWidth, onHeaderContextmenu: s2.headerContextmenu, onCellClick: s2.selectCell, onCellDblclick: e2.cellDblClick }, { default: ae(() => [a2.detailColumn ? (Q(), Z(h2, { key: 0, column: a2.detailColumn, "list-code": i2.code, onShowDetail: s2.openRowForm }, null, 8, ["column", "list-code", "onShowDetail"])) : te("", true), (Q(true), X(se, null, re(s2.visibleColumnsComponentData, ({ column: e3, ...t3 }, i3) => (Q(), Z(ne(s2.getComponentType(e3)), le({ ref_for: true, ref: e3.prop, key: e3.label + i3 }, t3.$bind, he(t3.$on)), null, 16))), 128))]), _: 1 }, 8, ["data", "row-key", "show-summary", "summary-method", "style", "stripe", "default-expand-all", "lazy", "load", "row-style", "cell-style", "header-cell-style", "span-method", "max-height", "height", "class", "tree-props", "scrollbar-always-on", "onSortChange", "onSelect", "onSelectAll", "onSelectionChange", "onRowClick", "onRowDblclick", "onExpandChange", "onHeaderClick", "onHeaderDragend", "onHeaderContextmenu", "onCellClick", "onCellDblclick"])) : te("", true), i2.showPagination && !s2.isShowCard ? (Q(), X("div", ue, [ie("div", ge, [a2.basicInfo.customConfig && !a2.isFormSubTable ? (Q(), X("div", { key: 0, class: "el-icon-setting", title: e2.$t("superGrid.columnConfig"), onClick: t2[3] || (t2[3] = (...e3) => s2.configColumns && s2.configColumns(...e3)) }, [de(c2, { style: { width: "16px", height: "16px", color: "#777", cursor: "pointer" } })], 8, me)) : te("", true), a2.isFormSubTable ? te("", true) : (Q(), X("div", { key: 1, class: "el-icon-refresh", title: e2.$t("superGrid.refresh"), onClick: t2[4] || (t2[4] = (...e3) => s2.refreshGridData && s2.refreshGridData(...e3)) }, [de(p2, { style: { width: "16px", height: "16px", color: "#777", cursor: "pointer" } })], 8, be))]), a2.pagination && a2.isShowPage ? (Q(), Z(u2, { key: 0, "current-page": a2.currentPage, "onUpdate:currentPage": t2[5] || (t2[5] = (e3) => a2.currentPage = e3), "page-size": a2.pagination.pageSize, "onUpdate:pageSize": t2[6] || (t2[6] = (e3) => a2.pagination.pageSize = e3), background: "", "page-sizes": a2.pagination.pageSizes, layout: a2.pagination.layout, total: a2.pagination.showTotal ? void 0 !== a2.pagination.total && "" !== a2.pagination.total && null !== a2.pagination.total ? a2.pagination.total : 0 : 1e11, onSizeChange: s2.handleSizeChange, onCurrentChange: s2.handleCurrentChange }, null, 8, ["current-page", "page-size", "page-sizes", "layout", "total", "onSizeChange", "onCurrentChange"])) : te("", true)])) : te("", true)], 2), a2.showColumnConfig ? (Q(), Z(g2, { key: 2, "visible-columns": s2.visibleColumns, "list-code": i2.code, "is-sql": a2.isSql, onClose: t2[7] || (t2[7] = (e3) => s2.closeCustomConfig(e3)), onReset: t2[8] || (t2[8] = (e3) => s2.resetCustomConfig(e3)) }, null, 8, ["visible-columns", "list-code", "is-sql"])) : te("", true), a2.showHeaderContextmenu ? (Q(), Z(m2, { key: 3, ref: "headerMenu", "buttom-arr": i2.options.rightClickMenuArr, column: a2.rightClickColumn, onClearHeaderContextmenu: s2.clearHeaderContextmenu }, null, 8, ["buttom-arr", "column", "onClearHeaderContextmenu"])) : te("", true), a2.showRowForm ? (Q(), Z(b2, { key: 4, "parent-form-data": a2.parentFormData, columns: s2.visibleColumns, "row-index": a2.currentEditRowIndex, "list-code": i2.code, "drag-column-prop": a2.dragColumnProp, "is-sql": a2.isSql, "base-url": a2.baseURL, options: i2.options, "table-name": a2.tableName, "page-code": a2.pageCode, "list-toolbar-form-data": i2.listToolbarFormData, "list-name": a2.listName, "current-page": a2.currentPage, "grid-data": a2.isSubTableShowPage ? a2.subTableData : a2.gridData, "page-grid-data": a2.isSubTableShowPage ? s2.getSubTableGridData(a2.subTableData) : a2.gridData, "line-edit": a2.lineEdit, "show-page": a2.pagination && a2.isShowPage, "page-size": a2.pagination ? a2.pagination.pageSize : null, onClose: s2.closeRowForm, onRefresData: s2.refresData, onRefresPortData: s2.refresPortData, onRefresPortsData: s2.refresPortsData, onRefresMainTableFields: s2.refresMainTableFields, onOpenPage: s2.openPageDialog, onProhibitToEdit: s2.prohibitToEdit, onRefreshList: s2.refreshList }, null, 8, ["parent-form-data", "columns", "row-index", "list-code", "drag-column-prop", "is-sql", "base-url", "options", "table-name", "page-code", "list-toolbar-form-data", "list-name", "current-page", "grid-data", "page-grid-data", "line-edit", "show-page", "page-size", "onClose", "onRefresData", "onRefresPortData", "onRefresPortsData", "onRefresMainTableFields", "onOpenPage", "onProhibitToEdit", "onRefreshList"])) : te("", true)], 4)), [[f2, s2.onResize]]);
1049
- }], ["__scopeId", "data-v-2eb1c8ec"]]);
1086
+ }, rowDoFormat: (e2, t2) => W(e2, t2), showSubTableSearch() {
1087
+ this.isMobile ? this.showMobileSearch() : (this.showSubTableSearchDialog = true, this.$refs.sfDialog && this.$refs.sfDialog.showSubTableSearchDialog());
1088
+ }, sortChangeColumn(e2) {
1089
+ if (e2 && this.orderColumns) {
1090
+ const t2 = this.orderColumns.filter((t3) => t3.prop && t3.prop === e2);
1091
+ t2 && t2.length > 0 && (this.orderColumn = t2[0]), e2 && this.orderType && this.sortChangeFunc(e2, this.orderType);
1092
+ } else
1093
+ this.orderColumn = null;
1094
+ }, sortChangeType(e2) {
1095
+ this.orderField && e2 && this.sortChangeFunc(this.orderField, e2);
1096
+ }, sortChangeFunc(e2, t2) {
1097
+ if (e2 && t2)
1098
+ if (this.sortInfo = [{ prop: e2, order: t2 }], this.isFormSubTable) {
1099
+ let e3;
1100
+ e3 = this.isSubSearch ? this.subTableDataSearch : this.subTableData;
1101
+ const t3 = R.get(this.code);
1102
+ let i2 = [];
1103
+ void 0 !== t3.searchForm && (i2 = t3.searchForm), this.searchSubTable(e3, i2, this.isSubSearch, t3);
1104
+ } else
1105
+ this.search(null, true);
1106
+ } }, emits: ["change-grid-data", "change-rows-per-page", "set-select-options", "setSearchType", "sort-change", "changeHederWidth", "header-click", "un-edit", "refresMainTableFields", "refresh", "cancel-search", "changeOperationAddState"] }, fe = { class: "yx-flex-wrap", justify: "space-between" }, Se = { style: { flex: "'1 1 auto'", width: "60px" } }, Ce = { key: 0, class: "yx-flex-wrap" }, we = { key: 2, class: "super-grid-main-table-footer-view" }, De = { class: "yx-flex-wrap", style: { gap: "10px" } }, ye = { key: 0, style: { width: "16px", height: "16px" } }, Te = ["title"], Pe = ["title"];
1107
+ const ve = me(be, [["render", function(e2, t2, i2, o2, a2, s2) {
1108
+ var _a, _b, _c, _d;
1109
+ const r2 = K("search-form"), n2 = K("el-button"), l2 = K("el-option"), h2 = K("el-select"), d2 = K("search-form-dialog"), c2 = K("MobileCard"), p2 = K("row-detail"), u2 = K("el-table"), g2 = K("el-icon-setting"), m2 = K("el-icon-refresh"), b2 = K("el-pagination"), f2 = K("columns-config"), S2 = K("header-context-menu"), C2 = K("row-form"), w2 = Q("resize");
1110
+ return X((Y(), Z("div", { "data-v": "1.0.0", class: "super-grid-main-view", style: ee(a2.subTableStyle), onClick: t2[11] || (t2[11] = (...t3) => e2.onClickTableMain && e2.onClickTableMain(...t3)) }, [(a2.isFormSubTable && a2.isMobile && a2.isHasSearchColumn && a2.query && ("embedded" === a2.query.showType || "popup" === a2.query.showType) || !a2.isFormSubTable && a2.query && "embedded" === a2.query.showType) && a2.hasLoadedColumns ? X((Y(), te(r2, { key: 0, ref: "sf", columns: a2.columns, code: i2.code, url: i2.url, pagination: a2.pagination, query: a2.query, "search-form-info": i2.searchFormInfo, "search-param": a2.searchFormContent, "init-search-props": a2.initSearchProps, "list-toolbar-form-data": i2.listToolbarFormData, "load-complete-query": a2.loadCompleteQuery, class: "super-grid-main-search-view", onSearch: s2.doSearch, onReset: s2.resetSearch, onOpenFold: s2.openFold, onCanShowMobileSearch: t2[0] || (t2[0] = (t3) => e2.$emit("can-show-mobile-search", i2.code)), onCloseMobileSearch: t2[1] || (t2[1] = (e3) => a2.isShowMobileSearch = false) }, null, 8, ["columns", "code", "url", "pagination", "query", "search-form-info", "search-param", "init-search-props", "list-toolbar-form-data", "load-complete-query", "onSearch", "onReset", "onOpenFold"])), [[ie, !a2.isMobile || a2.isMobile && a2.isShowMobileSearch]]) : oe("", true), ae("div", fe, [ae("div", Se, [a2.isFormSubTable && a2.isHasSearchColumn && a2.query && ("embedded" === a2.query.showType || "popup" === a2.query.showType) ? (Y(), te(n2, { key: 0, size: "small", onClick: s2.showSubTableSearch }, { default: se(() => [re(ne(e2.$t("imatrixUIMessage.search")), 1)]), _: 1 }, 8, ["onClick"])) : oe("", true)]), a2.isMobile && a2.orderColumns.length > 0 ? (Y(), Z("div", Ce, [le(h2, { style: { width: "120px", "padding-right": "10px" }, placeholder: e2.$t("superGrid.orderField"), clearable: "", filterable: "", modelValue: a2.orderField, "onUpdate:modelValue": t2[2] || (t2[2] = (e3) => a2.orderField = e3), onChange: s2.sortChangeColumn }, { default: se(() => [(Y(true), Z(he, null, de(a2.orderColumns, (e3) => (Y(), te(l2, { key: e3.prop, value: e3.prop, label: s2.getColumnLabel(e3) }, null, 8, ["value", "label"]))), 128))]), _: 1 }, 8, ["placeholder", "modelValue", "onChange"]), le(h2, { style: { width: "120px" }, placeholder: e2.$t("superGrid.orderType"), clearable: "", modelValue: a2.orderType, "onUpdate:modelValue": t2[3] || (t2[3] = (e3) => a2.orderType = e3), onChange: s2.sortChangeType }, { default: se(() => [le(l2, { value: "ascending", label: e2.$t("superGrid.orderTypeAsc") }, null, 8, ["label"]), le(l2, { value: "descending", label: e2.$t("superGrid.orderTypeDesc") }, null, 8, ["label"])]), _: 1 }, 8, ["placeholder", "modelValue", "onChange"])])) : oe("", true)]), a2.hasLoadedColumns ? (Y(), te(d2, { key: 1, ref: "sfDialog", columns: a2.columns, code: i2.code, url: i2.url, pagination: a2.pagination, query: a2.query, "search-form-info": i2.searchFormInfo, "search-param": a2.searchFormContent, "init-search-props": a2.initSearchProps, "list-toolbar-form-data": i2.listToolbarFormData, "load-complete-query": a2.loadCompleteQuery, onSearch: s2.doSearchDialog, onReset: s2.resetSearch, onClose: s2.closeSearchFormDialog }, null, 8, ["columns", "code", "url", "pagination", "query", "search-form-info", "search-param", "init-search-props", "list-toolbar-form-data", "load-complete-query", "onSearch", "onReset", "onClose"])) : oe("", true), ae("div", { ref: "superGridMain", class: ce(["grid-area " + i2.code, "super-grid-main-body"]) }, [s2.isShowCard ? (Y(), te(c2, { key: 0, selection: a2.selectionTableData, columns: s2.visibleColumns, listCode: i2.code, getColumnComponentData: s2.getColumnComponentData, data: s2.tableDatas, isEnableEdit: (_a = a2.lineEdit) == null ? void 0 : _a.editable, "current-page": a2.currentPage, "onUpdate:currentPage": t2[4] || (t2[4] = (e3) => a2.currentPage = e3), "page-size": (_c = (_b = a2.pagination) == null ? void 0 : _b.pageSizes) == null ? void 0 : _c[0], "page-total": (_d = a2.pagination) == null ? void 0 : _d.total, class: "super-grid-main-card-view", onSelect: s2.selectRecord, onSelectionChange: s2.cardSelectionChangeEvent, onCurrentChange: s2.handleCurrentChange, onRowClick: s2.rowClickEvent, onRowDblclick: s2.rowDblclickEvent }, null, 8, ["selection", "columns", "listCode", "getColumnComponentData", "data", "isEnableEdit", "current-page", "page-size", "page-total", "onSelect", "onSelectionChange", "onCurrentChange", "onRowClick", "onRowDblclick"])) : a2.refreshGrid && a2.hasLoadedColumns && !s2.isShowCard ? (Y(), te(u2, { key: 1, ref: "superGrid", data: s2.tableDatas, "row-key": s2.getRowKeyProp, "show-summary": s2.showSummary, "summary-method": s2.getSummaries, style: ee(a2.tableStyle), stripe: a2.stripe, border: true, "default-expand-all": a2.defaultExpandAll, lazy: a2.isLazy, load: s2.loadChildren, "row-style": s2.changeRowStyle, "cell-style": s2.changeCellStyle, "header-cell-style": s2.changeHeaderStyle, "highlight-current-row": true, "span-method": s2.rowSpan, "max-height": s2.hasMaxHeight, height: s2.hasTableHeight, class: ce([a2.tableClass, "super-grid-main-table-view"]), "tree-props": s2.getTreeProps(a2.parentProp, a2.isSql, a2.isLazy, a2.dataSourceType), "scrollbar-always-on": s2.scrollbarAlwaysOn, onSortChange: s2.handleSortChange, onSelect: s2.selectRecord, onSelectAll: s2.selectAllRecord, onSelectionChange: s2.selectionChangeEvent, onRowClick: s2.rowClickEvent, onRowDblclick: s2.rowDblclickEvent, onExpandChange: s2.expandChange, onHeaderClick: s2.headerClickEvent, onHeaderDragend: s2.changeHederWidth, onHeaderContextmenu: s2.headerContextmenu, onCellClick: s2.selectCell, onCellDblclick: e2.cellDblClick }, { default: se(() => [a2.detailColumn ? (Y(), te(p2, { key: 0, column: a2.detailColumn, "list-code": i2.code, onShowDetail: s2.openRowForm }, null, 8, ["column", "list-code", "onShowDetail"])) : oe("", true), (Y(true), Z(he, null, de(s2.visibleColumnsComponentData, ({ column: e3, ...t3 }, i3) => (Y(), te(pe(s2.getComponentType(e3)), ue({ ref_for: true, ref: e3.prop, key: e3.label + i3 }, t3.$bind, ge(t3.$on)), null, 16))), 128))]), _: 1 }, 8, ["data", "row-key", "show-summary", "summary-method", "style", "stripe", "default-expand-all", "lazy", "load", "row-style", "cell-style", "header-cell-style", "span-method", "max-height", "height", "class", "tree-props", "scrollbar-always-on", "onSortChange", "onSelect", "onSelectAll", "onSelectionChange", "onRowClick", "onRowDblclick", "onExpandChange", "onHeaderClick", "onHeaderDragend", "onHeaderContextmenu", "onCellClick", "onCellDblclick"])) : oe("", true), i2.showPagination && !s2.isShowCard ? (Y(), Z("div", we, [ae("div", De, [a2.isFormSubTable && a2.pagination && a2.isShowPage ? (Y(), Z("div", ye)) : oe("", true), a2.basicInfo.customConfig && !a2.isFormSubTable ? (Y(), Z("div", { key: 1, class: "el-icon-setting", title: e2.$t("superGrid.columnConfig"), onClick: t2[5] || (t2[5] = (...e3) => s2.configColumns && s2.configColumns(...e3)) }, [le(g2, { style: { width: "16px", height: "16px", color: "#777", cursor: "pointer" } })], 8, Te)) : oe("", true), a2.isFormSubTable ? oe("", true) : (Y(), Z("div", { key: 2, class: "el-icon-refresh", title: e2.$t("superGrid.refresh"), onClick: t2[6] || (t2[6] = (...e3) => s2.refreshGridData && s2.refreshGridData(...e3)) }, [le(m2, { style: { width: "16px", height: "16px", color: "#777", cursor: "pointer" } })], 8, Pe))]), a2.pagination && a2.isShowPage ? (Y(), te(b2, { key: 0, "current-page": a2.currentPage, "onUpdate:currentPage": t2[7] || (t2[7] = (e3) => a2.currentPage = e3), "page-size": a2.pagination.pageSize, "onUpdate:pageSize": t2[8] || (t2[8] = (e3) => a2.pagination.pageSize = e3), background: "", "page-sizes": a2.pagination.pageSizes, layout: a2.pagination.layout, total: a2.pagination.showTotal ? void 0 !== a2.pagination.total && "" !== a2.pagination.total && null !== a2.pagination.total ? a2.pagination.total : 0 : 1e11, onSizeChange: s2.handleSizeChange, onCurrentChange: s2.handleCurrentChange }, null, 8, ["current-page", "page-size", "page-sizes", "layout", "total", "onSizeChange", "onCurrentChange"])) : oe("", true)])) : oe("", true)], 2), a2.showColumnConfig ? (Y(), te(f2, { key: 2, "visible-columns": s2.visibleColumns, "list-code": i2.code, "is-sql": a2.isSql, onClose: t2[9] || (t2[9] = (e3) => s2.closeCustomConfig(e3)), onReset: t2[10] || (t2[10] = (e3) => s2.resetCustomConfig(e3)) }, null, 8, ["visible-columns", "list-code", "is-sql"])) : oe("", true), a2.showHeaderContextmenu ? (Y(), te(S2, { key: 3, ref: "headerMenu", "buttom-arr": i2.options.rightClickMenuArr, column: a2.rightClickColumn, onClearHeaderContextmenu: s2.clearHeaderContextmenu }, null, 8, ["buttom-arr", "column", "onClearHeaderContextmenu"])) : oe("", true), a2.showRowForm ? (Y(), te(C2, { key: 4, "parent-form-data": a2.parentFormData, columns: s2.visibleColumns, "row-index": a2.currentEditRowIndex, "list-code": i2.code, "drag-column-prop": a2.dragColumnProp, "is-sql": a2.isSql, "base-url": a2.baseURL, options: i2.options, "table-name": a2.tableName, "page-code": a2.pageCode, "list-toolbar-form-data": i2.listToolbarFormData, "list-name": a2.listName, "current-page": a2.currentPage, "grid-data": a2.isSubTableShowPage ? a2.subTableData : a2.gridData, "page-grid-data": a2.isSubTableShowPage ? s2.getSubTableGridData(a2.subTableData) : a2.gridData, "line-edit": a2.lineEdit, "show-page": a2.pagination && a2.isShowPage, "page-size": a2.pagination ? a2.pagination.pageSize : null, onClose: s2.closeRowForm, onRefresData: s2.refresData, onRefresPortData: s2.refresPortData, onRefresPortsData: s2.refresPortsData, onRefresMainTableFields: s2.refresMainTableFields, onOpenPage: s2.openPageDialog, onProhibitToEdit: s2.prohibitToEdit, onRefreshList: s2.refreshList }, null, 8, ["parent-form-data", "columns", "row-index", "list-code", "drag-column-prop", "is-sql", "base-url", "options", "table-name", "page-code", "list-toolbar-form-data", "list-name", "current-page", "grid-data", "page-grid-data", "line-edit", "show-page", "page-size", "onClose", "onRefresData", "onRefresPortData", "onRefresPortsData", "onRefresMainTableFields", "onOpenPage", "onProhibitToEdit", "onRefreshList"])) : oe("", true)], 4)), [[w2, s2.onResize]]);
1111
+ }], ["__scopeId", "data-v-664b8a45"]]);
1050
1112
  export {
1051
- fe as default
1113
+ ve as default
1052
1114
  };