agilebuilder-ui 1.1.65-tmp22 → 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 (81) 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 +7 -5
  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 +879 -873
  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 +915 -909
  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
  81. package/vite.config.js +0 -45
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
- const e = require("@element-plus/icons-vue"), t = require("../../utils/gogocodeTransfer.cjs"), i = require("./index-column.vue.cjs"), o = require("./selection-column.vue.cjs"), a = require("./normal-column.vue.cjs"), s = require("./group-column.vue.cjs"), n = require("./columns-config.vue.cjs"), r = require("./search-form.vue.cjs"), l = require("./search-form-dialog.vue.cjs"), h = require("./row-detail.vue.cjs"), d = require("./components/mobile-table-card.cjs"), c = require("../../src/utils/util.cjs"), p = require("./eventBus.cjs"), u = require("./utils.cjs"), g = require("sortablejs"), m = require("./store.cjs"), b = require("./events.cjs"), f = require("./public-methods.cjs"), C = require("./super-grid-service.cjs"), S = require("./formValidatorUtil.cjs"), D = require("./apis.cjs"), w = require("./header-context-menu.vue.cjs"), y = require("../../src/utils/common-util.cjs"), P = require("../../src/utils/permission.cjs"), T = require("../../src/utils/guid.cjs"), v = require("../../src/store/index.cjs"), F = require("../../src/utils/chat-ai-util.cjs"), O = require("./search-methods.cjs"), x = require("./formatter.cjs"), E = require("vue");
2
+ const e = require("@element-plus/icons-vue"), t = require("../../utils/gogocodeTransfer.cjs"), i = require("./index-column.vue.cjs"), o = require("./selection-column.vue.cjs"), a = require("./normal-column.vue.cjs"), s = require("./group-column.vue.cjs"), r = require("./columns-config.vue.cjs"), n = require("./search-form.vue.cjs"), l = require("./search-form-dialog.vue.cjs"), h = require("./row-detail.vue.cjs"), d = require("./components/mobile-table-card.cjs"), c = require("../../src/utils/util.cjs"), p = require("./eventBus.cjs"), u = require("./utils.cjs"), g = require("sortablejs"), m = require("./store.cjs"), b = require("./events.cjs"), f = require("./public-methods.cjs"), C = require("./super-grid-service.cjs"), S = require("./formValidatorUtil.cjs"), w = require("./apis.cjs"), D = require("./header-context-menu.vue.cjs"), y = require("../../src/utils/common-util.cjs"), T = require("../../src/utils/permission.cjs"), P = require("../../src/utils/guid.cjs"), v = require("../../src/store/index.cjs"), F = require("../../src/utils/chat-ai-util.cjs"), x = require("./search-methods.cjs"), k = require("./formatter.cjs"), O = require("vue");
3
3
  require("./super-grid.vue2.cjs");
