agilebuilder-ui 1.1.65-tmp30 → 1.1.65-tmp32
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.
- package/es/chat-embed/src/index.vue.mjs +1 -1
- package/es/chat-embed/src/index.vue2.mjs +104 -100
- package/es/chat-embed/src/voice/js/crypto-js.mjs +46 -50
- package/es/chat-embed/src/voice/voice.vue.mjs +8 -11
- package/es/date-picker-range/index.vue.mjs +1 -1
- package/es/date-picker-range/index.vue2.mjs +41 -33
- package/es/department-tree-inline/src/department-tree-service.mjs +0 -1
- package/es/department-user-tree-inline/src/department-user-multiple-tree-inline.vue.mjs +14 -11
- package/es/department-user-tree-inline/src/department-user-single-tree-inline.vue.mjs +6 -6
- package/es/department-user-tree-inline/src/department-user-tree-multi-service.mjs +19 -20
- package/es/department-user-tree-inline/src/department-user-tree-single-service.mjs +0 -1
- package/es/department-user-tree-inline/src/search-result.vue.mjs +4 -4
- package/es/department-user-tree-mobile/src/department-user-tree-inline-app.vue.mjs +2 -2
- package/es/dynamic-source-select/src/dynamic-source-select.vue.mjs +86 -85
- package/es/fs-preview/src/fs-preview.vue.mjs +73 -59
- package/es/fs-upload/src/fs-upload-multi.vue.mjs +3 -3
- package/es/fs-upload-list/src/fs-upload-list.vue.mjs +5 -6
- package/es/fs-upload-new/src/file-upload-mobile/file-upload-app.vue.mjs +15 -17
- package/es/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue.mjs +19 -19
- package/es/fs-upload-new/src/file-upload-mobile/file-upload-component.vue2.mjs +2 -2
- package/es/fs-upload-new/src/fs-preview-new.vue.mjs +1 -1
- package/es/fs-upload-new/src/fs-preview-new.vue2.mjs +50 -50
- package/es/i18n-setting/index.mjs +7 -0
- package/es/i18n-setting/src/i18n-setting-dialog.vue.mjs +23 -0
- package/es/i18n-setting/src/i18n-setting.mjs +14 -0
- package/es/i18n-setting/src/index.vue.mjs +47 -0
- package/es/index.mjs +46 -41
- package/es/multipart-upload/src/multipart-upload-form.vue.mjs +5 -5
- package/es/multipart-upload/src/multipart-upload-list.vue.mjs +6 -6
- package/es/organization-input/src/organization-input.vue.mjs +58 -58
- package/es/remove-department/src/remove-dept-service.mjs +4 -5
- package/es/remove-user/src/remove-user-service.mjs +0 -1
- package/es/remove-workgroup/src/remove-workgroup-service.mjs +0 -1
- package/es/rich-editor/index.vue.mjs +43 -84
- package/es/scan-code-input/src/scan-code-input.vue.mjs +1 -1
- package/es/scan-code-input-browser/src/scan-code-input.vue.mjs +20 -9
- package/es/src/api/sso-service.mjs +0 -1
- package/es/src/i18n/langs/cn.mjs +1 -1
- package/es/src/i18n/langs/en.mjs +1 -1
- package/es/src/permission.mjs +7 -10
- package/es/src/router/index.mjs +0 -1
- package/es/src/store/index.mjs +0 -1
- package/es/src/store/modules/app.mjs +0 -1
- package/es/src/utils/common-util.mjs +143 -143
- package/es/src/utils/i18n-util.mjs +32 -30
- package/es/src/utils/iconUtils.mjs +0 -1
- package/es/src/utils/jump-page-utils.mjs +1 -1
- package/es/src/utils/permission.mjs +25 -26
- package/es/src/utils/permissionAuth.mjs +0 -1
- package/es/src/utils/restful-interface-utils.mjs +5 -6
- package/es/src/utils/watermark.mjs +2 -7
- package/es/src/utils/workflow-util.mjs +6 -6
- package/es/src/views/dsc-component/Sidebar/Item.vue.mjs +1 -1
- package/es/src/views/dsc-component/Sidebar/Item.vue2.mjs +1 -1
- package/es/src/views/layout/components/Menubar/Item.vue.mjs +1 -1
- package/es/src/views/layout/components/Menubar/Item.vue2.mjs +8 -8
- package/es/src/views/layout/components/Menubar/SidebarItem.vue.mjs +11 -11
- package/es/style.css +1 -3103
- package/es/super-grid/src/apis.mjs +155 -151
- package/es/super-grid/src/components/mobile-table-card.mjs +14 -10
- package/es/super-grid/src/components/select-input.vue.mjs +66 -66
- package/es/super-grid/src/custom-formatter.mjs +5 -6
- package/es/super-grid/src/dynamic-input.vue.mjs +31 -39
- package/es/super-grid/src/formValidatorUtil.mjs +0 -1
- package/es/super-grid/src/normal-column-content.vue.mjs +1 -2
- package/es/super-grid/src/normal-column.vue.mjs +12 -10
- package/es/super-grid/src/row-operation.vue.mjs +3 -3
- package/es/super-grid/src/search-form-item.vue.mjs +18 -14
- package/es/super-grid/src/search-form-number.vue.mjs +7 -6
- package/es/super-grid/src/search-form-open.vue.mjs +3 -2
- package/es/super-grid/src/search-form-open.vue2.mjs +4 -0
- package/es/super-grid/src/search-form-ordinarySearch.vue.mjs +1 -1
- package/es/super-grid/src/super-grid.vue.mjs +254 -242
- package/es/super-grid/src/utils.mjs +6 -6
- package/es/super-grid/src/view-image-dialog.vue.mjs +5 -5
- package/es/super-nine-grid/src/super-nine-grid.vue.mjs +89 -83
- package/es/utils/utils.mjs +0 -1
- package/es/utils/value-set.mjs +0 -1
- package/es/workflow-history-list/src/workflow-history-list.vue.mjs +11 -10
- package/es/workgroup-tree-inline/src/workgroup-tree-service.mjs +0 -1
- package/es/workgroup-user-tree-inline/src/workgroup-tree-inline-service.mjs +0 -1
- package/es/workgroup-user-tree-mobile/src/workgroup-user-tree-inline-app.vue.mjs +2 -2
- package/package.json +6 -2
- package/src/styles/index.scss +4 -0
- package/src/styles/theme/dark-blue/select.scss +27 -1
- package/src/styles/theme/forest-green/select.scss +27 -1
- package/src/styles/theme/green/select.scss +27 -1
- package/src/styles/theme/ocean-blue/select.scss +27 -1
- package/src/styles/theme/tiffany-blue-mobile/select.scss +29 -2
- package/.eslintrc.cjs +0 -28
- package/.prettierrc.json +0 -12
- package/dist/favicon.svg +0 -29
- package/dist/index.full.min.js +0 -16659
- package/dist/style.css +0 -3104
- package/index.html +0 -19
- package/lib/IntervalSelection/index.cjs +0 -5
- package/lib/IntervalSelection/src/sectionDate.vue.cjs +0 -45
- package/lib/IntervalSelection/src/sectionDate.vue2.cjs +0 -2
- package/lib/_virtual/__vite-browser-external.cjs +0 -2
- package/lib/_virtual/_plugin-vue_export-helper.cjs +0 -7
- package/lib/breadcrumb/index.cjs +0 -5
- package/lib/breadcrumb/src/breadcrumb.vue.cjs +0 -37
- package/lib/breadcrumb/src/breadcrumb.vue2.cjs +0 -2
- package/lib/chat-embed/index.cjs +0 -5
- package/lib/chat-embed/src/chat-addition-data.vue.cjs +0 -5
- package/lib/chat-embed/src/chat-addition-data.vue2.cjs +0 -15
- package/lib/chat-embed/src/chat-addition-data.vue3.cjs +0 -2
- package/lib/chat-embed/src/chat-ai-answer-tip.vue.cjs +0 -5
- package/lib/chat-embed/src/chat-ai-answer-tip.vue2.cjs +0 -26
- package/lib/chat-embed/src/chat-ai-answer-tip.vue3.cjs +0 -2
- package/lib/chat-embed/src/chat-bubble-footer.vue.cjs +0 -5
- package/lib/chat-embed/src/chat-bubble-footer.vue2.cjs +0 -28
- package/lib/chat-embed/src/chat-bubble-footer.vue3.cjs +0 -2
- package/lib/chat-embed/src/chat-embed-message.cjs +0 -16
- package/lib/chat-embed/src/chat-sender.vue.cjs +0 -5
- package/lib/chat-embed/src/chat-sender.vue2.cjs +0 -145
- package/lib/chat-embed/src/chat-sender.vue3.cjs +0 -2
- package/lib/chat-embed/src/components/answer-auto-chart.vue.cjs +0 -5
- package/lib/chat-embed/src/components/answer-auto-chart.vue2.cjs +0 -50
- package/lib/chat-embed/src/components/answer-auto-chart.vue3.cjs +0 -2
- package/lib/chat-embed/src/components/answer-home-chart.vue.cjs +0 -5
- package/lib/chat-embed/src/components/answer-home-chart.vue2.cjs +0 -3
- package/lib/chat-embed/src/components/answer-home-chart.vue3.cjs +0 -2
- package/lib/chat-embed/src/components/answer-interaction-data.vue.cjs +0 -5
- package/lib/chat-embed/src/components/answer-interaction-data.vue2.cjs +0 -107
- package/lib/chat-embed/src/components/answer-interaction-data.vue3.cjs +0 -2
- package/lib/chat-embed/src/components/history-detail.vue.cjs +0 -5
- package/lib/chat-embed/src/components/history-detail.vue2.cjs +0 -50
- package/lib/chat-embed/src/components/history-detail.vue3.cjs +0 -2
- package/lib/chat-embed/src/header.vue.cjs +0 -5
- package/lib/chat-embed/src/header.vue2.cjs +0 -39
- package/lib/chat-embed/src/header.vue3.cjs +0 -2
- package/lib/chat-embed/src/index.vue.cjs +0 -5
- package/lib/chat-embed/src/index.vue2.cjs +0 -281
- package/lib/chat-embed/src/index.vue3.cjs +0 -2
- package/lib/chat-embed/src/recommendation-message.vue.cjs +0 -5
- package/lib/chat-embed/src/recommendation-message.vue2.cjs +0 -8
- package/lib/chat-embed/src/recommendation-message.vue3.cjs +0 -2
- package/lib/chat-embed/src/sidebar-item.vue.cjs +0 -5
- package/lib/chat-embed/src/sidebar-item.vue2.cjs +0 -109
- package/lib/chat-embed/src/sidebar-item.vue3.cjs +0 -2
- package/lib/chat-embed/src/type.cjs +0 -3
- package/lib/chat-embed/src/util/chat-embed-util.cjs +0 -51
- package/lib/chat-embed/src/util/history-message-util.cjs +0 -74
- package/lib/chat-embed/src/util/mcp-utils.cjs +0 -50
- package/lib/chat-embed/src/util/text-file-util.cjs +0 -8
- package/lib/chat-embed/src/voice/index.cjs +0 -5
- package/lib/chat-embed/src/voice/js/crypto-js.cjs +0 -1005
- package/lib/chat-embed/src/voice/js/processor/index.umd.cjs +0 -170
- package/lib/chat-embed/src/voice/js/timer.cjs +0 -8
- package/lib/chat-embed/src/voice/voice.vue.cjs +0 -96
- package/lib/date-picker-range/index.cjs +0 -5
- package/lib/date-picker-range/index.vue.cjs +0 -5
- package/lib/date-picker-range/index.vue2.cjs +0 -89
- package/lib/date-picker-range/index.vue3.cjs +0 -2
- package/lib/department-tree/index.cjs +0 -5
- package/lib/department-tree/src/department-tree.vue.cjs +0 -17
- package/lib/department-tree-inline/index.cjs +0 -5
- package/lib/department-tree-inline/src/department-multi-tree-inline.vue.cjs +0 -81
- package/lib/department-tree-inline/src/department-multi-tree-inline.vue2.cjs +0 -2
- package/lib/department-tree-inline/src/department-single-tree-inline.vue.cjs +0 -54
- package/lib/department-tree-inline/src/department-single-tree-inline.vue2.cjs +0 -2
- package/lib/department-tree-inline/src/department-tree-inline.vue.cjs +0 -12
- package/lib/department-tree-inline/src/department-tree-service.cjs +0 -106
- package/lib/department-tree-inline/src/search-result.vue.cjs +0 -36
- package/lib/department-tree-inline/src/search-result.vue2.cjs +0 -2
- package/lib/department-tree-mobile/index.cjs +0 -5
- package/lib/department-tree-mobile/src/department-tree-app.vue.cjs +0 -13
- package/lib/department-tree-mobile/src/department-tree-app.vue2.cjs +0 -2
- package/lib/department-tree-mobile/src/department-tree-app.vue3.cjs +0 -3
- package/lib/department-tree-mobile/src/department-tree-inline-app.vue.cjs +0 -110
- package/lib/department-tree-mobile/src/department-tree-inline-app.vue2.cjs +0 -3
- package/lib/department-tree-mobile/src/department-tree-service.cjs +0 -47
- package/lib/department-tree-mobile/src/dept-path.vue.cjs +0 -13
- package/lib/department-tree-mobile/src/dept-path.vue2.cjs +0 -3
- package/lib/department-tree-mobile/src/dept-result.vue.cjs +0 -14
- package/lib/department-tree-mobile/src/dept-result.vue2.cjs +0 -3
- package/lib/department-user-tree/index.cjs +0 -5
- package/lib/department-user-tree/src/department-user-multiple-tree.vue.cjs +0 -16
- package/lib/department-user-tree/src/department-user-multiple-tree.vue2.cjs +0 -2
- package/lib/department-user-tree/src/department-user-single-tree.vue.cjs +0 -14
- package/lib/department-user-tree/src/department-user-tree.vue.cjs +0 -21
- package/lib/department-user-tree-inline/index.cjs +0 -5
- package/lib/department-user-tree-inline/src/department-user-multiple-tree-inline.vue.cjs +0 -154
- package/lib/department-user-tree-inline/src/department-user-multiple-tree-inline.vue2.cjs +0 -2
- package/lib/department-user-tree-inline/src/department-user-single-tree-inline.vue.cjs +0 -57
- package/lib/department-user-tree-inline/src/department-user-single-tree-inline.vue2.cjs +0 -2
- package/lib/department-user-tree-inline/src/department-user-tree-inline.vue.cjs +0 -11
- package/lib/department-user-tree-inline/src/department-user-tree-multi-service.cjs +0 -78
- package/lib/department-user-tree-inline/src/department-user-tree-single-service.cjs +0 -51
- package/lib/department-user-tree-inline/src/group-user/group-input.vue.cjs +0 -34
- package/lib/department-user-tree-inline/src/group-user/group-list.vue.cjs +0 -22
- package/lib/department-user-tree-inline/src/group-user/group-user.vue.cjs +0 -10
- package/lib/department-user-tree-inline/src/group-user-multiple-tree.vue.cjs +0 -72
- package/lib/department-user-tree-inline/src/group-user-single-tree.vue.cjs +0 -28
- package/lib/department-user-tree-inline/src/group-user-tree-service.cjs +0 -33
- package/lib/department-user-tree-inline/src/search-result.vue.cjs +0 -38
- package/lib/department-user-tree-inline/src/search-result.vue2.cjs +0 -2
- package/lib/department-user-tree-mobile/index.cjs +0 -5
- package/lib/department-user-tree-mobile/src/department-user-tree-app.vue.cjs +0 -13
- package/lib/department-user-tree-mobile/src/department-user-tree-app.vue2.cjs +0 -2
- package/lib/department-user-tree-mobile/src/department-user-tree-app.vue3.cjs +0 -3
- package/lib/department-user-tree-mobile/src/department-user-tree-inline-app.vue.cjs +0 -124
- package/lib/department-user-tree-mobile/src/department-user-tree-inline-app.vue2.cjs +0 -3
- package/lib/department-user-tree-mobile/src/department-user-tree-service.cjs +0 -28
- package/lib/department-user-tree-mobile/src/dept-path.vue.cjs +0 -13
- package/lib/department-user-tree-mobile/src/dept-path.vue2.cjs +0 -3
- package/lib/department-user-tree-mobile/src/dept-result.vue.cjs +0 -14
- package/lib/department-user-tree-mobile/src/dept-result.vue2.cjs +0 -3
- package/lib/directives/prevent-reclick.cjs +0 -14
- package/lib/dynamic-source-select/index.cjs +0 -5
- package/lib/dynamic-source-select/src/dynamic-source-select-service.cjs +0 -30
- package/lib/dynamic-source-select/src/dynamic-source-select.vue.cjs +0 -266
- package/lib/dynamic-source-select/src/dynamic-source-select.vue2.cjs +0 -2
- package/lib/dynamic-source-select/src/dynamic-source-select.vue3.cjs +0 -2
- package/lib/dynamic-source-select/src/events.cjs +0 -28
- package/lib/empty-state/index.vue.cjs +0 -6
- package/lib/empty-state/index.vue2.cjs +0 -3
- package/lib/favicon.svg +0 -29
- package/lib/fs-preview/index.cjs +0 -5
- package/lib/fs-preview/src/fs-preview.vue.cjs +0 -119
- package/lib/fs-preview/src/fs-preview.vue2.cjs +0 -2
- package/lib/fs-upload/index.cjs +0 -5
- package/lib/fs-upload/src/fs-upload-multi.vue.cjs +0 -63
- package/lib/fs-upload/src/fs-upload-single.vue.cjs +0 -64
- package/lib/fs-upload/src/fs-upload.vue.cjs +0 -18
- package/lib/fs-upload/src/see-big-picture.vue.cjs +0 -9
- package/lib/fs-upload-list/index.cjs +0 -5
- package/lib/fs-upload-list/src/fs-upload-list.vue.cjs +0 -91
- package/lib/fs-upload-list/src/fs-upload-list.vue2.cjs +0 -2
- package/lib/fs-upload-new/index.cjs +0 -5
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-app.vue.cjs +0 -57
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-app.vue2.cjs +0 -3
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue.cjs +0 -170
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue2.cjs +0 -3
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-component.vue.cjs +0 -5
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-component.vue2.cjs +0 -32
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-component.vue3.cjs +0 -2
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-input.vue.cjs +0 -41
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-input.vue2.cjs +0 -3
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload.vue.cjs +0 -29
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload.vue2.cjs +0 -3
- package/lib/fs-upload-new/src/fs-button-upload.vue.cjs +0 -5
- package/lib/fs-upload-new/src/fs-button-upload.vue2.cjs +0 -55
- package/lib/fs-upload-new/src/fs-button-upload.vue3.cjs +0 -2
- package/lib/fs-upload-new/src/fs-drag-upload.vue.cjs +0 -5
- package/lib/fs-upload-new/src/fs-drag-upload.vue2.cjs +0 -55
- package/lib/fs-upload-new/src/fs-drag-upload.vue3.cjs +0 -2
- package/lib/fs-upload-new/src/fs-preview-new.vue.cjs +0 -5
- package/lib/fs-upload-new/src/fs-preview-new.vue2.cjs +0 -84
- package/lib/fs-upload-new/src/fs-preview-new.vue3.cjs +0 -2
- package/lib/fs-upload-new/src/fs-preview-new.vue4.cjs +0 -2
- package/lib/fs-upload-new/src/fs-upload-new.vue.cjs +0 -54
- package/lib/fs-upload-new/src/fs-upload-new.vue2.cjs +0 -3
- package/lib/hamburger/index.cjs +0 -5
- package/lib/hamburger/src/hamburger.vue.cjs +0 -11
- package/lib/hamburger/src/hamburger.vue2.cjs +0 -2
- package/lib/index.cjs +0 -41
- package/lib/json-view/json-view-dialog.vue.cjs +0 -16
- package/lib/json-view/json-view-dialog.vue2.cjs +0 -3
- package/lib/json-view/json-view.vue.cjs +0 -3
- package/lib/json-view/json-view.vue2.cjs +0 -32
- package/lib/multipart-upload/index.cjs +0 -5
- package/lib/multipart-upload/src/index.vue.cjs +0 -10
- package/lib/multipart-upload/src/multipart-upload-form.vue.cjs +0 -73
- package/lib/multipart-upload/src/multipart-upload-list.vue.cjs +0 -96
- package/lib/organization-input/index.cjs +0 -5
- package/lib/organization-input/src/organization-input.vue.cjs +0 -218
- package/lib/organization-input/src/organization-input.vue2.cjs +0 -2
- package/lib/plugins/export-data-new.cjs +0 -229
- package/lib/plugins/export-data.cjs +0 -173
- package/lib/plugins/index.cjs +0 -5
- package/lib/plugins/public-method.cjs +0 -13
- package/lib/remove-department/index.cjs +0 -5
- package/lib/remove-department/src/remove-department.vue.cjs +0 -27
- package/lib/remove-department/src/remove-dept-service.cjs +0 -12
- package/lib/remove-user/index.cjs +0 -5
- package/lib/remove-user/src/remove-user-service.cjs +0 -12
- package/lib/remove-user/src/remove-user.vue.cjs +0 -29
- package/lib/remove-workgroup/index.cjs +0 -5
- package/lib/remove-workgroup/src/remove-workgroup-service.cjs +0 -12
- package/lib/remove-workgroup/src/remove-workgroup.vue.cjs +0 -25
- package/lib/rich-editor/index.cjs +0 -5
- package/lib/rich-editor/index.vue.cjs +0 -67
- package/lib/rich-editor/tinymce/zh_CN.cjs +0 -2
- package/lib/rich-editor/viewer.vue.cjs +0 -24
- package/lib/row-form/index.cjs +0 -5
- package/lib/row-form/index.vue.cjs +0 -5
- package/lib/row-form/index.vue2.cjs +0 -56
- package/lib/row-form/index.vue3.cjs +0 -2
- package/lib/row-form/operation.vue.cjs +0 -28
- package/lib/row-form/operation.vue2.cjs +0 -3
- package/lib/scan-code-input/index.cjs +0 -5
- package/lib/scan-code-input/src/events.cjs +0 -13
- package/lib/scan-code-input/src/scan-code-input.vue.cjs +0 -26
- package/lib/scan-code-input-browser/index.cjs +0 -5
- package/lib/scan-code-input-browser/src/scan-code-input.vue.cjs +0 -34
- package/lib/secret-info/index.cjs +0 -5
- package/lib/secret-info/index.vue.cjs +0 -13
- package/lib/src/api/sso-service.cjs +0 -55
- package/lib/src/api/tab.cjs +0 -14
- package/lib/src/assets/401/401.gif.cjs +0 -2
- package/lib/src/assets/404/404-cloud.png.cjs +0 -2
- package/lib/src/assets/404/404.png.cjs +0 -2
- package/lib/src/assets/chat-embed/robot.gif.cjs +0 -2
- package/lib/src/assets/chat-embed/robot.svg.cjs +0 -2
- package/lib/src/assets/nonemessage.png.cjs +0 -2
- package/lib/src/components/Affix/index.vue.cjs +0 -5
- package/lib/src/components/Affix/index.vue2.cjs +0 -81
- package/lib/src/components/Affix/index.vue3.cjs +0 -2
- package/lib/src/components/Card/index.cjs +0 -46
- package/lib/src/components/Scrollbar/index.vue.cjs +0 -48
- package/lib/src/components/Scrollbar/index.vue2.cjs +0 -2
- package/lib/src/directives/permission/index.cjs +0 -5
- package/lib/src/directives/permission/permission.cjs +0 -9
- package/lib/src/i18n/i18n.cjs +0 -3
- package/lib/src/i18n/langs/cn.cjs +0 -2
- package/lib/src/i18n/langs/en.cjs +0 -2
- package/lib/src/mixins/resizeMixin.cjs +0 -20
- package/lib/src/permission.cjs +0 -76
- package/lib/src/router/index.cjs +0 -16
- package/lib/src/store/getters.cjs +0 -2
- package/lib/src/store/index.cjs +0 -16
- package/lib/src/store/modules/app.cjs +0 -40
- package/lib/src/store/modules/chat-ai-store.cjs +0 -33
- package/lib/src/store/modules/permission.cjs +0 -30
- package/lib/src/store/modules/system.cjs +0 -10
- package/lib/src/store/modules/tab-content.cjs +0 -18
- package/lib/src/store/modules/table.cjs +0 -17
- package/lib/src/store/modules/user.cjs +0 -133
- package/lib/src/utils/auth-api.cjs +0 -132
- package/lib/src/utils/auth.cjs +0 -86
- package/lib/src/utils/calculator/calculator-factory-wf.cjs +0 -166
- package/lib/src/utils/calculator/calculator-factory.cjs +0 -92
- package/lib/src/utils/calculator/calculator-util.cjs +0 -53
- package/lib/src/utils/chat-ai-util.cjs +0 -26
- package/lib/src/utils/common-util.cjs +0 -362
- package/lib/src/utils/eventBus.cjs +0 -3
- package/lib/src/utils/file-util.cjs +0 -22
- package/lib/src/utils/global-prop.cjs +0 -22
- package/lib/src/utils/guid.cjs +0 -7
- package/lib/src/utils/i18n-util.cjs +0 -62
- package/lib/src/utils/iconUtils.cjs +0 -19
- package/lib/src/utils/index.cjs +0 -32
- package/lib/src/utils/insert_css.cjs +0 -18
- package/lib/src/utils/json-util.cjs +0 -45
- package/lib/src/utils/jump-page-utils.cjs +0 -256
- package/lib/src/utils/local-storage.cjs +0 -18
- package/lib/src/utils/menu.cjs +0 -13
- package/lib/src/utils/permission.cjs +0 -41
- package/lib/src/utils/permissionAuth.cjs +0 -120
- package/lib/src/utils/range-selector.cjs +0 -101
- package/lib/src/utils/request.cjs +0 -131
- package/lib/src/utils/resize.cjs +0 -11
- package/lib/src/utils/restful-interface-utils.cjs +0 -15
- package/lib/src/utils/util.cjs +0 -341
- package/lib/src/utils/validate.cjs +0 -12
- package/lib/src/utils/voice-setting-cache.cjs +0 -199
- package/lib/src/utils/watermark-cache.cjs +0 -10
- package/lib/src/utils/watermark.cjs +0 -33
- package/lib/src/utils/workflow-util.cjs +0 -41
- package/lib/src/views/dsc-component/Sidebar/Item.vue.cjs +0 -5
- package/lib/src/views/dsc-component/Sidebar/Item.vue2.cjs +0 -9
- package/lib/src/views/dsc-component/Sidebar/Item.vue3.cjs +0 -2
- package/lib/src/views/dsc-component/Sidebar/Link.vue.cjs +0 -11
- package/lib/src/views/dsc-component/Sidebar/SidebarItem.vue.cjs +0 -46
- package/lib/src/views/dsc-component/Sidebar/SidebarItem.vue2.cjs +0 -2
- package/lib/src/views/dsc-component/Sidebar/index.vue.cjs +0 -103
- package/lib/src/views/dsc-component/tabs/tab-content.vue.cjs +0 -61
- package/lib/src/views/dsc-component/tabs/tab-content.vue2.cjs +0 -2
- package/lib/src/views/dsc-component/tabs/tab-content.vue3.cjs +0 -2
- package/lib/src/views/error-page/401.vue.cjs +0 -11
- package/lib/src/views/error-page/401.vue2.cjs +0 -2
- package/lib/src/views/error-page/404.vue.cjs +0 -8
- package/lib/src/views/error-page/404.vue2.cjs +0 -2
- package/lib/src/views/layout/EmptyLayout.vue.cjs +0 -7
- package/lib/src/views/layout/Layout.vue.cjs +0 -21
- package/lib/src/views/layout/Layout.vue2.cjs +0 -2
- package/lib/src/views/layout/NewLayout.vue.cjs +0 -7
- package/lib/src/views/layout/components/AppMain.vue.cjs +0 -11
- package/lib/src/views/layout/components/AppMain.vue2.cjs +0 -2
- package/lib/src/views/layout/components/Breadcrumb/index.vue.cjs +0 -56
- package/lib/src/views/layout/components/Breadcrumb/index.vue2.cjs +0 -2
- package/lib/src/views/layout/components/Menubar/Item.vue.cjs +0 -5
- package/lib/src/views/layout/components/Menubar/Item.vue2.cjs +0 -13
- package/lib/src/views/layout/components/Menubar/Item.vue3.cjs +0 -2
- package/lib/src/views/layout/components/Menubar/Link.vue.cjs +0 -11
- package/lib/src/views/layout/components/Menubar/SidebarItem.vue.cjs +0 -47
- package/lib/src/views/layout/components/Menubar/SidebarItem.vue2.cjs +0 -2
- package/lib/src/views/layout/components/Menubar/index.vue.cjs +0 -79
- package/lib/src/views/layout/components/Sidebar/Item.vue.cjs +0 -7
- package/lib/src/views/layout/components/Sidebar/Item.vue2.cjs +0 -3
- package/lib/src/views/layout/components/Sidebar/Link.vue.cjs +0 -9
- package/lib/src/views/layout/components/Sidebar/SidebarItem.vue.cjs +0 -16
- package/lib/src/views/layout/components/Sidebar/SidebarItem.vue2.cjs +0 -2
- package/lib/src/views/layout/components/Sidebar/index.vue.cjs +0 -51
- package/lib/src/views/layout/components/iframe-page.vue.cjs +0 -12
- package/lib/src/views/layout/components/iframe-page.vue2.cjs +0 -2
- package/lib/src/views/layout/components/tabs/tab-content.vue.cjs +0 -60
- package/lib/src/views/layout/components/tabs/tab-content.vue2.cjs +0 -2
- package/lib/src/views/layout/components/tabs/tab-content.vue3.cjs +0 -2
- package/lib/src/views/layout/mixin/ResizeHandler.cjs +0 -14
- package/lib/src/views/layout/tab-content-iframe-index.vue.cjs +0 -12
- package/lib/src/views/layout/tab-content-iframe-index.vue2.cjs +0 -2
- package/lib/src/views/layout/tab-content-index.vue.cjs +0 -22
- package/lib/src/views/layout/tab-content-index.vue2.cjs +0 -2
- package/lib/src/views/login/authredirect.vue.cjs +0 -6
- package/lib/src/views/redirect/index.vue.cjs +0 -17
- package/lib/src/views/super-icon/index.cjs +0 -5
- package/lib/src/views/super-icon/src/index.vue.cjs +0 -5
- package/lib/src/views/super-icon/src/index.vue2.cjs +0 -10
- package/lib/src/views/super-icon/src/index.vue3.cjs +0 -2
- package/lib/src/views/svg-icon/src/svg-icon.vue.cjs +0 -2
- package/lib/src/views/svg-icon/src/svg-icon.vue2.cjs +0 -12
- package/lib/src/views/wf-history/tache-subprocess-history.vue.cjs +0 -12
- package/lib/src/views/wf-history/tache-subprocess-history.vue2.cjs +0 -2
- package/lib/style.css +0 -3103
- package/lib/super-grid/index.cjs +0 -5
- package/lib/super-grid/src/apis.cjs +0 -477
- package/lib/super-grid/src/columns-config.vue.cjs +0 -76
- package/lib/super-grid/src/components/grid-icon.vue.cjs +0 -39
- package/lib/super-grid/src/components/grid-radio-input.vue.cjs +0 -22
- package/lib/super-grid/src/components/grid-radio-input.vue2.cjs +0 -3
- package/lib/super-grid/src/components/mobile-table-card.cjs +0 -99
- package/lib/super-grid/src/components/select-input.vue.cjs +0 -141
- package/lib/super-grid/src/components/select-input.vue2.cjs +0 -3
- package/lib/super-grid/src/custom-formatter.cjs +0 -163
- package/lib/super-grid/src/dynamic-input.vue.cjs +0 -465
- package/lib/super-grid/src/eventBus.cjs +0 -3
- package/lib/super-grid/src/events.cjs +0 -35
- package/lib/super-grid/src/formValidatorUtil.cjs +0 -106
- package/lib/super-grid/src/formatter.cjs +0 -69
- package/lib/super-grid/src/group-column.vue.cjs +0 -19
- package/lib/super-grid/src/header-context-menu.vue.cjs +0 -12
- package/lib/super-grid/src/header-context-menu.vue2.cjs +0 -2
- package/lib/super-grid/src/index-column.vue.cjs +0 -19
- package/lib/super-grid/src/normal-column-content.vue.cjs +0 -303
- package/lib/super-grid/src/normal-column-content.vue2.cjs +0 -2
- package/lib/super-grid/src/normal-column.vue.cjs +0 -90
- package/lib/super-grid/src/normal-column.vue2.cjs +0 -2
- package/lib/super-grid/src/public-methods.cjs +0 -20
- package/lib/super-grid/src/row-detail.vue.cjs +0 -11
- package/lib/super-grid/src/row-operation.vue.cjs +0 -82
- package/lib/super-grid/src/row-operation.vue2.cjs +0 -2
- package/lib/super-grid/src/scan-util.cjs +0 -98
- package/lib/super-grid/src/search-button.vue.cjs +0 -20
- package/lib/super-grid/src/search-condition-input.vue.cjs +0 -13
- package/lib/super-grid/src/search-condition-list.vue.cjs +0 -17
- package/lib/super-grid/src/search-form-advancedQuery.vue.cjs +0 -106
- package/lib/super-grid/src/search-form-advancedQuery.vue2.cjs +0 -2
- package/lib/super-grid/src/search-form-dialog.vue.cjs +0 -23
- package/lib/super-grid/src/search-form-item.vue.cjs +0 -120
- package/lib/super-grid/src/search-form-item.vue2.cjs +0 -2
- package/lib/super-grid/src/search-form-mobile.vue.cjs +0 -32
- package/lib/super-grid/src/search-form-mobile.vue2.cjs +0 -2
- package/lib/super-grid/src/search-form-number.vue.cjs +0 -21
- package/lib/super-grid/src/search-form-open.vue.cjs +0 -46
- package/lib/super-grid/src/search-form-ordinarySearch.vue.cjs +0 -33
- package/lib/super-grid/src/search-form-ordinarySearch.vue2.cjs +0 -2
- package/lib/super-grid/src/search-form.vue.cjs +0 -194
- package/lib/super-grid/src/search-form.vue2.cjs +0 -2
- package/lib/super-grid/src/search-methods.cjs +0 -163
- package/lib/super-grid/src/selection-column.vue.cjs +0 -9
- package/lib/super-grid/src/store.cjs +0 -3
- package/lib/super-grid/src/super-grid-service.cjs +0 -253
- package/lib/super-grid/src/super-grid.vue.cjs +0 -1083
- package/lib/super-grid/src/super-grid.vue2.cjs +0 -2
- package/lib/super-grid/src/utils.cjs +0 -373
- package/lib/super-grid/src/view-image-dialog.vue.cjs +0 -60
- package/lib/super-icon/index.cjs +0 -5
- package/lib/super-icon/src/index.vue.cjs +0 -5
- package/lib/super-icon/src/index.vue2.cjs +0 -10
- package/lib/super-icon/src/index.vue3.cjs +0 -2
- package/lib/super-nine-grid/index.cjs +0 -5
- package/lib/super-nine-grid/src/apis.cjs +0 -33
- package/lib/super-nine-grid/src/custom-formatter.cjs +0 -33
- package/lib/super-nine-grid/src/formatter.cjs +0 -36
- package/lib/super-nine-grid/src/search-form-number.vue.cjs +0 -9
- package/lib/super-nine-grid/src/search-form.vue.cjs +0 -84
- package/lib/super-nine-grid/src/search-form.vue2.cjs +0 -2
- package/lib/super-nine-grid/src/search-methods.cjs +0 -47
- package/lib/super-nine-grid/src/store.cjs +0 -3
- package/lib/super-nine-grid/src/super-grid-service.cjs +0 -35
- package/lib/super-nine-grid/src/super-nine-grid.vue.cjs +0 -215
- package/lib/super-nine-grid/src/super-nine-grid.vue2.cjs +0 -2
- package/lib/super-nine-grid/src/utils.cjs +0 -36
- package/lib/svg-icon/index.cjs +0 -5
- package/lib/svg-icon/src/svg-icon.vue.cjs +0 -12
- package/lib/svg-icon/src/svg-icon.vue2.cjs +0 -2
- package/lib/utils/gogocodeTransfer.cjs +0 -28
- package/lib/utils/memory-cache-utils.cjs +0 -28
- package/lib/utils/organization.cjs +0 -55
- package/lib/utils/utils.cjs +0 -85
- package/lib/utils/value-set.cjs +0 -92
- package/lib/valid-code/index.cjs +0 -5
- package/lib/valid-code/src/valid-code.vue.cjs +0 -20
- package/lib/valid-code/src/valid-code.vue2.cjs +0 -2
- package/lib/workflow-button/index.cjs +0 -5
- package/lib/workflow-button/src/workflow-button.vue.cjs +0 -80
- package/lib/workflow-history-list/index.cjs +0 -5
- package/lib/workflow-history-list/src/api.cjs +0 -5
- package/lib/workflow-history-list/src/workflow-history-list.vue.cjs +0 -83
- package/lib/workflow-history-list/src/workflow-history-list.vue2.cjs +0 -2
- package/lib/workgroup-tree/index.cjs +0 -5
- package/lib/workgroup-tree/src/workgroup-tree.vue.cjs +0 -17
- package/lib/workgroup-tree-inline/index.cjs +0 -5
- package/lib/workgroup-tree-inline/src/search-result.vue.cjs +0 -35
- package/lib/workgroup-tree-inline/src/search-result.vue2.cjs +0 -2
- package/lib/workgroup-tree-inline/src/workgroup-tree-inline.vue.cjs +0 -119
- package/lib/workgroup-tree-inline/src/workgroup-tree-inline.vue2.cjs +0 -2
- package/lib/workgroup-tree-inline/src/workgroup-tree-service.cjs +0 -33
- package/lib/workgroup-tree-mobile/index.cjs +0 -5
- package/lib/workgroup-tree-mobile/src/dept-result.vue.cjs +0 -14
- package/lib/workgroup-tree-mobile/src/dept-result.vue2.cjs +0 -3
- package/lib/workgroup-tree-mobile/src/workgroup-tree-app.vue.cjs +0 -13
- package/lib/workgroup-tree-mobile/src/workgroup-tree-app.vue2.cjs +0 -2
- package/lib/workgroup-tree-mobile/src/workgroup-tree-app.vue3.cjs +0 -3
- package/lib/workgroup-tree-mobile/src/workgroup-tree-inline-app.vue.cjs +0 -99
- package/lib/workgroup-tree-mobile/src/workgroup-tree-inline-app.vue2.cjs +0 -3
- package/lib/workgroup-tree-mobile/src/workgroup-tree-service.cjs +0 -25
- package/lib/workgroup-user-tree/index.cjs +0 -5
- package/lib/workgroup-user-tree/src/workgroup-user-tree.vue.cjs +0 -17
- package/lib/workgroup-user-tree-inline/index.cjs +0 -5
- package/lib/workgroup-user-tree-inline/src/search-result.vue.cjs +0 -35
- package/lib/workgroup-user-tree-inline/src/search-result.vue2.cjs +0 -2
- package/lib/workgroup-user-tree-inline/src/workgroup-tree-inline-service.cjs +0 -71
- package/lib/workgroup-user-tree-inline/src/workgroup-user-tree-inline.vue.cjs +0 -163
- package/lib/workgroup-user-tree-inline/src/workgroup-user-tree-inline.vue2.cjs +0 -2
- package/lib/workgroup-user-tree-mobile/src/dept-path.vue.cjs +0 -13
- package/lib/workgroup-user-tree-mobile/src/dept-path.vue2.cjs +0 -3
- package/lib/workgroup-user-tree-mobile/src/dept-result.vue.cjs +0 -14
- package/lib/workgroup-user-tree-mobile/src/dept-result.vue2.cjs +0 -3
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue.cjs +0 -13
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue2.cjs +0 -2
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue3.cjs +0 -3
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-inline-app.vue.cjs +0 -124
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-inline-app.vue2.cjs +0 -3
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-service.cjs +0 -20
- package/lib/year-range-picker/index.cjs +0 -5
- package/lib/year-range-picker/src/year-range-picker.vue.cjs +0 -11
- package/src/api/sso-service.js +0 -222
- package/src/api/tab.js +0 -36
- package/src/assets/401/401.gif +0 -0
- package/src/assets/404/404-cloud.png +0 -0
- package/src/assets/404/404.png +0 -0
- package/src/assets/chat-embed/background.png +0 -0
- package/src/assets/chat-embed/robot.gif +0 -0
- package/src/assets/chat-embed/robot.svg +0 -32
- package/src/assets/cloud.png +0 -0
- package/src/assets/nonemessage.png +0 -0
- package/src/assets/tab-selectWhite.png +0 -0
- package/src/components/Affix/index.vue +0 -272
- package/src/components/Card/index.jsx +0 -227
- package/src/components/Scrollbar/index.vue +0 -224
- package/src/directives/permission/index.js +0 -14
- package/src/directives/permission/permission.js +0 -27
- package/src/i18n/i18n.js +0 -16
- package/src/i18n/langs/cn.js +0 -344
- package/src/i18n/langs/en.js +0 -344
- package/src/index.js +0 -22
- package/src/mixins/resizeMixin.js +0 -49
- package/src/permission.js +0 -252
- package/src/plugins.js +0 -18
- package/src/router/index.js +0 -92
- package/src/store/getters.js +0 -26
- package/src/store/index.js +0 -23
- package/src/store/modules/app.js +0 -96
- package/src/store/modules/chat-ai-store.ts +0 -85
- package/src/store/modules/permission.js +0 -143
- package/src/store/modules/system.js +0 -35
- package/src/store/modules/tab-content.js +0 -42
- package/src/store/modules/table.js +0 -76
- package/src/store/modules/user.js +0 -448
- package/src/utils/auth-api.js +0 -370
- package/src/utils/auth.js +0 -194
- package/src/utils/calculator/calculator-factory-wf.js +0 -465
- package/src/utils/calculator/calculator-factory.js +0 -133
- package/src/utils/calculator/calculator-util.js +0 -184
- package/src/utils/chat-ai-util.ts +0 -41
- package/src/utils/common-util.js +0 -1019
- package/src/utils/dingtalk-util.ts +0 -43
- package/src/utils/eventBus.js +0 -10
- package/src/utils/file-util.ts +0 -42
- package/src/utils/global-prop.ts +0 -44
- package/src/utils/guid.js +0 -13
- package/src/utils/i18n-util.js +0 -145
- package/src/utils/iconUtils.js +0 -37
- package/src/utils/iframe-communicator.js +0 -234
- package/src/utils/index.js +0 -102
- package/src/utils/insert_css.js +0 -47
- package/src/utils/json-util.ts +0 -85
- package/src/utils/jump-page-utils.js +0 -829
- package/src/utils/local-storage.js +0 -33
- package/src/utils/menu.js +0 -19
- package/src/utils/permission.js +0 -126
- package/src/utils/permissionAuth.js +0 -311
- package/src/utils/range-selector.js +0 -204
- package/src/utils/request.js +0 -407
- package/src/utils/resize.js +0 -19
- package/src/utils/restful-interface-utils.js +0 -57
- package/src/utils/util.js +0 -1000
- package/src/utils/validate.js +0 -34
- package/src/utils/voice-setting-cache.js +0 -497
- package/src/utils/watermark-cache.js +0 -13
- package/src/utils/watermark.js +0 -119
- package/src/utils/workflow-util.js +0 -107
- package/src/views/404.vue +0 -248
- package/src/views/dsc-component/Sidebar/Item.vue +0 -95
- package/src/views/dsc-component/Sidebar/Link.vue +0 -38
- package/src/views/dsc-component/Sidebar/SidebarItem.vue +0 -245
- package/src/views/dsc-component/Sidebar/index.vue +0 -258
- package/src/views/dsc-component/tabs/tab-content.vue +0 -230
- package/src/views/error-page/401.vue +0 -106
- package/src/views/error-page/404.vue +0 -248
- package/src/views/layout/EmptyLayout.vue +0 -3
- package/src/views/layout/Layout.vue +0 -85
- package/src/views/layout/NewLayout.vue +0 -18
- package/src/views/layout/components/AppMain.vue +0 -46
- package/src/views/layout/components/Breadcrumb/index.vue +0 -158
- package/src/views/layout/components/Menubar/Item.vue +0 -125
- package/src/views/layout/components/Menubar/Link.vue +0 -38
- package/src/views/layout/components/Menubar/SidebarItem.vue +0 -333
- package/src/views/layout/components/Menubar/index.vue +0 -250
- package/src/views/layout/components/Sidebar/Item.vue +0 -33
- package/src/views/layout/components/Sidebar/Link.vue +0 -38
- package/src/views/layout/components/Sidebar/SidebarItem.vue +0 -179
- package/src/views/layout/components/Sidebar/index.vue +0 -141
- package/src/views/layout/components/iframe-page.vue +0 -38
- package/src/views/layout/components/index.js +0 -4
- package/src/views/layout/components/tabs/tab-content.vue +0 -273
- package/src/views/layout/mixin/ResizeHandler.js +0 -41
- package/src/views/layout/tab-content-iframe-index.vue +0 -38
- package/src/views/layout/tab-content-index.vue +0 -92
- package/src/views/login/authredirect.vue +0 -10
- package/src/views/login/index.vue +0 -296
- package/src/views/login/update-password.vue +0 -246
- package/src/views/redirect/index.vue +0 -14
- package/src/views/super-icon/index.js +0 -6
- package/src/views/super-icon/src/index.vue +0 -52
- package/src/views/svg-icon/index.js +0 -6
- package/src/views/svg-icon/src/svg-icon.vue +0 -43
- package/src/views/wf-history/tache-subprocess-history.vue +0 -45
- package/vite.config.js +0 -103
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Setting as e, Refresh as t } from "@element-plus/icons-vue";
|
|
2
2
|
import { $emit as i } from "../../utils/gogocodeTransfer.mjs";
|
|
3
3
|
import o from "./index-column.vue.mjs";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
4
|
+
import s from "./selection-column.vue.mjs";
|
|
5
|
+
import a from "./normal-column.vue.mjs";
|
|
6
6
|
import r from "./group-column.vue.mjs";
|
|
7
7
|
import n from "./columns-config.vue.mjs";
|
|
8
8
|
import l from "./search-form.vue.mjs";
|
|
@@ -11,33 +11,33 @@ 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,
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import { isMobileBrowser as
|
|
24
|
-
import
|
|
25
|
-
import { getGuId as
|
|
26
|
-
import
|
|
27
|
-
import { setPageInfoToChatStore as U, addListRefToStore as
|
|
28
|
-
import
|
|
29
|
-
import { doFormat as
|
|
30
|
-
import { resolveComponent as
|
|
14
|
+
import { getSpanValuesForColumn as m, getGridParams as b, isHasOptionFunction as f, getHeaderLable as S, getTableHeight as C, isEditOptionFunction as w, isHasEditOption as D, getDynamicColumnControlConfig as y, getControlConfig as T, getExtraParam as P, getFirstEditableColumn as v, addDynamicProp as x, caculateSearchCondition as F, isCanRefreshGrid as O, rowBeforeValidate as $, parseSubTableActionCondition as E, getRowIndexPage as M, isObjectValueEqual as k } from "./utils.mjs";
|
|
15
|
+
import R from "sortablejs";
|
|
16
|
+
import G from "./store.mjs";
|
|
17
|
+
import I from "./events.mjs";
|
|
18
|
+
import L from "./public-methods.mjs";
|
|
19
|
+
import j from "./super-grid-service.mjs";
|
|
20
|
+
import H from "./formValidatorUtil.mjs";
|
|
21
|
+
import z from "./apis.mjs";
|
|
22
|
+
import A from "./header-context-menu.vue.mjs";
|
|
23
|
+
import { isMobileBrowser as N, isPromise as q } from "../../src/utils/common-util.mjs";
|
|
24
|
+
import _ from "../../src/utils/permission.mjs";
|
|
25
|
+
import { getGuId as V } from "../../src/utils/guid.mjs";
|
|
26
|
+
import B from "../../src/store/index.mjs";
|
|
27
|
+
import { setPageInfoToChatStore as U, addListRefToStore as J } from "../../src/utils/chat-ai-util.mjs";
|
|
28
|
+
import W from "./search-methods.mjs";
|
|
29
|
+
import { doFormat as K } from "./formatter.mjs";
|
|
30
|
+
import { resolveComponent as Q, resolveDirective as X, withDirectives as Y, openBlock as Z, createElementBlock as ee, normalizeStyle as te, createBlock as ie, vShow as oe, createCommentVNode as se, createElementVNode as ae, withCtx as re, createTextVNode as ne, toDisplayString as le, createVNode as he, Fragment as de, renderList as ce, normalizeClass as pe, resolveDynamicComponent as ue, mergeProps as ge, toHandlers as me } from "vue";
|
|
31
31
|
import "./super-grid.vue2.mjs";
|
|
32
|
-
import
|
|
33
|
-
const
|
|
32
|
+
import be from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
33
|
+
const fe = { components: { IndexColumn: o, SelectionColumn: s, NormalColumn: a, GroupColumn: r, ColumnsConfig: n, SearchForm: l, headerContextMenu: A, 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;
|
|
37
37
|
const t2 = this.options.parentProp;
|
|
38
38
|
void 0 !== t2 && "" !== t2 && null !== t2 && (e2 = t2);
|
|
39
|
-
let i2, o2,
|
|
40
|
-
this.options && this.options.mergeFields && "" !== this.options.mergeFields && (
|
|
39
|
+
let i2, o2, s2, a2 = [];
|
|
40
|
+
this.options && this.options.mergeFields && "" !== this.options.mergeFields && (a2 = 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 && (s2 = this.options.pageHeight);
|
|
41
41
|
let r2 = true;
|
|
42
42
|
this.options && void 0 !== this.options.lazy && (r2 = this.options.lazy);
|
|
43
43
|
let n2 = true;
|
|
@@ -46,9 +46,11 @@ const be = { 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 =
|
|
49
|
+
const g2 = N();
|
|
50
50
|
let m2 = false;
|
|
51
|
-
|
|
51
|
+
this.options.checkStrictly && (m2 = true);
|
|
52
|
+
let b2 = false;
|
|
53
|
+
return this.options.showOverflowTooltip && (b2 = 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: a2, 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: s2, currentSelectCell: null, isLazy: r2, defaultExpandAll: n2, parentFormData: null, stripe: true, showOverflowTooltip: b2, 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
54
|
}, computed: { heightOffset() {
|
|
53
55
|
var _a, _b, _c, _d, _e;
|
|
54
56
|
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,24 +60,24 @@ const be = { components: { IndexColumn: o, SelectionColumn: a, NormalColumn: s,
|
|
|
58
60
|
}, hasTableHeight() {
|
|
59
61
|
if (this.tableHeight)
|
|
60
62
|
return this.tableHeight <= 100 ? 100 : this.tableHeight + (0 !== this.heightOffset ? this.heightOffset : 30);
|
|
61
|
-
}, isMobileListCard: () =>
|
|
63
|
+
}, isMobileListCard: () => B.getters.isMobileListCard, isShowCard() {
|
|
62
64
|
var _a, _b, _c, _d;
|
|
63
65
|
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
66
|
}, visibleColumns() {
|
|
65
|
-
const e2 =
|
|
67
|
+
const e2 = G.get(this.code), t2 = this.getOptionOperations();
|
|
66
68
|
e2.canntEdit = false;
|
|
67
69
|
const i2 = (e3) => e3.map((e4) => ({ property: e4.prop, ...e4 }));
|
|
68
70
|
if (t2 && t2.operation && t2.operation.length > 0 && t2.operation.forEach((t3) => {
|
|
69
|
-
"lineEditUpdate" === t3.props.code &&
|
|
71
|
+
"lineEditUpdate" === t3.props.code && _(t3.props.functionCode, this.basicInfo.systemCode) && (e2.canntEdit = true);
|
|
70
72
|
}), void 0 !== this.options.isAdministerListView && null != this.options.isAdministerListView && true === this.options.isAdministerListView)
|
|
71
73
|
return i2(this.columns);
|
|
72
74
|
{
|
|
73
75
|
const o2 = this.options.updateColumnsInfo;
|
|
74
|
-
let
|
|
75
|
-
o2 && (
|
|
76
|
-
e3.prop && (
|
|
76
|
+
let s2;
|
|
77
|
+
o2 && (s2 = {}, o2.forEach((e3) => {
|
|
78
|
+
e3.prop && (s2[e3.prop] = e3);
|
|
77
79
|
}));
|
|
78
|
-
let
|
|
80
|
+
let a2 = {}, r2 = [];
|
|
79
81
|
return i2(this.columns.filter((i3) => {
|
|
80
82
|
if (!this.isHasSearchColumn && i3.queryType && "normal" === i3.queryType && (this.isHasSearchColumn = true), void 0 !== this.options.multiple && false === this.options.multiple && "$selection" === i3.prop)
|
|
81
83
|
return false;
|
|
@@ -85,7 +87,7 @@ const be = { components: { IndexColumn: o, SelectionColumn: a, NormalColumn: s,
|
|
|
85
87
|
if (this.storeHasDefaultValueColumns(i3, e2), void 0 === i3.show || i3.show) {
|
|
86
88
|
o3 = true;
|
|
87
89
|
const n2 = this.options.hiddenColumns;
|
|
88
|
-
if (n2 && n2.length > 0 && i3.prop && -1 !== n2.indexOf(i3.prop) && (o3 = false), o3 = this.packageUpdateColunmInfo(i3,
|
|
90
|
+
if (n2 && n2.length > 0 && i3.prop && -1 !== n2.indexOf(i3.prop) && (o3 = false), o3 = this.packageUpdateColunmInfo(i3, s2), i3.children && i3.children.length > 0 ? this.packageHiddenColumnsWithChildren(i3, n2, r2, s2, a2) : this.isMobileOrderColumn(i3) && r2.push(i3), i3.prop && (a2[i3.prop] = i3), this.orderColumns = r2, this.columnsMap = a2, !o3)
|
|
89
91
|
return o3;
|
|
90
92
|
this.initColumnOperation(i3, t2), e2.$dataTypeMap || (e2.$dataTypeMap = {}), e2.$dataTypeMap[i3.prop] = i3.dataType;
|
|
91
93
|
} else
|
|
@@ -96,7 +98,7 @@ const be = { components: { IndexColumn: o, SelectionColumn: a, NormalColumn: s,
|
|
|
96
98
|
}, visibleColumnsComponentData() {
|
|
97
99
|
return this.visibleColumns.map((e2) => this.getColumnComponentData(e2, this.myCustomFormatter));
|
|
98
100
|
}, mobileColumns: () => "Layout", tableDatas() {
|
|
99
|
-
const e2 =
|
|
101
|
+
const e2 = G.get(this.code), t2 = this.hasFilterDataEvent ? this.filterGridData : this.isFormSubTable && !this.isShowPageArea ? this.isSubSearch ? this.subTableDataSearch : this.subTableData : this.gridData;
|
|
100
102
|
return e2 && e2.options && e2 && e2.options.allEditable && t2.forEach((e3) => {
|
|
101
103
|
e3.$editing = true;
|
|
102
104
|
}), t2;
|
|
@@ -108,7 +110,7 @@ const be = { components: { IndexColumn: o, SelectionColumn: a, NormalColumn: s,
|
|
|
108
110
|
}, showSummary() {
|
|
109
111
|
return void 0 !== this.basicInfo.summary && "no" !== this.basicInfo.summary;
|
|
110
112
|
}, getRowKeyProp() {
|
|
111
|
-
const e2 =
|
|
113
|
+
const e2 = G.get(this.code);
|
|
112
114
|
return e2 && e2.options && e2.options.rowKeyProp ? e2.options.rowKeyProp : "$rowDataGuId";
|
|
113
115
|
}, filterGridData() {
|
|
114
116
|
return this.hasFilterDataEvent ? this.filterData() : this.gridData;
|
|
@@ -120,11 +122,11 @@ const be = { components: { IndexColumn: o, SelectionColumn: a, NormalColumn: s,
|
|
|
120
122
|
} }, "options.SuperGrid": { deep: true, handler: function() {
|
|
121
123
|
this.externalClickFlag = true, this.initSetting(), this.initialize();
|
|
122
124
|
} }, subTableData: { deep: true, immediate: true, handler: function() {
|
|
123
|
-
const e2 =
|
|
125
|
+
const e2 = G.get(this.code);
|
|
124
126
|
if (e2)
|
|
125
127
|
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) {
|
|
126
128
|
if (void 0 !== e2.isChangePage && e2.isChangePage) {
|
|
127
|
-
const t2 =
|
|
129
|
+
const t2 = M(this.pageSize, e2.addRowIndex);
|
|
128
130
|
this.currentPage = t2, this.changePage();
|
|
129
131
|
} else
|
|
130
132
|
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)));
|
|
@@ -137,30 +139,30 @@ const be = { components: { IndexColumn: o, SelectionColumn: a, NormalColumn: s,
|
|
|
137
139
|
});
|
|
138
140
|
} }, "options.validateRules": { deep: true, handler: function() {
|
|
139
141
|
this.externalClickFlag = true;
|
|
140
|
-
const e2 =
|
|
141
|
-
e2 && e2.options && (e2.options.validateRules = this.options.validateRules,
|
|
142
|
+
const e2 = G.get(this.code);
|
|
143
|
+
e2 && e2.options && (e2.options.validateRules = this.options.validateRules, G.set(this.code, e2));
|
|
142
144
|
} }, "options.subTableCanAdd": { deep: true, handler: function() {
|
|
143
|
-
const e2 =
|
|
144
|
-
e2 && e2.options && (e2.options.subTableCanAdd = this.options.subTableCanAdd,
|
|
145
|
+
const e2 = G.get(this.code);
|
|
146
|
+
e2 && e2.options && (e2.options.subTableCanAdd = this.options.subTableCanAdd, G.set(this.code, e2));
|
|
145
147
|
} }, pageSize: { deep: true, handler(e2, t2) {
|
|
146
148
|
i(this, "change-rows-per-page", this.pageSize);
|
|
147
149
|
} } }, provide: () => ({}), created() {
|
|
148
150
|
var _a, _b;
|
|
149
|
-
(_b = (_a =
|
|
151
|
+
(_b = (_a = B) == null ? void 0 : _a.dispatch) == null ? void 0 : _b.call(_a, "startListeningToResize"), G.set(this.code, b()), G.set("_list_code", this.code), this.initSetting(), this.judgeIsFormSubTable();
|
|
150
152
|
let e2 = true;
|
|
151
|
-
|
|
153
|
+
f("rowStyleRender", this.code) && (e2 = false), this.stripe = e2, f("filterDataEvent", this.code) && (this.hasFilterDataEvent = true);
|
|
152
154
|
}, mounted() {
|
|
153
155
|
this.initialize().then(() => {
|
|
154
|
-
const e2 =
|
|
156
|
+
const e2 = G.get(this.code);
|
|
155
157
|
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(() => {
|
|
156
158
|
this.columns.forEach((e4) => {
|
|
157
159
|
e4.valueSet && i(this, "set-select-options", { prop: this.code + "." + e4.prop, valueSet: e4.valueSet });
|
|
158
|
-
}), this.rowDrop(), this.columnDrop(),
|
|
160
|
+
}), this.rowDrop(), this.columnDrop(), G.get(this.code).superGrid = this.$refs.superGrid, this.query && "embedded" === this.query.showType ? this.resizeTableHeight() : this.$watch("showSearch", function(e4, t3) {
|
|
159
161
|
this.resizeTableHeight();
|
|
160
162
|
}, { immediate: true, deep: true }), window.addEventListener("resize", this.resizeTableHeight), this.isFormSubTable && this.initScrollbarPositionCheck(), this.$watch("hasLoadData", function(e4, t3) {
|
|
161
163
|
true === e4 && this.$nextTick(() => {
|
|
162
|
-
const e5 =
|
|
163
|
-
|
|
164
|
+
const e5 = G.get(this.code);
|
|
165
|
+
f("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 });
|
|
164
166
|
});
|
|
165
167
|
}, { immediate: true, deep: true });
|
|
166
168
|
const e3 = this, t2 = null !== document.querySelector(".user-tree");
|
|
@@ -172,16 +174,16 @@ const be = { components: { IndexColumn: o, SelectionColumn: a, NormalColumn: s,
|
|
|
172
174
|
};
|
|
173
175
|
}), this.query && "popup" === this.query.showType && i(this, "setSearchType", true), this.$watch("options.extraParam", function(e3, t2) {
|
|
174
176
|
this.options.extraParam = e3;
|
|
175
|
-
|
|
176
|
-
}, { deep: true }), this.isFormSubTable ?
|
|
177
|
+
G.get(this.code).options.extraParam = e3;
|
|
178
|
+
}, { deep: true }), this.isFormSubTable ? J(this.pageContext, this) : U(this.pageContext, { listRefs: [{ ref: this }], pageType: "list" });
|
|
177
179
|
});
|
|
178
180
|
}, beforeDestroy() {
|
|
179
181
|
window.removeEventListener("resize", this.resizeTableHeight), this.isFormSubTable && (window.removeEventListener("scroll", this.checkScrollbarPosition, true), window.removeEventListener("resize", this.checkScrollbarPosition));
|
|
180
|
-
}, methods: { ...
|
|
182
|
+
}, methods: { ...I, ...L, ...j, ...W, ...z, isMobileOrderColumn(e2) {
|
|
181
183
|
return this.isMobile && e2.prop && "$selection" !== e2.prop && "$index" !== e2.prop && ("true" === e2.sortable || true === e2.sortable);
|
|
182
|
-
}, getColumnLabel: (e2) =>
|
|
184
|
+
}, getColumnLabel: (e2) => S(e2), packageHiddenColumnsWithChildren(e2, t2, i2, o2, s2) {
|
|
183
185
|
e2.children && e2.children.length > 0 && e2.children.forEach((e3) => {
|
|
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,
|
|
186
|
+
!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, s2), 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 && (s2[e3.prop] = e3)));
|
|
185
187
|
});
|
|
186
188
|
}, packageUpdateColunmInfo(e2, t2) {
|
|
187
189
|
if (t2 && e2.prop && t2[e2.prop]) {
|
|
@@ -213,30 +215,30 @@ const be = { components: { IndexColumn: o, SelectionColumn: a, NormalColumn: s,
|
|
|
213
215
|
t2 && (this.isScrollbarOnTop ? t2.classList.add("scrollbar-on-top") : t2.classList.remove("scrollbar-on-top"));
|
|
214
216
|
}, onClickMain() {
|
|
215
217
|
var _a, _b;
|
|
216
|
-
(_b = (_a =
|
|
218
|
+
(_b = (_a = B) == null ? void 0 : _a.dispatch) == null ? void 0 : _b.call(_a, "clearAllEditing");
|
|
217
219
|
}, isDeleteChange(e2) {
|
|
218
220
|
this.isDelete = e2;
|
|
219
221
|
}, isCallEnterEvent(e2) {
|
|
220
222
|
let t2 = true;
|
|
221
223
|
void 0 !== e2.options.isEnableEnterEvent && false === e2.options.isEnableEnterEvent && (t2 = false);
|
|
222
|
-
const i2 =
|
|
224
|
+
const i2 = G.get(e2.code);
|
|
223
225
|
return t2 && i2.options && i2.options.isFormSubTable && (t2 = false), t2;
|
|
224
226
|
}, isShowPageArea() {
|
|
225
227
|
return !this.isFormSubTable || void 0 !== this.options.showPageArea && true === this.options.showPageArea;
|
|
226
228
|
}, resizeTableHeight() {
|
|
227
229
|
this.$nextTick(() => {
|
|
228
|
-
let e2, t2 =
|
|
229
|
-
const i2 =
|
|
230
|
-
if (
|
|
230
|
+
let e2, t2 = C(this.$refs.superGrid, this.code, this.pageHeight, this.isDialog);
|
|
231
|
+
const i2 = G.get(this.code);
|
|
232
|
+
if (f("resizeHeight", this.code)) {
|
|
231
233
|
let o2 = 0;
|
|
232
234
|
this.$refs.sf && !this.isMobile && (o2 = this.$refs.sf.$el.offsetHeight);
|
|
233
|
-
const
|
|
234
|
-
|
|
235
|
+
const s2 = i2.options.resizeHeight.call(this, { code: this.code, height: t2, searchHeight: o2, additionalParamMap: i2.additionalParamMap, pageContext: this.pageContext, configureObj: this.configureObj });
|
|
236
|
+
s2 && (e2 = s2);
|
|
235
237
|
}
|
|
236
238
|
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);
|
|
237
239
|
});
|
|
238
240
|
}, enterOperation(e2) {
|
|
239
|
-
const t2 =
|
|
241
|
+
const t2 = G.get(e2.code);
|
|
240
242
|
if (t2.options && t2.options.isFormSubTable) {
|
|
241
243
|
const e3 = t2.$editRow;
|
|
242
244
|
e3 && (p(e3, "$editing", false), t2.$editRow = null);
|
|
@@ -249,17 +251,17 @@ const be = { components: { IndexColumn: o, SelectionColumn: a, NormalColumn: s,
|
|
|
249
251
|
const o2 = t2.$rowIndex;
|
|
250
252
|
if (null != o2) {
|
|
251
253
|
const i3 = t2.gridData[o2];
|
|
252
|
-
|
|
254
|
+
w("enter", e2.listCode) ? this.pageContext ? t2.options.lineEditOptions.enter.call(e2, { rowIndex: o2, column: e2.column, row: i3, orgRow: t2.orgGridData[o2], additionalParamMap: t2.additionalParamMap, pageContext: t2.pageContext, configureObj: t2.configureObj }) : t2.options.lineEditOptions.enter.call(e2, o2, e2.column, i3, t2.orgGridData[o2], t2.additionalParamMap) : e2.saveRow(o2, e2.code);
|
|
253
255
|
}
|
|
254
256
|
}
|
|
255
257
|
}, escOperation(e2) {
|
|
256
|
-
const t2 =
|
|
258
|
+
const t2 = G.get(e2.code);
|
|
257
259
|
if (t2.options && !t2.options.isFormSubTable) {
|
|
258
260
|
const i2 = t2.$rowIndex;
|
|
259
261
|
if (null != i2) {
|
|
260
262
|
e2.restoreRow(i2, e2.code);
|
|
261
263
|
const o2 = t2.gridData[i2];
|
|
262
|
-
|
|
264
|
+
w("esc", e2.listCode) ? this.pageContext ? t2.options.lineEditOptions.esc.call(e2, { rowIndex: i2, column: e2.column, row: o2, row: t2.orgGridData[i2], additionalParamMap: t2.additionalParamMap, pageContext: t2.pageContext, configureObj: t2.configureObj }) : t2.options.lineEditOptions.esc.call(e2, i2, e2.column, o2, t2.orgGridData[i2], t2.additionalParamMap) : e2.restoreRow(i2, e2.code);
|
|
263
265
|
}
|
|
264
266
|
}
|
|
265
267
|
}, isEditRow(e2) {
|
|
@@ -274,10 +276,10 @@ const be = { components: { IndexColumn: o, SelectionColumn: a, NormalColumn: s,
|
|
|
274
276
|
if (t2) {
|
|
275
277
|
const i2 = t2.parentNode;
|
|
276
278
|
if (i2) {
|
|
277
|
-
let o2 = null,
|
|
278
|
-
const
|
|
279
|
-
if (
|
|
280
|
-
o2 =
|
|
279
|
+
let o2 = null, s2 = null;
|
|
280
|
+
const a2 = t2.attributes.class;
|
|
281
|
+
if (a2 && (s2 = a2.nodeValue), s2 && s2.indexOf(" ") > 0) {
|
|
282
|
+
o2 = s2.split(" ")[0];
|
|
281
283
|
}
|
|
282
284
|
const r2 = i2.previousSibling;
|
|
283
285
|
if (r2) {
|
|
@@ -291,10 +293,10 @@ const be = { components: { IndexColumn: o, SelectionColumn: a, NormalColumn: s,
|
|
|
291
293
|
if (t2) {
|
|
292
294
|
const i2 = t2.parentNode;
|
|
293
295
|
if (i2) {
|
|
294
|
-
let o2 = null,
|
|
295
|
-
const
|
|
296
|
-
if (
|
|
297
|
-
o2 =
|
|
296
|
+
let o2 = null, s2 = null;
|
|
297
|
+
const a2 = t2.attributes.class;
|
|
298
|
+
if (a2 && (s2 = a2.nodeValue), s2 && s2.indexOf(" ") > 0) {
|
|
299
|
+
o2 = s2.split(" ")[0];
|
|
298
300
|
}
|
|
299
301
|
const r2 = i2.nextSibling;
|
|
300
302
|
if (r2) {
|
|
@@ -363,7 +365,7 @@ const be = { components: { IndexColumn: o, SelectionColumn: a, NormalColumn: s,
|
|
|
363
365
|
t2.defaultValueColumns.find((t3) => t3.prop === e2.prop) || t2.defaultValueColumns.push(e2);
|
|
364
366
|
}
|
|
365
367
|
}, judgeIsFormSubTable() {
|
|
366
|
-
const e2 =
|
|
368
|
+
const e2 = G.get(this.code);
|
|
367
369
|
e2 && e2.options && void 0 !== e2.options.isFormSubTable && true === e2.options.isFormSubTable && (this.isFormSubTable = true, this.subTableStyle = { width: "100%" });
|
|
368
370
|
}, initColumnOperation(e2, t2) {
|
|
369
371
|
if (t2 && t2[e2.prop]) {
|
|
@@ -374,27 +376,27 @@ const be = { components: { IndexColumn: o, SelectionColumn: a, NormalColumn: s,
|
|
|
374
376
|
if (void 0 !== this.options.operations && null !== this.options.operations)
|
|
375
377
|
return this.options.operations;
|
|
376
378
|
}, initSetting() {
|
|
377
|
-
const e2 =
|
|
379
|
+
const e2 = G.get(this.code);
|
|
378
380
|
let t2;
|
|
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),
|
|
381
|
+
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), D("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();
|
|
380
382
|
}, changeRowStyle(e2) {
|
|
381
383
|
if (e2.row.$editing)
|
|
382
384
|
return { background: "var(--el-table-row-hover-bg-color)" };
|
|
383
|
-
const t2 =
|
|
384
|
-
return this.lineEdit && this.lineEdit.editable && e2.rowIndex === t2.$rowIndex &&
|
|
385
|
+
const t2 = G.get(this.code);
|
|
386
|
+
return this.lineEdit && this.lineEdit.editable && e2.rowIndex === t2.$rowIndex && k(e2.row, t2.orgGridData[t2.$rowIndex]), f("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;
|
|
385
387
|
}, changeCellStyle(e2) {
|
|
386
|
-
const t2 =
|
|
387
|
-
let i2 = null, o2 = null,
|
|
388
|
+
const t2 = G.get(this.code);
|
|
389
|
+
let i2 = null, o2 = null, s2 = null;
|
|
388
390
|
if (e2 && e2.column && e2.column.property && t2 && t2.columnOptionMap && t2.columnOptionMap[e2.column.property]) {
|
|
389
391
|
o2 = t2.columnOptionMap[e2.column.property], o2.events && o2.events.cellStyle && (i2 = o2.events.cellStyle);
|
|
390
|
-
|
|
391
|
-
|
|
392
|
+
let a2 = null;
|
|
393
|
+
a2 = o2.dynamic ? y(o2) : T(o2), a2 && a2.cellStyle && (s2 = a2.cellStyle);
|
|
392
394
|
}
|
|
393
|
-
if (
|
|
394
|
-
return e2.additionalParamMap = t2.additionalParamMap, e2.pageContext = this.pageContext, e2.configureObj = this.configureObj, e2.cellStyle =
|
|
395
|
+
if (f("cellStyleRender", this.code))
|
|
396
|
+
return e2.additionalParamMap = t2.additionalParamMap, e2.pageContext = this.pageContext, e2.configureObj = this.configureObj, e2.cellStyle = s2, e2.columnOptions = o2, e2.row && (e2.row = this.handRowKeyToUpperCase(e2.row)), t2.options.cellStyleRender.call(this, e2);
|
|
395
397
|
if (null !== i2 && null !== o2 && t2.options && t2.options.eventCallBack && t2.options.eventCallBack[i2] && "function" == typeof t2.options.eventCallBack[i2]) {
|
|
396
|
-
const
|
|
397
|
-
return
|
|
398
|
+
const a2 = { value: e2.row[e2.column.property], row: e2.row, column: o2, prop: e2.column.property, additionalParamMap: t2.additionalParamMap, rowIndex: e2.rowIndex, cellStyle: s2 };
|
|
399
|
+
return a2.row && (a2.row = this.handRowKeyToUpperCase(a2.row)), t2.options.eventCallBack[i2].call(this, a2);
|
|
398
400
|
}
|
|
399
401
|
}, changeHeaderStyle(e2) {
|
|
400
402
|
if (void 0 !== this.options.isAdministerListView && null != this.options.isAdministerListView && true === this.options.isAdministerListView) {
|
|
@@ -408,71 +410,71 @@ const be = { components: { IndexColumn: o, SelectionColumn: a, NormalColumn: s,
|
|
|
408
410
|
} else if (t2.property && this.backgroundColorMap[t2.property])
|
|
409
411
|
return { background: this.backgroundColorMap[t2.property] };
|
|
410
412
|
} else {
|
|
411
|
-
const t2 =
|
|
412
|
-
let i2 = null, o2 = null,
|
|
413
|
+
const t2 = G.get(this.code);
|
|
414
|
+
let i2 = null, o2 = null, s2 = null;
|
|
413
415
|
if (e2 && e2.column && e2.column.property && t2 && t2.columnOptionMap && t2.columnOptionMap[e2.column.property]) {
|
|
414
416
|
o2 = t2.columnOptionMap[e2.column.property], o2.events && o2.events.headerCellStyle && (i2 = o2.events.headerCellStyle);
|
|
415
|
-
|
|
416
|
-
|
|
417
|
+
let a2 = null;
|
|
418
|
+
a2 = o2.dynamic ? y(o2) : T(o2), a2 && a2.titleStyle && (s2 = a2.titleStyle);
|
|
417
419
|
}
|
|
418
|
-
if (
|
|
419
|
-
return e2.additionalParamMap = t2.additionalParamMap, e2.pageContext = this.pageContext, e2.configureObj = this.configureObj, e2.titleStyle =
|
|
420
|
+
if (f("titleStyleRender", this.code))
|
|
421
|
+
return e2.additionalParamMap = t2.additionalParamMap, e2.pageContext = this.pageContext, e2.configureObj = this.configureObj, e2.titleStyle = s2, t2.options.titleStyleRender.call(this, e2);
|
|
420
422
|
if (t2.options.renderHeader && t2.options.renderHeader.props) {
|
|
421
423
|
const i3 = e2.column, o3 = t2.options.renderHeader.props.split(",");
|
|
422
424
|
for (let e3 = 0; e3 < o3.length; e3++) {
|
|
423
|
-
const
|
|
424
|
-
if (i3.property ===
|
|
425
|
+
const s3 = o3[e3];
|
|
426
|
+
if (i3.property === s3.trim()) {
|
|
425
427
|
let e4 = "#c3f4e2";
|
|
426
428
|
return void 0 !== t2.options.renderHeader.color && (e4 = t2.options.renderHeader.color), { background: e4 };
|
|
427
429
|
}
|
|
428
430
|
}
|
|
429
431
|
} else if (null !== i2 && null !== o2 && t2.options && t2.options.eventCallBack && t2.options.eventCallBack[i2] && "function" == typeof t2.options.eventCallBack[i2])
|
|
430
|
-
return e2.additionalParamMap = t2.additionalParamMap, e2.titleStyle =
|
|
432
|
+
return e2.additionalParamMap = t2.additionalParamMap, e2.titleStyle = s2, t2.options.eventCallBack[i2].call(this, e2);
|
|
431
433
|
}
|
|
432
434
|
}, fetchData(e2, t2, i2, o2) {
|
|
433
|
-
const
|
|
434
|
-
if (
|
|
435
|
+
const s2 = G.get(this.code);
|
|
436
|
+
if (s2.options && s2.options.isPageInfo)
|
|
435
437
|
;
|
|
436
|
-
else if (
|
|
437
|
-
if (
|
|
438
|
-
if (
|
|
439
|
-
const e3 =
|
|
440
|
-
this.gridData = e3 ||
|
|
438
|
+
else if (s2.options && s2.options.isAdministerListView) {
|
|
439
|
+
if (s2.options.SuperGrid && s2.options.SuperGrid.simulationDate) {
|
|
440
|
+
if (f("gridDataLoaded", this.code)) {
|
|
441
|
+
const e3 = s2.options.gridDataLoaded.call(this, { gridData: s2.options.SuperGrid.simulationDate, columns: s2.columns, additionalParamMap: s2.additionalParamMap, pageContext: this.pageContext, configureObj: this.configureObj });
|
|
442
|
+
this.gridData = e3 || s2.options.SuperGrid.simulationDate;
|
|
441
443
|
} else
|
|
442
|
-
this.gridData =
|
|
443
|
-
|
|
444
|
+
this.gridData = s2.options.SuperGrid.simulationDate;
|
|
445
|
+
s2.gridData = this.gridData;
|
|
444
446
|
}
|
|
445
|
-
} else if (
|
|
446
|
-
this.packageSubTableData(
|
|
447
|
+
} else if (s2.options && s2.options.isFormSubTable && s2.options.subTableData && s2.options.subTableData.length > 0)
|
|
448
|
+
this.packageSubTableData(s2, s2.options.subTableData, e2 == null ? void 0 : e2.sorts);
|
|
447
449
|
else {
|
|
448
|
-
if (this.canRefreshTableData(
|
|
450
|
+
if (this.canRefreshTableData(s2))
|
|
449
451
|
return this.fetchListData(e2, t2, i2, o2);
|
|
450
|
-
if (this.isSubTableEmpty(
|
|
452
|
+
if (this.isSubTableEmpty(s2)) {
|
|
451
453
|
const e3 = [];
|
|
452
|
-
this.packageSubTableData(
|
|
454
|
+
this.packageSubTableData(s2, e3);
|
|
453
455
|
}
|
|
454
|
-
this.hasLoadData = true,
|
|
456
|
+
this.hasLoadData = true, s2.loaded = true;
|
|
455
457
|
}
|
|
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,
|
|
458
|
+
}, 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, s2) {
|
|
457
459
|
this.hasLoadData = false, e2.loaded = true;
|
|
458
|
-
let
|
|
459
|
-
if (
|
|
460
|
+
let a2 = [];
|
|
461
|
+
if (f("gridDataLoaded", this.code)) {
|
|
460
462
|
const i3 = e2.options.gridDataLoaded.call(this, { gridData: t2, columns: e2.columns, additionalParamMap: e2.additionalParamMap, pageContext: this.pageContext, configureObj: this.configureObj });
|
|
461
|
-
i3 ? (
|
|
463
|
+
i3 ? (a2 = i3, this.hasLoadData = true) : (a2 = t2, this.hasLoadData = true);
|
|
462
464
|
} else
|
|
463
|
-
|
|
464
|
-
if (
|
|
465
|
+
a2 = t2, this.hasLoadData = true;
|
|
466
|
+
if (a2) {
|
|
465
467
|
const t3 = i2 && i2.length > 0 ? i2[0] : null, o3 = t3 && t3.prop ? t3.prop : null, r2 = t3 && t3.order ? t3.order : null;
|
|
466
468
|
let n2 = [];
|
|
467
|
-
|
|
469
|
+
a2.forEach((t4) => {
|
|
468
470
|
this.setColumnsDefaultValue(e2.allColumns, t4);
|
|
469
|
-
}),
|
|
471
|
+
}), s2 ? n2.push(s2) : this.getSortColumn(this.visibleColumns, { property: o3 }, n2), this.sortSubTableData(a2, o3, r2, n2);
|
|
470
472
|
}
|
|
471
|
-
this.pagination && true === this.isSubTableShowPage ? (this.pagination.total =
|
|
473
|
+
this.pagination && true === this.isSubTableShowPage ? (this.pagination.total = a2.length, o2 ? (this.subTableDataSearch = a2, this.gridData = this.getSubTableGridData(this.subTableDataSearch)) : (this.subTableDataSearch = [], this.subTableData = a2, this.gridData = this.getSubTableGridData(this.subTableData))) : (this.subTableAddGuId(a2), o2 ? this.subTableDataSearch = a2 : (this.subTableDataSearch = [], this.subTableData = a2), this.gridData = a2), e2.subTableData = this.subTableData, e2.subTableDataSearch = this.subTableDataSearch, e2.gridData = this.gridData, e2.orgGridData = [].concat(JSON.parse(JSON.stringify(this.gridData)));
|
|
472
474
|
}, sortSubTableData(e2, t2, i2, o2) {
|
|
473
475
|
if (t2 && i2 && o2.length > 0) {
|
|
474
|
-
let
|
|
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" ===
|
|
476
|
+
let s2 = o2[0];
|
|
477
|
+
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" === s2.dataType || "LONG" === s2.dataType || "FLOAT" === s2.dataType || "DOUBLE" === s2.dataType || "DATE" === s2.dataType || "TIME" === s2.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
478
|
}
|
|
477
479
|
}, canRefreshTableData(e2) {
|
|
478
480
|
let t2 = false;
|
|
@@ -486,9 +488,9 @@ const be = { components: { IndexColumn: o, SelectionColumn: a, NormalColumn: s,
|
|
|
486
488
|
this.pagination.total = e2.length;
|
|
487
489
|
let t4 = this.pageSize;
|
|
488
490
|
null === t4 && this.pagination && (t4 = this.pagination.pageSize), null == t4 && (t4 = 20);
|
|
489
|
-
const
|
|
490
|
-
let
|
|
491
|
-
e2.length >
|
|
491
|
+
const s2 = (i2 - 1) * t4;
|
|
492
|
+
let a2 = s2 + t4;
|
|
493
|
+
e2.length > s2 && (a2 > e2.length && (a2 = e2.length), o2 = e2.slice(s2, a2));
|
|
492
494
|
}
|
|
493
495
|
let t3 = [];
|
|
494
496
|
this.isShowCard && i2 > 1 && (this.gridData.length !== e2.length ? (t3 = this.gridData.concat(o2), o2 = t3) : o2 = e2);
|
|
@@ -497,7 +499,7 @@ const be = { components: { IndexColumn: o, SelectionColumn: a, NormalColumn: s,
|
|
|
497
499
|
}, subTableAddGuId(e2) {
|
|
498
500
|
const t2 = e2.filter((e3) => !e3.$rowDataGuId);
|
|
499
501
|
t2 && t2.length > 0 && t2.forEach((e3) => {
|
|
500
|
-
e3.$rowDataGuId || (e3.$rowDataGuId =
|
|
502
|
+
e3.$rowDataGuId || (e3.$rowDataGuId = V());
|
|
501
503
|
});
|
|
502
504
|
}, fetchListData(e2, t2, i2, o2) {
|
|
503
505
|
if (this.isLoading = true, this.hasLoadData = false, void 0 === t2 || false === t2) {
|
|
@@ -511,65 +513,65 @@ const be = { components: { IndexColumn: o, SelectionColumn: a, NormalColumn: s,
|
|
|
511
513
|
}
|
|
512
514
|
}
|
|
513
515
|
window.sessionStorage.removeItem("refreshList-" + this.code), void 0 === e2 && (e2 = this.getSearchParam());
|
|
514
|
-
const
|
|
515
|
-
let
|
|
516
|
-
this.resetAdditionalParamMap(
|
|
516
|
+
const s2 = G.get(this.code);
|
|
517
|
+
let a2 = e2;
|
|
518
|
+
this.resetAdditionalParamMap(a2, s2), (s2.options.extraParam || void 0 !== i2) && (a2 = P(e2, s2)), s2.searchParam = e2, s2.url = this.url;
|
|
517
519
|
let r2 = this.url;
|
|
518
|
-
null != i2 && (
|
|
520
|
+
null != i2 && (a2 = Object.assign({}, a2), a2.searchParam.pagination = null, a2.parentIds = i2, a2.parentProp = this.parentProp, a2.systemCode = this.basicInfo.systemCode, r2 = this.options.subRowUrl), s2.isCreateRow = false, s2.isEditRow = false, s2.$lastSaveRowIndex = null, s2.$rowIndex = null, s2.canSaveRow = true, s2.withDataPermission = s2.options.isWithDataPermission, s2.isWorkflowEntity = s2.options.isWorkflowEntity, window.sessionStorage.setItem("searchParam-" + this.code, JSON.stringify(a2)), this.parentProp && e2.searchForm && e2.searchForm.length > 0 && (a2.listViewTreeSetting = null);
|
|
519
521
|
let n2 = true;
|
|
520
|
-
return
|
|
521
|
-
|
|
522
|
-
void 0 === n3 || n3 ? r2 ? this.doRequest(r2,
|
|
522
|
+
return f("beforeRequest", this.code) && (n2 = s2.options.beforeRequest.call(this, { columns: this.columns, gridParams: s2, additionalParamMap: s2.additionalParamMap, requestParam: a2, pageContext: this.pageContext, configureObj: this.configureObj })), new Promise((e3, t3) => {
|
|
523
|
+
q(n2) ? n2.then((n3) => {
|
|
524
|
+
void 0 === n3 || n3 ? r2 ? this.doRequest(r2, a2, i2, s2, o2).then(() => {
|
|
523
525
|
e3();
|
|
524
526
|
}).catch((e4) => {
|
|
525
527
|
t3(e4);
|
|
526
|
-
}) : (
|
|
528
|
+
}) : (s2.loaded = true, e3()) : (console.error("beforeRequest result is false!!"), s2.loaded = true, e3());
|
|
527
529
|
}).catch((e4) => {
|
|
528
|
-
|
|
529
|
-
}) : void 0 === n2 || true === n2 ? r2 ? this.doRequest(r2,
|
|
530
|
-
|
|
530
|
+
s2.loaded = true, t3(e4);
|
|
531
|
+
}) : void 0 === n2 || true === n2 ? r2 ? this.doRequest(r2, a2, i2, s2, o2).then(() => {
|
|
532
|
+
s2.loaded = true, e3();
|
|
531
533
|
}).catch((e4) => {
|
|
532
|
-
|
|
533
|
-
}) : (
|
|
534
|
+
s2.loaded = true, t3(e4);
|
|
535
|
+
}) : (s2.loaded = true, e3()) : (console.error("beforeRequest result is false!!"), s2.loaded = true, e3());
|
|
534
536
|
});
|
|
535
537
|
}, getChildren(e2) {
|
|
536
538
|
return (e2 == null ? void 0 : e2.map((e3) => {
|
|
537
539
|
var _a;
|
|
538
|
-
return { $rowDataGuId: e3.$rowDataGuId ? e3.$rowDataGuId :
|
|
540
|
+
return { $rowDataGuId: e3.$rowDataGuId ? e3.$rowDataGuId : V(), ...e3, ...((_a = e3 == null ? void 0 : e3.children) == null ? void 0 : _a.length) ? { children: this.getChildren(e3.children) } : {} };
|
|
539
541
|
})) ?? [];
|
|
540
|
-
}, doRequest(e2, t2, i2, o2,
|
|
541
|
-
return new Promise((
|
|
542
|
+
}, doRequest(e2, t2, i2, o2, s2) {
|
|
543
|
+
return new Promise((a2, r2) => {
|
|
542
544
|
this.$http.post(e2, t2).then((e3) => {
|
|
543
545
|
if (null == i2) {
|
|
544
546
|
const t3 = [...this.isShowCard && this.currentPage > 1 ? this.gridData : [], ...this.getChildren((e3 == null ? void 0 : e3.data) ?? [])];
|
|
545
547
|
let i3 = [];
|
|
546
|
-
if (
|
|
548
|
+
if (f("gridDataLoaded", this.code)) {
|
|
547
549
|
const e4 = { gridData: t3, columns: o2.columns, additionalParamMap: o2.additionalParamMap, pageContext: this.pageContext, configureObj: this.configureObj };
|
|
548
550
|
o2.searchParam && (e4.searchForm = o2.searchParam.searchForm, e4.additionalParamMap = o2.searchParam.additionalParamMap);
|
|
549
|
-
const
|
|
550
|
-
i3 =
|
|
551
|
+
const s3 = o2.options.gridDataLoaded.call(this, e4);
|
|
552
|
+
i3 = s3 || t3;
|
|
551
553
|
} else
|
|
552
554
|
i3 = t3;
|
|
553
555
|
i3 || (i3 = []), o2.options.isFormSubTable ? (i3 && i3.forEach((e4) => {
|
|
554
556
|
this.setColumnsDefaultValue(o2.allColumns, e4);
|
|
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:
|
|
557
|
+
}), this.pagination && true === this.isSubTableShowPage ? (this.subTableData = i3, this.gridData = this.getSubTableGridData(this.subTableData), o2.subTableData = this.subTableData) : (this.gridData = i3, this.subTableData = 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: v(this.code) }))), this.hasLoadData = true;
|
|
556
558
|
} else
|
|
557
|
-
o2.loaded = true,
|
|
559
|
+
o2.loaded = true, f("gridDataLoaded", this.code) && o2.options.gridDataLoaded.call(this, { gridData: e3, additionalParamMap: o2.additionalParamMap, pageContext: this.pageContext, configureObj: this.configureObj }), f("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 != s2 ? (this.removeGridStoreSelection(i2), s2(e3[i2[0]])) : (i2.forEach((t3) => {
|
|
558
560
|
this.$refs.superGrid && (this.$refs.superGrid.store.states.lazyTreeNodeMap[t3] = e3[t3], this.$refs.superGrid.store.states.treeData[t3].children = e3[t3]);
|
|
559
561
|
}), this.removeGridStoreSelection(i2)), this.hasLoadData = true;
|
|
560
|
-
|
|
562
|
+
a2();
|
|
561
563
|
}).catch((e3) => {
|
|
562
|
-
|
|
564
|
+
f("loadError", this.code) && o2.options.loadError.call(this, this.code, e3), r2(e3);
|
|
563
565
|
});
|
|
564
566
|
});
|
|
565
567
|
}, getInitSearchForm(e2) {
|
|
566
|
-
const t2 =
|
|
568
|
+
const t2 = G.get(this.code);
|
|
567
569
|
e2 && e2.length > 0 ? (this.searchFormContent = {}, e2.forEach((e3) => {
|
|
568
570
|
let t3 = e3.propName;
|
|
569
571
|
const i2 = e3.columnProp, o2 = e3.dataType;
|
|
570
572
|
o2 && "BOOLEAN" === o2 && (t3 = i2), this.initSearchProps.push(t3);
|
|
571
|
-
const
|
|
572
|
-
t3 && t3.indexOf(".") > 0 ?
|
|
573
|
+
const s2 = e3.propValue;
|
|
574
|
+
t3 && t3.indexOf(".") > 0 ? x(this.searchFormContent, t3, s2) : this.searchFormContent[t3] = s2;
|
|
573
575
|
}), t2.searchForm = e2, this.showSearchForm()) : t2.searchForm = null;
|
|
574
576
|
}, doSearch(e2) {
|
|
575
577
|
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);
|
|
@@ -578,33 +580,33 @@ const be = { components: { IndexColumn: o, SelectionColumn: a, NormalColumn: s,
|
|
|
578
580
|
}, searSubTable(e2, t2) {
|
|
579
581
|
let i2 = [];
|
|
580
582
|
return e2 && e2.forEach((e3) => {
|
|
581
|
-
|
|
583
|
+
F(t2, e3) && i2.push(e3);
|
|
582
584
|
}), i2;
|
|
583
585
|
}, search(e2, t2, o2) {
|
|
584
586
|
i(this, "refresh");
|
|
585
|
-
const
|
|
586
|
-
return new Promise((
|
|
587
|
-
const n2 =
|
|
587
|
+
const s2 = this;
|
|
588
|
+
return new Promise((a2, r2) => {
|
|
589
|
+
const n2 = G.get(s2.code);
|
|
588
590
|
if (n2.searchForm = null != e2 ? e2 : null, n2.options && n2.options.isAdministerListView) {
|
|
589
591
|
if (n2.options.SuperGrid && n2.options.SuperGrid.simulationDate) {
|
|
590
592
|
let e3;
|
|
591
|
-
|
|
593
|
+
f("gridDataLoaded", s2.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, a2(e3);
|
|
592
594
|
}
|
|
593
|
-
} else if (n2.options && n2.options.isFormSubTable && n2.
|
|
594
|
-
let o3 = n2.
|
|
595
|
-
this.searchSubTable(o3, e2, t2, n2),
|
|
595
|
+
} else if (n2.options && n2.options.isFormSubTable && n2.subTableData && n2.subTableData.length > 0) {
|
|
596
|
+
let o3 = n2.subTableData;
|
|
597
|
+
this.searchSubTable(o3, e2, t2, n2), s2.$refs && s2.$refs.sf && (s2.$refs.sf.loading = false, s2.$refs.sf.searchComplete()), s2.$refs && s2.$refs.sfDialog && (s2.$refs.sfDialog.loading = false, s2.$refs.sfDialog.searchComplete()), s2.showSubTableSearchDialog = false, i(s2, "cancel-search"), a2(o3);
|
|
596
598
|
} else
|
|
597
|
-
|
|
598
|
-
void 0 !== n2 && void 0 !== n2.options && void 0 !== n2.options.isHiddenSearchForm && true === n2.options.isHiddenSearchForm && (
|
|
599
|
+
s2.fetchData(s2.getSearchParam(), t2, o2).then((e3) => {
|
|
600
|
+
void 0 !== n2 && void 0 !== n2.options && void 0 !== n2.options.isHiddenSearchForm && true === n2.options.isHiddenSearchForm && (s2.showSearch = false, i(s2, "cancel-search")), s2.$refs && s2.$refs.sf && (s2.$refs.sf.loading = false, s2.$refs.sf.searchComplete()), this.resizeTableHeight(), a2(e3);
|
|
599
601
|
}).catch((e3) => {
|
|
600
|
-
|
|
602
|
+
s2.$refs.sf && (s2.$refs.sf.loading = false, s2.$refs.sf.searchComplete()), r2(e3);
|
|
601
603
|
});
|
|
602
604
|
});
|
|
603
605
|
}, searchSubTable(e2, t2, i2, o2) {
|
|
604
|
-
let
|
|
605
|
-
i2 && (
|
|
606
|
+
let s2 = e2;
|
|
607
|
+
i2 && (s2 = this.searSubTable(e2, t2)), this.packageSubTableData(o2, s2, this.sortInfo, i2, this.orderColumn), i2 ? (o2.isSubSearch = true, this.isSubSearch = true, this.subTableDataSearch = s2) : (o2.isSubSearch = false, this.isSubSearch = false, this.subTableDataSearch = []);
|
|
606
608
|
}, getPaginationInfo() {
|
|
607
|
-
const e2 =
|
|
609
|
+
const e2 = G.get(this.code);
|
|
608
610
|
if (this.pagination) {
|
|
609
611
|
if (this.isDelete && this.currentPage > 1) {
|
|
610
612
|
const e3 = Math.ceil((this.pagination.total - this.gridData.length) / this.pagination.pageSize);
|
|
@@ -615,7 +617,7 @@ const be = { components: { IndexColumn: o, SelectionColumn: a, NormalColumn: s,
|
|
|
615
617
|
}
|
|
616
618
|
return { currentPage: 1, pageSize: 20, showTotal: true };
|
|
617
619
|
}, getSearchParam() {
|
|
618
|
-
const e2 = { code: this.code, tableName: this.tableName }, t2 =
|
|
620
|
+
const e2 = { code: this.code, tableName: this.tableName }, t2 = G.get(this.code), i2 = this.getPaginationInfo();
|
|
619
621
|
if (i2 && null !== i2 && (e2.pagination = i2), null !== this.sortInfo && (e2.sorts = this.sortInfo), this.mergeFields && this.mergeFields.length > 0) {
|
|
620
622
|
e2.sorts || (e2.sorts = []);
|
|
621
623
|
const t3 = [];
|
|
@@ -636,9 +638,9 @@ const be = { components: { IndexColumn: o, SelectionColumn: a, NormalColumn: s,
|
|
|
636
638
|
}, getComponentType(e2) {
|
|
637
639
|
const t2 = e2.prop;
|
|
638
640
|
let i2 = "NormalColumn";
|
|
639
|
-
return "$index" === t2 ? i2 = "IndexColumn" : "$selection" === t2 ? (
|
|
641
|
+
return "$index" === t2 ? i2 = "IndexColumn" : "$selection" === t2 ? (G.get(this.code).isMulitiSelect = true, i2 = "SelectionColumn") : void 0 === t2 && e2.children && e2.children.length > 0 && (i2 = "GroupColumn"), i2;
|
|
640
642
|
}, focusOnFirstEditableInput() {
|
|
641
|
-
this.basicInfo.editable && (this.lineEdit.editingCell.row = 0, this.lineEdit.editingCell.prop =
|
|
643
|
+
this.basicInfo.editable && (this.lineEdit.editingCell.row = 0, this.lineEdit.editingCell.prop = v(this.code));
|
|
642
644
|
}, handleSizeChange(e2) {
|
|
643
645
|
this.options && this.options.isPageShow || (this.currentPage = 1, this.pageSize = e2, this.pagination.pageSize = e2, this.changePage());
|
|
644
646
|
}, handleCurrentChange(e2) {
|
|
@@ -648,34 +650,34 @@ const be = { components: { IndexColumn: o, SelectionColumn: a, NormalColumn: s,
|
|
|
648
650
|
if ((_a = this.$refs.superGrid) == null ? void 0 : _a.clearFilter(), this.isSubTableShowPage) {
|
|
649
651
|
let t2;
|
|
650
652
|
t2 = this.isSubSearch ? this.getSubTableGridData(this.subTableDataSearch, e2) : this.getSubTableGridData(this.subTableData, e2), this.gridData = t2;
|
|
651
|
-
const i2 =
|
|
653
|
+
const i2 = G.get(this.code);
|
|
652
654
|
i2.gridData = this.gridData, i2.orgGridData = [].concat(JSON.parse(JSON.stringify(this.gridData)));
|
|
653
655
|
} else
|
|
654
656
|
this.fetchData(this.getSearchParam());
|
|
655
657
|
}, getSortColumn(e2, t2, i2) {
|
|
656
658
|
for (let o2 = 0; o2 < e2.length; o2++) {
|
|
657
|
-
const
|
|
658
|
-
if (
|
|
659
|
-
this.getSortColumn(
|
|
660
|
-
else if (t2.property ===
|
|
661
|
-
i2.push(
|
|
659
|
+
const s2 = e2[o2];
|
|
660
|
+
if (s2.children && s2.children.length > 0)
|
|
661
|
+
this.getSortColumn(s2.children, t2, i2);
|
|
662
|
+
else if (t2.property === s2.prop) {
|
|
663
|
+
i2.push(s2);
|
|
662
664
|
break;
|
|
663
665
|
}
|
|
664
666
|
}
|
|
665
667
|
}, handleSortChange({ column: e2, prop: t2, order: o2 }) {
|
|
666
668
|
var _a;
|
|
667
669
|
if (!this.options || !this.options.isPageShow) {
|
|
668
|
-
let
|
|
669
|
-
if (this.getSortColumn(this.visibleColumns, e2,
|
|
670
|
-
if (null !== t2 &&
|
|
671
|
-
let e3 =
|
|
670
|
+
let s2 = null, a2 = [];
|
|
671
|
+
if (this.getSortColumn(this.visibleColumns, e2, a2), a2 && a2.length > 0 && (s2 = a2[0]), O(this.code)) {
|
|
672
|
+
if (null !== t2 && s2 && null !== s2) {
|
|
673
|
+
let e3 = s2.orgProp;
|
|
672
674
|
const t3 = "__";
|
|
673
675
|
e3 && e3.indexOf(t3) > 0 && (e3 = e3.replace(t3, ".")), this.sortInfo = [{ prop: e3, order: o2 }];
|
|
674
676
|
} else
|
|
675
677
|
this.sortInfo = null;
|
|
676
|
-
this.fetchData(this.getSearchParam()), this.focusOnFirstEditableInput(), i(this, "sort-change", { columnSetting:
|
|
678
|
+
this.fetchData(this.getSearchParam()), this.focusOnFirstEditableInput(), i(this, "sort-change", { columnSetting: s2, prop: t2, order: o2, column: e2 });
|
|
677
679
|
} else {
|
|
678
|
-
|
|
680
|
+
G.get(this.code).$rowIndex, (_a = this.$refs.superGrid) == null ? void 0 : _a.clearSort();
|
|
679
681
|
}
|
|
680
682
|
}
|
|
681
683
|
}, isMergeable(e2) {
|
|
@@ -703,28 +705,28 @@ const be = { components: { IndexColumn: o, SelectionColumn: a, NormalColumn: s,
|
|
|
703
705
|
}, getCustomSummaries(e2, t2) {
|
|
704
706
|
const { columns: i2 } = e2, o2 = [];
|
|
705
707
|
return i2.forEach((e3, i3) => {
|
|
706
|
-
const
|
|
707
|
-
if (null !=
|
|
708
|
+
const s2 = e3.property, a2 = t2[s2];
|
|
709
|
+
if (null != a2) {
|
|
708
710
|
let e4;
|
|
709
|
-
|
|
710
|
-
let t3 =
|
|
711
|
-
e4 && (t3 =
|
|
711
|
+
s2 && this.columnsMap && this.columnsMap[s2] && (e4 = this.columnsMap[s2]);
|
|
712
|
+
let t3 = a2;
|
|
713
|
+
e4 && (t3 = K(e4, a2)), o2[i3] = t3;
|
|
712
714
|
} else
|
|
713
715
|
o2[i3] = "";
|
|
714
716
|
}), o2;
|
|
715
717
|
}, getDefaultSummaries(e2) {
|
|
716
718
|
const t2 = [], i2 = this.packageSummaryColumnProps();
|
|
717
719
|
if (i2.length > 0) {
|
|
718
|
-
const { columns: o2, data:
|
|
719
|
-
let
|
|
720
|
+
const { columns: o2, data: s2 } = e2;
|
|
721
|
+
let a2 = null;
|
|
720
722
|
o2.forEach((e3, o3) => {
|
|
721
723
|
let r2 = 0;
|
|
722
724
|
const n2 = e3.property;
|
|
723
|
-
if (n2 && "$selection" !== n2 && "$index" !== n2 && null ==
|
|
724
|
-
return
|
|
725
|
+
if (n2 && "$selection" !== n2 && "$index" !== n2 && null == a2)
|
|
726
|
+
return a2 = o3, void (t2[o3] = "合计");
|
|
725
727
|
if (i2.indexOf(n2) >= 0) {
|
|
726
728
|
let e4;
|
|
727
|
-
|
|
729
|
+
s2 && s2.forEach((e5) => {
|
|
728
730
|
let t3, i4 = u(e5, n2);
|
|
729
731
|
if (null != i4)
|
|
730
732
|
t3 = Number(i4);
|
|
@@ -735,7 +737,7 @@ const be = { components: { IndexColumn: o, SelectionColumn: a, NormalColumn: s,
|
|
|
735
737
|
null == t3 || isNaN(t3) || (r2 += t3);
|
|
736
738
|
}), n2 && this.columnsMap && this.columnsMap[n2] && (e4 = this.columnsMap[n2]), this.columnsMap;
|
|
737
739
|
let i3 = r2;
|
|
738
|
-
e4 && (i3 =
|
|
740
|
+
e4 && (i3 = K(e4, r2)), t2[o3] = i3;
|
|
739
741
|
} else
|
|
740
742
|
t2[o3] = "";
|
|
741
743
|
});
|
|
@@ -748,11 +750,11 @@ const be = { components: { IndexColumn: o, SelectionColumn: a, NormalColumn: s,
|
|
|
748
750
|
const e2 = document.querySelector(".el-table__body-wrapper tbody");
|
|
749
751
|
if (null != e2) {
|
|
750
752
|
const t2 = this;
|
|
751
|
-
|
|
753
|
+
R.create(e2, { onEnd({ newIndex: e3, oldIndex: i2 }) {
|
|
752
754
|
const o2 = { oldIndex: i2, newIndex: e3 };
|
|
753
755
|
this.$http.post(this.lineEdit.urlToSaveOrder, o2).then((o3) => {
|
|
754
|
-
const
|
|
755
|
-
t2.gridData.splice(e3, 0,
|
|
756
|
+
const s2 = t2.gridData.splice(i2, 1)[0];
|
|
757
|
+
t2.gridData.splice(e3, 0, s2);
|
|
756
758
|
});
|
|
757
759
|
} });
|
|
758
760
|
}
|
|
@@ -789,15 +791,15 @@ const be = { components: { IndexColumn: o, SelectionColumn: a, NormalColumn: s,
|
|
|
789
791
|
(_c = this.$refs.superGrid) == null ? void 0 : _c.store.states.selection.splice(i2, 1), ((_d = this.$refs.superGrid) == null ? void 0 : _d.store.states.selection.length) > 0 && this.removeGridStoreSelection(e2);
|
|
790
792
|
break;
|
|
791
793
|
}
|
|
792
|
-
}, changeHederWidth(e2, t2, o2,
|
|
793
|
-
let
|
|
794
|
+
}, changeHederWidth(e2, t2, o2, s2) {
|
|
795
|
+
let a2 = e2 - 5;
|
|
794
796
|
this.dragColumnProp = o2.property;
|
|
795
|
-
const r2 =
|
|
796
|
-
if (
|
|
797
|
+
const r2 = G.get(this.code);
|
|
798
|
+
if (f("resizeColumn", this.code)) {
|
|
797
799
|
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 });
|
|
798
|
-
e3 && (
|
|
800
|
+
e3 && (a2 = e3);
|
|
799
801
|
}
|
|
800
|
-
this.newWidth = Math.ceil(
|
|
802
|
+
this.newWidth = Math.ceil(a2), void 0 !== this.options.isAdministerListView && null != this.options.isAdministerListView && true === this.options.isAdministerListView ? i(this, "changeHederWidth", this.newWidth) : this.saveColumnWidth(this.dragColumnProp, this.newWidth).then(() => {
|
|
801
803
|
const e3 = this.getColumnByElementColumn(o2);
|
|
802
804
|
e3 && e3.length > 0 && (e3[0].widthType = "custom", e3[0].width = this.newWidth + "");
|
|
803
805
|
});
|
|
@@ -839,26 +841,26 @@ const be = { components: { IndexColumn: o, SelectionColumn: a, NormalColumn: s,
|
|
|
839
841
|
}, validatorSunTableListData() {
|
|
840
842
|
let e2 = this.gridData;
|
|
841
843
|
if (this.isSubTableShowPage && (e2 = this.subTableData), e2 && e2.length > 0) {
|
|
842
|
-
const t2 =
|
|
844
|
+
const t2 = G.get(this.code), o2 = t2.options.customRules, s2 = this.pagination && this.pagination.pageSize, a2 = H.getValidator(this.code);
|
|
843
845
|
for (let r2 = 0; r2 < e2.length; r2++) {
|
|
844
846
|
const n2 = e2[r2];
|
|
845
|
-
let l2 =
|
|
847
|
+
let l2 = a2;
|
|
846
848
|
if (o2) {
|
|
847
849
|
const e3 = Object.keys(o2);
|
|
848
850
|
if (e3.length > 0) {
|
|
849
851
|
for (const i2 of e3)
|
|
850
852
|
if (o2[i2].beforeValidate) {
|
|
851
|
-
false ===
|
|
853
|
+
false === $(o2[i2], t2, n2) && l2[i2] && (l2 = JSON.parse(JSON.stringify(a2)), l2[i2] = []);
|
|
852
854
|
}
|
|
853
855
|
}
|
|
854
856
|
}
|
|
855
857
|
void 0 !== n2.$editing && true === n2.$editing && (p(n2, "$editing", false), i(g, "un-edit", { row: n2 }));
|
|
856
858
|
let h2 = true;
|
|
857
|
-
|
|
859
|
+
D("isEnableValidate", this.code) && (h2 = t2.options.lineEditOptions.isEnableValidate);
|
|
858
860
|
let d2 = true;
|
|
859
861
|
if (true === h2) {
|
|
860
862
|
let e3, t3;
|
|
861
|
-
this.isSubTableShowPage && void 0 !==
|
|
863
|
+
this.isSubTableShowPage && void 0 !== s2 && s2 > 0 && (e3 = Math.ceil((r2 + 1) / s2), t3 = r2 + 1 - (e3 - 1) * s2), d2 = H.validator(n2, this.code, r2, l2, this.isSubTableShowPage, e3, t3);
|
|
862
864
|
}
|
|
863
865
|
if (null != d2 && ("string" == typeof d2 || false === d2))
|
|
864
866
|
return false;
|
|
@@ -869,18 +871,18 @@ const be = { components: { IndexColumn: o, SelectionColumn: a, NormalColumn: s,
|
|
|
869
871
|
}, getSunTableListData() {
|
|
870
872
|
return this.isSubTableShowPage ? this.subTableData : this.gridData;
|
|
871
873
|
}, rowDblclickEvent(e2, t2, i2) {
|
|
872
|
-
const o2 =
|
|
874
|
+
const o2 = G.get(this.code);
|
|
873
875
|
if (o2.options && o2.options.isFormSubTable && o2.options.isPdfEditor)
|
|
874
876
|
;
|
|
875
877
|
else if (this.isFormSubTable) {
|
|
876
878
|
if (t2.property && "operation" !== t2.property) {
|
|
877
879
|
let t3 = true;
|
|
878
|
-
const i3 =
|
|
879
|
-
if (
|
|
880
|
-
const o3 = i3.isSubTableShowPage,
|
|
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:
|
|
880
|
+
const i3 = G.get(this.code);
|
|
881
|
+
if (w("beforeEdit", this.code)) {
|
|
882
|
+
const o3 = i3.isSubTableShowPage, s2 = i3.pagination && i3.pagination.pageSize;
|
|
883
|
+
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: s2, additionalParamMap: i3.additionalParamMap, pageContext: i3.pageContext, configureObj: i3.configureObj });
|
|
882
884
|
}
|
|
883
|
-
|
|
885
|
+
q(t3) ? t3.then((t4) => {
|
|
884
886
|
void 0 !== t4 && true !== t4 || this.rowDbClickEditRow(i3, e2);
|
|
885
887
|
}) : void 0 !== t3 && true !== t3 || this.rowDbClickEditRow(i3, e2);
|
|
886
888
|
}
|
|
@@ -897,7 +899,7 @@ const be = { components: { IndexColumn: o, SelectionColumn: a, NormalColumn: s,
|
|
|
897
899
|
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) => {
|
|
898
900
|
p(e3, "$editing", false), g.$emit("un-edit", { row: e3 });
|
|
899
901
|
}), e2.isEditRow = false;
|
|
900
|
-
false !==
|
|
902
|
+
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" });
|
|
901
903
|
}, rowClickEvent(e2, t2, i2) {
|
|
902
904
|
this.rowClick(e2, t2, i2);
|
|
903
905
|
}, openPageDialog(e2) {
|
|
@@ -907,9 +909,9 @@ const be = { components: { IndexColumn: o, SelectionColumn: a, NormalColumn: s,
|
|
|
907
909
|
if (this.pageContext) {
|
|
908
910
|
const e3 = this.isMobile;
|
|
909
911
|
if ("popup" === t2 || "refresh" === t2 || e3 && "newTab" === t2) {
|
|
910
|
-
const t3 =
|
|
912
|
+
const t3 = G.get(this.code);
|
|
911
913
|
this.jumpPageSetting = i2;
|
|
912
|
-
const o2 = t3.isSubTableShowPage,
|
|
914
|
+
const o2 = t3.isSubTableShowPage, s2 = t3.pagination && t3.pagination.pageSize, a2 = i2.row, r2 = { position: i2._position, listCode: i2._listCode, rowIndex: i2._rowIndex, row: i2.row, columnProp: i2._columnProp, id: a2 ? a2.ID ? a2.ID : a2.id : null, isMobile: e3, gridData: o2 ? t3.subTableData : t3.gridData, pageGridData: o2 ? t3.gridData : null, pageSize: s2 };
|
|
913
915
|
this.$emit("new-open-grid-dialog", { pageContext: this.pageContext, configureObj: this.configureObj, eventParams: r2, jumpPageSetting: this.jumpPageSetting });
|
|
914
916
|
}
|
|
915
917
|
} else
|
|
@@ -925,8 +927,8 @@ const be = { components: { IndexColumn: o, SelectionColumn: a, NormalColumn: s,
|
|
|
925
927
|
}, refreshGridData() {
|
|
926
928
|
this.refresh(false, true);
|
|
927
929
|
}, refresData(e2) {
|
|
928
|
-
const t2 =
|
|
929
|
-
t2.gridData = e2,
|
|
930
|
+
const t2 = G.get(this.code);
|
|
931
|
+
t2.gridData = e2, G.set(this.code, t2), this.parentFormData && (this.parentFormData[this.code] = e2), this.gridData = e2;
|
|
930
932
|
}, refresPortData(e2, t2, i2) {
|
|
931
933
|
this.gridData[i2] && (this.gridData[i2][e2] = t2, this.$forceUpdate());
|
|
932
934
|
}, refresPortsData(e2, t2) {
|
|
@@ -948,29 +950,29 @@ const be = { components: { IndexColumn: o, SelectionColumn: a, NormalColumn: s,
|
|
|
948
950
|
}, prohibitToEdit(e2) {
|
|
949
951
|
this.fnProhibitToEdit(e2);
|
|
950
952
|
}, getTreeProps(e2, t2, i2, o2) {
|
|
951
|
-
let
|
|
953
|
+
let s2 = { children: "children", hasChildren: "_has_children" };
|
|
952
954
|
if (e2) {
|
|
953
|
-
|
|
955
|
+
s2 = { children: "children" };
|
|
954
956
|
let e3 = "hasChildren";
|
|
955
|
-
i2 && t2 && (e3 = "oracle" === o2 ? "HAS_CHILDREN" : "has_children"),
|
|
957
|
+
i2 && t2 && (e3 = "oracle" === o2 ? "HAS_CHILDREN" : "has_children"), s2.hasChildren = e3;
|
|
956
958
|
}
|
|
957
|
-
return this.checkStrictly && (
|
|
959
|
+
return this.checkStrictly && (s2.checkStrictly = true), s2;
|
|
958
960
|
}, refreshSubTableData(e2) {
|
|
959
|
-
const t2 =
|
|
960
|
-
t2.subTableData = e2,
|
|
961
|
+
const t2 = G.get(this.code);
|
|
962
|
+
t2.subTableData = e2, G.set(this.code, t2), this.subTableData = e2;
|
|
961
963
|
}, refreshList() {
|
|
962
964
|
this.fetchData(this.getSearchParam());
|
|
963
965
|
}, selectRecord(e2, t2) {
|
|
964
966
|
var _a;
|
|
965
967
|
this.selectionTableData = t2;
|
|
966
968
|
let i2 = true;
|
|
967
|
-
const o2 =
|
|
968
|
-
|
|
969
|
+
const o2 = G.get(this.code);
|
|
970
|
+
f("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);
|
|
969
971
|
}, selectAllRecord(e2) {
|
|
970
972
|
var _a;
|
|
971
973
|
let t2 = true;
|
|
972
|
-
const i2 =
|
|
973
|
-
|
|
974
|
+
const i2 = G.get(this.code);
|
|
975
|
+
f("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);
|
|
974
976
|
}, cardSelectionChangeEvent(e2) {
|
|
975
977
|
var _a, _b;
|
|
976
978
|
try {
|
|
@@ -985,8 +987,8 @@ const be = { components: { IndexColumn: o, SelectionColumn: a, NormalColumn: s,
|
|
|
985
987
|
this.selectionChangeEvent(e2);
|
|
986
988
|
}, selectionChangeEvent(e2) {
|
|
987
989
|
this.selectionTableData = e2;
|
|
988
|
-
const t2 =
|
|
989
|
-
|
|
990
|
+
const t2 = G.get(this.code);
|
|
991
|
+
f("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);
|
|
990
992
|
}, showMobileSearch() {
|
|
991
993
|
this.isShowMobileSearch, this.isMobile, this.isShowMobileSearch = true, this.$refs.sf && this.$refs.sf.showMobileSearch();
|
|
992
994
|
}, pickFileDone(e2) {
|
|
@@ -1000,7 +1002,7 @@ const be = { components: { IndexColumn: o, SelectionColumn: a, NormalColumn: s,
|
|
|
1000
1002
|
}, closeRowForm() {
|
|
1001
1003
|
this.showRowForm = false;
|
|
1002
1004
|
}, filterData() {
|
|
1003
|
-
const e2 =
|
|
1005
|
+
const e2 = G.get(this.code), t2 = { pageContext: this.pageContext, configureObj: this.configureObj, gridData: this.gridData };
|
|
1004
1006
|
return e2.options.filterDataEvent.call(this, t2);
|
|
1005
1007
|
}, resetAdditionalParamMap(e2, t2) {
|
|
1006
1008
|
if (this.pageContext && this.pageContext.entity) {
|
|
@@ -1025,12 +1027,20 @@ const be = { components: { IndexColumn: o, SelectionColumn: a, NormalColumn: s,
|
|
|
1025
1027
|
var _a, _b;
|
|
1026
1028
|
try {
|
|
1027
1029
|
const i2 = this.getComponentType(e2);
|
|
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 } };
|
|
1030
|
+
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, scrollToBottom: this.scrollToBottom } };
|
|
1029
1031
|
} catch (t3) {
|
|
1030
1032
|
return console.error(t3), { column: e2 };
|
|
1031
1033
|
}
|
|
1032
1034
|
}, changeOperationAddState(e2) {
|
|
1033
1035
|
g.$emit("change-add-state", e2);
|
|
1036
|
+
}, scrollToBottom() {
|
|
1037
|
+
const e2 = G.get(this.code);
|
|
1038
|
+
if (e2 && e2.options && e2.options.isFormSubTable)
|
|
1039
|
+
if (this.isMobile) {
|
|
1040
|
+
const e3 = document.querySelector("." + this.code + " .super-grid-main-card-view .el-scrollbar__wrap");
|
|
1041
|
+
e3 && null !== e3 && (e3.scrollTop = e3.scrollHeight);
|
|
1042
|
+
} else
|
|
1043
|
+
this.setScrollTopByRowIndex(this.tableDatas.length - 1);
|
|
1034
1044
|
}, scrollTo(e2, t2) {
|
|
1035
1045
|
var _a;
|
|
1036
1046
|
(_a = this.$refs.superGrid) == null ? void 0 : _a.scrollTo(e2, t2);
|
|
@@ -1043,13 +1053,15 @@ const be = { components: { IndexColumn: o, SelectionColumn: a, NormalColumn: s,
|
|
|
1043
1053
|
}, setScrollTopByRowIndex(e2) {
|
|
1044
1054
|
if (this.$refs.superGrid) {
|
|
1045
1055
|
const t2 = this.$refs.superGrid.$el.querySelectorAll(".el-table__body tbody .el-table__row");
|
|
1046
|
-
let i2 = 0;
|
|
1047
|
-
|
|
1048
|
-
|
|
1056
|
+
let i2 = 0, o2 = e2;
|
|
1057
|
+
o2 > t2.length - 1 && (o2 = t2.length - 1);
|
|
1058
|
+
for (let e3 = 0; e3 < t2.length && e3 !== o2; e3++)
|
|
1059
|
+
i2 += t2[e3].offsetHeight;
|
|
1049
1060
|
this.$refs.superGrid.setScrollTop(i2);
|
|
1050
1061
|
}
|
|
1051
1062
|
}, setCurrentRowIndex(e2) {
|
|
1052
|
-
|
|
1063
|
+
let t2 = e2;
|
|
1064
|
+
t2 > theTableRows.length - 1 && (t2 = theTableRows.length - 1), this.$refs.superGrid.setCurrentRow(this.tableDatas[t2]);
|
|
1053
1065
|
}, getSuperGridRef() {
|
|
1054
1066
|
return this;
|
|
1055
1067
|
}, getSuperGridTableRef() {
|
|
@@ -1079,11 +1091,11 @@ const be = { components: { IndexColumn: o, SelectionColumn: a, NormalColumn: s,
|
|
|
1079
1091
|
return e2.forEach((e3) => {
|
|
1080
1092
|
const o2 = {};
|
|
1081
1093
|
Object.keys(e3).forEach((t3) => {
|
|
1082
|
-
const
|
|
1083
|
-
|
|
1094
|
+
const s2 = i2.find((e4) => e4.orgProp === t3);
|
|
1095
|
+
s2 && (o2[s2.label] = e3[t3]);
|
|
1084
1096
|
}), t2.push(o2);
|
|
1085
1097
|
}), t2;
|
|
1086
|
-
}, rowDoFormat: (e2, t2) =>
|
|
1098
|
+
}, rowDoFormat: (e2, t2) => K(e2, t2), showSubTableSearch() {
|
|
1087
1099
|
this.isMobile ? this.showMobileSearch() : (this.showSubTableSearchDialog = true, this.$refs.sfDialog && this.$refs.sfDialog.showSubTableSearchDialog());
|
|
1088
1100
|
}, sortChangeColumn(e2) {
|
|
1089
1101
|
if (e2 && this.orderColumns) {
|
|
@@ -1098,17 +1110,17 @@ const be = { components: { IndexColumn: o, SelectionColumn: a, NormalColumn: s,
|
|
|
1098
1110
|
if (this.sortInfo = [{ prop: e2, order: t2 }], this.isFormSubTable) {
|
|
1099
1111
|
let e3;
|
|
1100
1112
|
e3 = this.isSubSearch ? this.subTableDataSearch : this.subTableData;
|
|
1101
|
-
const t3 =
|
|
1113
|
+
const t3 = G.get(this.code);
|
|
1102
1114
|
let i2 = [];
|
|
1103
1115
|
void 0 !== t3.searchForm && (i2 = t3.searchForm), this.searchSubTable(e3, i2, this.isSubSearch, t3);
|
|
1104
1116
|
} else
|
|
1105
1117
|
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"] },
|
|
1107
|
-
const
|
|
1118
|
+
} }, emits: ["change-grid-data", "change-rows-per-page", "set-select-options", "setSearchType", "sort-change", "changeHederWidth", "header-click", "un-edit", "refresMainTableFields", "refresh", "cancel-search", "changeOperationAddState"] }, Se = { class: "yx-flex-wrap", justify: "space-between" }, Ce = { style: { flex: "'1 1 auto'", width: "60px" } }, we = { key: 0, class: "yx-flex-wrap" }, De = { key: 2, class: "super-grid-main-table-footer-view" }, ye = { class: "yx-flex-wrap", style: { gap: "10px" } }, Te = { key: 0, style: { width: "16px", height: "16px" } }, Pe = ["title"], ve = ["title"];
|
|
1119
|
+
const xe = be(fe, [["render", function(e2, t2, i2, o2, s2, a2) {
|
|
1108
1120
|
var _a, _b, _c, _d;
|
|
1109
|
-
const r2 =
|
|
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, "get-super-grid-ref": s2.getSuperGridRef }, { ref_for: true }, t3.$bind, ge(t3.$on)), null, 16, ["get-super-grid-ref"]))), 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-
|
|
1121
|
+
const r2 = Q("search-form"), n2 = Q("el-button"), l2 = Q("el-option"), h2 = Q("el-select"), d2 = Q("search-form-dialog"), c2 = Q("MobileCard"), p2 = Q("row-detail"), u2 = Q("el-table"), g2 = Q("el-icon-setting"), m2 = Q("el-icon-refresh"), b2 = Q("el-pagination"), f2 = Q("columns-config"), S2 = Q("header-context-menu"), C2 = Q("row-form"), w2 = X("resize");
|
|
1122
|
+
return Y((Z(), ee("div", { "data-v": "1.0.0", class: "super-grid-main-view", style: te(s2.subTableStyle), onClick: t2[11] || (t2[11] = (...t3) => e2.onClickTableMain && e2.onClickTableMain(...t3)) }, [(s2.isFormSubTable && s2.isMobile && s2.isHasSearchColumn && s2.query && ("embedded" === s2.query.showType || "popup" === s2.query.showType) || !s2.isFormSubTable && s2.query && "embedded" === s2.query.showType) && s2.hasLoadedColumns ? Y((Z(), ie(r2, { key: 0, ref: "sf", columns: s2.columns, code: i2.code, url: i2.url, pagination: s2.pagination, query: s2.query, "search-form-info": i2.searchFormInfo, "search-param": s2.searchFormContent, "init-search-props": s2.initSearchProps, "list-toolbar-form-data": i2.listToolbarFormData, "load-complete-query": s2.loadCompleteQuery, class: "super-grid-main-search-view", onSearch: a2.doSearch, onReset: a2.resetSearch, onOpenFold: a2.openFold, onCanShowMobileSearch: t2[0] || (t2[0] = (t3) => e2.$emit("can-show-mobile-search", i2.code)), onCloseMobileSearch: t2[1] || (t2[1] = (e3) => s2.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"])), [[oe, !s2.isMobile || s2.isMobile && s2.isShowMobileSearch]]) : se("", true), ae("div", Se, [ae("div", Ce, [s2.isFormSubTable && s2.isHasSearchColumn && s2.query && ("embedded" === s2.query.showType || "popup" === s2.query.showType) ? (Z(), ie(n2, { key: 0, size: "small", onClick: a2.showSubTableSearch }, { default: re(() => [ne(le(e2.$t("imatrixUIMessage.search")), 1)]), _: 1 }, 8, ["onClick"])) : se("", true)]), s2.isMobile && s2.orderColumns.length > 0 ? (Z(), ee("div", we, [he(h2, { style: { width: "120px", "padding-right": "10px" }, placeholder: e2.$t("superGrid.orderField"), clearable: "", filterable: "", modelValue: s2.orderField, "onUpdate:modelValue": t2[2] || (t2[2] = (e3) => s2.orderField = e3), onChange: a2.sortChangeColumn }, { default: re(() => [(Z(true), ee(de, null, ce(s2.orderColumns, (e3) => (Z(), ie(l2, { key: e3.prop, value: e3.prop, label: a2.getColumnLabel(e3) }, null, 8, ["value", "label"]))), 128))]), _: 1 }, 8, ["placeholder", "modelValue", "onChange"]), he(h2, { style: { width: "120px" }, placeholder: e2.$t("superGrid.orderType"), clearable: "", modelValue: s2.orderType, "onUpdate:modelValue": t2[3] || (t2[3] = (e3) => s2.orderType = e3), onChange: a2.sortChangeType }, { default: re(() => [he(l2, { value: "ascending", label: e2.$t("superGrid.orderTypeAsc") }, null, 8, ["label"]), he(l2, { value: "descending", label: e2.$t("superGrid.orderTypeDesc") }, null, 8, ["label"])]), _: 1 }, 8, ["placeholder", "modelValue", "onChange"])])) : se("", true)]), s2.hasLoadedColumns ? (Z(), ie(d2, { key: 1, ref: "sfDialog", columns: s2.columns, code: i2.code, url: i2.url, pagination: s2.pagination, query: s2.query, "search-form-info": i2.searchFormInfo, "search-param": s2.searchFormContent, "init-search-props": s2.initSearchProps, "list-toolbar-form-data": i2.listToolbarFormData, "load-complete-query": s2.loadCompleteQuery, onSearch: a2.doSearchDialog, onReset: a2.resetSearch, onClose: a2.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"])) : se("", true), ae("div", { ref: "superGridMain", class: pe(["grid-area " + i2.code, "super-grid-main-body"]) }, [a2.isShowCard ? (Z(), ie(c2, { key: 0, selection: s2.selectionTableData, columns: a2.visibleColumns, listCode: i2.code, getColumnComponentData: a2.getColumnComponentData, data: a2.tableDatas, isEnableEdit: (_a = s2.lineEdit) == null ? void 0 : _a.editable, "current-page": s2.currentPage, "onUpdate:currentPage": t2[4] || (t2[4] = (e3) => s2.currentPage = e3), "page-size": (_c = (_b = s2.pagination) == null ? void 0 : _b.pageSizes) == null ? void 0 : _c[0], "page-total": (_d = s2.pagination) == null ? void 0 : _d.total, class: "super-grid-main-card-view", onSelect: a2.selectRecord, onSelectionChange: a2.cardSelectionChangeEvent, onCurrentChange: a2.handleCurrentChange, onRowClick: a2.rowClickEvent, onRowDblclick: a2.rowDblclickEvent, onScrollToBottom: a2.scrollToBottom }, null, 8, ["selection", "columns", "listCode", "getColumnComponentData", "data", "isEnableEdit", "current-page", "page-size", "page-total", "onSelect", "onSelectionChange", "onCurrentChange", "onRowClick", "onRowDblclick", "onScrollToBottom"])) : s2.refreshGrid && s2.hasLoadedColumns && !a2.isShowCard ? (Z(), ie(u2, { key: 1, ref: "superGrid", data: a2.tableDatas, "row-key": a2.getRowKeyProp, "show-summary": a2.showSummary, "summary-method": a2.getSummaries, style: te(s2.tableStyle), stripe: s2.stripe, border: true, "default-expand-all": s2.defaultExpandAll, lazy: s2.isLazy, showOverflowTooltip: s2.showOverflowTooltip, load: a2.loadChildren, "row-style": a2.changeRowStyle, "cell-style": a2.changeCellStyle, "header-cell-style": a2.changeHeaderStyle, "highlight-current-row": true, "span-method": a2.rowSpan, "max-height": a2.hasMaxHeight, height: a2.hasTableHeight, class: pe([s2.tableClass, "super-grid-main-table-view"]), "tree-props": a2.getTreeProps(s2.parentProp, s2.isSql, s2.isLazy, s2.dataSourceType), "scrollbar-always-on": a2.scrollbarAlwaysOn, onSortChange: a2.handleSortChange, onSelect: a2.selectRecord, onSelectAll: a2.selectAllRecord, onSelectionChange: a2.selectionChangeEvent, onRowClick: a2.rowClickEvent, onRowDblclick: a2.rowDblclickEvent, onExpandChange: a2.expandChange, onHeaderClick: a2.headerClickEvent, onHeaderDragend: a2.changeHederWidth, onHeaderContextmenu: a2.headerContextmenu, onCellClick: a2.selectCell, onCellDblclick: e2.cellDblClick }, { default: re(() => [s2.detailColumn ? (Z(), ie(p2, { key: 0, column: s2.detailColumn, "list-code": i2.code, onShowDetail: a2.openRowForm }, null, 8, ["column", "list-code", "onShowDetail"])) : se("", true), (Z(true), ee(de, null, ce(a2.visibleColumnsComponentData, ({ column: e3, ...t3 }, i3) => (Z(), ie(ue(a2.getComponentType(e3)), ge({ ref_for: true, ref: e3.prop, key: e3.label + i3, "get-super-grid-ref": a2.getSuperGridRef }, { ref_for: true }, t3.$bind, me(t3.$on)), null, 16, ["get-super-grid-ref"]))), 128))]), _: 1 }, 8, ["data", "row-key", "show-summary", "summary-method", "style", "stripe", "default-expand-all", "lazy", "showOverflowTooltip", "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"])) : se("", true), i2.showPagination && !a2.isShowCard ? (Z(), ee("div", De, [ae("div", ye, [s2.isFormSubTable && s2.pagination && s2.isShowPage ? (Z(), ee("div", Te)) : se("", true), s2.basicInfo.customConfig && !s2.isFormSubTable ? (Z(), ee("div", { key: 1, class: "el-icon-setting", title: e2.$t("superGrid.columnConfig"), onClick: t2[5] || (t2[5] = (...e3) => a2.configColumns && a2.configColumns(...e3)) }, [he(g2, { style: { width: "16px", height: "16px", color: "#777", cursor: "pointer" } })], 8, Pe)) : se("", true), s2.isFormSubTable ? se("", true) : (Z(), ee("div", { key: 2, class: "el-icon-refresh", title: e2.$t("superGrid.refresh"), onClick: t2[6] || (t2[6] = (...e3) => a2.refreshGridData && a2.refreshGridData(...e3)) }, [he(m2, { style: { width: "16px", height: "16px", color: "#777", cursor: "pointer" } })], 8, ve))]), s2.pagination && s2.isShowPage ? (Z(), ie(b2, { key: 0, "current-page": s2.currentPage, "onUpdate:currentPage": t2[7] || (t2[7] = (e3) => s2.currentPage = e3), "page-size": s2.pagination.pageSize, "onUpdate:pageSize": t2[8] || (t2[8] = (e3) => s2.pagination.pageSize = e3), background: "", "page-sizes": s2.pagination.pageSizes, layout: s2.pagination.layout, total: s2.pagination.showTotal ? void 0 !== s2.pagination.total && "" !== s2.pagination.total && null !== s2.pagination.total ? s2.pagination.total : 0 : 1e11, onSizeChange: a2.handleSizeChange, onCurrentChange: a2.handleCurrentChange }, null, 8, ["current-page", "page-size", "page-sizes", "layout", "total", "onSizeChange", "onCurrentChange"])) : se("", true)])) : se("", true)], 2), s2.showColumnConfig ? (Z(), ie(f2, { key: 2, "visible-columns": a2.visibleColumns, "list-code": i2.code, "is-sql": s2.isSql, onClose: t2[9] || (t2[9] = (e3) => a2.closeCustomConfig(e3)), onReset: t2[10] || (t2[10] = (e3) => a2.resetCustomConfig(e3)) }, null, 8, ["visible-columns", "list-code", "is-sql"])) : se("", true), s2.showHeaderContextmenu ? (Z(), ie(S2, { key: 3, ref: "headerMenu", "buttom-arr": i2.options.rightClickMenuArr, column: s2.rightClickColumn, onClearHeaderContextmenu: a2.clearHeaderContextmenu }, null, 8, ["buttom-arr", "column", "onClearHeaderContextmenu"])) : se("", true), s2.showRowForm ? (Z(), ie(C2, { key: 4, "parent-form-data": s2.parentFormData, columns: a2.visibleColumns, "row-index": s2.currentEditRowIndex, "list-code": i2.code, "drag-column-prop": s2.dragColumnProp, "is-sql": s2.isSql, "base-url": s2.baseURL, options: i2.options, "table-name": s2.tableName, "page-code": s2.pageCode, "list-toolbar-form-data": i2.listToolbarFormData, "list-name": s2.listName, "current-page": s2.currentPage, "grid-data": s2.isSubTableShowPage ? s2.subTableData : s2.gridData, "page-grid-data": s2.isSubTableShowPage ? a2.getSubTableGridData(s2.subTableData) : s2.gridData, "line-edit": s2.lineEdit, "show-page": s2.pagination && s2.isShowPage, "page-size": s2.pagination ? s2.pagination.pageSize : null, onClose: a2.closeRowForm, onRefresData: a2.refresData, onRefresPortData: a2.refresPortData, onRefresPortsData: a2.refresPortsData, onRefresMainTableFields: a2.refresMainTableFields, onOpenPage: a2.openPageDialog, onProhibitToEdit: a2.prohibitToEdit, onRefreshList: a2.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"])) : se("", true)], 4)), [[w2, a2.onResize]]);
|
|
1123
|
+
}], ["__scopeId", "data-v-251e0665"]]);
|
|
1112
1124
|
export {
|
|
1113
|
-
|
|
1125
|
+
xe as default
|
|
1114
1126
|
};
|