agilebuilder-ui 1.1.65-tmp30 → 1.1.65-tmp31
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 +5 -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,120 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const e = require("../../utils/gogocodeTransfer.cjs"), o = require("./search-methods.cjs"), t = require("./search-form-number.vue.cjs"), l = require("./store.cjs"), n = require("./utils.cjs"), a = require("../../src/utils/util.cjs"), r = require("vue");
|
|
3
|
-
require("./search-form-item.vue2.cjs");
|
|
4
|
-
const c = require("../../_virtual/_plugin-vue_export-helper.cjs"), m = { name: "SearchFormItem", components: { searchFormNumber: t }, inject: ["getListToolbarFormData"], props: { column: { type: Object, default: null }, code: { type: String, default: null }, isSql: { type: Boolean, default: false }, tableName: { type: String, default: null }, isJoinTable: { type: Boolean, default: false }, searchForm: { type: Object, default: null }, index: { type: Number, default: 0 }, length: { type: Number, default: 0 }, loadCompleteQuery: { type: Boolean, default: false }, labelWidth: { type: [String, Number, void 0], default: void 0 } }, data() {
|
|
5
|
-
return { customComponentNames: /* @__PURE__ */ new Set(), dateOne: null, dataTwo: null, moduleConfig: {}, dateVal: this.getFormItemValue(this.column.prop), controlConfig: n.getControlConfig(this.column), isShowEmtptyFlag: false, dataSourceOptions: {}, departmentInfo: null, checkEmptyValue: false };
|
|
6
|
-
}, computed: { listToolbarFormData() {
|
|
7
|
-
const e2 = this.getListToolbarFormData();
|
|
8
|
-
return e2 && e2.listToolbarFormData ? e2.listToolbarFormData : null;
|
|
9
|
-
}, isShowEmtpty() {
|
|
10
|
-
return this.isShowEmtptyFlag;
|
|
11
|
-
}, checkedEmpty() {
|
|
12
|
-
return !(!this.column._emptyValue || "#blank#" !== this.column._emptyValue) || (!this.column._resetValue && void 0 !== this.column._resetValue || (this.column._resetValue && (this.column._resetValue = void 0, this.isShowEmtptyFlag = false), false));
|
|
13
|
-
} }, watch: { "column._resetValue": { deep: true, handler(e2) {
|
|
14
|
-
e2 && (this.checkEmptyValue = false, this.$refs.selectRef && this.$refs.selectRef.clearEmptyValue(), this.column._resetValue = void 0);
|
|
15
|
-
} } }, created() {
|
|
16
|
-
this.column.valueSetOptions && (this.moduleConfig = JSON.parse(this.column.valueSetOptions));
|
|
17
|
-
const e2 = this.column.componentType;
|
|
18
|
-
e2 && ("multiselect" === e2 || "select" === e2) && this.isDynamicDataSourceSource(this.column) && (this.dataSourceOptions = this.getDynamicDataSourceOptions(this.column)), this.deptScopeLimit();
|
|
19
|
-
}, mounted() {
|
|
20
|
-
this.index + 1 === this.length && this.loadCompleteQuery && e.$emit(this, "submit-form");
|
|
21
|
-
}, methods: { ...o, getDynamicDataSourceOptions(e2) {
|
|
22
|
-
const o2 = l.get(this.code);
|
|
23
|
-
let t2 = o2.options.backendUrl;
|
|
24
|
-
return t2 || (t2 = window.$vueApp.config.globalProperties.baseURL), n.getDynamicDataSourceOptions(e2, this.isSql, o2.additionalParamMap, t2);
|
|
25
|
-
}, isDynamicDataSourceSource: (e2) => n.isDynamicDataSourceSource(e2), setValueToModelProp(e2, o2, t2, l2) {
|
|
26
|
-
if (e2 && e2.indexOf(".") > 0) {
|
|
27
|
-
const t3 = this.getParentObject(e2);
|
|
28
|
-
null != l2 && void 0 !== l2 ? t3[e2.substring(e2.lastIndexOf(".") + 1)][l2] = o2 : t3[e2.substring(e2.lastIndexOf(".") + 1)] = o2;
|
|
29
|
-
} else
|
|
30
|
-
null != l2 && void 0 !== l2 ? this.searchForm[e2][l2] = o2 : this.searchForm[e2] = o2;
|
|
31
|
-
}, getLabelWidth(e2) {
|
|
32
|
-
const o2 = JSON.parse(e2);
|
|
33
|
-
return "" !== o2.labelWidth && null !== o2.labelWidth && void 0 !== o2.labelWidth ? o2.labelWidth + "px" : "110px";
|
|
34
|
-
}, componentTypeTypeIsTree(e2) {
|
|
35
|
-
if (e2) {
|
|
36
|
-
if (e2.indexOf("DeptManTree") > 0)
|
|
37
|
-
return true;
|
|
38
|
-
if (e2.indexOf("DeptTree") > 0)
|
|
39
|
-
return true;
|
|
40
|
-
if (e2.indexOf("WgManTree") > 0)
|
|
41
|
-
return true;
|
|
42
|
-
if (e2.indexOf("WgManTree") > 0)
|
|
43
|
-
return true;
|
|
44
|
-
}
|
|
45
|
-
return false;
|
|
46
|
-
}, getTreeFields(e2) {
|
|
47
|
-
if (e2 && "" !== e2) {
|
|
48
|
-
const o2 = JSON.parse(e2);
|
|
49
|
-
if (o2.length)
|
|
50
|
-
return o2;
|
|
51
|
-
if (o2.orgTreeSetArr)
|
|
52
|
-
return o2.orgTreeSetArr;
|
|
53
|
-
}
|
|
54
|
-
}, getTreeIsMultiTree: (e2) => !(e2 && e2.indexOf("single") >= 0 && e2.indexOf("Tree") > 0), getTreeType(e2) {
|
|
55
|
-
if (e2) {
|
|
56
|
-
if (e2.indexOf("DeptManTree") > 0)
|
|
57
|
-
return "DeptUserTree";
|
|
58
|
-
if (e2.indexOf("DeptTree") > 0)
|
|
59
|
-
return "DeptTree";
|
|
60
|
-
if (e2.indexOf("WgTree") > 0)
|
|
61
|
-
return "WgTree";
|
|
62
|
-
if (e2.indexOf("WgManTree") > 0)
|
|
63
|
-
return "WgUserTree";
|
|
64
|
-
}
|
|
65
|
-
}, organizationInputEvent(e2, o2) {
|
|
66
|
-
e2 && (this.searchForm[e2] = o2);
|
|
67
|
-
}, clearOrganizationInputEvent(e2) {
|
|
68
|
-
e2 && (this.searchForm[e2] = null);
|
|
69
|
-
}, customComponent(e2) {
|
|
70
|
-
const o2 = l.get(this.code);
|
|
71
|
-
if (e2.componentName && "" !== e2.componentName)
|
|
72
|
-
return this.customComponentNames.add(e2.componentName), true;
|
|
73
|
-
if ((!e2.componentName || "" === e2.componentName) && o2.options && o2.options.search && o2.options.search.customSearchElements) {
|
|
74
|
-
const t2 = o2.options.search.customSearchElements[e2.prop];
|
|
75
|
-
if (t2) {
|
|
76
|
-
e2.componentName = "custom-" + e2.prop;
|
|
77
|
-
const o3 = t2.call(this, e2);
|
|
78
|
-
if (o3)
|
|
79
|
-
return this.customComponentNames.add(e2.componentName), window.$vueApp.component(e2.componentName, o3), true;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
return false;
|
|
83
|
-
}, setNumberValue(e2, o2, t2) {
|
|
84
|
-
let l2 = this.getFormItemValue(this.column.prop);
|
|
85
|
-
l2 = e2, this.setValueToModelProp(this.column.prop, l2);
|
|
86
|
-
}, setYearRangeValue(e2, o2) {
|
|
87
|
-
this.searchForm[e2][0] = o2[0], this.searchForm[e2][1] = o2[1];
|
|
88
|
-
}, getDefaultTime(e2) {
|
|
89
|
-
if (e2.valueSetOptions) {
|
|
90
|
-
const o2 = JSON.parse(e2.valueSetOptions);
|
|
91
|
-
return o2.defaultTime ? [o2.defaultTime, o2.defaultTime] : ["00:00:00"];
|
|
92
|
-
}
|
|
93
|
-
{
|
|
94
|
-
const e3 = /* @__PURE__ */ new Date(), o2 = e3.getFullYear(), t2 = e3.getMonth() + 1, l2 = e3.getDate();
|
|
95
|
-
return [`${o2}-${t2}-${l2} 00:00:00`, `${o2}-${t2}-${l2} 23:59:59`];
|
|
96
|
-
}
|
|
97
|
-
}, multiselectChange(e2, o2) {
|
|
98
|
-
e2 && -1 !== e2.indexOf("saveAll") ? this.searchForm[this.column.prop] && "string" == typeof this.searchForm[this.column.prop] && (this.searchForm[this.column.prop] = this.searchForm[this.column.prop].split(",")) : this.searchForm[this.column.prop] = e2;
|
|
99
|
-
}, showEmpty() {
|
|
100
|
-
this.isShowEmtptyFlag = true;
|
|
101
|
-
}, hiddenEmpty() {
|
|
102
|
-
this.checkedEmpty || (this.isShowEmtptyFlag = false);
|
|
103
|
-
}, checkEmptyChange(e2) {
|
|
104
|
-
this.column._emptyValue = e2 ? "#blank#" : void 0;
|
|
105
|
-
}, deptScopeLimit() {
|
|
106
|
-
this.controlConfig && this.controlConfig.deptScope && ("depts" === this.controlConfig.deptScope && this.controlConfig.deptScopeCodes ? this.departmentInfo = this.controlConfig.deptScopeCodes.split(",") : "field" === this.controlConfig.deptScope && this.controlConfig.deptScopeField && 0 !== this.controlConfig.deptScopeField.indexOf("${row.") && (this.setLimitDepartmentInfo(), 0 === !this.controlConfig.deptScopeField.indexOf("${fixed.") && a.watchPageContextDynamicVariable(this, this.pageContext, this.controlConfig.deptScopeField, (e2, o2) => {
|
|
107
|
-
this.setLimitDepartmentInfo();
|
|
108
|
-
})));
|
|
109
|
-
}, setLimitDepartmentInfo() {
|
|
110
|
-
const e2 = a.getPropValueNew(this.controlConfig.deptScopeField, this.pageContext, this.row);
|
|
111
|
-
this.departmentInfo = e2 ? e2.split(",") : [];
|
|
112
|
-
} }, emits: ["submit-form"] }, p = ["title", "innerHTML"], i = { key: 0, style: { width: "100%" } }, u = { key: 1 };
|
|
113
|
-
const s = c(m, [["render", function(e2, o2, t2, l2, n2, a2) {
|
|
114
|
-
const c2 = r.resolveComponent("el-date-picker"), m2 = r.resolveComponent("year-range-picker"), s2 = r.resolveComponent("el-time-picker"), d = r.resolveComponent("organization-input"), h = r.resolveComponent("el-checkbox"), y = r.resolveComponent("el-option"), g = r.resolveComponent("el-select"), f = r.resolveComponent("dynamic-source-select"), C = r.resolveComponent("search-form-number"), T = r.resolveComponent("el-switch"), k = r.resolveComponent("el-slider"), V = r.resolveComponent("el-rate"), v = r.resolveComponent("el-tooltip"), S = r.resolveComponent("el-input"), b = r.resolveComponent("el-form-item");
|
|
115
|
-
return r.openBlock(), r.createBlock(b, { "label-width": t2.labelWidth ?? (t2.column.querySetting ? a2.getLabelWidth(t2.column.querySetting) : "110px"), prop: t2.column.prop }, { label: r.withCtx(() => [r.createElementVNode("span", { title: (t2.column.searchLabel ?? t2.column.label).replace(/\\n/g, "</br>"), innerHTML: (t2.column.searchLabel ?? t2.column.label).replace(/\\n/g, "</br>") }, null, 8, p)]), default: r.withCtx(() => {
|
|
116
|
-
var _a, _b, _c, _d;
|
|
117
|
-
return [true === a2.customComponent(t2.column) ? (r.openBlock(), r.createElementBlock("span", i, [(r.openBlock(), r.createBlock(r.resolveDynamicComponent(t2.column.componentName), { ref: t2.column.componentName, entity: t2.searchForm, "additional-settings": n2.controlConfig, "model-value": e2.getFormItemValue(t2.column.prop), prop: t2.column.prop, row: t2.searchForm, "select-options": t2.column.valueSet, isSearch: true, class: "customComponent", onChange: o2[0] || (o2[0] = (e3) => a2.setValueToModelProp(t2.column.prop, e3, t2.column.componentName)) }, null, 40, ["entity", "additional-settings", "model-value", "prop", "row", "select-options"]))])) : "dateSection" === t2.column.componentType ? (r.openBlock(), r.createElementBlock("span", u, [r.createVNode(c2, { modelValue: t2.searchForm[t2.column.prop][0], "onUpdate:modelValue": o2[1] || (o2[1] = (e3) => t2.searchForm[t2.column.prop][0] = e3), placeholder: e2.$t("imatrixUIMessage.startDate"), style: r.normalizeStyle(t2.column.searchControlWidth), type: "date", onChange: o2[2] || (o2[2] = (e3) => a2.setValueToModelProp(t2.column.prop, e3, null, 0)) }, null, 8, ["modelValue", "placeholder", "style"]), r.createVNode(c2, { modelValue: t2.searchForm[t2.column.prop][1], "onUpdate:modelValue": o2[3] || (o2[3] = (e3) => t2.searchForm[t2.column.prop][1] = e3), placeholder: e2.$t("imatrixUIMessage.endDate"), style: r.normalizeStyle(t2.column.searchControlWidth), type: "date", onChange: o2[4] || (o2[4] = (e3) => a2.setValueToModelProp(t2.column.prop, e3, null, 1)) }, null, 8, ["modelValue", "placeholder", "style"])])) : "yearRange" === t2.column.componentType ? (r.openBlock(), r.createBlock(m2, { key: 2, value: e2.getFormItemValue(t2.column.prop), type: "yearRange", onChange: o2[5] || (o2[5] = (e3) => a2.setYearRangeValue(t2.column.prop, e3)) }, null, 8, ["value"])) : "dateTimePicker" === t2.column.componentType ? (r.openBlock(), r.createBlock(c2, { key: 3, "default-time": a2.getDefaultTime(t2.column), "end-placeholder": e2.$t("imatrixUIMessage.endDate"), modelValue: t2.searchForm[t2.column.prop], "onUpdate:modelValue": o2[6] || (o2[6] = (e3) => t2.searchForm[t2.column.prop] = e3), "range-separator": e2.$t("imatrixUIPublicModel.to"), "start-placeholder": e2.$t("imatrixUIMessage.startDate"), style: r.normalizeStyle(t2.column.searchControlWidth), type: "datetimerange", "unlink-panels": "", format: "YYYY-MM-DD HH:mm:ss", "value-format": "YYYY-MM-DD HH:mm:ss", onChange: o2[7] || (o2[7] = (e3) => a2.setValueToModelProp(t2.column.prop, e3)) }, null, 8, ["default-time", "end-placeholder", "modelValue", "range-separator", "start-placeholder", "style"])) : "DATE" === t2.column.dataType || "date" === t2.column.componentType ? (r.openBlock(), r.createBlock(c2, { key: 4, "end-placeholder": e2.$t("imatrixUIMessage.endDate"), modelValue: t2.searchForm[t2.column.prop], "onUpdate:modelValue": o2[8] || (o2[8] = (e3) => t2.searchForm[t2.column.prop] = e3), "range-separator": e2.$t("imatrixUIPublicModel.to"), "start-placeholder": e2.$t("imatrixUIMessage.startDate"), style: r.normalizeStyle(t2.column.searchControlWidth), type: "daterange", "unlink-panels": "", format: "YYYY-MM-DD", "value-format": "YYYY-MM-DD", onChange: o2[9] || (o2[9] = (e3) => a2.setValueToModelProp(t2.column.prop, e3)) }, null, 8, ["end-placeholder", "modelValue", "range-separator", "start-placeholder", "style"])) : "TIME" === t2.column.dataType && "timepicker" === t2.column.componentType ? (r.openBlock(), r.createBlock(c2, { key: 5, "end-placeholder": e2.$t("imatrixUIMessage.endDate"), modelValue: t2.searchForm[t2.column.prop], "onUpdate:modelValue": o2[10] || (o2[10] = (e3) => t2.searchForm[t2.column.prop] = e3), "range-separator": e2.$t("imatrixUIPublicModel.to"), "start-placeholder": e2.$t("imatrixUIMessage.startDate"), style: r.normalizeStyle(t2.column.searchControlWidth), type: "datetimerange", "unlink-panels": "", format: "HH:mm:ss", "value-format": "HH:mm:ss", onChange: o2[11] || (o2[11] = (e3) => a2.setValueToModelProp(t2.column.prop, e3)) }, null, 8, ["end-placeholder", "modelValue", "range-separator", "start-placeholder", "style"])) : "timepicker" === t2.column.componentType && "TIME" !== t2.column.dataType && "DATE" !== t2.column.dataType ? (r.openBlock(), r.createBlock(s2, { key: 6, modelValue: t2.searchForm[t2.column.prop], "onUpdate:modelValue": o2[12] || (o2[12] = (e3) => t2.searchForm[t2.column.prop] = e3), placeholder: e2.$t("imatrixUIMessage.selectTime"), style: { width: "100%" }, type: "fixed-time", format: "HH:mm:ss", "value-format": "HH:mm:ss", onChange: o2[13] || (o2[13] = (e3) => a2.setValueToModelProp(t2.column.prop, e3)) }, null, 8, ["modelValue", "placeholder"])) : a2.componentTypeTypeIsTree(t2.column.componentType) ? (r.openBlock(), r.createBlock(d, { key: 7, fields: a2.getTreeFields(t2.column.orgTreeSet), "department-info": n2.departmentInfo, "limit-filter-column": (_a = n2.controlConfig) == null ? void 0 : _a.limitFilterColumn, models: t2.searchForm, multiple: a2.getTreeIsMultiTree(t2.column.componentType), "tree-type": a2.getTreeType(t2.column.componentType), value: e2.getFormItemValue(t2.column.prop), onClear: a2.clearOrganizationInputEvent, onSetValue: a2.organizationInputEvent }, null, 8, ["fields", "department-info", "limit-filter-column", "models", "multiple", "tree-type", "value", "onClear", "onSetValue"])) : "radio" === ((_b = t2.column) == null ? void 0 : _b.componentType) ? (r.openBlock(), r.createBlock(g, { key: 8, "model-value": e2.getFormItemValue(t2.column.prop), placeholder: e2.$t("imatrixUIMessage.pleaseSelect"), style: r.normalizeStyle(t2.column.searchControlWidth), clearable: "", filterable: "", onChange: o2[15] || (o2[15] = (e3) => a2.setValueToModelProp(t2.column.prop, e3)) }, r.createSlots({ default: r.withCtx(() => [(r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(t2.column.valueSet, (e3) => (r.openBlock(), r.createBlock(y, { key: e3.value, label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 128))]), _: 2 }, ["BOOLEAN" !== t2.column.dataType ? { name: "header", fn: r.withCtx(() => [r.createVNode(h, { modelValue: n2.checkEmptyValue, "onUpdate:modelValue": o2[14] || (o2[14] = (e3) => n2.checkEmptyValue = e3), onChange: a2.checkEmptyChange }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("imatrixUIPublicModel.emptyValue")), 1)]), _: 1 }, 8, ["modelValue", "onChange"])]), key: "0" } : void 0]), 1032, ["model-value", "placeholder", "style"])) : (t2.column.componentType && "select" === t2.column.componentType || "BOOLEAN" === t2.column.dataType) && !a2.isDynamicDataSourceSource(t2.column) ? (r.openBlock(), r.createBlock(g, { key: 9, "model-value": e2.getFormItemValue(t2.column.prop), placeholder: e2.$t("imatrixUIMessage.pleaseSelect"), style: r.normalizeStyle(t2.column.searchControlWidth), clearable: "", filterable: "", onChange: o2[17] || (o2[17] = (e3) => a2.setValueToModelProp(t2.column.prop, e3)) }, r.createSlots({ default: r.withCtx(() => [(r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(t2.column.valueSet, (e3) => (r.openBlock(), r.createBlock(y, { key: e3.value, label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 128))]), _: 2 }, ["BOOLEAN" !== t2.column.dataType ? { name: "header", fn: r.withCtx(() => [r.createVNode(h, { modelValue: n2.checkEmptyValue, "onUpdate:modelValue": o2[16] || (o2[16] = (e3) => n2.checkEmptyValue = e3), onChange: a2.checkEmptyChange }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("imatrixUIPublicModel.emptyValue")), 1)]), _: 1 }, 8, ["modelValue", "onChange"])]), key: "0" } : void 0]), 1032, ["model-value", "placeholder", "style"])) : t2.column.componentType && "multiselect" === t2.column.componentType && !a2.isDynamicDataSourceSource(t2.column) ? (r.openBlock(), r.createBlock(g, { key: 10, "model-value": e2.getFormItemValue(t2.column.prop), placeholder: e2.$t("imatrixUIMessage.pleaseSelect"), style: r.normalizeStyle(t2.column.searchControlWidth), clearable: "", "collapse-tags": "", filterable: "", multiple: "", onChange: o2[19] || (o2[19] = (e3) => a2.setValueToModelProp(t2.column.prop, e3)) }, { header: r.withCtx(() => [r.createVNode(h, { modelValue: n2.checkEmptyValue, "onUpdate:modelValue": o2[18] || (o2[18] = (e3) => n2.checkEmptyValue = e3), onChange: a2.checkEmptyChange }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("imatrixUIPublicModel.emptyValue")), 1)]), _: 1 }, 8, ["modelValue", "onChange"])]), default: r.withCtx(() => [(r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(t2.column.valueSet, (e3) => (r.openBlock(), r.createBlock(y, { key: e3.value, label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["model-value", "placeholder", "style"])) : t2.column.componentType && ("multiselect" === t2.column.componentType || "select" === t2.column.componentType) && a2.isDynamicDataSourceSource(t2.column) ? (r.openBlock(), r.createBlock(f, { key: 11, ref: "selectRef", value: t2.searchForm[t2.column.prop], "onUpdate:value": o2[20] || (o2[20] = (e3) => t2.searchForm[t2.column.prop] = e3), "allow-create": (_d = (_c = n2.dataSourceOptions) == null ? void 0 : _c.controlConfig) == null ? void 0 : _d.allowCreate, "base-props": { multiple: "multiselect" === t2.column.componentType }, entity: t2.searchForm, filterable: true, "is-join-table": t2.isJoinTable, "list-code": t2.code, "list-toolbar-form-data": a2.listToolbarFormData, options: n2.dataSourceOptions, "table-name": t2.tableName, "is-search": true, onChange: a2.multiselectChange, onChangeEmptyValue: a2.checkEmptyChange }, null, 8, ["value", "allow-create", "base-props", "entity", "is-join-table", "list-code", "list-toolbar-form-data", "options", "table-name", "onChange", "onChangeEmptyValue"])) : t2.column.componentType && "inputNumber" === t2.column.componentType ? (r.openBlock(), r.createBlock(C, { key: 12, "item-value": t2.searchForm[t2.column.prop], "module-config": n2.moduleConfig, onSetValue: a2.setNumberValue }, null, 8, ["item-value", "module-config", "onSetValue"])) : t2.column.componentType && "switch" === t2.column.componentType ? (r.openBlock(), r.createBlock(T, { key: 13, "model-value": e2.getFormItemValue(t2.column.prop), style: r.normalizeStyle(t2.column.searchControlWidth), "active-color": "#13ce66", "inactive-color": "#ff4949", onChange: o2[21] || (o2[21] = (e3) => a2.setValueToModelProp(t2.column.prop, e3)) }, null, 8, ["model-value", "style"])) : t2.column.componentType && "slider" === t2.column.componentType ? (r.openBlock(), r.createBlock(k, { key: 14, "model-value": e2.getFormItemValue(t2.column.prop), style: r.normalizeStyle(t2.column.searchControlWidth), onChange: o2[22] || (o2[22] = (e3) => a2.setValueToModelProp(t2.column.prop, e3)) }, null, 8, ["model-value", "style"])) : t2.column.componentType && "rate" === t2.column.componentType ? (r.openBlock(), r.createBlock(V, { key: 15, "model-value": e2.getFormItemValue(t2.column.prop), style: r.normalizeStyle(t2.column.searchControlWidth), onChange: o2[23] || (o2[23] = (e3) => a2.setValueToModelProp(t2.column.prop, e3)) }, null, 8, ["model-value", "style"])) : (r.openBlock(), r.createBlock(S, { key: 16, "model-value": e2.getFormItemValue(t2.column.prop), style: r.normalizeStyle(t2.column.searchControlWidth), onKeyup: o2[25] || (o2[25] = r.withKeys((o3) => e2.submitForm("searchForm"), ["enter"])), onInput: o2[26] || (o2[26] = (e3) => a2.setValueToModelProp(t2.column.prop, e3)), onFocus: o2[27] || (o2[27] = (e3) => a2.showEmpty()), onBlur: o2[28] || (o2[28] = (e3) => a2.hiddenEmpty()) }, { suffix: r.withCtx(() => [r.createVNode(v, { content: e2.$t("superGrid.searchEmpty"), placement: "bottom" }, { default: r.withCtx(() => [a2.isShowEmtpty ? (r.openBlock(), r.createBlock(h, { key: 0, modelValue: a2.checkedEmpty, "onUpdate:modelValue": o2[24] || (o2[24] = (e3) => a2.checkedEmpty = e3), onChange: a2.checkEmptyChange }, null, 8, ["modelValue", "onChange"])) : r.createCommentVNode("", true)]), _: 1 }, 8, ["content"])]), _: 1 }, 8, ["model-value", "style"]))];
|
|
118
|
-
}), _: 1 }, 8, ["label-width", "prop"]);
|
|
119
|
-
}], ["__scopeId", "data-v-41b4cbbd"]]);
|
|
120
|
-
module.exports = s;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const e = require("../../utils/gogocodeTransfer.cjs"), t = require("./search-methods.cjs"), o = require("./store.cjs"), r = require("./utils.cjs"), s = require("../../src/utils/eventBus.cjs"), a = require("./search-form-item.vue.cjs"), n = require("./search-button.vue.cjs"), l = require("vue");
|
|
3
|
-
require("./search-form-mobile.vue2.cjs");
|
|
4
|
-
const c = require("../../_virtual/_plugin-vue_export-helper.cjs"), i = { name: "SearchFormMobile", components: { SearchFormItem: a, SearchButton: n }, props: { searchableColumns: { type: Array, default: null }, searchForm: { type: Object, default: null }, rules: { type: Object, default: null }, labelWidth: { type: String, default: null }, query: { type: Object, default: null }, code: { type: String, default: null }, isSql: { type: Boolean, default: false }, loadCompleteQuery: { type: Boolean, default: false } }, data() {
|
|
5
|
-
const e2 = o.get(this.code);
|
|
6
|
-
let t2, r2;
|
|
7
|
-
e2 && e2.basicInfo && e2.basicInfo.tableName && (t2 = e2.basicInfo.tableName), e2 && e2.basicInfo && e2.basicInfo.hasJoinTable && (r2 = e2.basicInfo.hasJoinTable);
|
|
8
|
-
return { customComponentNames: /* @__PURE__ */ new Set(), dateOne: null, dataTwo: null, tableName: t2, isJoinTable: r2, isOpen: false };
|
|
9
|
-
}, computed: {}, watch: {}, created() {
|
|
10
|
-
}, methods: { ...t, validateForm() {
|
|
11
|
-
return new Promise((e2, t2) => {
|
|
12
|
-
this.$refs.searchForm.validate((t3) => {
|
|
13
|
-
e2(t3);
|
|
14
|
-
});
|
|
15
|
-
});
|
|
16
|
-
}, resetForm() {
|
|
17
|
-
if (e.$emit(s, "remoteMethod"), this.customComponentNames && this.customComponentNames.length > 0)
|
|
18
|
-
for (const e2 of this.customComponentNames)
|
|
19
|
-
this.$refs[e2][0].resetField();
|
|
20
|
-
this.$refs.searchForm.resetFields(), this.searchableColumns.forEach((e2) => {
|
|
21
|
-
e2.prop && e2.prop.indexOf(".") > 0 ? "dateSection" === e2.componentType ? r.addDynamicPropDateSection(this.searchForm, e2.prop) : r.addDynamicProp(this.searchForm, e2.prop) : ("dateSection" === e2.componentType ? this.searchForm[e2.prop] = [/* @__PURE__ */ new Date(), /* @__PURE__ */ new Date()] : "yearRange" === e2.componentType ? (this.searchForm[e2.prop][0] = "", this.searchForm[e2.prop][1] = "") : "inputNumber" === e2.componentType && this.searchForm[e2.prop] ? (this.searchForm[e2.prop][0] = 0, this.searchForm[e2.prop][1] = 0) : this.searchForm[e2.prop] = null, this.setDefaultQueryValue(e2, this.searchForm)), e2._emptyValue && (e2._emptyValue = void 0, e2._resetValue = true);
|
|
22
|
-
}), e.$emit(this, "submit-form");
|
|
23
|
-
}, openFold(t2) {
|
|
24
|
-
this.isOpen = t2, e.$emit(this, "open-fold", t2);
|
|
25
|
-
}, searchComplete() {
|
|
26
|
-
this.$refs.searchBtnOpen && (Array.isArray(this.$refs.searchBtnOpen) ? this.$refs.searchBtnOpen.length > 0 && this.$refs.searchBtnOpen[0].searchComplete() : this.$refs.searchBtnOpen.searchComplete());
|
|
27
|
-
} }, emits: ["submit-form", "reset-form", "save-condition", "remoteMethod"] }, m = { style: { "padding-bottom": "40px" } }, h = { class: "search-btn-mobile" };
|
|
28
|
-
const u = c(i, [["render", function(e2, t2, o2, r2, s2, a2) {
|
|
29
|
-
const n2 = l.resolveComponent("search-form-item"), c2 = l.resolveComponent("search-button"), i2 = l.resolveComponent("el-form");
|
|
30
|
-
return l.openBlock(), l.createElementBlock("div", null, [o2.searchableColumns.length > 0 ? (l.openBlock(), l.createBlock(i2, { key: 0, ref: "searchForm", model: o2.searchForm, rules: o2.rules, class: "grid-search-form-mobile", "label-position": "top", size: "default" }, { default: l.withCtx(() => [l.createElementVNode("div", m, [(l.openBlock(true), l.createElementBlock(l.Fragment, null, l.renderList(o2.searchableColumns, (e3, t3) => (l.openBlock(), l.createBlock(n2, { key: t3, "search-form": o2.searchForm, column: e3, code: o2.code, "is-sql": o2.isSql, "table-name": s2.tableName, "is-join-table": s2.isJoinTable }, null, 8, ["search-form", "column", "code", "is-sql", "table-name", "is-join-table"]))), 128))]), l.createElementVNode("div", h, [l.createVNode(c2, { ref: "searchBtnOpen", onClose: t2[0] || (t2[0] = (t3) => e2.$emit("close")), onSubmitForm: t2[1] || (t2[1] = (t3) => e2.$emit("submit-form")), onResetForm: t2[2] || (t2[2] = (t3) => e2.$emit("reset-form")), onSaveCondition: t2[3] || (t2[3] = (t3) => e2.$emit("save-condition")) }, null, 512)])]), _: 1 }, 8, ["model", "rules"])) : l.createCommentVNode("", true)]);
|
|
31
|
-
}], ["__scopeId", "data-v-c8fb4788"]]);
|
|
32
|
-
module.exports = u;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const e = require("../../utils/gogocodeTransfer.cjs"), o = require("./eventBus.cjs"), n = require("vue");
|
|
3
|
-
const i = require("../../_virtual/_plugin-vue_export-helper.cjs")({ props: { r: { type: Number, default: null }, n: { type: Number, default: null }, itemValue: { type: Array, default: () => [0, 0] }, moduleConfig: { type: Object } }, data() {
|
|
4
|
-
return { number1: 0 === this.moduleConfig.min ? 0 : this.moduleConfig.min ? this.moduleConfig.min : 0, number2: 0 === this.moduleConfig.max ? 0 : this.moduleConfig.max ? this.moduleConfig.max : 100 };
|
|
5
|
-
}, mounted() {
|
|
6
|
-
o.$on("reset", () => {
|
|
7
|
-
this.number1 = null, this.number2 = null;
|
|
8
|
-
});
|
|
9
|
-
}, destroyed() {
|
|
10
|
-
o.$off("reset");
|
|
11
|
-
}, watch: { itemValue: { deep: true, handler(e2) {
|
|
12
|
-
e2 && (this.number1 = e2[0] ? e2[0] : 0, this.number2 = e2[1] ? e2[1] : 0);
|
|
13
|
-
} } }, created() {
|
|
14
|
-
e.$emit(this, "setValue", [this.number1, this.number2], this.r, this.n);
|
|
15
|
-
}, methods: { setValue() {
|
|
16
|
-
e.$emit(this, "setValue", [this.number1, this.number2], this.r, this.n);
|
|
17
|
-
} }, emits: ["setValue"] }, [["render", function(e2, o2, i2, m, t, u) {
|
|
18
|
-
const l = n.resolveComponent("el-input-number");
|
|
19
|
-
return n.openBlock(), n.createElementBlock("div", null, [n.createVNode(l, { modelValue: t.number1, "onUpdate:modelValue": o2[0] || (o2[0] = (e3) => t.number1 = e3), min: 0 == i2.moduleConfig.min ? 0 : i2.moduleConfig.min ? i2.moduleConfig.min : -1 / 0, max: 0 == i2.moduleConfig.max ? 0 : i2.moduleConfig.max ? i2.moduleConfig.max : 1 / 0, step: i2.moduleConfig.step ? i2.moduleConfig.step : 1, precision: i2.moduleConfig.precision ? i2.moduleConfig.precision : 0, "controls-position": i2.moduleConfig.position ? i2.moduleConfig.position : "", onChange: o2[1] || (o2[1] = (e3) => u.setValue()) }, null, 8, ["modelValue", "min", "max", "step", "precision", "controls-position"]), o2[4] || (o2[4] = n.createElementVNode("span", null, "---", -1)), n.createVNode(l, { modelValue: t.number2, "onUpdate:modelValue": o2[2] || (o2[2] = (e3) => t.number2 = e3), min: 0 == i2.moduleConfig.min ? 0 : i2.moduleConfig.min ? i2.moduleConfig.min : -1 / 0, max: 0 == i2.moduleConfig.max ? 0 : i2.moduleConfig.max ? i2.moduleConfig.max : 1 / 0, step: i2.moduleConfig.step ? i2.moduleConfig.step : 1, precision: i2.moduleConfig.precision ? i2.moduleConfig.precision : 0, "controls-position": i2.moduleConfig.position ? i2.moduleConfig.position : "", onChange: o2[3] || (o2[3] = (e3) => u.setValue()) }, null, 8, ["modelValue", "min", "max", "step", "precision", "controls-position"])]);
|
|
20
|
-
}]]);
|
|
21
|
-
module.exports = i;
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const e = require("./search-methods.cjs"), t = require("./search-form-item.vue.cjs"), n = require("./search-button.vue.cjs"), s = require("vue"), o = require("../../_virtual/_plugin-vue_export-helper.cjs"), r = { name: "SearchFormOpen", components: { SearchFormItem: t, SearchButton: n }, props: { searchableColumns: { type: Array, default: null }, searchForm: { type: Object, default: null }, code: { type: String, default: null }, isSql: { type: Boolean, default: false }, tableName: { type: String, default: null }, isJoinTable: { type: Boolean, default: false }, spanNum: { type: Number, default: 8 }, fieldNum: { type: Number, default: null }, rowNum: { type: Number, default: null }, isOpen: { type: Boolean, default: false } }, data() {
|
|
3
|
-
return { rowWidth: void 0, maxLength: void 0, minLength: void 0, myOpen: this.isOpen ?? false };
|
|
4
|
-
}, computed: { isShowOpen() {
|
|
5
|
-
return this.showColumn < this.searchableColumns.length + 1;
|
|
6
|
-
}, isSearchButtonAuto() {
|
|
7
|
-
return this.showColumn - this.searchableColumns.length > 1;
|
|
8
|
-
}, filterSearchableColumns() {
|
|
9
|
-
return this.searchableColumns.filter((e2, t2) => !(!this.myOpen && this.isShowOpen && t2 > this.showColumn - 2));
|
|
10
|
-
}, labelWidth() {
|
|
11
|
-
try {
|
|
12
|
-
return this.maxLength && this.minLength ? this.maxLength >= 10 ? 82 : this.maxLength === this.minLength && this.minLength <= 4 ? 45 : 72 : "";
|
|
13
|
-
} catch (e2) {
|
|
14
|
-
return "";
|
|
15
|
-
}
|
|
16
|
-
}, span() {
|
|
17
|
-
return 24 / this.showColumn;
|
|
18
|
-
}, showColumn() {
|
|
19
|
-
if (this.rowWidth) {
|
|
20
|
-
if (this.rowWidth >= 1500)
|
|
21
|
-
return 4;
|
|
22
|
-
if (this.rowWidth <= 768)
|
|
23
|
-
return 2;
|
|
24
|
-
}
|
|
25
|
-
return 3;
|
|
26
|
-
} }, watch: { filterSearchableColumns() {
|
|
27
|
-
const e2 = this.filterSearchableColumns.map(({ label: e3, searchLabel: t2 }) => {
|
|
28
|
-
var _a;
|
|
29
|
-
return (((_a = t2 ?? e3) == null ? void 0 : _a.replace(/[\u4e00-\u9fa5]/g, "**")) ?? "").length;
|
|
30
|
-
});
|
|
31
|
-
this.maxLength = Math.max(...e2), this.minLength = Math.max(...e2);
|
|
32
|
-
}, myOpen() {
|
|
33
|
-
} }, methods: { ...e, onResize(e2) {
|
|
34
|
-
this.rowWidth = e2.contentRect.width;
|
|
35
|
-
}, openFold(e2) {
|
|
36
|
-
this.openFoldFunc(e2), this.$emit("open-fold", e2);
|
|
37
|
-
}, openFoldFunc(e2) {
|
|
38
|
-
this.myOpen = e2, this.$refs && this.$refs.searchBtnOpen && this.$refs.searchBtnOpen.openFoldFunc(e2);
|
|
39
|
-
}, searchComplete() {
|
|
40
|
-
this.$refs.searchBtnOpen && (Array.isArray(this.$refs.searchBtnOpen) ? this.$refs.searchBtnOpen.length > 0 && this.$refs.searchBtnOpen[0].searchComplete() : this.$refs.searchBtnOpen.searchComplete());
|
|
41
|
-
} } }, l = { class: "grid-search-row" };
|
|
42
|
-
const i = o(r, [["render", function(e2, t2, n2, o2, r2, i2) {
|
|
43
|
-
const a = s.resolveComponent("search-form-item"), h = s.resolveComponent("el-col"), u = s.resolveComponent("search-button"), c = s.resolveComponent("el-row"), m = s.resolveDirective("resize");
|
|
44
|
-
return s.withDirectives((s.openBlock(), s.createElementBlock("div", l, [s.createVNode(c, null, { default: s.withCtx(() => [(s.openBlock(true), s.createElementBlock(s.Fragment, null, s.renderList(i2.filterSearchableColumns, (e3, t3) => (s.openBlock(), s.createBlock(h, { key: t3, span: i2.span }, { default: s.withCtx(() => [s.createVNode(a, { "label-width": i2.labelWidth, "search-form": n2.searchForm, column: e3, code: n2.code, "is-sql": n2.isSql, "table-name": n2.tableName, "is-join-table": n2.isJoinTable }, null, 8, ["label-width", "search-form", "column", "code", "is-sql", "table-name", "is-join-table"])]), _: 2 }, 1032, ["span"]))), 128)), s.createVNode(h, { span: i2.span, class: s.normalizeClass(["search-btns-view", { "no-show-open": !i2.isShowOpen, "no-search-button-auto": i2.isSearchButtonAuto }]) }, { default: s.withCtx(() => [s.createVNode(u, { ref: "searchBtnOpen", "is-open": r2.myOpen, "is-show-open": i2.isShowOpen, onSubmitForm: t2[0] || (t2[0] = (t3) => e2.$emit("submit-form")), onResetForm: t2[1] || (t2[1] = (t3) => e2.$emit("reset-form")), onSaveCondition: t2[2] || (t2[2] = (t3) => e2.$emit("save-condition")), onOpenFold: i2.openFold }, null, 8, ["is-open", "is-show-open", "onOpenFold"])]), _: 1 }, 8, ["span", "class"])]), _: 1 })])), [[m, i2.onResize]]);
|
|
45
|
-
}]]);
|
|
46
|
-
module.exports = i;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const e = require("../../utils/gogocodeTransfer.cjs"), o = require("./search-methods.cjs"), r = require("./store.cjs"), t = require("./utils.cjs"), s = require("./search-form-open.vue.cjs"), a = require("../../src/utils/eventBus.cjs"), n = require("vue");
|
|
3
|
-
require("./search-form-ordinarySearch.vue2.cjs");
|
|
4
|
-
const l = require("../../_virtual/_plugin-vue_export-helper.cjs")({ name: "SearchForm", components: { SearchFormOpen: s }, props: { searchableColumns: { type: Array, default: null }, searchForm: { type: Object, default: null }, fieldNum: { type: Number, default: null }, rules: { type: Object, default: null }, labelWidth: { type: String, default: null }, query: { type: Object, default: null }, rowNum: { type: Number, default: null }, code: { type: String, default: null }, isSql: { type: Boolean, default: false }, spanNum: { type: Number, default: 8 }, loadCompleteQuery: { type: Boolean, default: false } }, data() {
|
|
5
|
-
const e2 = r.get(this.code);
|
|
6
|
-
let o2, t2;
|
|
7
|
-
e2 && e2.basicInfo && e2.basicInfo.tableName && (o2 = e2.basicInfo.tableName), e2 && e2.basicInfo && e2.basicInfo.hasJoinTable && (t2 = e2.basicInfo.hasJoinTable);
|
|
8
|
-
return { customComponentNames: /* @__PURE__ */ new Set(), dateOne: null, dataTwo: null, tableName: o2, isJoinTable: t2, isOpen: false };
|
|
9
|
-
}, computed: {}, watch: {}, created() {
|
|
10
|
-
}, methods: { ...o, validateForm() {
|
|
11
|
-
return new Promise((e2, o2) => {
|
|
12
|
-
this.$refs.searchForm.validate((o3) => {
|
|
13
|
-
e2(o3);
|
|
14
|
-
});
|
|
15
|
-
});
|
|
16
|
-
}, resetForm() {
|
|
17
|
-
if (e.$emit(a, "remoteMethod"), this.customComponentNames && this.customComponentNames.length > 0)
|
|
18
|
-
for (const e2 of this.customComponentNames)
|
|
19
|
-
this.$refs[e2][0].resetField();
|
|
20
|
-
this.$refs.searchForm.resetFields(), this.searchableColumns.forEach((e2) => {
|
|
21
|
-
e2.prop && e2.prop.indexOf(".") > 0 ? "dateSection" === e2.componentType ? t.addDynamicPropDateSection(this.searchForm, e2.prop) : t.addDynamicProp(this.searchForm, e2.prop) : ("dateSection" === e2.componentType ? this.searchForm[e2.prop] = [/* @__PURE__ */ new Date(), /* @__PURE__ */ new Date()] : "yearRange" === e2.componentType ? (this.searchForm[e2.prop][0] = "", this.searchForm[e2.prop][1] = "") : "inputNumber" === e2.componentType && this.searchForm[e2.prop] ? (this.searchForm[e2.prop][0] = 0, this.searchForm[e2.prop][1] = 0) : this.searchForm[e2.prop] = null, this.setDefaultQueryValue(e2, this.searchForm)), e2._emptyValue && (e2._emptyValue = void 0, e2._resetValue = true);
|
|
22
|
-
}), e.$emit(this, "submit-form");
|
|
23
|
-
}, openFold(o2) {
|
|
24
|
-
this.isOpen = o2, e.$emit(this, "open-fold", o2);
|
|
25
|
-
}, searchComplete() {
|
|
26
|
-
this.$refs.searchFormContent && this.$refs.searchFormContent.searchComplete();
|
|
27
|
-
}, openFoldFunc(e2) {
|
|
28
|
-
this.isOpen = e2, this.$refs.searchFormContent && this.$refs.searchFormContent.openFoldFunc(e2);
|
|
29
|
-
} }, emits: ["submit-form", "reset-form", "save-condition", "open-fold", "remoteMethod"] }, [["render", function(e2, o2, r2, t2, s2, a2) {
|
|
30
|
-
const l2 = n.resolveComponent("search-form-open"), m = n.resolveComponent("el-form");
|
|
31
|
-
return r2.searchableColumns.length > 0 ? (n.openBlock(), n.createBlock(m, { key: 0, ref: "searchForm", model: r2.searchForm, rules: r2.rules, class: "grid-search-form", "label-position": "right", size: "default" }, { default: n.withCtx(() => [n.createVNode(l2, { ref: "searchFormContent", code: r2.code, "field-num": r2.fieldNum, "is-join-table": s2.isJoinTable, "is-open": s2.isOpen, "is-sql": r2.isSql, "load-complete-query": r2.loadCompleteQuery, "row-num": r2.rowNum, "search-form": r2.searchForm, "searchable-columns": r2.searchableColumns, "span-num": r2.spanNum, "table-name": s2.tableName, onSubmitForm: o2[0] || (o2[0] = (o3) => e2.$emit("submit-form")), onResetForm: o2[1] || (o2[1] = (o3) => e2.$emit("reset-form")), onSaveCondition: o2[2] || (o2[2] = (o3) => e2.$emit("save-condition")), onOpenFold: a2.openFold }, null, 8, ["code", "field-num", "is-join-table", "is-open", "is-sql", "load-complete-query", "row-num", "search-form", "searchable-columns", "span-num", "table-name", "onOpenFold"])]), _: 1 }, 8, ["model", "rules"])) : n.createCommentVNode("", true);
|
|
32
|
-
}], ["__scopeId", "data-v-d462769a"]]);
|
|
33
|
-
module.exports = l;
|
|
@@ -1,194 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const e = require("../../utils/gogocodeTransfer.cjs"), o = require("./search-methods.cjs"), t = require("./search-form-ordinarySearch.vue.cjs"), r = require("./search-form-advancedQuery.vue.cjs"), s = require("./store.cjs"), i = require("./utils.cjs"), a = require("vue"), n = require("./search-condition-input.vue.cjs"), c = require("./search-condition-list.vue.cjs"), l = require("./search-form-mobile.vue.cjs"), h = require("../../src/utils/common-util.cjs"), m = require("./eventBus.cjs");
|
|
3
|
-
require("./search-form.vue2.cjs");
|
|
4
|
-
const d = require("../../_virtual/_plugin-vue_export-helper.cjs"), p = { name: "SearchForm", components: { SearchConditionInput: n, SearchConditionList: c, searchFormOrdinarySearch: t, searchFormAdvancedQuery: r, SearchFormMobile: l }, provide() {
|
|
5
|
-
return { getListToolbarFormData: () => ({ listToolbarFormData: this.listToolbarFormData }) };
|
|
6
|
-
}, props: { columns: { type: Array, default: null }, code: { type: String, default: null }, url: { type: String, default: null }, pagination: { type: Object, default: null }, query: { type: Object, default: null }, searchParam: { type: Object, default: null }, initSearchProps: { type: Array, default: null }, isSql: { type: Boolean, default: false }, searchFormInfo: { type: Object, default: () => ({}) }, loadCompleteQuery: { type: Boolean, default: false }, listToolbarFormData: { type: Object, default: null } }, data() {
|
|
7
|
-
const e2 = /* @__PURE__ */ new Set(), o2 = s.get(this.code), t2 = {};
|
|
8
|
-
let r2 = {};
|
|
9
|
-
null !== this.searchParam && (r2 = JSON.parse(JSON.stringify(this.searchParam)));
|
|
10
|
-
const a2 = this.getSearchableColumns(null, null, t2);
|
|
11
|
-
void 0 !== this.initSearchProps && null !== this.initSearchProps || (this.initSearchProps = []), a2.forEach((e3) => {
|
|
12
|
-
this.initSearchProps.indexOf(e3.prop) < 0 && (e3.prop && e3.prop.indexOf(".") > 0 ? "dateSection" === e3.componentType ? i.addDynamicPropDateSection(r2, e3.prop) : i.addDynamicProp(r2, e3.prop) : ("dateSection" === e3.componentType ? r2[e3.prop] = [/* @__PURE__ */ new Date(), /* @__PURE__ */ new Date()] : "yearRange" === e3.componentType && (r2[e3.prop] = ["", ""]), this.setDefaultQueryValue(e3, r2)));
|
|
13
|
-
});
|
|
14
|
-
const n2 = h.isMobileBrowser();
|
|
15
|
-
let c2 = false;
|
|
16
|
-
n2 && a2 && a2.length > 0 && (c2 = true);
|
|
17
|
-
const l2 = this.getSpanNum(a2), m2 = this.getFieldNumPerRow(a2), d2 = Math.ceil(a2.length / m2), p2 = this.query.advancedQuery, u2 = this.query.normalQuery;
|
|
18
|
-
return { searchForm: r2, rules: {}, searchParams: [], labelWidth: o2.options.search && o2.options.search.labelWidth ? o2.options.search.labelWidth : "80px", customComponentNames: e2, componentName: "", spanNum: l2, fieldNum: m2, rowNum: d2, loading: false, isShowSearchCondition: false, searchConditions: [], propMap: t2, advancedQuery: p2, normalQuery: u2, searchFormList: [], searchType: null, isMobile: n2, isShowMobileForm: true, canShowMobileSearch: c2 };
|
|
19
|
-
}, computed: { searchableColumns() {
|
|
20
|
-
return this.getSearchableColumns();
|
|
21
|
-
}, advancedQueryColumns() {
|
|
22
|
-
return this.getAdvancedQueryColumns();
|
|
23
|
-
}, mobileDrawerSize() {
|
|
24
|
-
const e2 = window.innerWidth;
|
|
25
|
-
return e2 <= 400 ? "85%" : e2 > 400 && e2 <= 768 ? "70%" : "60%";
|
|
26
|
-
} }, watch: { searchForm: { deep: true, handler(e2) {
|
|
27
|
-
this.searchFormInfo.data = e2;
|
|
28
|
-
} } }, created() {
|
|
29
|
-
this.listSearchConditions(), this.normalQuery ? this.searchType = "normal" : this.advancedQuery && (this.searchType = "advanced"), this.canShowMobileSearch, this.canShowMobileSearch && this.$emit("can-show-mobile-search");
|
|
30
|
-
}, methods: { ...o, getFieldNumPerRow(e2) {
|
|
31
|
-
let o2;
|
|
32
|
-
if (e2 && 1 === e2.length)
|
|
33
|
-
o2 = 2;
|
|
34
|
-
else {
|
|
35
|
-
const e3 = s.get(this.code);
|
|
36
|
-
o2 = e3.options.search && e3.options.search.fieldNum ? e3.options.search.fieldNum : 3;
|
|
37
|
-
}
|
|
38
|
-
return o2;
|
|
39
|
-
}, getSpanNum(e2) {
|
|
40
|
-
const o2 = this.getFieldNumPerRow(e2);
|
|
41
|
-
return 1 === o2 ? 22 : 2 === o2 ? 12 : 3 === o2 ? 8 : 4 === o2 ? 6 : 4;
|
|
42
|
-
}, setValueToModelProp(e2, o2, t2, r2) {
|
|
43
|
-
if (e2 && e2.indexOf(".") > 0) {
|
|
44
|
-
const t3 = this.getParentObject(e2);
|
|
45
|
-
null != r2 && void 0 !== r2 ? t3[e2.substring(e2.lastIndexOf(".") + 1)][r2] = o2 : t3[e2.substring(e2.lastIndexOf(".") + 1)] = o2;
|
|
46
|
-
} else
|
|
47
|
-
null != r2 && void 0 !== r2 ? this.searchForm[e2][r2] = o2 : this.searchForm[e2] = o2;
|
|
48
|
-
}, getAdvancedQueryColumns(e2, o2, t2) {
|
|
49
|
-
this.customComponentNames || (this.customComponentNames = /* @__PURE__ */ new Set()), o2 || (o2 = []), e2 || (e2 = this.columns);
|
|
50
|
-
for (let r2 = 0; r2 < e2.length; r2++) {
|
|
51
|
-
const s2 = e2[r2];
|
|
52
|
-
if (t2 && (t2[s2.prop] = s2), "$index" !== s2.prop && "$selection" !== s2.prop && !s2.dynamic) {
|
|
53
|
-
if (s2.groupHeader)
|
|
54
|
-
this.getSearchableColumns(s2.children, o2, t2);
|
|
55
|
-
else if ("advanced" === s2.queryType && !s2.custom && "" !== s2.prop) {
|
|
56
|
-
if (void 0 !== s2.componentType && "" !== s2.componentType || (s2.componentType = "input"), s2.querySetting && "" !== s2.querySetting) {
|
|
57
|
-
const e3 = JSON.parse(s2.querySetting);
|
|
58
|
-
e3.width && (s2.searchControlWidth = "width:" + e3.width + "px"), e3.labelWidth && (s2.searchLabelWidth = e3.labelWidth + "px"), e3.label && (s2.searchLabel = e3.label);
|
|
59
|
-
}
|
|
60
|
-
s2.componentType && s2.componentType.indexOf("custom:") >= 0 ? (s2.componentName = s2.componentType.substring(s2.componentType.indexOf(":") + 1), this.customComponentNames.add(s2.componentName)) : s2.componentName = "", o2.push(s2);
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
return o2;
|
|
65
|
-
}, getSearchableColumns(e2, o2, t2) {
|
|
66
|
-
this.customComponentNames || (this.customComponentNames = /* @__PURE__ */ new Set()), o2 || (o2 = []), e2 || (e2 = this.columns);
|
|
67
|
-
for (let r2 = 0; r2 < e2.length; r2++) {
|
|
68
|
-
const s2 = e2[r2];
|
|
69
|
-
if (t2 && (t2[s2.prop] = s2), "$index" !== s2.prop && "$selection" !== s2.prop && !s2.dynamic) {
|
|
70
|
-
if (s2.groupHeader)
|
|
71
|
-
this.getSearchableColumns(s2.children, o2, t2);
|
|
72
|
-
else if ("normal" === s2.queryType && !s2.custom && "" !== s2.prop) {
|
|
73
|
-
if (void 0 !== s2.componentType && "" !== s2.componentType || (s2.componentType = "input"), s2.querySetting && "" !== s2.querySetting) {
|
|
74
|
-
const e3 = JSON.parse(s2.querySetting);
|
|
75
|
-
e3.width && (s2.searchControlWidth = "width:" + e3.width + "px"), e3.labelWidth && (s2.searchLabelWidth = e3.labelWidth + "px"), e3.label && (s2.searchLabel = e3.label);
|
|
76
|
-
}
|
|
77
|
-
s2.componentType && s2.componentType.indexOf("custom:") >= 0 ? (s2.componentName = s2.componentType.substring(s2.componentType.indexOf(":") + 1), this.customComponentNames.add(s2.componentName)) : s2.componentName = "", o2.push(s2);
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
return o2.sort((e3, o3) => {
|
|
82
|
-
const t3 = e3.searchDisplayOrder, r2 = o3.searchDisplayOrder;
|
|
83
|
-
return null == t3 || "default" === t3 ? 1 : null == r2 || "default" === r2 ? -1 : t3 - r2;
|
|
84
|
-
}), o2;
|
|
85
|
-
}, customComponent(e2) {
|
|
86
|
-
const o2 = s.get(this.code);
|
|
87
|
-
if (e2.componentName && "" !== e2.componentName)
|
|
88
|
-
return this.customComponentNames.add(e2.componentName), true;
|
|
89
|
-
if ((!e2.componentName || "" === e2.componentName) && o2.options && o2.options.search && o2.options.search.customSearchElements) {
|
|
90
|
-
const t2 = o2.options.search.customSearchElements[e2.prop];
|
|
91
|
-
if (t2) {
|
|
92
|
-
e2.componentName = "custom-" + e2.prop;
|
|
93
|
-
const o3 = t2.call(this, e2);
|
|
94
|
-
if (o3)
|
|
95
|
-
return this.customComponentNames.add(e2.componentName), window.$vueApp.component(e2.componentName, o3), true;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
return false;
|
|
99
|
-
}, submitForm() {
|
|
100
|
-
this.isMobile ? this.$refs.searchFormMobile.validateForm().then((o2) => {
|
|
101
|
-
if (!o2)
|
|
102
|
-
return false;
|
|
103
|
-
this.isShowMobileForm = false, this.searchParams = this.packageSearchParam(), e.$emit(this, "search", this.searchParams);
|
|
104
|
-
}) : "normal" === this.searchType ? this.$refs.searchFormOrdinarySearch.validateForm().then((o2) => {
|
|
105
|
-
if (!o2)
|
|
106
|
-
return false;
|
|
107
|
-
this.searchParams = this.packageSearchParam(), e.$emit(this, "search", this.searchParams);
|
|
108
|
-
}) : "advanced" === this.searchType && this.$refs.searchFormAdvancedQuery.validateForm().then((o2) => {
|
|
109
|
-
if (!o2)
|
|
110
|
-
return false;
|
|
111
|
-
this.loading = true, this.searchParams = this.packageSearchParam(), e.$emit(this, "search", this.searchParams);
|
|
112
|
-
});
|
|
113
|
-
}, resetForm() {
|
|
114
|
-
this.$refs.searchConditionList && (this.$refs.searchConditionList.editConditionId = null), this.isMobile ? this.$refs.searchFormMobile.resetForm() : "normal" === this.searchType ? this.$refs.searchFormOrdinarySearch.resetForm() : "advanced" === this.searchType && (this.$refs.searchFormAdvancedQuery.resetForm(), e.$emit(this, "reset")), m.$emit("reset");
|
|
115
|
-
}, setNumberValue(e2, o2, t2) {
|
|
116
|
-
let r2 = this.getFormItemValue(this.searchableColumns[this.fieldNum * (o2 - 1) + (t2 - 1)].prop);
|
|
117
|
-
r2 = e2, this.setValueToModelProp(this.searchableColumns[this.fieldNum * (o2 - 1) + (t2 - 1)].prop, r2);
|
|
118
|
-
}, listSearchConditions() {
|
|
119
|
-
return new Promise((e2, o2) => {
|
|
120
|
-
this.listSearchCondition(this.code).then((o3) => {
|
|
121
|
-
this.searchConditions = o3, e2(o3);
|
|
122
|
-
}).catch((e3) => {
|
|
123
|
-
o2(e3);
|
|
124
|
-
});
|
|
125
|
-
});
|
|
126
|
-
}, saveCondition() {
|
|
127
|
-
const e2 = this.packageSearchParam();
|
|
128
|
-
e2 && 0 !== e2.length ? this.isShowSearchCondition = true : this.$message({ type: "warning", message: this.$t("imatrixUIMessage.pleaseInputSearchCondition"), showClose: true });
|
|
129
|
-
}, saveConditionValue(e2) {
|
|
130
|
-
if (e2) {
|
|
131
|
-
let o2;
|
|
132
|
-
o2 = "normal" === this.searchType || "" === this.searchType || null === this.searchType || void 0 === this.searchType ? this.packageSearchParam() : this.searchFormList;
|
|
133
|
-
const t2 = { listCode: this.code, queryType: "normal" === this.searchType || "" === this.searchType || null === this.searchType || void 0 === this.searchType ? "FIXED" : "CUSTOM", name: e2, queryCondition: JSON.stringify(o2) };
|
|
134
|
-
this.saveSearchCondition(t2).then((e3) => {
|
|
135
|
-
this.$message({ type: "success", message: this.$t("imatrixUIMessage.saveSuccessfully"), showClose: true }), this.isShowSearchCondition = false, this.listSearchConditions().then(() => {
|
|
136
|
-
this.$refs.searchConditionList && (this.$refs.searchConditionList.editConditionId = e3.id + ""), this.selectCondition(e3.id);
|
|
137
|
-
});
|
|
138
|
-
});
|
|
139
|
-
}
|
|
140
|
-
this.isShowSearchCondition = false;
|
|
141
|
-
}, removeCondition(e2) {
|
|
142
|
-
e2 && this.$confirm(this.$t("imatrixUIMessage.whetherToConfirmDeletion"), this.$t("imatrixUIMessage.tips"), { confirmButtonText: this.$t("imatrixUIPublicModel.sure"), cancelButtonText: this.$t("imatrixUIPublicModel.cancel"), type: "warning" }).then(() => {
|
|
143
|
-
this.removeSearchCondition(e2).then(() => {
|
|
144
|
-
this.$message({ type: "success", message: this.$t("superGrid.deleteSuccessful"), showClose: true }), this.listSearchConditions();
|
|
145
|
-
});
|
|
146
|
-
});
|
|
147
|
-
}, selectCondition(o2) {
|
|
148
|
-
o2 && this.getSearchCondition(o2).then((o3) => {
|
|
149
|
-
if (o3) {
|
|
150
|
-
const t2 = o3.queryCondition;
|
|
151
|
-
if (t2)
|
|
152
|
-
if ("normal" === this.searchType || "" === this.searchType || null === this.searchType || void 0 === this.searchType) {
|
|
153
|
-
const o4 = JSON.parse(t2), r2 = this.packageSearchForm(o4);
|
|
154
|
-
r2 && (this.searchForm = r2), this.loading = true, e.$emit(this, "search", o4);
|
|
155
|
-
} else
|
|
156
|
-
this.searchFormList = JSON.parse(t2), this.loading = true, e.$emit(this, "search", this.packageSearchParam());
|
|
157
|
-
}
|
|
158
|
-
});
|
|
159
|
-
}, packageSearchForm(e2) {
|
|
160
|
-
if (e2 && e2.length > 0) {
|
|
161
|
-
const o2 = {}, t2 = [];
|
|
162
|
-
return e2.forEach((e3) => {
|
|
163
|
-
let r2 = e3.propName;
|
|
164
|
-
const s2 = e3.columnProp, a2 = e3.dataType;
|
|
165
|
-
a2 && "BOOLEAN" === a2 && s2 && (r2 = s2), -1 === t2.indexOf(r2) && t2.push(r2);
|
|
166
|
-
const n2 = e3.propValue;
|
|
167
|
-
if (r2 && r2.indexOf(".") > 0)
|
|
168
|
-
i.addDynamicProp(o2, r2, n2);
|
|
169
|
-
else {
|
|
170
|
-
let t3 = false;
|
|
171
|
-
!a2 || "DATE" !== a2 && "TIME" !== a2 || e3.startValue && e3.endValue && (t3 = true), t3 ? o2[r2] = [new Date(e3.startValue), new Date(e3.endValue)] : o2[r2] ? o2[r2] instanceof Array ? o2[r2].push(n2) : o2[r2] = [o2[r2], n2] : o2[r2] = n2;
|
|
172
|
-
}
|
|
173
|
-
}), this.searchableColumns.forEach((e3) => {
|
|
174
|
-
t2 && (t2.indexOf(e3.prop) < 0 ? e3.prop && e3.prop.indexOf(".") > 0 ? "dateSection" === e3.componentType ? i.addDynamicPropDateSection(o2, e3.prop) : i.addDynamicProp(o2, e3.prop) : "dateSection" === e3.componentType ? o2[e3.prop] = [/* @__PURE__ */ new Date(), /* @__PURE__ */ new Date()] : o2[e3.prop] = null : "multiselect" === e3.componentType && o2[e3.prop] && (o2[e3.prop] instanceof Array || (o2[e3.prop] = [o2[e3.prop]])));
|
|
175
|
-
}), o2;
|
|
176
|
-
}
|
|
177
|
-
}, resetSearchFormList() {
|
|
178
|
-
this.searchFormList = null;
|
|
179
|
-
}, openFold(o2) {
|
|
180
|
-
e.$emit(this, "open-fold", o2);
|
|
181
|
-
}, searchComplete() {
|
|
182
|
-
this.isMobile && this.$refs.searchFormMobile ? this.$refs.searchFormMobile.searchComplete() : this.$refs.searchFormOrdinarySearch && this.$refs.searchFormOrdinarySearch.searchComplete();
|
|
183
|
-
}, closeMobileSearch() {
|
|
184
|
-
this.isShowMobileForm = false, e.$emit(this, "close-mobile-search");
|
|
185
|
-
}, showMobileSearch() {
|
|
186
|
-
this.isShowMobileForm = true;
|
|
187
|
-
}, openFoldFunc(e2) {
|
|
188
|
-
this.$refs.searchFormOrdinarySearch && this.$refs.searchFormOrdinarySearch.openFoldFunc(e2);
|
|
189
|
-
} }, emits: ["search", "open-fold", "reset", "show-mobile-search", "close-mobile-search"] }, u = { class: "amb-agilebuilder-search-form-view" }, y = { class: "search-condition-mobile" }, C = { key: 3, style: { "padding-top": "10px", "padding-bottom": "10px", "text-align": "center" } }, f = { key: 0, style: { "margin-left": "10px" } };
|
|
190
|
-
const S = d(p, [["render", function(e2, o2, t2, r2, s2, i2) {
|
|
191
|
-
const n2 = a.resolveComponent("search-condition-list"), c2 = a.resolveComponent("search-form-mobile"), l2 = a.resolveComponent("el-drawer"), h2 = a.resolveComponent("search-form-ordinary-search"), m2 = a.resolveComponent("search-form-advanced-query"), d2 = a.resolveComponent("el-button"), p2 = a.resolveComponent("search-condition-input");
|
|
192
|
-
return a.openBlock(), a.createElementBlock("div", u, [s2.isMobile ? (a.openBlock(), a.createBlock(l2, { key: 0, modelValue: s2.isShowMobileForm, "onUpdate:modelValue": o2[4] || (o2[4] = (e3) => s2.isShowMobileForm = e3), title: e2.$t("superGrid.searchCondition"), "close-on-click-modal": false, "close-on-press-escape": false, "show-close": false, direction: "rtl", size: i2.mobileDrawerSize, onClose: o2[5] || (o2[5] = (e3) => i2.closeMobileSearch()) }, { default: a.withCtx(() => [a.createElementVNode("div", y, [s2.searchConditions.length > 0 ? (a.openBlock(), a.createBlock(n2, { key: 0, ref: "searchConditionList", "search-conditions": s2.searchConditions, "search-type": s2.searchType, onRemoveCondition: i2.removeCondition, onSelectCondition: i2.selectCondition }, null, 8, ["search-conditions", "search-type", "onRemoveCondition", "onSelectCondition"])) : a.createCommentVNode("", true)]), s2.isMobile && "normal" === s2.searchType ? (a.openBlock(), a.createBlock(c2, { key: 0, ref: "searchFormMobile", code: t2.code, "is-sql": t2.isSql, "load-complete-query": t2.loadCompleteQuery, query: t2.query, rules: s2.rules, "search-form": s2.searchForm, "searchable-columns": i2.searchableColumns, onClose: o2[0] || (o2[0] = (e3) => s2.isShowMobileForm = false), onSubmitForm: o2[1] || (o2[1] = (e3) => i2.submitForm("searchForm")), onResetForm: o2[2] || (o2[2] = (e3) => i2.resetForm("searchForm")), onSaveCondition: o2[3] || (o2[3] = (e3) => i2.saveCondition()) }, null, 8, ["code", "is-sql", "load-complete-query", "query", "rules", "search-form", "searchable-columns"])) : a.createCommentVNode("", true)]), _: 1 }, 8, ["modelValue", "title", "size"])) : (a.openBlock(), a.createElementBlock(a.Fragment, { key: 1 }, [s2.searchConditions.length > 0 ? (a.openBlock(), a.createBlock(n2, { key: 0, ref: "searchConditionList", "search-conditions": s2.searchConditions, "search-type": s2.searchType, onRemoveCondition: i2.removeCondition, onSelectCondition: i2.selectCondition }, null, 8, ["search-conditions", "search-type", "onRemoveCondition", "onSelectCondition"])) : a.createCommentVNode("", true), "normal" === s2.searchType ? (a.openBlock(), a.createBlock(h2, { key: 1, ref: "searchFormOrdinarySearch", code: t2.code, "field-num": s2.fieldNum, "is-sql": t2.isSql, "label-width": s2.labelWidth, "load-complete-query": t2.loadCompleteQuery, query: t2.query, "row-num": s2.rowNum, rules: s2.rules, "search-form": s2.searchForm, "searchable-columns": i2.searchableColumns, "span-num": s2.spanNum, onSubmitForm: o2[6] || (o2[6] = (e3) => i2.submitForm("searchForm")), onResetForm: o2[7] || (o2[7] = (e3) => i2.resetForm("searchForm")), onSaveCondition: o2[8] || (o2[8] = (e3) => i2.saveCondition()), onOpenFold: i2.openFold }, null, 8, ["code", "field-num", "is-sql", "label-width", "load-complete-query", "query", "row-num", "rules", "search-form", "searchable-columns", "span-num", "onOpenFold"])) : a.createCommentVNode("", true), "advanced" === s2.searchType ? (a.openBlock(), a.createBlock(m2, { key: 2, ref: "searchFormAdvancedQuery", code: t2.code, "is-sql": t2.isSql, "prop-map": s2.propMap, "search-form-list": s2.searchFormList, "searchable-columns": i2.advancedQueryColumns, style: { "padding-bottom": "10px" }, onResetForm: i2.resetSearchFormList }, null, 8, ["code", "is-sql", "prop-map", "search-form-list", "searchable-columns", "onResetForm"])) : a.createCommentVNode("", true), "advanced" === s2.searchType ? (a.openBlock(), a.createElementBlock("div", C, [a.createVNode(d2, { loading: s2.loading, size: "default", type: "primary", onClick: o2[9] || (o2[9] = (e3) => i2.submitForm("searchForm")) }, { default: a.withCtx(() => [a.createTextVNode(a.toDisplayString(e2.$t("imatrixUIPublicModel.sure")), 1)]), _: 1 }, 8, ["loading"]), a.createVNode(d2, { loading: s2.loading, size: "default", onClick: o2[10] || (o2[10] = (e3) => i2.resetForm("searchForm")) }, { default: a.withCtx(() => [a.createTextVNode(a.toDisplayString(e2.$t("imatrixUIPublicModel.reset")), 1)]), _: 1 }, 8, ["loading"]), a.createVNode(d2, { size: "default", onClick: i2.saveCondition }, { default: a.withCtx(() => [a.createTextVNode(a.toDisplayString(e2.$t("superGrid.saveCondition")), 1)]), _: 1 }, 8, ["onClick"]), null !== s2.advancedQuery && void 0 !== s2.advancedQuery && true === s2.advancedQuery && null !== s2.normalQuery && void 0 !== s2.normalQuery && true === s2.normalQuery ? (a.openBlock(), a.createElementBlock("span", f, ["advanced" === s2.searchType ? (a.openBlock(), a.createBlock(d2, { key: 0, size: "default", onClick: o2[11] || (o2[11] = (e3) => s2.searchType = "normal") }, { default: a.withCtx(() => [a.createTextVNode(a.toDisplayString(e2.$t("imatrixUIPublicModel.switchToNormalQuery")), 1)]), _: 1 })) : a.createCommentVNode("", true), "normal" === s2.searchType ? (a.openBlock(), a.createBlock(d2, { key: 1, size: "default", onClick: o2[12] || (o2[12] = (e3) => s2.searchType = "advanced") }, { default: a.withCtx(() => [a.createTextVNode(a.toDisplayString(e2.$t("imatrixUIPublicModel.switchToAdvancedQuery")), 1)]), _: 1 })) : a.createCommentVNode("", true)])) : a.createCommentVNode("", true)])) : a.createCommentVNode("", true)], 64)), s2.isShowSearchCondition ? (a.openBlock(), a.createBlock(p2, { key: 2, onClose: i2.saveConditionValue }, null, 8, ["onClose"])) : a.createCommentVNode("", true)]);
|
|
193
|
-
}], ["__scopeId", "data-v-8f3059a4"]]);
|
|
194
|
-
module.exports = S;
|