4
- const k = require("../../_virtual/_plugin-vue_export-helper.cjs"), $ = { components: { IndexColumn: i, SelectionColumn: o, NormalColumn: a, GroupColumn: s, ColumnsConfig: n, SearchForm: r, headerContextMenu: w, searchFormDialog: l, ElIconSetting: e.Setting, ElIconRefresh: e.Refresh, RowDetail: h, MobileCard: d }, name: "SuperGrid", props: { isShowAutoCard: { type: Boolean, default: true }, code: { type: String, default: "" }, url: { type: String, default: "" }, options: { type: Object, default: function() {
4
+ const E = require("../../_virtual/_plugin-vue_export-helper.cjs"), $ = { components: { IndexColumn: i, SelectionColumn: o, NormalColumn: a, GroupColumn: s, ColumnsConfig: r, SearchForm: n, headerContextMenu: D, searchFormDialog: l, ElIconSetting: e.Setting, ElIconRefresh: e.Refresh, RowDetail: h, MobileCard: d }, name: "SuperGrid", props: { isShowAutoCard: { type: Boolean, default: true }, code: { type: String, default: "" }, url: { type: String, default: "" }, options: { type: Object, default: function() {
5
5
  return {};
6
6
  } }, 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() {
7
7
  let e2;
@@ -9,17 +9,17 @@ const k = require("../../_virtual/_plugin-vue_export-helper.cjs"), $ = { compone
9
9
  void 0 !== t2 && "" !== t2 && null !== t2 && (e2 = t2);
10
10
  let i2, o2, a2, s2 = [];
11
11
  this.options && this.options.mergeFields && "" !== this.options.mergeFields && (s2 = this.options.mergeFields.split(",")), this.options && this.options.optionTableHeight && "" !== this.options.optionTableHeight && (i2 = this.options.optionTableHeight), this.options && this.options.pageCode && (o2 = this.options.pageCode), this.options && this.options.pageHeight && (a2 = this.options.pageHeight);
12
- let n2 = true;
13
- this.options && void 0 !== this.options.lazy && (n2 = this.options.lazy);
14
12
  let r2 = true;
15
- this.options && void 0 !== this.options.defaultExpandAll && (r2 = this.options.defaultExpandAll);
13
+ this.options && void 0 !== this.options.lazy && (r2 = this.options.lazy);
14
+ let n2 = true;
15
+ this.options && void 0 !== this.options.defaultExpandAll && (n2 = this.options.defaultExpandAll);
16
16
  let l2 = "mysql";
17
17
  window.$vueApp.config.globalProperties.dataSourceType && (l2 = window.$vueApp.config.globalProperties.dataSourceType.toLowerCase());
18
18
  let h2, d2, c2, p2, u2 = this.options.pageDevMode;
19
19
  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);
20
20
  const g2 = y.isMobileBrowser();
21
21
  let m2 = false;
22
- 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: n2, defaultExpandAll: r2, 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 };
22
+ 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 };
23
23
  }, computed: { heightOffset() {
24
24
  var _a, _b, _c, _d, _e;
25
25
  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);
@@ -31,33 +31,43 @@ const k = require("../../_virtual/_plugin-vue_export-helper.cjs"), $ = { compone
31
31
  return this.tableHeight <= 100 ? 100 : this.tableHeight + (0 !== this.heightOffset ? this.heightOffset : 30);
32
32
  }, isMobileListCard: () => v.getters.isMobileListCard, isShowCard() {
33
33
  var _a, _b, _c, _d;
34
- 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);
34
+ 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);
35
35
  }, visibleColumns() {
36
36
  const e2 = m.get(this.code), t2 = this.getOptionOperations();
37
37
  e2.canntEdit = false;
38
38
  const i2 = (e3) => e3.map((e4) => ({ property: e4.prop, ...e4 }));
39
- return t2 && t2.operation && t2.operation.length > 0 && t2.operation.forEach((t3) => {
40
- "lineEditUpdate" === t3.props.code && P.default(t3.props.functionCode, this.basicInfo.systemCode) && (e2.canntEdit = true);
41
- }), void 0 !== this.options.isAdministerListView && null != this.options.isAdministerListView && true === this.options.isAdministerListView ? i2(this.columns) : i2(this.columns.filter((i3) => {
42
- if (void 0 !== this.options.multiple && false === this.options.multiple && "$selection" === i3.prop)
43
- return false;
44
- if (void 0 !== this.options.showIndex && false === this.options.showIndex && "$index" === i3.prop)
45
- return false;
46
- let o2;
47
- if (this.storeHasDefaultValueColumns(i3, e2), void 0 === i3.show || i3.show) {
48
- o2 = true;
49
- const a2 = this.options.hiddenColumns;
50
- if (i3.children && i3.children.length > 0 && this.packageHiddenColumnsWithChildren(i3, a2), a2 && a2.length > 0 && i3.prop && -1 !== a2.indexOf(i3.prop))
51
- return o2 = false, o2;
52
- this.initColumnOperation(i3, t2), e2.$dataTypeMap || (e2.$dataTypeMap = {}), e2.$dataTypeMap[i3.prop] = i3.dataType;
53
- } else
54
- o2 = false;
55
- return o2;
56
- }));
39
+ if (t2 && t2.operation && t2.operation.length > 0 && t2.operation.forEach((t3) => {
40
+ "lineEditUpdate" === t3.props.code && T.default(t3.props.functionCode, this.basicInfo.systemCode) && (e2.canntEdit = true);
41
+ }), void 0 !== this.options.isAdministerListView && null != this.options.isAdministerListView && true === this.options.isAdministerListView)
42
+ return i2(this.columns);
43
+ {
44
+ const o2 = this.options.updateColumnsInfo;
45
+ let a2;
46
+ o2 && (a2 = {}, o2.forEach((e3) => {
47
+ e3.prop && (a2[e3.prop] = e3);
48
+ }));
49
+ let s2 = {}, r2 = [];
50
+ return i2(this.columns.filter((i3) => {
51
+ if (!this.isHasSearchColumn && i3.queryType && "normal" === i3.queryType && (this.isHasSearchColumn = true), void 0 !== this.options.multiple && false === this.options.multiple && "$selection" === i3.prop)
52
+ return false;
53
+ if (void 0 !== this.options.showIndex && false === this.options.showIndex && "$index" === i3.prop)
54
+ return false;
55
+ let o3;
56
+ if (this.storeHasDefaultValueColumns(i3, e2), void 0 === i3.show || i3.show) {
57
+ o3 = true;
58
+ const n2 = this.options.hiddenColumns;
59
+ 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)
60
+ return o3;
61
+ this.initColumnOperation(i3, t2), e2.$dataTypeMap || (e2.$dataTypeMap = {}), e2.$dataTypeMap[i3.prop] = i3.dataType;
62
+ } else
63
+ o3 = false;
64
+ return o3;
65
+ }));
66
+ }
57
67
  }, visibleColumnsComponentData() {
58
68
  return this.visibleColumns.map((e2) => this.getColumnComponentData(e2, this.myCustomFormatter));
59
69
  }, mobileColumns: () => "Layout", tableDatas() {
60
- const e2 = m.get(this.code), t2 = this.hasFilterDataEvent ? this.filterGridData : this.gridData;
70
+ const e2 = m.get(this.code), t2 = this.hasFilterDataEvent ? this.filterGridData : this.isFormSubTable && !this.isShowPageArea ? this.isSubSearch ? this.subTableDataSearch : this.subTableData : this.gridData;
61
71
  return e2 && e2.options && e2 && e2.options.allEditable && t2.forEach((e3) => {
62
72
  e3.$editing = true;
63
73
  }), t2;
@@ -78,24 +88,20 @@ const k = require("../../_virtual/_plugin-vue_export-helper.cjs"), $ = { compone
78
88
  var _a;
79
89
  this.resizeTableHeight(), (_a = this.$refs.superGrid) == null ? void 0 : _a.doLayout();
80
90
  });
81
- } }, tableDatas: { deep: true, immediate: true, handler(e2, t2) {
82
91
  } }, "options.SuperGrid": { deep: true, handler: function() {
83
92
  this.externalClickFlag = true, this.initSetting(), this.initialize();
84
- } }, gridData: { deep: true, handler: function(e2) {
85
- this.isSubTableShowPage || t.$emit(this, "change-grid-data", this.gridData);
86
93
  } }, subTableData: { deep: true, immediate: true, handler: function() {
87
- if (this.isSubTableShowPage) {
88
- const e2 = m.get(this.code);
89
- if (t.$emit(this, "change-grid-data", this.subTableData), void 0 !== e2.isChangePage && e2.isChangePage || void 0 !== e2.isDelete && e2.isDelete) {
94
+ const e2 = m.get(this.code);
95
+ if (e2)
96
+ if (t.$emit(this, "change-grid-data", this.subTableData), void 0 !== e2.isAddRow && e2.isAddRow || void 0 !== e2.isChangePage && e2.isChangePage || void 0 !== e2.isDelete && e2.isDelete) {
90
97
  if (void 0 !== e2.isChangePage && e2.isChangePage) {
91
98
  const t2 = u.getRowIndexPage(this.pageSize, e2.addRowIndex);
92
99
  this.currentPage = t2, this.changePage();
93
100
  } else
94
- this.gridData = this.getSubTableGridData(this.subTableData), e2.gridData = this.gridData, e2.orgGridData = [].concat(JSON.parse(JSON.stringify(this.gridData)));
95
- e2.lineEdit.editingCell && (e2.lineEdit.editingCell.row = this.gridData.length), e2.isChangePage = false, e2.isDelete = false;
101
+ 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)));
102
+ e2.lineEdit.editingCell && (e2.lineEdit.editingCell.row = this.gridData.length), e2.isChangePage = false, e2.isDelete = false, e2.isAddRow = false;
96
103
  } else
97
- 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;
98
- }
104
+ 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;
99
105
  } }, currentSelectCell: { deep: true, handler: function(e2, t2) {
100
106
  this.$nextTick(() => {
101
107
  t2 && (t2.style.border = "");
@@ -109,8 +115,6 @@ const k = require("../../_virtual/_plugin-vue_export-helper.cjs"), $ = { compone
109
115
  e2 && e2.options && (e2.options.subTableCanAdd = this.options.subTableCanAdd, m.set(this.code, e2));
110
116
  } }, pageSize: { deep: true, handler(e2, i2) {
111
117
  t.$emit(this, "change-rows-per-page", this.pageSize);
112
- } }, "options.extraParam.entityMap": { deep: true, handler(e2, t2) {
113
- this.parentFormData = e2, this.$emit("change-form-data", this.parentFormData);
114
118
  } } }, provide: () => ({}), created() {
115
119
  var _a;
116
120
  (_a = v == null ? void 0 : v.dispatch) == null ? void 0 : _a.call(v, "startListeningToResize"), m.set(this.code, u.getGridParams()), m.set("_list_code", this.code), this.initSetting(), this.judgeIsFormSubTable();
@@ -127,7 +131,7 @@ const k = require("../../_virtual/_plugin-vue_export-helper.cjs"), $ = { compone
127
131
  }, { immediate: true, deep: true }), window.addEventListener("resize", this.resizeTableHeight), this.isFormSubTable && this.initScrollbarPositionCheck(), this.$watch("hasLoadData", function(e4, t2) {
128
132
  true === e4 && this.$nextTick(() => {
129
133
  const e5 = m.get(this.code);
130
- u.isHasOptionFunction("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 });
134
+ u.isHasOptionFunction("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 });
131
135
  });
132
136
  }, { immediate: true, deep: true });
133
137
  const e3 = this, i2 = null !== document.querySelector(".user-tree");
@@ -144,10 +148,19 @@ const k = require("../../_virtual/_plugin-vue_export-helper.cjs"), $ = { compone
144
148
  });
145
149
  }, beforeDestroy() {
146
150
  window.removeEventListener("resize", this.resizeTableHeight), this.isFormSubTable && (window.removeEventListener("scroll", this.checkScrollbarPosition, true), window.removeEventListener("resize", this.checkScrollbarPosition));
147
- }, methods: { ...b, ...f, ...C, ...O, ...D.default, packageHiddenColumnsWithChildren(e2, t2) {
151
+ }, methods: { ...b, ...f, ...C, ...x, ...w.default, isMobileOrderColumn(e2) {
152
+ return this.isMobile && e2.prop && "$selection" !== e2.prop && "$index" !== e2.prop && ("true" === e2.sortable || true === e2.sortable);
153
+ }, getColumnLabel: (e2) => u.getHeaderLable(e2), packageHiddenColumnsWithChildren(e2, t2, i2, o2, a2) {
148
154
  e2.children && e2.children.length > 0 && e2.children.forEach((e3) => {
149
- (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);
155
+ !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)));
150
156
  });
157
+ }, packageUpdateColunmInfo(e2, t2) {
158
+ if (t2 && e2.prop && t2[e2.prop]) {
159
+ const i2 = t2[e2.prop];
160
+ 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);
161
+ } else
162
+ t2 && e2.prop && !t2[e2.prop] && (e2.dyn_show = e2.show, e2.orgLabel && (e2.label = e2.orgLabel));
163
+ return !(void 0 !== e2.dyn_show && !e2.dyn_show) || e2.dyn_show;
151
164
  }, onResize(e2) {
152
165
  this.resizeTableHeight(), this.isFormSubTable && this.checkScrollbarPosition();
153
166
  }, initScrollbarPositionCheck() {
@@ -237,9 +250,9 @@ const k = require("../../_virtual/_plugin-vue_export-helper.cjs"), $ = { compone
237
250
  if (s2 && (a2 = s2.nodeValue), a2 && a2.indexOf(" ") > 0) {
238
251
  o2 = a2.split(" ")[0];
239
252
  }
240
- const n2 = i2.previousSibling;
241
- if (n2) {
242
- const t3 = n2.querySelector("." + o2);
253
+ const r2 = i2.previousSibling;
254
+ if (r2) {
255
+ const t3 = r2.querySelector("." + o2);
243
256
  e2.currentSelectCell = t3;
244
257
  }
245
258
  }
@@ -254,9 +267,9 @@ const k = require("../../_virtual/_plugin-vue_export-helper.cjs"), $ = { compone
254
267
  if (s2 && (a2 = s2.nodeValue), a2 && a2.indexOf(" ") > 0) {
255
268
  o2 = a2.split(" ")[0];
256
269
  }
257
- const n2 = i2.nextSibling;
258
- if (n2) {
259
- const t3 = n2.querySelector("." + o2);
270
+ const r2 = i2.nextSibling;
271
+ if (r2) {
272
+ const t3 = r2.querySelector("." + o2);
260
273
  e2.currentSelectCell = t3;
261
274
  }
262
275
  }
@@ -401,7 +414,7 @@ const k = require("../../_virtual/_plugin-vue_export-helper.cjs"), $ = { compone
401
414
  a2.gridData = this.gridData;
402
415
  }
403
416
  } else if (a2.options && a2.options.isFormSubTable && a2.options.subTableData && a2.options.subTableData.length > 0)
404
- this.packageSubTableData(a2, a2.options.subTableData);
417
+ this.packageSubTableData(a2, a2.options.subTableData, e2 == null ? void 0 : e2.sorts);
405
418
  else {
406
419
  if (this.canRefreshTableData(a2))
407
420
  return this.fetchListData(e2, t2, i2, o2);
@@ -411,36 +424,51 @@ const k = require("../../_virtual/_plugin-vue_export-helper.cjs"), $ = { compone
411
424
  }
412
425
  this.hasLoadData = true, a2.loaded = true;
413
426
  }
414
- }, isSubTableEmpty: (e2) => e2.options && e2.options.isFormSubTable && (void 0 === e2.options.subTableData || null === e2.options.subTableData || 0 === e2.options.subTableData.length), packageSubTableData(e2, t2) {
427
+ }, 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) {
415
428
  this.hasLoadData = false, e2.loaded = true;
416
- let i2 = [];
429
+ let s2 = [];
417
430
  if (u.isHasOptionFunction("gridDataLoaded", this.code)) {
418
- const o2 = e2.options.gridDataLoaded.call(this, { gridData: t2, columns: e2.columns, additionalParamMap: e2.additionalParamMap, pageContext: this.pageContext, configureObj: this.configureObj });
419
- o2 ? (i2 = o2, this.hasLoadData = true) : (i2 = t2, this.hasLoadData = true);
431
+ const i3 = e2.options.gridDataLoaded.call(this, { gridData: t2, columns: e2.columns, additionalParamMap: e2.additionalParamMap, pageContext: this.pageContext, configureObj: this.configureObj });
432
+ i3 ? (s2 = i3, this.hasLoadData = true) : (s2 = t2, this.hasLoadData = true);
420
433
  } else
421
- i2 = t2, this.hasLoadData = true;
422
- i2 && i2.forEach((t3) => {
423
- this.setColumnsDefaultValue(e2.allColumns, t3);
424
- }), 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)));
434
+ s2 = t2, this.hasLoadData = true;
435
+ if (s2) {
436
+ const t3 = i2 && i2.length > 0 ? i2[0] : null, o3 = t3 && t3.prop ? t3.prop : null, r2 = t3 && t3.order ? t3.order : null;
437
+ let n2 = [];
438
+ s2.forEach((t4) => {
439
+ this.setColumnsDefaultValue(e2.allColumns, t4);
440
+ }), a2 ? n2.push(a2) : this.getSortColumn(this.visibleColumns, { property: o3 }, n2), this.sortSubTableData(s2, o3, r2, n2);
441
+ }
442
+ 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)));
443
+ }, sortSubTableData(e2, t2, i2, o2) {
444
+ if (t2 && i2 && o2.length > 0) {
445
+ let a2 = o2[0];
446
+ 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);
447
+ }
425
448
  }, canRefreshTableData(e2) {
426
449
  let t2 = false;
427
450
  return (e2.options && !e2.options.isFormSubTable || e2.options && e2.options.isFormSubTable && void 0 !== e2.options.canRrefreshSubtableData && true === e2.options.canRrefreshSubtableData) && (t2 = true), t2;
428
451
  }, getSubTableGridData(e2, t2) {
429
- let i2 = e2;
430
- if (true === this.isSubTableShowPage && e2 && e2.length > 0) {
431
- this.pagination.total = e2.length;
432
- let o2 = null != t2 ? t2 : this.currentPage;
433
- null == o2 && (o2 = 1);
434
- let a2 = this.pageSize;
435
- null === a2 && this.pagination && (a2 = this.pagination.pageSize), null == a2 && (a2 = 20);
436
- const s2 = (o2 - 1) * a2;
437
- let n2 = s2 + a2;
438
- e2.length > s2 && (n2 > e2.length && (n2 = e2.length), i2 = e2.slice(s2, n2));
439
- }
440
- return null == i2 && (i2 = []), this.subTableAddGuId(i2), i2;
452
+ let i2 = null != t2 ? t2 : this.currentPage;
453
+ null == i2 && (i2 = 1);
454
+ let o2 = e2;
455
+ if (true === this.isSubTableShowPage) {
456
+ if (e2 && e2.length > 0) {
457
+ this.pagination.total = e2.length;
458
+ let t4 = this.pageSize;
459
+ null === t4 && this.pagination && (t4 = this.pagination.pageSize), null == t4 && (t4 = 20);
460
+ const a2 = (i2 - 1) * t4;
461
+ let s2 = a2 + t4;
462
+ e2.length > a2 && (s2 > e2.length && (s2 = e2.length), o2 = e2.slice(a2, s2));
463
+ }
464
+ let t3 = [];
465
+ this.isShowCard && i2 > 1 && (this.gridData.length !== e2.length ? (t3 = this.gridData.concat(o2), o2 = t3) : o2 = e2);
466
+ }
467
+ return null == o2 && (o2 = []), this.subTableAddGuId(o2), o2;
441
468
  }, subTableAddGuId(e2) {
442
- e2.forEach((e3) => {
443
- e3.$rowDataGuId || (e3.$rowDataGuId = T.getGuId());
469
+ const t2 = e2.filter((e3) => !e3.$rowDataGuId);
470
+ t2 && t2.length > 0 && t2.forEach((e3) => {
471
+ e3.$rowDataGuId || (e3.$rowDataGuId = P.getGuId());
444
472
  });
445
473
  }, fetchListData(e2, t2, i2, o2) {
446
474
  if (this.isLoading = true, this.hasLoadData = false, void 0 === t2 || false === t2) {
@@ -457,50 +485,52 @@ const k = require("../../_virtual/_plugin-vue_export-helper.cjs"), $ = { compone
457
485
  const a2 = m.get(this.code);
458
486
  let s2 = e2;
459
487
  this.resetAdditionalParamMap(s2, a2), (a2.options.extraParam || void 0 !== i2) && (s2 = u.getExtraParam(e2, a2)), a2.searchParam = e2, a2.url = this.url;
460
- let n2 = this.url;
461
- null != i2 && (s2 = Object.assign({}, s2), s2.searchParam.pagination = null, s2.parentIds = i2, s2.parentProp = this.parentProp, s2.systemCode = this.basicInfo.systemCode, n2 = 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);
462
- let r2 = true;
463
- return u.isHasOptionFunction("beforeRequest", this.code) && (r2 = 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) => {
464
- y.isPromise(r2) ? r2.then((r3) => {
465
- void 0 === r3 || r3 ? n2 ? this.doRequest(n2, s2, i2, a2, o2).then(() => {
488
+ let r2 = this.url;
489
+ 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);
490
+ let n2 = true;
491
+ return u.isHasOptionFunction("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) => {
492
+ y.isPromise(n2) ? n2.then((n3) => {
493
+ void 0 === n3 || n3 ? r2 ? this.doRequest(r2, s2, i2, a2, o2).then(() => {
466
494
  e3();
467
495
  }).catch((e4) => {
468
496
  t3(e4);
469
497
  }) : (a2.loaded = true, e3()) : (console.error("beforeRequest result is false!!"), a2.loaded = true, e3());
470
498
  }).catch((e4) => {
471
499
  a2.loaded = true, t3(e4);
472
- }) : void 0 === r2 || true === r2 ? n2 ? this.doRequest(n2, s2, i2, a2, o2).then(() => {
500
+ }) : void 0 === n2 || true === n2 ? r2 ? this.doRequest(r2, s2, i2, a2, o2).then(() => {
473
501
  a2.loaded = true, e3();
474
502
  }).catch((e4) => {
475
503
  a2.loaded = true, t3(e4);
476
504
  }) : (a2.loaded = true, e3()) : (console.error("beforeRequest result is false!!"), a2.loaded = true, e3());
477
505
  });
506
+ }, getChildren(e2) {
507
+ return (e2 == null ? void 0 : e2.map((e3) => {
508
+ var _a;
509
+ return { $rowDataGuId: e3.$rowDataGuId ? e3.$rowDataGuId : P.getGuId(), ...e3, ...((_a = e3 == null ? void 0 : e3.children) == null ? void 0 : _a.length) ? { children: this.getChildren(e3.children) } : {} };
510
+ })) ?? [];
478
511
  }, doRequest(e2, t2, i2, o2, a2) {
479
- return new Promise((s2, n2) => {
512
+ return new Promise((s2, r2) => {
480
513
  this.$http.post(e2, t2).then((e3) => {
481
514
  if (null == i2) {
482
- const t3 = (e4) => (e4 == null ? void 0 : e4.map((e5) => {
483
- var _a;
484
- return { $rowDataGuId: T.getGuId(), ...e5, ...((_a = e5 == null ? void 0 : e5.children) == null ? void 0 : _a.length) ? { children: t3(e5.children) } : {} };
485
- })) ?? [], i3 = [...this.isShowCard && this.currentPage > 1 ? this.gridData : [], ...t3((e3 == null ? void 0 : e3.data) ?? [])];
486
- let a3 = [];
515
+ const t3 = [...this.isShowCard && this.currentPage > 1 ? this.gridData : [], ...this.getChildren((e3 == null ? void 0 : e3.data) ?? [])];
516
+ let i3 = [];
487
517
  if (u.isHasOptionFunction("gridDataLoaded", this.code)) {
488
- const e4 = { gridData: i3, columns: o2.columns, additionalParamMap: o2.additionalParamMap, pageContext: this.pageContext, configureObj: this.configureObj };
518
+ const e4 = { gridData: t3, columns: o2.columns, additionalParamMap: o2.additionalParamMap, pageContext: this.pageContext, configureObj: this.configureObj };
489
519
  o2.searchParam && (e4.searchForm = o2.searchParam.searchForm, e4.additionalParamMap = o2.searchParam.additionalParamMap);
490
- const t4 = o2.options.gridDataLoaded.call(this, e4);
491
- a3 = t4 || i3;
520
+ const a3 = o2.options.gridDataLoaded.call(this, e4);
521
+ i3 = a3 || t3;
492
522
  } else
493
- a3 = i3;
494
- a3 || (a3 = []), o2.options.isFormSubTable ? (a3 && a3.forEach((e4) => {
523
+ i3 = t3;
524
+ i3 || (i3 = []), o2.options.isFormSubTable ? (i3 && i3.forEach((e4) => {
495
525
  this.setColumnsDefaultValue(o2.allColumns, e4);
496
- }), 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: u.getFirstEditableColumn(this.code) }))), this.hasLoadData = true;
526
+ }), 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: u.getFirstEditableColumn(this.code) }))), this.hasLoadData = true;
497
527
  } else
498
528
  o2.loaded = true, u.isHasOptionFunction("gridDataLoaded", this.code) && o2.options.gridDataLoaded.call(this, { gridData: e3, additionalParamMap: o2.additionalParamMap, pageContext: this.pageContext, configureObj: this.configureObj }), u.isHasOptionFunction("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) => {
499
529
  this.$refs.superGrid && (this.$refs.superGrid.store.states.lazyTreeNodeMap[t3] = e3[t3], this.$refs.superGrid.store.states.treeData[t3].children = e3[t3]);
500
530
  }), this.removeGridStoreSelection(i2)), this.hasLoadData = true;
501
531
  s2();
502
532
  }).catch((e3) => {
503
- u.isHasOptionFunction("loadError", this.code) && o2.options.loadError.call(this, this.code, e3), n2(e3);
533
+ u.isHasOptionFunction("loadError", this.code) && o2.options.loadError.call(this, this.code, e3), r2(e3);
504
534
  });
505
535
  });
506
536
  }, getInitSearchForm(e2) {
@@ -512,48 +542,38 @@ const k = require("../../_virtual/_plugin-vue_export-helper.cjs"), $ = { compone
512
542
  const a2 = e3.propValue;
513
543
  t3 && t3.indexOf(".") > 0 ? u.addDynamicProp(this.searchFormContent, t3, a2) : this.searchFormContent[t3] = a2;
514
544
  }), t2.searchForm = e2, this.showSearchForm()) : t2.searchForm = null;
515
- }, showDemo() {
516
- this.isLoading = true, this.$http.get(this.url).then((e2) => {
517
- this.getShowColumns(e2), Object.assign(this, e2);
518
- const t2 = m.get(this.code);
519
- if (t2.listCode = this.code, t2.columns = this.columns, t2.columns && this.options.dynamicColumns)
520
- for (var i2 = 0; i2 < this.options.dynamicColumns.length; i2++)
521
- this.options.dynamicColumns[i2].dynamic = true, t2.columns.push(this.options.dynamicColumns[i2]);
522
- if (t2.lineEdit = this.lineEdit, t2.basicInfo = this.basicInfo, t2.pagination = this.pagination, t2.query = this.query, this.gridData = e2.gridData, u.isHasOptionFunction("gridDataLoaded", this.code)) {
523
- const i3 = t2.options.gridDataLoaded.call(this, { gridData: e2.gridData, additionalParamMap: t2.additionalParamMap, pageContext: this.pageContext, configureObj: this.configureObj });
524
- this.gridData = i3 || e2.gridData;
525
- } else
526
- this.gridData = e2.gridData;
527
- 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: u.getFirstEditableColumn(this.code) }), u.isHasOptionFunction("gridComplete", this.code) && t2.options.gridComplete.call(this, this.gridData, t2.columns, this.pageContext, this.configureObj);
528
- }).catch((e2) => {
529
- if (u.isHasOptionFunction("loadError", this.code)) {
530
- m.get(this.code).options.loadError.call(this, this.code, e2);
531
- }
532
- });
533
545
  }, doSearch(e2) {
534
546
  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);
535
547
  }, doSearchDialog(e2) {
536
548
  this.currentPage = 1, this.search(e2, true), this.closeSearchFormDialog();
549
+ }, searSubTable(e2, t2) {
550
+ let i2 = [];
551
+ return e2 && e2.forEach((e3) => {
552
+ u.caculateSearchCondition(t2, e3) && i2.push(e3);
553
+ }), i2;
537
554
  }, search(e2, i2, o2) {
538
555
  t.$emit(this, "refresh");
539
556
  const a2 = this;
540
- return new Promise((s2, n2) => {
541
- const r2 = m.get(a2.code);
542
- if (r2.searchForm = null != e2 ? e2 : null, r2.options && r2.options.isAdministerListView) {
543
- if (r2.options.SuperGrid && r2.options.SuperGrid.simulationDate) {
557
+ return new Promise((s2, r2) => {
558
+ const n2 = m.get(a2.code);
559
+ if (n2.searchForm = null != e2 ? e2 : null, n2.options && n2.options.isAdministerListView) {
560
+ if (n2.options.SuperGrid && n2.options.SuperGrid.simulationDate) {
544
561
  let e3;
545
- u.isHasOptionFunction("gridDataLoaded", a2.code) ? (e3 = r2.options.gridDataLoaded.call(this, { gridData: r2.options.SuperGrid.simulationDate, columns: r2.columns, additionalParamMap: r2.additionalParamMap, pageContext: this.pageContext, configureObj: this.configureObj }), e3 || (e3 = r2.options.SuperGrid.simulationDate)) : e3 = r2.options.SuperGrid.simulationDate, s2(e3);
562
+ u.isHasOptionFunction("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);
546
563
  }
547
- } else if (r2.options && r2.options.isFormSubTable && r2.options.subTableData && r2.options.subTableData.length > 0) {
548
- let e3;
549
- a2.hasLoadData = false, r2.loaded = true, u.isHasOptionFunction("gridDataLoaded", a2.code) ? (e3 = r2.options.gridDataLoaded.call(this, { gridData: r2.options.subTableData, columns: r2.columns, additionalParamMap: r2.additionalParamMap, pageContext: this.pageContext, configureObj: this.configureObj }), e3 || (e3 = r2.options.subTableData, a2.hasLoadData = true)) : (e3 = r2.options.subTableData, a2.hasLoadData = true), s2(e3);
564
+ } else if (n2.options && n2.options.isFormSubTable && n2.options.subTableData && n2.options.subTableData.length > 0) {
565
+ let o3 = n2.options.subTableData;
566
+ this.searchSubTable(o3, e2, i2, 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, t.$emit(a2, "cancel-search"), s2(o3);
550
567
  } else
551
568
  a2.fetchData(a2.getSearchParam(), i2, o2).then((e3) => {
552
- void 0 !== r2 && void 0 !== r2.options && void 0 !== r2.options.isHiddenSearchForm && true === r2.options.isHiddenSearchForm && (a2.showSearch = false, t.$emit(a2, "cancel-search")), a2.$refs && a2.$refs.sf && (a2.$refs.sf.loading = false, a2.$refs.sf.searchComplete()), this.resizeTableHeight(), s2(e3);
569
+ void 0 !== n2 && void 0 !== n2.options && void 0 !== n2.options.isHiddenSearchForm && true === n2.options.isHiddenSearchForm && (a2.showSearch = false, t.$emit(a2, "cancel-search")), a2.$refs && a2.$refs.sf && (a2.$refs.sf.loading = false, a2.$refs.sf.searchComplete()), this.resizeTableHeight(), s2(e3);
553
570
  }).catch((e3) => {
554
- a2.$refs.sf && (a2.$refs.sf.loading = false, a2.$refs.sf.searchComplete()), n2(e3);
571
+ a2.$refs.sf && (a2.$refs.sf.loading = false, a2.$refs.sf.searchComplete()), r2(e3);
555
572
  });
556
573
  });
574
+ }, searchSubTable(e2, t2, i2, o2) {
575
+ let a2 = e2;
576
+ 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 = []);
557
577
  }, getPaginationInfo() {
558
578
  const e2 = m.get(this.code);
559
579
  if (this.pagination) {
@@ -593,21 +613,31 @@ const k = require("../../_virtual/_plugin-vue_export-helper.cjs"), $ = { compone
593
613
  }, handleSizeChange(e2) {
594
614
  this.options && this.options.isPageShow || (this.currentPage = 1, this.pageSize = e2, this.pagination.pageSize = e2, this.changePage());
595
615
  }, handleCurrentChange(e2) {
596
- this.options && this.options.isPageShow || this.changePage();
616
+ this.options && this.options.isPageShow || this.changePage(e2);
597
617
  }, changePage(e2) {
598
618
  var _a;
599
619
  if ((_a = this.$refs.superGrid) == null ? void 0 : _a.clearFilter(), this.isSubTableShowPage) {
600
- this.gridData = this.getSubTableGridData(this.subTableData, e2);
601
- const t2 = m.get(this.code);
602
- t2.gridData = this.gridData, t2.orgGridData = [].concat(JSON.parse(JSON.stringify(this.gridData)));
620
+ let t2;
621
+ t2 = this.isSubSearch ? this.getSubTableGridData(this.subTableDataSearch, e2) : this.getSubTableGridData(this.subTableData, e2), this.gridData = t2;
622
+ const i2 = m.get(this.code);
623
+ i2.gridData = this.gridData, i2.orgGridData = [].concat(JSON.parse(JSON.stringify(this.gridData)));
603
624
  } else
604
625
  this.fetchData(this.getSearchParam());
626
+ }, getSortColumn(e2, t2, i2) {
627
+ for (let o2 = 0; o2 < e2.length; o2++) {
628
+ const a2 = e2[o2];
629
+ if (a2.children && a2.children.length > 0)
630
+ this.getSortColumn(a2.children, t2, i2);
631
+ else if (t2.property === a2.prop) {
632
+ i2.push(a2);
633
+ break;
634
+ }
635
+ }
605
636
  }, handleSortChange({ column: e2, prop: i2, order: o2 }) {
606
637
  var _a;
607
638
  if (!this.options || !this.options.isPageShow) {
608
- let a2 = null;
609
- const s2 = this.visibleColumns.filter((t2) => e2.property === t2.prop);
610
- if (s2 && s2.length > 0 && (a2 = s2[0]), u.isCanRefreshGrid(this.code)) {
639
+ let a2 = null, s2 = [];
640
+ if (this.getSortColumn(this.visibleColumns, e2, s2), s2 && s2.length > 0 && (a2 = s2[0]), u.isCanRefreshGrid(this.code)) {
611
641
  if (null !== i2 && a2 && null !== a2) {
612
642
  let e3 = a2.orgProp;
613
643
  const t2 = "__";
@@ -645,7 +675,13 @@ const k = require("../../_virtual/_plugin-vue_export-helper.cjs"), $ = { compone
645
675
  const { columns: i2 } = e2, o2 = [];
646
676
  return i2.forEach((e3, i3) => {
647
677
  const a2 = e3.property, s2 = t2[a2];
648
- o2[i3] = null != s2 ? s2 : "";
678
+ if (null != s2) {
679
+ let e4;
680
+ a2 && this.columnsMap && this.columnsMap[a2] && (e4 = this.columnsMap[a2]);
681
+ let t3 = s2;
682
+ e4 && (t3 = k.doFormat(e4, s2)), o2[i3] = t3;
683
+ } else
684
+ o2[i3] = "";
649
685
  }), o2;
650
686
  }, getDefaultSummaries(e2) {
651
687
  const t2 = [], i2 = this.packageSummaryColumnProps();
@@ -653,20 +689,26 @@ const k = require("../../_virtual/_plugin-vue_export-helper.cjs"), $ = { compone
653
689
  const { columns: o2, data: a2 } = e2;
654
690
  let s2 = null;
655
691
  o2.forEach((e3, o3) => {
656
- let n2 = 0;
657
- const r2 = e3.property;
658
- if (r2 && "$selection" !== r2 && "$index" !== r2 && null == s2)
692
+ let r2 = 0;
693
+ const n2 = e3.property;
694
+ if (n2 && "$selection" !== n2 && "$index" !== n2 && null == s2)
659
695
  return s2 = o3, void (t2[o3] = "合计");
660
- i2.indexOf(r2) >= 0 ? (a2 && a2.forEach((e4) => {
661
- let t3, i3 = c.getEntityFieldValueWithOutCase(e4, r2);
662
- if (null != i3)
663
- t3 = Number(i3);
664
- else {
665
- const o4 = /[A-Z]+/;
666
- this.isSql && o4.test(r2) && (i3 = c.getEntityFieldValueWithOutCase(e4, r2.toLowerCase()), null != i3 && (t3 = Number(i3)));
667
- }
668
- null == t3 || isNaN(t3) || (n2 += t3);
669
- }), t2[o3] = n2) : t2[o3] = "";
696
+ if (i2.indexOf(n2) >= 0) {
697
+ let e4;
698
+ a2 && a2.forEach((e5) => {
699
+ let t3, i4 = c.getEntityFieldValueWithOutCase(e5, n2);
700
+ if (null != i4)
701
+ t3 = Number(i4);
702
+ else {
703
+ const o4 = /[A-Z]+/;
704
+ this.isSql && o4.test(n2) && (i4 = c.getEntityFieldValueWithOutCase(e5, n2.toLowerCase()), null != i4 && (t3 = Number(i4)));
705
+ }
706
+ null == t3 || isNaN(t3) || (r2 += t3);
707
+ }), n2 && this.columnsMap && this.columnsMap[n2] && (e4 = this.columnsMap[n2]), this.columnsMap;
708
+ let i3 = r2;
709
+ e4 && (i3 = k.doFormat(e4, r2)), t2[o3] = i3;
710
+ } else
711
+ t2[o3] = "";
670
712
  });
671
713
  }
672
714
  return t2;
@@ -721,9 +763,9 @@ const k = require("../../_virtual/_plugin-vue_export-helper.cjs"), $ = { compone
721
763
  }, changeHederWidth(e2, i2, o2, a2) {
722
764
  let s2 = e2 - 5;
723
765
  this.dragColumnProp = o2.property;
724
- const n2 = m.get(this.code);
766
+ const r2 = m.get(this.code);
725
767
  if (u.isHasOptionFunction("resizeColumn", this.code)) {
726
- const e3 = n2.options.resizeColumn.call(this, { code: this.code, newWidth: e3, oldWidth: i2, column: o2, additionalParamMap: n2.additionalParamMap, pageContext: this.pageContext, configureObj: this.configureObj });
768
+ const e3 = r2.options.resizeColumn.call(this, { code: this.code, newWidth: e3, oldWidth: i2, column: o2, additionalParamMap: r2.additionalParamMap, pageContext: this.pageContext, configureObj: this.configureObj });
727
769
  e3 && (s2 = e3);
728
770
  }
729
771
  this.newWidth = Math.ceil(s2), void 0 !== this.options.isAdministerListView && null != this.options.isAdministerListView && true === this.options.isAdministerListView ? t.$emit(this, "changeHederWidth", this.newWidth) : this.saveColumnWidth(this.dragColumnProp, this.newWidth).then(() => {
@@ -769,25 +811,25 @@ const k = require("../../_virtual/_plugin-vue_export-helper.cjs"), $ = { compone
769
811
  let e2 = this.gridData;
770
812
  if (this.isSubTableShowPage && (e2 = this.subTableData), e2 && e2.length > 0) {
771
813
  const i2 = m.get(this.code), o2 = i2.options.customRules, a2 = this.pagination && this.pagination.pageSize, s2 = S.getValidator(this.code);
772
- for (let n2 = 0; n2 < e2.length; n2++) {
773
- const r2 = e2[n2];
814
+ for (let r2 = 0; r2 < e2.length; r2++) {
815
+ const n2 = e2[r2];
774
816
  let l2 = s2;
775
817
  if (o2) {
776
818
  const e3 = Object.keys(o2);
777
819
  if (e3.length > 0) {
778
820
  for (const t2 of e3)
779
821
  if (o2[t2].beforeValidate) {
780
- false === u.rowBeforeValidate(o2[t2], i2, r2) && l2[t2] && (l2 = JSON.parse(JSON.stringify(s2)), l2[t2] = []);
822
+ false === u.rowBeforeValidate(o2[t2], i2, n2) && l2[t2] && (l2 = JSON.parse(JSON.stringify(s2)), l2[t2] = []);
781
823
  }
782
824
  }
783
825
  }
784
- void 0 !== r2.$editing && true === r2.$editing && (c.setEntityFieldValue(r2, "$editing", false), t.$emit(p, "un-edit", { row: r2 }));
826
+ void 0 !== n2.$editing && true === n2.$editing && (c.setEntityFieldValue(n2, "$editing", false), t.$emit(p, "un-edit", { row: n2 }));
785
827
  let h2 = true;
786
828
  u.isHasEditOption("isEnableValidate", this.code) && (h2 = i2.options.lineEditOptions.isEnableValidate);
787
829
  let d2 = true;
788
830
  if (true === h2) {
789
831
  let e3, t2;
790
- this.isSubTableShowPage && void 0 !== a2 && a2 > 0 && (e3 = Math.ceil((n2 + 1) / a2), t2 = n2 + 1 - (e3 - 1) * a2), d2 = S.validator(r2, this.code, n2, l2, this.isSubTableShowPage, e3, t2);
832
+ this.isSubTableShowPage && void 0 !== a2 && a2 > 0 && (e3 = Math.ceil((r2 + 1) / a2), t2 = r2 + 1 - (e3 - 1) * a2), d2 = S.validator(n2, this.code, r2, l2, this.isSubTableShowPage, e3, t2);
791
833
  }
792
834
  if (null != d2 && ("string" == typeof d2 || false === d2))
793
835
  return false;
@@ -823,7 +865,7 @@ const k = require("../../_virtual/_plugin-vue_export-helper.cjs"), $ = { compone
823
865
  }, rowDbClickEditRow(e2, t2) {
824
866
  var _a;
825
867
  let i2;
826
- 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) => {
868
+ 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) => {
827
869
  c.setEntityFieldValue(e3, "$editing", false), p.$emit("un-edit", { row: e3 });
828
870
  }), e2.isEditRow = false;
829
871
  false !== u.parseSubTableActionCondition(e2, this.parentFormData, t2, (_a = e2.options.actionPermission) == null ? void 0 : _a.updateCondition) ? (c.setEntityFieldValue(t2, "$editing", true), e2.$editRow = t2, e2.isEditRow = true) : window.$vueApp.config.globalProperties.$message({ showClose: true, message: this.$t("superGrid.rowCanntEditTip"), type: "warning" });
@@ -838,13 +880,13 @@ const k = require("../../_virtual/_plugin-vue_export-helper.cjs"), $ = { compone
838
880
  if ("popup" === t2 || "refresh" === t2 || e3 && "newTab" === t2) {
839
881
  const t3 = m.get(this.code);
840
882
  this.jumpPageSetting = i2;
841
- const o2 = t3.isSubTableShowPage, a2 = t3.pagination && t3.pagination.pageSize, s2 = i2.row, n2 = { 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 };
842
- this.$emit("new-open-grid-dialog", { pageContext: this.pageContext, configureObj: this.configureObj, eventParams: n2, jumpPageSetting: this.jumpPageSetting });
883
+ 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 };
884
+ this.$emit("new-open-grid-dialog", { pageContext: this.pageContext, configureObj: this.configureObj, eventParams: r2, jumpPageSetting: this.jumpPageSetting });
843
885
  }
844
886
  } else
845
887
  "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 });
846
888
  }, closeSearchFormDialog() {
847
- this.showSearch = false;
889
+ this.showSearch = false, this.showSubTableSearchDialog = false;
848
890
  }, getQueryMode() {
849
891
  return this.query && "popup" === this.query.showType ? "popup" : "embedded";
850
892
  }, selectCell(e2, t2, i2, o2) {
@@ -954,7 +996,7 @@ const k = require("../../_virtual/_plugin-vue_export-helper.cjs"), $ = { compone
954
996
  var _a, _b;
955
997
  try {
956
998
  const i2 = this.getComponentType(e2);
957
- 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 } };
999
+ 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 } };
958
1000
  } catch (t3) {
959
1001
  return console.error(t3), { column: e2 };
960
1002
  }
@@ -1012,10 +1054,30 @@ const k = require("../../_virtual/_plugin-vue_export-helper.cjs"), $ = { compone
1012
1054
  a2 && (o2[a2.label] = e3[t3]);
1013
1055
  }), t2.push(o2);
1014
1056
  }), t2;
1015
- }, rowDoFormat: (e2, t2) => x.doFormat(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"] }, M = { key: 2, class: "super-grid-main-table-footer-view" }, R = { class: "yx-flex-wrap", style: { gap: "10px" } }, G = ["title"], H = ["title"];
1016
- const I = k($, [["render", function(e2, t2, i2, o2, a2, s2) {
1017
- var _a, _b, _c;
1018
- const n2 = E.resolveComponent("search-form"), r2 = E.resolveComponent("search-form-dialog"), l2 = E.resolveComponent("MobileCard"), h2 = E.resolveComponent("row-detail"), d2 = E.resolveComponent("el-table"), c2 = E.resolveComponent("el-icon-setting"), p2 = E.resolveComponent("el-icon-refresh"), u2 = E.resolveComponent("el-pagination"), g2 = E.resolveComponent("columns-config"), m2 = E.resolveComponent("header-context-menu"), b2 = E.resolveComponent("row-form"), f2 = E.resolveDirective("resize");
1019
- return E.withDirectives((E.openBlock(), E.createElementBlock("div", { "data-v": "1.0.0", class: "super-grid-main-view", style: E.normalizeStyle(a2.subTableStyle), onClick: t2[9] || (t2[9] = (...t3) => e2.onClickTableMain && e2.onClickTableMain(...t3)) }, [!a2.isFormSubTable && a2.hasLoadedColumns && a2.query && "embedded" === a2.query.showType ? E.withDirectives((E.openBlock(), E.createBlock(n2, { 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"])), [[E.vShow, !a2.isMobile || a2.isMobile && a2.isShowMobileSearch]]) : E.createCommentVNode("", true), a2.hasLoadedColumns && a2.query && "popup" === a2.query.showType ? (E.openBlock(), E.createBlock(r2, { 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"])) : E.createCommentVNode("", true), E.createElementVNode("div", { ref: "superGridMain", class: E.normalizeClass(["grid-area " + i2.code, "super-grid-main-body"]) }, [s2.isShowCard ? (E.openBlock(), E.createBlock(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 ? (E.openBlock(), E.createBlock(d2, { key: 1, ref: "superGrid", data: s2.tableDatas, "row-key": s2.getRowKeyProp, "show-summary": s2.showSummary, "summary-method": s2.getSummaries, style: E.normalizeStyle(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: E.normalizeClass([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: E.withCtx(() => [a2.detailColumn ? (E.openBlock(), E.createBlock(h2, { key: 0, column: a2.detailColumn, "list-code": i2.code, onShowDetail: s2.openRowForm }, null, 8, ["column", "list-code", "onShowDetail"])) : E.createCommentVNode("", true), (E.openBlock(true), E.createElementBlock(E.Fragment, null, E.renderList(s2.visibleColumnsComponentData, ({ column: e3, ...t3 }, i3) => (E.openBlock(), E.createBlock(E.resolveDynamicComponent(s2.getComponentType(e3)), E.mergeProps({ ref_for: true, ref: e3.prop, key: e3.label + i3 }, t3.$bind, E.toHandlers(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"])) : E.createCommentVNode("", true), i2.showPagination && !s2.isShowCard ? (E.openBlock(), E.createElementBlock("div", M, [E.createElementVNode("div", R, [a2.basicInfo.customConfig && !a2.isFormSubTable ? (E.openBlock(), E.createElementBlock("div", { key: 0, class: "el-icon-setting", title: e2.$t("superGrid.columnConfig"), onClick: t2[3] || (t2[3] = (...e3) => s2.configColumns && s2.configColumns(...e3)) }, [E.createVNode(c2, { style: { width: "16px", height: "16px", color: "#777", cursor: "pointer" } })], 8, G)) : E.createCommentVNode("", true), a2.isFormSubTable ? E.createCommentVNode("", true) : (E.openBlock(), E.createElementBlock("div", { key: 1, class: "el-icon-refresh", title: e2.$t("superGrid.refresh"), onClick: t2[4] || (t2[4] = (...e3) => s2.refreshGridData && s2.refreshGridData(...e3)) }, [E.createVNode(p2, { style: { width: "16px", height: "16px", color: "#777", cursor: "pointer" } })], 8, H))]), a2.pagination && a2.isShowPage ? (E.openBlock(), E.createBlock(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"])) : E.createCommentVNode("", true)])) : E.createCommentVNode("", true)], 2), a2.showColumnConfig ? (E.openBlock(), E.createBlock(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"])) : E.createCommentVNode("", true), a2.showHeaderContextmenu ? (E.openBlock(), E.createBlock(m2, { key: 3, ref: "headerMenu", "buttom-arr": i2.options.rightClickMenuArr, column: a2.rightClickColumn, onClearHeaderContextmenu: s2.clearHeaderContextmenu }, null, 8, ["buttom-arr", "column", "onClearHeaderContextmenu"])) : E.createCommentVNode("", true), a2.showRowForm ? (E.openBlock(), E.createBlock(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"])) : E.createCommentVNode("", true)], 4)), [[f2, s2.onResize]]);
1020
- }], ["__scopeId", "data-v-2eb1c8ec"]]);
1021
- module.exports = I;
1057
+ }, rowDoFormat: (e2, t2) => k.doFormat(e2, t2), showSubTableSearch() {
1058
+ this.isMobile ? this.showMobileSearch() : (this.showSubTableSearchDialog = true, this.$refs.sfDialog && this.$refs.sfDialog.showSubTableSearchDialog());
1059
+ }, sortChangeColumn(e2) {
1060
+ if (e2 && this.orderColumns) {
1061
+ const t2 = this.orderColumns.filter((t3) => t3.prop && t3.prop === e2);
1062
+ t2 && t2.length > 0 && (this.orderColumn = t2[0]), e2 && this.orderType && this.sortChangeFunc(e2, this.orderType);
1063
+ } else
1064
+ this.orderColumn = null;
1065
+ }, sortChangeType(e2) {
1066
+ this.orderField && e2 && this.sortChangeFunc(this.orderField, e2);
1067
+ }, sortChangeFunc(e2, t2) {
1068
+ if (e2 && t2)
1069
+ if (this.sortInfo = [{ prop: e2, order: t2 }], this.isFormSubTable) {
1070
+ let e3;
1071
+ e3 = this.isSubSearch ? this.subTableDataSearch : this.subTableData;
1072
+ const t3 = m.get(this.code);
1073
+ let i2 = [];
1074
+ void 0 !== t3.searchForm && (i2 = t3.searchForm), this.searchSubTable(e3, i2, this.isSubSearch, t3);
1075
+ } else
1076
+ this.search(null, true);
1077
+ } }, emits: ["change-grid-data", "change-rows-per-page", "set-select-options", "setSearchType", "sort-change", "changeHederWidth", "header-click", "un-edit", "refresMainTableFields", "refresh", "cancel-search", "changeOperationAddState"] }, M = { class: "yx-flex-wrap", justify: "space-between" }, R = { style: { flex: "'1 1 auto'", width: "60px" } }, G = { key: 0, class: "yx-flex-wrap" }, I = { key: 2, class: "super-grid-main-table-footer-view" }, H = { class: "yx-flex-wrap", style: { gap: "10px" } }, L = { key: 0, style: { width: "16px", height: "16px" } }, j = ["title"], q = ["title"];
1078
+ const N = E($, [["render", function(e2, t2, i2, o2, a2, s2) {
1079
+ var _a, _b, _c, _d;
1080
+ const r2 = O.resolveComponent("search-form"), n2 = O.resolveComponent("el-button"), l2 = O.resolveComponent("el-option"), h2 = O.resolveComponent("el-select"), d2 = O.resolveComponent("search-form-dialog"), c2 = O.resolveComponent("MobileCard"), p2 = O.resolveComponent("row-detail"), u2 = O.resolveComponent("el-table"), g2 = O.resolveComponent("el-icon-setting"), m2 = O.resolveComponent("el-icon-refresh"), b2 = O.resolveComponent("el-pagination"), f2 = O.resolveComponent("columns-config"), C2 = O.resolveComponent("header-context-menu"), S2 = O.resolveComponent("row-form"), w2 = O.resolveDirective("resize");
1081
+ return O.withDirectives((O.openBlock(), O.createElementBlock("div", { "data-v": "1.0.0", class: "super-grid-main-view", style: O.normalizeStyle(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 ? O.withDirectives((O.openBlock(), O.createBlock(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"])), [[O.vShow, !a2.isMobile || a2.isMobile && a2.isShowMobileSearch]]) : O.createCommentVNode("", true), O.createElementVNode("div", M, [O.createElementVNode("div", R, [a2.isFormSubTable && a2.isHasSearchColumn && a2.query && ("embedded" === a2.query.showType || "popup" === a2.query.showType) ? (O.openBlock(), O.createBlock(n2, { key: 0, size: "small", onClick: s2.showSubTableSearch }, { default: O.withCtx(() => [O.createTextVNode(O.toDisplayString(e2.$t("imatrixUIMessage.search")), 1)]), _: 1 }, 8, ["onClick"])) : O.createCommentVNode("", true)]), a2.isMobile && a2.orderColumns.length > 0 ? (O.openBlock(), O.createElementBlock("div", G, [O.createVNode(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: O.withCtx(() => [(O.openBlock(true), O.createElementBlock(O.Fragment, null, O.renderList(a2.orderColumns, (e3) => (O.openBlock(), O.createBlock(l2, { key: e3.prop, value: e3.prop, label: s2.getColumnLabel(e3) }, null, 8, ["value", "label"]))), 128))]), _: 1 }, 8, ["placeholder", "modelValue", "onChange"]), O.createVNode(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: O.withCtx(() => [O.createVNode(l2, { value: "ascending", label: e2.$t("superGrid.orderTypeAsc") }, null, 8, ["label"]), O.createVNode(l2, { value: "descending", label: e2.$t("superGrid.orderTypeDesc") }, null, 8, ["label"])]), _: 1 }, 8, ["placeholder", "modelValue", "onChange"])])) : O.createCommentVNode("", true)]), a2.hasLoadedColumns ? (O.openBlock(), O.createBlock(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"])) : O.createCommentVNode("", true), O.createElementVNode("div", { ref: "superGridMain", class: O.normalizeClass(["grid-area " + i2.code, "super-grid-main-body"]) }, [s2.isShowCard ? (O.openBlock(), O.createBlock(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 ? (O.openBlock(), O.createBlock(u2, { key: 1, ref: "superGrid", data: s2.tableDatas, "row-key": s2.getRowKeyProp, "show-summary": s2.showSummary, "summary-method": s2.getSummaries, style: O.normalizeStyle(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: O.normalizeClass([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: O.withCtx(() => [a2.detailColumn ? (O.openBlock(), O.createBlock(p2, { key: 0, column: a2.detailColumn, "list-code": i2.code, onShowDetail: s2.openRowForm }, null, 8, ["column", "list-code", "onShowDetail"])) : O.createCommentVNode("", true), (O.openBlock(true), O.createElementBlock(O.Fragment, null, O.renderList(s2.visibleColumnsComponentData, ({ column: e3, ...t3 }, i3) => (O.openBlock(), O.createBlock(O.resolveDynamicComponent(s2.getComponentType(e3)), O.mergeProps({ ref_for: true, ref: e3.prop, key: e3.label + i3 }, t3.$bind, O.toHandlers(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"])) : O.createCommentVNode("", true), i2.showPagination && !s2.isShowCard ? (O.openBlock(), O.createElementBlock("div", I, [O.createElementVNode("div", H, [a2.isFormSubTable && a2.pagination && a2.isShowPage ? (O.openBlock(), O.createElementBlock("div", L)) : O.createCommentVNode("", true), a2.basicInfo.customConfig && !a2.isFormSubTable ? (O.openBlock(), O.createElementBlock("div", { key: 1, class: "el-icon-setting", title: e2.$t("superGrid.columnConfig"), onClick: t2[5] || (t2[5] = (...e3) => s2.configColumns && s2.configColumns(...e3)) }, [O.createVNode(g2, { style: { width: "16px", height: "16px", color: "#777", cursor: "pointer" } })], 8, j)) : O.createCommentVNode("", true), a2.isFormSubTable ? O.createCommentVNode("", true) : (O.openBlock(), O.createElementBlock("div", { key: 2, class: "el-icon-refresh", title: e2.$t("superGrid.refresh"), onClick: t2[6] || (t2[6] = (...e3) => s2.refreshGridData && s2.refreshGridData(...e3)) }, [O.createVNode(m2, { style: { width: "16px", height: "16px", color: "#777", cursor: "pointer" } })], 8, q))]), a2.pagination && a2.isShowPage ? (O.openBlock(), O.createBlock(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"])) : O.createCommentVNode("", true)])) : O.createCommentVNode("", true)], 2), a2.showColumnConfig ? (O.openBlock(), O.createBlock(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"])) : O.createCommentVNode("", true), a2.showHeaderContextmenu ? (O.openBlock(), O.createBlock(C2, { key: 3, ref: "headerMenu", "buttom-arr": i2.options.rightClickMenuArr, column: a2.rightClickColumn, onClearHeaderContextmenu: s2.clearHeaderContextmenu }, null, 8, ["buttom-arr", "column", "onClearHeaderContextmenu"])) : O.createCommentVNode("", true), a2.showRowForm ? (O.openBlock(), O.createBlock(S2, { 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"])) : O.createCommentVNode("", true)], 4)), [[w2, s2.onResize]]);
1082
+ }], ["__scopeId", "data-v-664b8a45"]]);
1083
+ module.exports = N;