agilebuilder-ui 1.1.65-tmp30 → 1.1.65-tmp32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/chat-embed/src/index.vue.mjs +1 -1
- package/es/chat-embed/src/index.vue2.mjs +104 -100
- package/es/chat-embed/src/voice/js/crypto-js.mjs +46 -50
- package/es/chat-embed/src/voice/voice.vue.mjs +8 -11
- package/es/date-picker-range/index.vue.mjs +1 -1
- package/es/date-picker-range/index.vue2.mjs +41 -33
- package/es/department-tree-inline/src/department-tree-service.mjs +0 -1
- package/es/department-user-tree-inline/src/department-user-multiple-tree-inline.vue.mjs +14 -11
- package/es/department-user-tree-inline/src/department-user-single-tree-inline.vue.mjs +6 -6
- package/es/department-user-tree-inline/src/department-user-tree-multi-service.mjs +19 -20
- package/es/department-user-tree-inline/src/department-user-tree-single-service.mjs +0 -1
- package/es/department-user-tree-inline/src/search-result.vue.mjs +4 -4
- package/es/department-user-tree-mobile/src/department-user-tree-inline-app.vue.mjs +2 -2
- package/es/dynamic-source-select/src/dynamic-source-select.vue.mjs +86 -85
- package/es/fs-preview/src/fs-preview.vue.mjs +73 -59
- package/es/fs-upload/src/fs-upload-multi.vue.mjs +3 -3
- package/es/fs-upload-list/src/fs-upload-list.vue.mjs +5 -6
- package/es/fs-upload-new/src/file-upload-mobile/file-upload-app.vue.mjs +15 -17
- package/es/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue.mjs +19 -19
- package/es/fs-upload-new/src/file-upload-mobile/file-upload-component.vue2.mjs +2 -2
- package/es/fs-upload-new/src/fs-preview-new.vue.mjs +1 -1
- package/es/fs-upload-new/src/fs-preview-new.vue2.mjs +50 -50
- package/es/i18n-setting/index.mjs +7 -0
- package/es/i18n-setting/src/i18n-setting-dialog.vue.mjs +23 -0
- package/es/i18n-setting/src/i18n-setting.mjs +14 -0
- package/es/i18n-setting/src/index.vue.mjs +47 -0
- package/es/index.mjs +46 -41
- package/es/multipart-upload/src/multipart-upload-form.vue.mjs +5 -5
- package/es/multipart-upload/src/multipart-upload-list.vue.mjs +6 -6
- package/es/organization-input/src/organization-input.vue.mjs +58 -58
- package/es/remove-department/src/remove-dept-service.mjs +4 -5
- package/es/remove-user/src/remove-user-service.mjs +0 -1
- package/es/remove-workgroup/src/remove-workgroup-service.mjs +0 -1
- package/es/rich-editor/index.vue.mjs +43 -84
- package/es/scan-code-input/src/scan-code-input.vue.mjs +1 -1
- package/es/scan-code-input-browser/src/scan-code-input.vue.mjs +20 -9
- package/es/src/api/sso-service.mjs +0 -1
- package/es/src/i18n/langs/cn.mjs +1 -1
- package/es/src/i18n/langs/en.mjs +1 -1
- package/es/src/permission.mjs +7 -10
- package/es/src/router/index.mjs +0 -1
- package/es/src/store/index.mjs +0 -1
- package/es/src/store/modules/app.mjs +0 -1
- package/es/src/utils/common-util.mjs +143 -143
- package/es/src/utils/i18n-util.mjs +32 -30
- package/es/src/utils/iconUtils.mjs +0 -1
- package/es/src/utils/jump-page-utils.mjs +1 -1
- package/es/src/utils/permission.mjs +25 -26
- package/es/src/utils/permissionAuth.mjs +0 -1
- package/es/src/utils/restful-interface-utils.mjs +5 -6
- package/es/src/utils/watermark.mjs +2 -7
- package/es/src/utils/workflow-util.mjs +6 -6
- package/es/src/views/dsc-component/Sidebar/Item.vue.mjs +1 -1
- package/es/src/views/dsc-component/Sidebar/Item.vue2.mjs +1 -1
- package/es/src/views/layout/components/Menubar/Item.vue.mjs +1 -1
- package/es/src/views/layout/components/Menubar/Item.vue2.mjs +8 -8
- package/es/src/views/layout/components/Menubar/SidebarItem.vue.mjs +11 -11
- package/es/style.css +1 -3103
- package/es/super-grid/src/apis.mjs +155 -151
- package/es/super-grid/src/components/mobile-table-card.mjs +14 -10
- package/es/super-grid/src/components/select-input.vue.mjs +66 -66
- package/es/super-grid/src/custom-formatter.mjs +5 -6
- package/es/super-grid/src/dynamic-input.vue.mjs +31 -39
- package/es/super-grid/src/formValidatorUtil.mjs +0 -1
- package/es/super-grid/src/normal-column-content.vue.mjs +1 -2
- package/es/super-grid/src/normal-column.vue.mjs +12 -10
- package/es/super-grid/src/row-operation.vue.mjs +3 -3
- package/es/super-grid/src/search-form-item.vue.mjs +18 -14
- package/es/super-grid/src/search-form-number.vue.mjs +7 -6
- package/es/super-grid/src/search-form-open.vue.mjs +3 -2
- package/es/super-grid/src/search-form-open.vue2.mjs +4 -0
- package/es/super-grid/src/search-form-ordinarySearch.vue.mjs +1 -1
- package/es/super-grid/src/super-grid.vue.mjs +254 -242
- package/es/super-grid/src/utils.mjs +6 -6
- package/es/super-grid/src/view-image-dialog.vue.mjs +5 -5
- package/es/super-nine-grid/src/super-nine-grid.vue.mjs +89 -83
- package/es/utils/utils.mjs +0 -1
- package/es/utils/value-set.mjs +0 -1
- package/es/workflow-history-list/src/workflow-history-list.vue.mjs +11 -10
- package/es/workgroup-tree-inline/src/workgroup-tree-service.mjs +0 -1
- package/es/workgroup-user-tree-inline/src/workgroup-tree-inline-service.mjs +0 -1
- package/es/workgroup-user-tree-mobile/src/workgroup-user-tree-inline-app.vue.mjs +2 -2
- package/package.json +6 -2
- package/src/styles/index.scss +4 -0
- package/src/styles/theme/dark-blue/select.scss +27 -1
- package/src/styles/theme/forest-green/select.scss +27 -1
- package/src/styles/theme/green/select.scss +27 -1
- package/src/styles/theme/ocean-blue/select.scss +27 -1
- package/src/styles/theme/tiffany-blue-mobile/select.scss +29 -2
- package/.eslintrc.cjs +0 -28
- package/.prettierrc.json +0 -12
- package/dist/favicon.svg +0 -29
- package/dist/index.full.min.js +0 -16659
- package/dist/style.css +0 -3104
- package/index.html +0 -19
- package/lib/IntervalSelection/index.cjs +0 -5
- package/lib/IntervalSelection/src/sectionDate.vue.cjs +0 -45
- package/lib/IntervalSelection/src/sectionDate.vue2.cjs +0 -2
- package/lib/_virtual/__vite-browser-external.cjs +0 -2
- package/lib/_virtual/_plugin-vue_export-helper.cjs +0 -7
- package/lib/breadcrumb/index.cjs +0 -5
- package/lib/breadcrumb/src/breadcrumb.vue.cjs +0 -37
- package/lib/breadcrumb/src/breadcrumb.vue2.cjs +0 -2
- package/lib/chat-embed/index.cjs +0 -5
- package/lib/chat-embed/src/chat-addition-data.vue.cjs +0 -5
- package/lib/chat-embed/src/chat-addition-data.vue2.cjs +0 -15
- package/lib/chat-embed/src/chat-addition-data.vue3.cjs +0 -2
- package/lib/chat-embed/src/chat-ai-answer-tip.vue.cjs +0 -5
- package/lib/chat-embed/src/chat-ai-answer-tip.vue2.cjs +0 -26
- package/lib/chat-embed/src/chat-ai-answer-tip.vue3.cjs +0 -2
- package/lib/chat-embed/src/chat-bubble-footer.vue.cjs +0 -5
- package/lib/chat-embed/src/chat-bubble-footer.vue2.cjs +0 -28
- package/lib/chat-embed/src/chat-bubble-footer.vue3.cjs +0 -2
- package/lib/chat-embed/src/chat-embed-message.cjs +0 -16
- package/lib/chat-embed/src/chat-sender.vue.cjs +0 -5
- package/lib/chat-embed/src/chat-sender.vue2.cjs +0 -145
- package/lib/chat-embed/src/chat-sender.vue3.cjs +0 -2
- package/lib/chat-embed/src/components/answer-auto-chart.vue.cjs +0 -5
- package/lib/chat-embed/src/components/answer-auto-chart.vue2.cjs +0 -50
- package/lib/chat-embed/src/components/answer-auto-chart.vue3.cjs +0 -2
- package/lib/chat-embed/src/components/answer-home-chart.vue.cjs +0 -5
- package/lib/chat-embed/src/components/answer-home-chart.vue2.cjs +0 -3
- package/lib/chat-embed/src/components/answer-home-chart.vue3.cjs +0 -2
- package/lib/chat-embed/src/components/answer-interaction-data.vue.cjs +0 -5
- package/lib/chat-embed/src/components/answer-interaction-data.vue2.cjs +0 -107
- package/lib/chat-embed/src/components/answer-interaction-data.vue3.cjs +0 -2
- package/lib/chat-embed/src/components/history-detail.vue.cjs +0 -5
- package/lib/chat-embed/src/components/history-detail.vue2.cjs +0 -50
- package/lib/chat-embed/src/components/history-detail.vue3.cjs +0 -2
- package/lib/chat-embed/src/header.vue.cjs +0 -5
- package/lib/chat-embed/src/header.vue2.cjs +0 -39
- package/lib/chat-embed/src/header.vue3.cjs +0 -2
- package/lib/chat-embed/src/index.vue.cjs +0 -5
- package/lib/chat-embed/src/index.vue2.cjs +0 -281
- package/lib/chat-embed/src/index.vue3.cjs +0 -2
- package/lib/chat-embed/src/recommendation-message.vue.cjs +0 -5
- package/lib/chat-embed/src/recommendation-message.vue2.cjs +0 -8
- package/lib/chat-embed/src/recommendation-message.vue3.cjs +0 -2
- package/lib/chat-embed/src/sidebar-item.vue.cjs +0 -5
- package/lib/chat-embed/src/sidebar-item.vue2.cjs +0 -109
- package/lib/chat-embed/src/sidebar-item.vue3.cjs +0 -2
- package/lib/chat-embed/src/type.cjs +0 -3
- package/lib/chat-embed/src/util/chat-embed-util.cjs +0 -51
- package/lib/chat-embed/src/util/history-message-util.cjs +0 -74
- package/lib/chat-embed/src/util/mcp-utils.cjs +0 -50
- package/lib/chat-embed/src/util/text-file-util.cjs +0 -8
- package/lib/chat-embed/src/voice/index.cjs +0 -5
- package/lib/chat-embed/src/voice/js/crypto-js.cjs +0 -1005
- package/lib/chat-embed/src/voice/js/processor/index.umd.cjs +0 -170
- package/lib/chat-embed/src/voice/js/timer.cjs +0 -8
- package/lib/chat-embed/src/voice/voice.vue.cjs +0 -96
- package/lib/date-picker-range/index.cjs +0 -5
- package/lib/date-picker-range/index.vue.cjs +0 -5
- package/lib/date-picker-range/index.vue2.cjs +0 -89
- package/lib/date-picker-range/index.vue3.cjs +0 -2
- package/lib/department-tree/index.cjs +0 -5
- package/lib/department-tree/src/department-tree.vue.cjs +0 -17
- package/lib/department-tree-inline/index.cjs +0 -5
- package/lib/department-tree-inline/src/department-multi-tree-inline.vue.cjs +0 -81
- package/lib/department-tree-inline/src/department-multi-tree-inline.vue2.cjs +0 -2
- package/lib/department-tree-inline/src/department-single-tree-inline.vue.cjs +0 -54
- package/lib/department-tree-inline/src/department-single-tree-inline.vue2.cjs +0 -2
- package/lib/department-tree-inline/src/department-tree-inline.vue.cjs +0 -12
- package/lib/department-tree-inline/src/department-tree-service.cjs +0 -106
- package/lib/department-tree-inline/src/search-result.vue.cjs +0 -36
- package/lib/department-tree-inline/src/search-result.vue2.cjs +0 -2
- package/lib/department-tree-mobile/index.cjs +0 -5
- package/lib/department-tree-mobile/src/department-tree-app.vue.cjs +0 -13
- package/lib/department-tree-mobile/src/department-tree-app.vue2.cjs +0 -2
- package/lib/department-tree-mobile/src/department-tree-app.vue3.cjs +0 -3
- package/lib/department-tree-mobile/src/department-tree-inline-app.vue.cjs +0 -110
- package/lib/department-tree-mobile/src/department-tree-inline-app.vue2.cjs +0 -3
- package/lib/department-tree-mobile/src/department-tree-service.cjs +0 -47
- package/lib/department-tree-mobile/src/dept-path.vue.cjs +0 -13
- package/lib/department-tree-mobile/src/dept-path.vue2.cjs +0 -3
- package/lib/department-tree-mobile/src/dept-result.vue.cjs +0 -14
- package/lib/department-tree-mobile/src/dept-result.vue2.cjs +0 -3
- package/lib/department-user-tree/index.cjs +0 -5
- package/lib/department-user-tree/src/department-user-multiple-tree.vue.cjs +0 -16
- package/lib/department-user-tree/src/department-user-multiple-tree.vue2.cjs +0 -2
- package/lib/department-user-tree/src/department-user-single-tree.vue.cjs +0 -14
- package/lib/department-user-tree/src/department-user-tree.vue.cjs +0 -21
- package/lib/department-user-tree-inline/index.cjs +0 -5
- package/lib/department-user-tree-inline/src/department-user-multiple-tree-inline.vue.cjs +0 -154
- package/lib/department-user-tree-inline/src/department-user-multiple-tree-inline.vue2.cjs +0 -2
- package/lib/department-user-tree-inline/src/department-user-single-tree-inline.vue.cjs +0 -57
- package/lib/department-user-tree-inline/src/department-user-single-tree-inline.vue2.cjs +0 -2
- package/lib/department-user-tree-inline/src/department-user-tree-inline.vue.cjs +0 -11
- package/lib/department-user-tree-inline/src/department-user-tree-multi-service.cjs +0 -78
- package/lib/department-user-tree-inline/src/department-user-tree-single-service.cjs +0 -51
- package/lib/department-user-tree-inline/src/group-user/group-input.vue.cjs +0 -34
- package/lib/department-user-tree-inline/src/group-user/group-list.vue.cjs +0 -22
- package/lib/department-user-tree-inline/src/group-user/group-user.vue.cjs +0 -10
- package/lib/department-user-tree-inline/src/group-user-multiple-tree.vue.cjs +0 -72
- package/lib/department-user-tree-inline/src/group-user-single-tree.vue.cjs +0 -28
- package/lib/department-user-tree-inline/src/group-user-tree-service.cjs +0 -33
- package/lib/department-user-tree-inline/src/search-result.vue.cjs +0 -38
- package/lib/department-user-tree-inline/src/search-result.vue2.cjs +0 -2
- package/lib/department-user-tree-mobile/index.cjs +0 -5
- package/lib/department-user-tree-mobile/src/department-user-tree-app.vue.cjs +0 -13
- package/lib/department-user-tree-mobile/src/department-user-tree-app.vue2.cjs +0 -2
- package/lib/department-user-tree-mobile/src/department-user-tree-app.vue3.cjs +0 -3
- package/lib/department-user-tree-mobile/src/department-user-tree-inline-app.vue.cjs +0 -124
- package/lib/department-user-tree-mobile/src/department-user-tree-inline-app.vue2.cjs +0 -3
- package/lib/department-user-tree-mobile/src/department-user-tree-service.cjs +0 -28
- package/lib/department-user-tree-mobile/src/dept-path.vue.cjs +0 -13
- package/lib/department-user-tree-mobile/src/dept-path.vue2.cjs +0 -3
- package/lib/department-user-tree-mobile/src/dept-result.vue.cjs +0 -14
- package/lib/department-user-tree-mobile/src/dept-result.vue2.cjs +0 -3
- package/lib/directives/prevent-reclick.cjs +0 -14
- package/lib/dynamic-source-select/index.cjs +0 -5
- package/lib/dynamic-source-select/src/dynamic-source-select-service.cjs +0 -30
- package/lib/dynamic-source-select/src/dynamic-source-select.vue.cjs +0 -266
- package/lib/dynamic-source-select/src/dynamic-source-select.vue2.cjs +0 -2
- package/lib/dynamic-source-select/src/dynamic-source-select.vue3.cjs +0 -2
- package/lib/dynamic-source-select/src/events.cjs +0 -28
- package/lib/empty-state/index.vue.cjs +0 -6
- package/lib/empty-state/index.vue2.cjs +0 -3
- package/lib/favicon.svg +0 -29
- package/lib/fs-preview/index.cjs +0 -5
- package/lib/fs-preview/src/fs-preview.vue.cjs +0 -119
- package/lib/fs-preview/src/fs-preview.vue2.cjs +0 -2
- package/lib/fs-upload/index.cjs +0 -5
- package/lib/fs-upload/src/fs-upload-multi.vue.cjs +0 -63
- package/lib/fs-upload/src/fs-upload-single.vue.cjs +0 -64
- package/lib/fs-upload/src/fs-upload.vue.cjs +0 -18
- package/lib/fs-upload/src/see-big-picture.vue.cjs +0 -9
- package/lib/fs-upload-list/index.cjs +0 -5
- package/lib/fs-upload-list/src/fs-upload-list.vue.cjs +0 -91
- package/lib/fs-upload-list/src/fs-upload-list.vue2.cjs +0 -2
- package/lib/fs-upload-new/index.cjs +0 -5
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-app.vue.cjs +0 -57
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-app.vue2.cjs +0 -3
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue.cjs +0 -170
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue2.cjs +0 -3
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-component.vue.cjs +0 -5
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-component.vue2.cjs +0 -32
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-component.vue3.cjs +0 -2
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-input.vue.cjs +0 -41
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-input.vue2.cjs +0 -3
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload.vue.cjs +0 -29
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload.vue2.cjs +0 -3
- package/lib/fs-upload-new/src/fs-button-upload.vue.cjs +0 -5
- package/lib/fs-upload-new/src/fs-button-upload.vue2.cjs +0 -55
- package/lib/fs-upload-new/src/fs-button-upload.vue3.cjs +0 -2
- package/lib/fs-upload-new/src/fs-drag-upload.vue.cjs +0 -5
- package/lib/fs-upload-new/src/fs-drag-upload.vue2.cjs +0 -55
- package/lib/fs-upload-new/src/fs-drag-upload.vue3.cjs +0 -2
- package/lib/fs-upload-new/src/fs-preview-new.vue.cjs +0 -5
- package/lib/fs-upload-new/src/fs-preview-new.vue2.cjs +0 -84
- package/lib/fs-upload-new/src/fs-preview-new.vue3.cjs +0 -2
- package/lib/fs-upload-new/src/fs-preview-new.vue4.cjs +0 -2
- package/lib/fs-upload-new/src/fs-upload-new.vue.cjs +0 -54
- package/lib/fs-upload-new/src/fs-upload-new.vue2.cjs +0 -3
- package/lib/hamburger/index.cjs +0 -5
- package/lib/hamburger/src/hamburger.vue.cjs +0 -11
- package/lib/hamburger/src/hamburger.vue2.cjs +0 -2
- package/lib/index.cjs +0 -41
- package/lib/json-view/json-view-dialog.vue.cjs +0 -16
- package/lib/json-view/json-view-dialog.vue2.cjs +0 -3
- package/lib/json-view/json-view.vue.cjs +0 -3
- package/lib/json-view/json-view.vue2.cjs +0 -32
- package/lib/multipart-upload/index.cjs +0 -5
- package/lib/multipart-upload/src/index.vue.cjs +0 -10
- package/lib/multipart-upload/src/multipart-upload-form.vue.cjs +0 -73
- package/lib/multipart-upload/src/multipart-upload-list.vue.cjs +0 -96
- package/lib/organization-input/index.cjs +0 -5
- package/lib/organization-input/src/organization-input.vue.cjs +0 -218
- package/lib/organization-input/src/organization-input.vue2.cjs +0 -2
- package/lib/plugins/export-data-new.cjs +0 -229
- package/lib/plugins/export-data.cjs +0 -173
- package/lib/plugins/index.cjs +0 -5
- package/lib/plugins/public-method.cjs +0 -13
- package/lib/remove-department/index.cjs +0 -5
- package/lib/remove-department/src/remove-department.vue.cjs +0 -27
- package/lib/remove-department/src/remove-dept-service.cjs +0 -12
- package/lib/remove-user/index.cjs +0 -5
- package/lib/remove-user/src/remove-user-service.cjs +0 -12
- package/lib/remove-user/src/remove-user.vue.cjs +0 -29
- package/lib/remove-workgroup/index.cjs +0 -5
- package/lib/remove-workgroup/src/remove-workgroup-service.cjs +0 -12
- package/lib/remove-workgroup/src/remove-workgroup.vue.cjs +0 -25
- package/lib/rich-editor/index.cjs +0 -5
- package/lib/rich-editor/index.vue.cjs +0 -67
- package/lib/rich-editor/tinymce/zh_CN.cjs +0 -2
- package/lib/rich-editor/viewer.vue.cjs +0 -24
- package/lib/row-form/index.cjs +0 -5
- package/lib/row-form/index.vue.cjs +0 -5
- package/lib/row-form/index.vue2.cjs +0 -56
- package/lib/row-form/index.vue3.cjs +0 -2
- package/lib/row-form/operation.vue.cjs +0 -28
- package/lib/row-form/operation.vue2.cjs +0 -3
- package/lib/scan-code-input/index.cjs +0 -5
- package/lib/scan-code-input/src/events.cjs +0 -13
- package/lib/scan-code-input/src/scan-code-input.vue.cjs +0 -26
- package/lib/scan-code-input-browser/index.cjs +0 -5
- package/lib/scan-code-input-browser/src/scan-code-input.vue.cjs +0 -34
- package/lib/secret-info/index.cjs +0 -5
- package/lib/secret-info/index.vue.cjs +0 -13
- package/lib/src/api/sso-service.cjs +0 -55
- package/lib/src/api/tab.cjs +0 -14
- package/lib/src/assets/401/401.gif.cjs +0 -2
- package/lib/src/assets/404/404-cloud.png.cjs +0 -2
- package/lib/src/assets/404/404.png.cjs +0 -2
- package/lib/src/assets/chat-embed/robot.gif.cjs +0 -2
- package/lib/src/assets/chat-embed/robot.svg.cjs +0 -2
- package/lib/src/assets/nonemessage.png.cjs +0 -2
- package/lib/src/components/Affix/index.vue.cjs +0 -5
- package/lib/src/components/Affix/index.vue2.cjs +0 -81
- package/lib/src/components/Affix/index.vue3.cjs +0 -2
- package/lib/src/components/Card/index.cjs +0 -46
- package/lib/src/components/Scrollbar/index.vue.cjs +0 -48
- package/lib/src/components/Scrollbar/index.vue2.cjs +0 -2
- package/lib/src/directives/permission/index.cjs +0 -5
- package/lib/src/directives/permission/permission.cjs +0 -9
- package/lib/src/i18n/i18n.cjs +0 -3
- package/lib/src/i18n/langs/cn.cjs +0 -2
- package/lib/src/i18n/langs/en.cjs +0 -2
- package/lib/src/mixins/resizeMixin.cjs +0 -20
- package/lib/src/permission.cjs +0 -76
- package/lib/src/router/index.cjs +0 -16
- package/lib/src/store/getters.cjs +0 -2
- package/lib/src/store/index.cjs +0 -16
- package/lib/src/store/modules/app.cjs +0 -40
- package/lib/src/store/modules/chat-ai-store.cjs +0 -33
- package/lib/src/store/modules/permission.cjs +0 -30
- package/lib/src/store/modules/system.cjs +0 -10
- package/lib/src/store/modules/tab-content.cjs +0 -18
- package/lib/src/store/modules/table.cjs +0 -17
- package/lib/src/store/modules/user.cjs +0 -133
- package/lib/src/utils/auth-api.cjs +0 -132
- package/lib/src/utils/auth.cjs +0 -86
- package/lib/src/utils/calculator/calculator-factory-wf.cjs +0 -166
- package/lib/src/utils/calculator/calculator-factory.cjs +0 -92
- package/lib/src/utils/calculator/calculator-util.cjs +0 -53
- package/lib/src/utils/chat-ai-util.cjs +0 -26
- package/lib/src/utils/common-util.cjs +0 -362
- package/lib/src/utils/eventBus.cjs +0 -3
- package/lib/src/utils/file-util.cjs +0 -22
- package/lib/src/utils/global-prop.cjs +0 -22
- package/lib/src/utils/guid.cjs +0 -7
- package/lib/src/utils/i18n-util.cjs +0 -62
- package/lib/src/utils/iconUtils.cjs +0 -19
- package/lib/src/utils/index.cjs +0 -32
- package/lib/src/utils/insert_css.cjs +0 -18
- package/lib/src/utils/json-util.cjs +0 -45
- package/lib/src/utils/jump-page-utils.cjs +0 -256
- package/lib/src/utils/local-storage.cjs +0 -18
- package/lib/src/utils/menu.cjs +0 -13
- package/lib/src/utils/permission.cjs +0 -41
- package/lib/src/utils/permissionAuth.cjs +0 -120
- package/lib/src/utils/range-selector.cjs +0 -101
- package/lib/src/utils/request.cjs +0 -131
- package/lib/src/utils/resize.cjs +0 -11
- package/lib/src/utils/restful-interface-utils.cjs +0 -15
- package/lib/src/utils/util.cjs +0 -341
- package/lib/src/utils/validate.cjs +0 -12
- package/lib/src/utils/voice-setting-cache.cjs +0 -199
- package/lib/src/utils/watermark-cache.cjs +0 -10
- package/lib/src/utils/watermark.cjs +0 -33
- package/lib/src/utils/workflow-util.cjs +0 -41
- package/lib/src/views/dsc-component/Sidebar/Item.vue.cjs +0 -5
- package/lib/src/views/dsc-component/Sidebar/Item.vue2.cjs +0 -9
- package/lib/src/views/dsc-component/Sidebar/Item.vue3.cjs +0 -2
- package/lib/src/views/dsc-component/Sidebar/Link.vue.cjs +0 -11
- package/lib/src/views/dsc-component/Sidebar/SidebarItem.vue.cjs +0 -46
- package/lib/src/views/dsc-component/Sidebar/SidebarItem.vue2.cjs +0 -2
- package/lib/src/views/dsc-component/Sidebar/index.vue.cjs +0 -103
- package/lib/src/views/dsc-component/tabs/tab-content.vue.cjs +0 -61
- package/lib/src/views/dsc-component/tabs/tab-content.vue2.cjs +0 -2
- package/lib/src/views/dsc-component/tabs/tab-content.vue3.cjs +0 -2
- package/lib/src/views/error-page/401.vue.cjs +0 -11
- package/lib/src/views/error-page/401.vue2.cjs +0 -2
- package/lib/src/views/error-page/404.vue.cjs +0 -8
- package/lib/src/views/error-page/404.vue2.cjs +0 -2
- package/lib/src/views/layout/EmptyLayout.vue.cjs +0 -7
- package/lib/src/views/layout/Layout.vue.cjs +0 -21
- package/lib/src/views/layout/Layout.vue2.cjs +0 -2
- package/lib/src/views/layout/NewLayout.vue.cjs +0 -7
- package/lib/src/views/layout/components/AppMain.vue.cjs +0 -11
- package/lib/src/views/layout/components/AppMain.vue2.cjs +0 -2
- package/lib/src/views/layout/components/Breadcrumb/index.vue.cjs +0 -56
- package/lib/src/views/layout/components/Breadcrumb/index.vue2.cjs +0 -2
- package/lib/src/views/layout/components/Menubar/Item.vue.cjs +0 -5
- package/lib/src/views/layout/components/Menubar/Item.vue2.cjs +0 -13
- package/lib/src/views/layout/components/Menubar/Item.vue3.cjs +0 -2
- package/lib/src/views/layout/components/Menubar/Link.vue.cjs +0 -11
- package/lib/src/views/layout/components/Menubar/SidebarItem.vue.cjs +0 -47
- package/lib/src/views/layout/components/Menubar/SidebarItem.vue2.cjs +0 -2
- package/lib/src/views/layout/components/Menubar/index.vue.cjs +0 -79
- package/lib/src/views/layout/components/Sidebar/Item.vue.cjs +0 -7
- package/lib/src/views/layout/components/Sidebar/Item.vue2.cjs +0 -3
- package/lib/src/views/layout/components/Sidebar/Link.vue.cjs +0 -9
- package/lib/src/views/layout/components/Sidebar/SidebarItem.vue.cjs +0 -16
- package/lib/src/views/layout/components/Sidebar/SidebarItem.vue2.cjs +0 -2
- package/lib/src/views/layout/components/Sidebar/index.vue.cjs +0 -51
- package/lib/src/views/layout/components/iframe-page.vue.cjs +0 -12
- package/lib/src/views/layout/components/iframe-page.vue2.cjs +0 -2
- package/lib/src/views/layout/components/tabs/tab-content.vue.cjs +0 -60
- package/lib/src/views/layout/components/tabs/tab-content.vue2.cjs +0 -2
- package/lib/src/views/layout/components/tabs/tab-content.vue3.cjs +0 -2
- package/lib/src/views/layout/mixin/ResizeHandler.cjs +0 -14
- package/lib/src/views/layout/tab-content-iframe-index.vue.cjs +0 -12
- package/lib/src/views/layout/tab-content-iframe-index.vue2.cjs +0 -2
- package/lib/src/views/layout/tab-content-index.vue.cjs +0 -22
- package/lib/src/views/layout/tab-content-index.vue2.cjs +0 -2
- package/lib/src/views/login/authredirect.vue.cjs +0 -6
- package/lib/src/views/redirect/index.vue.cjs +0 -17
- package/lib/src/views/super-icon/index.cjs +0 -5
- package/lib/src/views/super-icon/src/index.vue.cjs +0 -5
- package/lib/src/views/super-icon/src/index.vue2.cjs +0 -10
- package/lib/src/views/super-icon/src/index.vue3.cjs +0 -2
- package/lib/src/views/svg-icon/src/svg-icon.vue.cjs +0 -2
- package/lib/src/views/svg-icon/src/svg-icon.vue2.cjs +0 -12
- package/lib/src/views/wf-history/tache-subprocess-history.vue.cjs +0 -12
- package/lib/src/views/wf-history/tache-subprocess-history.vue2.cjs +0 -2
- package/lib/style.css +0 -3103
- package/lib/super-grid/index.cjs +0 -5
- package/lib/super-grid/src/apis.cjs +0 -477
- package/lib/super-grid/src/columns-config.vue.cjs +0 -76
- package/lib/super-grid/src/components/grid-icon.vue.cjs +0 -39
- package/lib/super-grid/src/components/grid-radio-input.vue.cjs +0 -22
- package/lib/super-grid/src/components/grid-radio-input.vue2.cjs +0 -3
- package/lib/super-grid/src/components/mobile-table-card.cjs +0 -99
- package/lib/super-grid/src/components/select-input.vue.cjs +0 -141
- package/lib/super-grid/src/components/select-input.vue2.cjs +0 -3
- package/lib/super-grid/src/custom-formatter.cjs +0 -163
- package/lib/super-grid/src/dynamic-input.vue.cjs +0 -465
- package/lib/super-grid/src/eventBus.cjs +0 -3
- package/lib/super-grid/src/events.cjs +0 -35
- package/lib/super-grid/src/formValidatorUtil.cjs +0 -106
- package/lib/super-grid/src/formatter.cjs +0 -69
- package/lib/super-grid/src/group-column.vue.cjs +0 -19
- package/lib/super-grid/src/header-context-menu.vue.cjs +0 -12
- package/lib/super-grid/src/header-context-menu.vue2.cjs +0 -2
- package/lib/super-grid/src/index-column.vue.cjs +0 -19
- package/lib/super-grid/src/normal-column-content.vue.cjs +0 -303
- package/lib/super-grid/src/normal-column-content.vue2.cjs +0 -2
- package/lib/super-grid/src/normal-column.vue.cjs +0 -90
- package/lib/super-grid/src/normal-column.vue2.cjs +0 -2
- package/lib/super-grid/src/public-methods.cjs +0 -20
- package/lib/super-grid/src/row-detail.vue.cjs +0 -11
- package/lib/super-grid/src/row-operation.vue.cjs +0 -82
- package/lib/super-grid/src/row-operation.vue2.cjs +0 -2
- package/lib/super-grid/src/scan-util.cjs +0 -98
- package/lib/super-grid/src/search-button.vue.cjs +0 -20
- package/lib/super-grid/src/search-condition-input.vue.cjs +0 -13
- package/lib/super-grid/src/search-condition-list.vue.cjs +0 -17
- package/lib/super-grid/src/search-form-advancedQuery.vue.cjs +0 -106
- package/lib/super-grid/src/search-form-advancedQuery.vue2.cjs +0 -2
- package/lib/super-grid/src/search-form-dialog.vue.cjs +0 -23
- package/lib/super-grid/src/search-form-item.vue.cjs +0 -120
- package/lib/super-grid/src/search-form-item.vue2.cjs +0 -2
- package/lib/super-grid/src/search-form-mobile.vue.cjs +0 -32
- package/lib/super-grid/src/search-form-mobile.vue2.cjs +0 -2
- package/lib/super-grid/src/search-form-number.vue.cjs +0 -21
- package/lib/super-grid/src/search-form-open.vue.cjs +0 -46
- package/lib/super-grid/src/search-form-ordinarySearch.vue.cjs +0 -33
- package/lib/super-grid/src/search-form-ordinarySearch.vue2.cjs +0 -2
- package/lib/super-grid/src/search-form.vue.cjs +0 -194
- package/lib/super-grid/src/search-form.vue2.cjs +0 -2
- package/lib/super-grid/src/search-methods.cjs +0 -163
- package/lib/super-grid/src/selection-column.vue.cjs +0 -9
- package/lib/super-grid/src/store.cjs +0 -3
- package/lib/super-grid/src/super-grid-service.cjs +0 -253
- package/lib/super-grid/src/super-grid.vue.cjs +0 -1083
- package/lib/super-grid/src/super-grid.vue2.cjs +0 -2
- package/lib/super-grid/src/utils.cjs +0 -373
- package/lib/super-grid/src/view-image-dialog.vue.cjs +0 -60
- package/lib/super-icon/index.cjs +0 -5
- package/lib/super-icon/src/index.vue.cjs +0 -5
- package/lib/super-icon/src/index.vue2.cjs +0 -10
- package/lib/super-icon/src/index.vue3.cjs +0 -2
- package/lib/super-nine-grid/index.cjs +0 -5
- package/lib/super-nine-grid/src/apis.cjs +0 -33
- package/lib/super-nine-grid/src/custom-formatter.cjs +0 -33
- package/lib/super-nine-grid/src/formatter.cjs +0 -36
- package/lib/super-nine-grid/src/search-form-number.vue.cjs +0 -9
- package/lib/super-nine-grid/src/search-form.vue.cjs +0 -84
- package/lib/super-nine-grid/src/search-form.vue2.cjs +0 -2
- package/lib/super-nine-grid/src/search-methods.cjs +0 -47
- package/lib/super-nine-grid/src/store.cjs +0 -3
- package/lib/super-nine-grid/src/super-grid-service.cjs +0 -35
- package/lib/super-nine-grid/src/super-nine-grid.vue.cjs +0 -215
- package/lib/super-nine-grid/src/super-nine-grid.vue2.cjs +0 -2
- package/lib/super-nine-grid/src/utils.cjs +0 -36
- package/lib/svg-icon/index.cjs +0 -5
- package/lib/svg-icon/src/svg-icon.vue.cjs +0 -12
- package/lib/svg-icon/src/svg-icon.vue2.cjs +0 -2
- package/lib/utils/gogocodeTransfer.cjs +0 -28
- package/lib/utils/memory-cache-utils.cjs +0 -28
- package/lib/utils/organization.cjs +0 -55
- package/lib/utils/utils.cjs +0 -85
- package/lib/utils/value-set.cjs +0 -92
- package/lib/valid-code/index.cjs +0 -5
- package/lib/valid-code/src/valid-code.vue.cjs +0 -20
- package/lib/valid-code/src/valid-code.vue2.cjs +0 -2
- package/lib/workflow-button/index.cjs +0 -5
- package/lib/workflow-button/src/workflow-button.vue.cjs +0 -80
- package/lib/workflow-history-list/index.cjs +0 -5
- package/lib/workflow-history-list/src/api.cjs +0 -5
- package/lib/workflow-history-list/src/workflow-history-list.vue.cjs +0 -83
- package/lib/workflow-history-list/src/workflow-history-list.vue2.cjs +0 -2
- package/lib/workgroup-tree/index.cjs +0 -5
- package/lib/workgroup-tree/src/workgroup-tree.vue.cjs +0 -17
- package/lib/workgroup-tree-inline/index.cjs +0 -5
- package/lib/workgroup-tree-inline/src/search-result.vue.cjs +0 -35
- package/lib/workgroup-tree-inline/src/search-result.vue2.cjs +0 -2
- package/lib/workgroup-tree-inline/src/workgroup-tree-inline.vue.cjs +0 -119
- package/lib/workgroup-tree-inline/src/workgroup-tree-inline.vue2.cjs +0 -2
- package/lib/workgroup-tree-inline/src/workgroup-tree-service.cjs +0 -33
- package/lib/workgroup-tree-mobile/index.cjs +0 -5
- package/lib/workgroup-tree-mobile/src/dept-result.vue.cjs +0 -14
- package/lib/workgroup-tree-mobile/src/dept-result.vue2.cjs +0 -3
- package/lib/workgroup-tree-mobile/src/workgroup-tree-app.vue.cjs +0 -13
- package/lib/workgroup-tree-mobile/src/workgroup-tree-app.vue2.cjs +0 -2
- package/lib/workgroup-tree-mobile/src/workgroup-tree-app.vue3.cjs +0 -3
- package/lib/workgroup-tree-mobile/src/workgroup-tree-inline-app.vue.cjs +0 -99
- package/lib/workgroup-tree-mobile/src/workgroup-tree-inline-app.vue2.cjs +0 -3
- package/lib/workgroup-tree-mobile/src/workgroup-tree-service.cjs +0 -25
- package/lib/workgroup-user-tree/index.cjs +0 -5
- package/lib/workgroup-user-tree/src/workgroup-user-tree.vue.cjs +0 -17
- package/lib/workgroup-user-tree-inline/index.cjs +0 -5
- package/lib/workgroup-user-tree-inline/src/search-result.vue.cjs +0 -35
- package/lib/workgroup-user-tree-inline/src/search-result.vue2.cjs +0 -2
- package/lib/workgroup-user-tree-inline/src/workgroup-tree-inline-service.cjs +0 -71
- package/lib/workgroup-user-tree-inline/src/workgroup-user-tree-inline.vue.cjs +0 -163
- package/lib/workgroup-user-tree-inline/src/workgroup-user-tree-inline.vue2.cjs +0 -2
- package/lib/workgroup-user-tree-mobile/src/dept-path.vue.cjs +0 -13
- package/lib/workgroup-user-tree-mobile/src/dept-path.vue2.cjs +0 -3
- package/lib/workgroup-user-tree-mobile/src/dept-result.vue.cjs +0 -14
- package/lib/workgroup-user-tree-mobile/src/dept-result.vue2.cjs +0 -3
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue.cjs +0 -13
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue2.cjs +0 -2
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue3.cjs +0 -3
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-inline-app.vue.cjs +0 -124
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-inline-app.vue2.cjs +0 -3
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-service.cjs +0 -20
- package/lib/year-range-picker/index.cjs +0 -5
- package/lib/year-range-picker/src/year-range-picker.vue.cjs +0 -11
- package/src/api/sso-service.js +0 -222
- package/src/api/tab.js +0 -36
- package/src/assets/401/401.gif +0 -0
- package/src/assets/404/404-cloud.png +0 -0
- package/src/assets/404/404.png +0 -0
- package/src/assets/chat-embed/background.png +0 -0
- package/src/assets/chat-embed/robot.gif +0 -0
- package/src/assets/chat-embed/robot.svg +0 -32
- package/src/assets/cloud.png +0 -0
- package/src/assets/nonemessage.png +0 -0
- package/src/assets/tab-selectWhite.png +0 -0
- package/src/components/Affix/index.vue +0 -272
- package/src/components/Card/index.jsx +0 -227
- package/src/components/Scrollbar/index.vue +0 -224
- package/src/directives/permission/index.js +0 -14
- package/src/directives/permission/permission.js +0 -27
- package/src/i18n/i18n.js +0 -16
- package/src/i18n/langs/cn.js +0 -344
- package/src/i18n/langs/en.js +0 -344
- package/src/index.js +0 -22
- package/src/mixins/resizeMixin.js +0 -49
- package/src/permission.js +0 -252
- package/src/plugins.js +0 -18
- package/src/router/index.js +0 -92
- package/src/store/getters.js +0 -26
- package/src/store/index.js +0 -23
- package/src/store/modules/app.js +0 -96
- package/src/store/modules/chat-ai-store.ts +0 -85
- package/src/store/modules/permission.js +0 -143
- package/src/store/modules/system.js +0 -35
- package/src/store/modules/tab-content.js +0 -42
- package/src/store/modules/table.js +0 -76
- package/src/store/modules/user.js +0 -448
- package/src/utils/auth-api.js +0 -370
- package/src/utils/auth.js +0 -194
- package/src/utils/calculator/calculator-factory-wf.js +0 -465
- package/src/utils/calculator/calculator-factory.js +0 -133
- package/src/utils/calculator/calculator-util.js +0 -184
- package/src/utils/chat-ai-util.ts +0 -41
- package/src/utils/common-util.js +0 -1019
- package/src/utils/dingtalk-util.ts +0 -43
- package/src/utils/eventBus.js +0 -10
- package/src/utils/file-util.ts +0 -42
- package/src/utils/global-prop.ts +0 -44
- package/src/utils/guid.js +0 -13
- package/src/utils/i18n-util.js +0 -145
- package/src/utils/iconUtils.js +0 -37
- package/src/utils/iframe-communicator.js +0 -234
- package/src/utils/index.js +0 -102
- package/src/utils/insert_css.js +0 -47
- package/src/utils/json-util.ts +0 -85
- package/src/utils/jump-page-utils.js +0 -829
- package/src/utils/local-storage.js +0 -33
- package/src/utils/menu.js +0 -19
- package/src/utils/permission.js +0 -126
- package/src/utils/permissionAuth.js +0 -311
- package/src/utils/range-selector.js +0 -204
- package/src/utils/request.js +0 -407
- package/src/utils/resize.js +0 -19
- package/src/utils/restful-interface-utils.js +0 -57
- package/src/utils/util.js +0 -1000
- package/src/utils/validate.js +0 -34
- package/src/utils/voice-setting-cache.js +0 -497
- package/src/utils/watermark-cache.js +0 -13
- package/src/utils/watermark.js +0 -119
- package/src/utils/workflow-util.js +0 -107
- package/src/views/404.vue +0 -248
- package/src/views/dsc-component/Sidebar/Item.vue +0 -95
- package/src/views/dsc-component/Sidebar/Link.vue +0 -38
- package/src/views/dsc-component/Sidebar/SidebarItem.vue +0 -245
- package/src/views/dsc-component/Sidebar/index.vue +0 -258
- package/src/views/dsc-component/tabs/tab-content.vue +0 -230
- package/src/views/error-page/401.vue +0 -106
- package/src/views/error-page/404.vue +0 -248
- package/src/views/layout/EmptyLayout.vue +0 -3
- package/src/views/layout/Layout.vue +0 -85
- package/src/views/layout/NewLayout.vue +0 -18
- package/src/views/layout/components/AppMain.vue +0 -46
- package/src/views/layout/components/Breadcrumb/index.vue +0 -158
- package/src/views/layout/components/Menubar/Item.vue +0 -125
- package/src/views/layout/components/Menubar/Link.vue +0 -38
- package/src/views/layout/components/Menubar/SidebarItem.vue +0 -333
- package/src/views/layout/components/Menubar/index.vue +0 -250
- package/src/views/layout/components/Sidebar/Item.vue +0 -33
- package/src/views/layout/components/Sidebar/Link.vue +0 -38
- package/src/views/layout/components/Sidebar/SidebarItem.vue +0 -179
- package/src/views/layout/components/Sidebar/index.vue +0 -141
- package/src/views/layout/components/iframe-page.vue +0 -38
- package/src/views/layout/components/index.js +0 -4
- package/src/views/layout/components/tabs/tab-content.vue +0 -273
- package/src/views/layout/mixin/ResizeHandler.js +0 -41
- package/src/views/layout/tab-content-iframe-index.vue +0 -38
- package/src/views/layout/tab-content-index.vue +0 -92
- package/src/views/login/authredirect.vue +0 -10
- package/src/views/login/index.vue +0 -296
- package/src/views/login/update-password.vue +0 -246
- package/src/views/redirect/index.vue +0 -14
- package/src/views/super-icon/index.js +0 -6
- package/src/views/super-icon/src/index.vue +0 -52
- package/src/views/svg-icon/index.js +0 -6
- package/src/views/svg-icon/src/svg-icon.vue +0 -43
- package/src/views/wf-history/tache-subprocess-history.vue +0 -45
- package/vite.config.js +0 -103
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const e = require("../../utils/gogocodeTransfer.cjs"), l = require("./search-methods.cjs"), o = require("./search-form-number.vue.cjs"), t = require("./store.cjs"), a = require("./utils.cjs"), r = require("vue");
|
|
3
|
-
require("./search-form.vue2.cjs");
|
|
4
|
-
const n = require("../../_virtual/_plugin-vue_export-helper.cjs"), s = { name: "SearchForm", components: { searchFormNumber: o }, 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 }, gridId: { type: String, default: "_nineGrid" } }, data() {
|
|
5
|
-
const e2 = this.code + "~" + this.gridId, l2 = /* @__PURE__ */ new Set(), o2 = t.get(e2);
|
|
6
|
-
let r2 = {};
|
|
7
|
-
null !== this.searchParam && (r2 = JSON.parse(JSON.stringify(this.searchParam)));
|
|
8
|
-
const n2 = this.getSearchableColumns();
|
|
9
|
-
void 0 !== this.initSearchProps && null !== this.initSearchProps || (this.initSearchProps = []), n2.forEach((e3) => {
|
|
10
|
-
this.initSearchProps.indexOf(e3.prop) < 0 && (e3.prop.indexOf(".") > 0 ? a.addDynamicProp(r2, e3.prop) : r2[e3.prop] = null);
|
|
11
|
-
});
|
|
12
|
-
const s2 = this.getSpanNum(e2), m2 = this.getFieldNumPerRow(e2), u2 = Math.ceil(n2.length / m2);
|
|
13
|
-
return { searchForm: r2, rules: {}, searchParams: [], labelWidth: o2.options.search && o2.options.search.labelWidth ? o2.options.search.labelWidth : "80px", customComponentNames: l2, componentName: "", spanNum: s2, fieldNum: m2, rowNum: u2, loading: false, storeId: e2 };
|
|
14
|
-
}, computed: { searchableColumns() {
|
|
15
|
-
return this.getSearchableColumns();
|
|
16
|
-
} }, methods: { ...l, getColumnNumPerRow(e2, l2) {
|
|
17
|
-
let o2 = this.fieldNum;
|
|
18
|
-
return this.fieldNum * e2 > l2 && (o2 = l2 - this.fieldNum * (e2 - 1)), o2;
|
|
19
|
-
}, getFieldNumPerRow(e2) {
|
|
20
|
-
const l2 = t.get(e2);
|
|
21
|
-
return l2.options.search && l2.options.search.fieldNum ? l2.options.search.fieldNum : 4;
|
|
22
|
-
}, getSpanNum(e2) {
|
|
23
|
-
const l2 = this.getFieldNumPerRow(e2);
|
|
24
|
-
return 1 === l2 ? 14 : 2 === l2 ? 10 : 3 === l2 ? 8 : 4 === l2 ? 6 : 4;
|
|
25
|
-
}, setValueToModelProp(e2, l2) {
|
|
26
|
-
if (e2.indexOf(".") > 0) {
|
|
27
|
-
this.getParentObject(e2)[e2.substring(e2.lastIndexOf(".") + 1)] = l2;
|
|
28
|
-
} else
|
|
29
|
-
this.searchForm[e2] = l2;
|
|
30
|
-
}, getSearchableColumns(e2, l2) {
|
|
31
|
-
this.customComponentNames || (this.customComponentNames = /* @__PURE__ */ new Set()), l2 || (l2 = []), e2 || (e2 = this.columns);
|
|
32
|
-
for (let o2 = 0; o2 < e2.length; o2++) {
|
|
33
|
-
const t2 = e2[o2];
|
|
34
|
-
if ("$index" !== t2.prop && "$selection" !== t2.prop && !t2.dynamic) {
|
|
35
|
-
if (t2.groupHeader)
|
|
36
|
-
this.getSearchableColumns(t2.children, l2);
|
|
37
|
-
else if ("normal" === t2.queryType && !t2.custom && "" !== t2.prop) {
|
|
38
|
-
if (void 0 !== t2.componentType && "" !== t2.componentType || (t2.componentType = "input"), t2.querySetting && "" !== t2.querySetting) {
|
|
39
|
-
const e3 = JSON.parse(t2.querySetting);
|
|
40
|
-
e3.width && (t2.searchControlWidth = "width:" + e3.width + "px"), e3.labelWidth && (t2.searchLabelWidth = e3.labelWidth + "px"), e3.label && (t2.searchLabel = e3.label);
|
|
41
|
-
}
|
|
42
|
-
t2.componentType.indexOf("custom:") >= 0 ? (t2.componentName = t2.componentType.substring(t2.componentType.indexOf(":") + 1), this.customComponentNames.add(t2.componentName)) : t2.componentName = "", l2.push(t2);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
return l2;
|
|
47
|
-
}, customComponent(e2) {
|
|
48
|
-
const l2 = t.get(this.storeId);
|
|
49
|
-
if (e2.componentName && "" !== e2.componentName)
|
|
50
|
-
return this.customComponentNames.add(e2.componentName), true;
|
|
51
|
-
if ((!e2.componentName || "" === e2.componentName) && l2.options && l2.options.search && l2.options.search.customSearchElements) {
|
|
52
|
-
const o2 = l2.options.search.customSearchElements[e2.prop];
|
|
53
|
-
if (o2) {
|
|
54
|
-
e2.componentName = "custom-" + e2.prop;
|
|
55
|
-
const l3 = o2.call(this, e2);
|
|
56
|
-
if (l3)
|
|
57
|
-
return this.customComponentNames.add(e2.componentName), window.$vueApp.component(e2.componentName, l3), true;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
return false;
|
|
61
|
-
}, submitForm(l2) {
|
|
62
|
-
this.$refs[l2].validate((l3) => {
|
|
63
|
-
if (!l3)
|
|
64
|
-
return false;
|
|
65
|
-
this.loading = true, this.searchParams = this.packageSearchParam(), e.$emit(this, "search", this.searchParams, true);
|
|
66
|
-
});
|
|
67
|
-
}, resetForm(l2) {
|
|
68
|
-
for (const e2 of this.customComponentNames)
|
|
69
|
-
this.$refs[e2][0].resetField();
|
|
70
|
-
this.searchableColumns.forEach((e2) => {
|
|
71
|
-
e2.prop.indexOf(".") > 0 ? a.addDynamicProp(this.searchForm, e2.prop) : this.searchForm[e2.prop] = null;
|
|
72
|
-
}), e.$emit(this, "reset");
|
|
73
|
-
}, setNumberValue(e2, l2, o2) {
|
|
74
|
-
let t2 = this.getFormItemValue(this.searchableColumns[this.fieldNum * (l2 - 1) + (o2 - 1)].prop);
|
|
75
|
-
t2 = e2, this.setValueToModelProp(this.searchableColumns[this.fieldNum * (l2 - 1) + (o2 - 1)].prop, t2);
|
|
76
|
-
} }, emits: ["search", "reset"] }, m = ["innerHTML"], u = ["innerHTML"], c = { key: 10 };
|
|
77
|
-
const i = n(s, [["render", function(e2, l2, o2, t2, a2, n2) {
|
|
78
|
-
const s2 = r.resolveComponent("el-date-picker"), i2 = r.resolveComponent("el-time-picker"), p = r.resolveComponent("el-option"), d = r.resolveComponent("el-select"), h = r.resolveComponent("search-form-number"), f = r.resolveComponent("el-switch"), b = r.resolveComponent("el-slider"), C = r.resolveComponent("el-rate"), N = r.resolveComponent("el-input"), y = r.resolveComponent("el-form-item"), g = r.resolveComponent("el-col"), k = r.resolveComponent("el-row"), v = r.resolveComponent("el-button"), T = r.resolveComponent("el-form");
|
|
79
|
-
return n2.searchableColumns.length > 0 ? (r.openBlock(), r.createBlock(T, { key: 0, ref: "searchForm", "label-position": o2.query.queryLabelPosition, "label-width": a2.labelWidth, model: a2.searchForm, rules: a2.rules, class: "grid-search-form", size: "default" }, { default: r.withCtx(() => [(r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(a2.rowNum, (o3) => (r.openBlock(), r.createBlock(k, { key: o3 }, { default: r.withCtx(() => [(r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(n2.getColumnNumPerRow(o3, n2.searchableColumns.length), (t3) => (r.openBlock(), r.createBlock(g, { key: t3, span: 6, style: { "margin-bottom": "10px" } }, { default: r.withCtx(() => {
|
|
80
|
-
var _a;
|
|
81
|
-
return [r.createVNode(y, { prop: n2.searchableColumns[a2.fieldNum * (o3 - 1) + (t3 - 1)].prop, "label-width": ((_a = n2.searchableColumns[a2.fieldNum * (o3 - 1) + (t3 - 1)].label.replace(/\\n/g, "</br>")) == null ? void 0 : _a.length) > 4 ? "100px" : "80px", style: { width: "90%" } }, { label: r.withCtx(() => [n2.searchableColumns[a2.fieldNum * (o3 - 1) + (t3 - 1)].searchLabel && "" !== n2.searchableColumns[a2.fieldNum * (o3 - 1) + (t3 - 1)].searchLabel ? (r.openBlock(), r.createElementBlock("span", { key: 0, innerHTML: n2.searchableColumns[a2.fieldNum * (o3 - 1) + (t3 - 1)].searchLabel.replace(/\\n/g, "</br>") }, null, 8, m)) : (r.openBlock(), r.createElementBlock("span", { key: 1, innerHTML: n2.searchableColumns[a2.fieldNum * (o3 - 1) + (t3 - 1)].label.replace(/\\n/g, "</br>") }, null, 8, u)), l2[3] || (l2[3] = r.createTextVNode(": ", -1))]), default: r.withCtx(() => ["DATE" === n2.searchableColumns[a2.fieldNum * (o3 - 1) + (t3 - 1)].dataType || "date" === n2.searchableColumns[a2.fieldNum * (o3 - 1) + (t3 - 1)].componentType ? (r.openBlock(), r.createBlock(s2, { key: 0, "end-placeholder": e2.$t("imatrixUIMessage.endDate"), "model-value": e2.getFormItemValue(n2.searchableColumns[a2.fieldNum * (o3 - 1) + (t3 - 1)].prop), "range-separator": e2.$t("imatrixUIPublicModel.to"), "start-placeholder": e2.$t("imatrixUIMessage.startDate"), style: r.normalizeStyle(n2.searchableColumns[a2.fieldNum * (o3 - 1) + (t3 - 1)].searchControlWidth), type: "daterange", "unlink-panels": "", "value-format": "YYYY-MM-DD", onInput: (e3) => n2.setValueToModelProp(n2.searchableColumns[a2.fieldNum * (o3 - 1) + (t3 - 1)].prop, e3) }, null, 8, ["end-placeholder", "model-value", "range-separator", "start-placeholder", "style", "onInput"])) : "dateTimePicker" === n2.searchableColumns[a2.fieldNum * (o3 - 1) + (t3 - 1)].componentType ? (r.openBlock(), r.createBlock(s2, { key: 1, "end-placeholder": e2.$t("imatrixUIMessage.endDate"), "model-value": e2.getFormItemValue(n2.searchableColumns[a2.fieldNum * (o3 - 1) + (t3 - 1)].prop), "range-separator": e2.$t("imatrixUIPublicModel.to"), "start-placeholder": e2.$t("imatrixUIMessage.startDate"), style: r.normalizeStyle(n2.searchableColumns[a2.fieldNum * (o3 - 1) + (t3 - 1)].searchControlWidth), type: "datetimerange", "unlink-panels": "", "value-format": "YYYY-MM-DD HH:mm:ss", onInput: (e3) => n2.setValueToModelProp(n2.searchableColumns[a2.fieldNum * (o3 - 1) + (t3 - 1)].prop, e3) }, null, 8, ["end-placeholder", "model-value", "range-separator", "start-placeholder", "style", "onInput"])) : "TIME" === n2.searchableColumns[a2.fieldNum * (o3 - 1) + (t3 - 1)].dataType && "timepicker" === n2.searchableColumns[a2.fieldNum * (o3 - 1) + (t3 - 1)].componentType ? (r.openBlock(), r.createBlock(s2, { key: 2, "end-placeholder": e2.$t("imatrixUIMessage.endDate"), "model-value": e2.getFormItemValue(n2.searchableColumns[a2.fieldNum * (o3 - 1) + (t3 - 1)].prop), "range-separator": e2.$t("imatrixUIPublicModel.to"), "start-placeholder": e2.$t("imatrixUIMessage.startDate"), style: r.normalizeStyle(n2.searchableColumns[a2.fieldNum * (o3 - 1) + (t3 - 1)].searchControlWidth), type: "datetimerange", "unlink-panels": "", "value-format": "HH:mm:ss", onInput: (e3) => n2.setValueToModelProp(n2.searchableColumns[a2.fieldNum * (o3 - 1) + (t3 - 1)].prop, e3) }, null, 8, ["end-placeholder", "model-value", "range-separator", "start-placeholder", "style", "onInput"])) : "timepicker" === n2.searchableColumns[a2.fieldNum * (o3 - 1) + (t3 - 1)].componentType && "TIME" !== n2.searchableColumns[a2.fieldNum * (o3 - 1) + (t3 - 1)].dataType && "DATE" !== n2.searchableColumns[a2.fieldNum * (o3 - 1) + (t3 - 1)].dataType ? (r.openBlock(), r.createBlock(i2, { key: 3, "model-value": e2.getFormItemValue(n2.searchableColumns[a2.fieldNum * (o3 - 1) + (t3 - 1)].prop), placeholder: e2.$t("imatrixUIMessage.selectTime"), style: { width: "100%" }, type: "fixed-time", "value-format": "HH:mm:ss", onInput: (e3) => n2.setValueToModelProp(n2.searchableColumns[a2.fieldNum * (o3 - 1) + (t3 - 1)].prop, e3) }, null, 8, ["model-value", "placeholder", "onInput"])) : n2.searchableColumns[a2.fieldNum * (o3 - 1) + (t3 - 1)].componentType && "select" === n2.searchableColumns[a2.fieldNum * (o3 - 1) + (t3 - 1)].componentType || "BOOLEAN" === n2.searchableColumns[a2.fieldNum * (o3 - 1) + (t3 - 1)].dataType ? (r.openBlock(), r.createBlock(d, { key: 4, "model-value": e2.getFormItemValue(n2.searchableColumns[a2.fieldNum * (o3 - 1) + (t3 - 1)].prop), placeholder: e2.$t("imatrixUIMessage.pleaseSelect"), style: r.normalizeStyle(n2.searchableColumns[a2.fieldNum * (o3 - 1) + (t3 - 1)].searchControlWidth), clearable: "", onChange: (e3) => n2.setValueToModelProp(n2.searchableColumns[a2.fieldNum * (o3 - 1) + (t3 - 1)].prop, e3) }, { default: r.withCtx(() => [(r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(n2.searchableColumns[a2.fieldNum * (o3 - 1) + (t3 - 1)].valueSet, (e3) => (r.openBlock(), r.createBlock(p, { key: e3.value, label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["model-value", "placeholder", "style", "onChange"])) : n2.searchableColumns[a2.fieldNum * (o3 - 1) + (t3 - 1)].componentType && "multiselect" === n2.searchableColumns[a2.fieldNum * (o3 - 1) + (t3 - 1)].componentType ? (r.openBlock(), r.createBlock(d, { key: 5, "model-value": e2.getFormItemValue(n2.searchableColumns[a2.fieldNum * (o3 - 1) + (t3 - 1)].prop), placeholder: e2.$t("imatrixUIMessage.pleaseSelect"), style: r.normalizeStyle(n2.searchableColumns[a2.fieldNum * (o3 - 1) + (t3 - 1)].searchControlWidth), clearable: "", "collapse-tags": "", multiple: "", onInput: (e3) => n2.setValueToModelProp(n2.searchableColumns[a2.fieldNum * (o3 - 1) + (t3 - 1)].prop, e3) }, { default: r.withCtx(() => [(r.openBlock(true), r.createElementBlock(r.Fragment, null, r.renderList(n2.searchableColumns[a2.fieldNum * (o3 - 1) + (t3 - 1)].valueSet, (e3) => (r.openBlock(), r.createBlock(p, { key: e3.value, label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["model-value", "placeholder", "style", "onInput"])) : n2.searchableColumns[a2.fieldNum * (o3 - 1) + (t3 - 1)].componentType && "inputNumber" === n2.searchableColumns[a2.fieldNum * (o3 - 1) + (t3 - 1)].componentType ? (r.openBlock(), r.createBlock(h, { key: 6, n: t3, r: o3, onSetValue: n2.setNumberValue }, null, 8, ["n", "r", "onSetValue"])) : n2.searchableColumns[a2.fieldNum * (o3 - 1) + (t3 - 1)].componentType && "switch" === n2.searchableColumns[a2.fieldNum * (o3 - 1) + (t3 - 1)].componentType ? (r.openBlock(), r.createBlock(f, { key: 7, "model-value": e2.getFormItemValue(n2.searchableColumns[a2.fieldNum * (o3 - 1) + (t3 - 1)].prop), style: r.normalizeStyle(n2.searchableColumns[a2.fieldNum * (o3 - 1) + (t3 - 1)].searchControlWidth), "active-color": "#13ce66", "inactive-color": "#ff4949", onInput: (e3) => n2.setValueToModelProp(n2.searchableColumns[a2.fieldNum * (o3 - 1) + (t3 - 1)].prop, e3) }, null, 8, ["model-value", "style", "onInput"])) : n2.searchableColumns[a2.fieldNum * (o3 - 1) + (t3 - 1)].componentType && "slider" === n2.searchableColumns[a2.fieldNum * (o3 - 1) + (t3 - 1)].componentType ? (r.openBlock(), r.createBlock(b, { key: 8, "model-value": e2.getFormItemValue(n2.searchableColumns[a2.fieldNum * (o3 - 1) + (t3 - 1)].prop), style: r.normalizeStyle(n2.searchableColumns[a2.fieldNum * (o3 - 1) + (t3 - 1)].searchControlWidth), onInput: (e3) => n2.setValueToModelProp(n2.searchableColumns[a2.fieldNum * (o3 - 1) + (t3 - 1)].prop, e3) }, null, 8, ["model-value", "style", "onInput"])) : n2.searchableColumns[a2.fieldNum * (o3 - 1) + (t3 - 1)].componentType && "rate" === n2.searchableColumns[a2.fieldNum * (o3 - 1) + (t3 - 1)].componentType ? (r.openBlock(), r.createBlock(C, { key: 9, "model-value": e2.getFormItemValue(n2.searchableColumns[a2.fieldNum * (o3 - 1) + (t3 - 1)].prop), style: r.normalizeStyle(n2.searchableColumns[a2.fieldNum * (o3 - 1) + (t3 - 1)].searchControlWidth), onInput: (e3) => n2.setValueToModelProp(n2.searchableColumns[a2.fieldNum * (o3 - 1) + (t3 - 1)].prop, e3) }, null, 8, ["model-value", "style", "onInput"])) : true === n2.customComponent(n2.searchableColumns[a2.fieldNum * (o3 - 1) + (t3 - 1)]) ? (r.openBlock(), r.createElementBlock("span", c, [(r.openBlock(), r.createBlock(r.resolveDynamicComponent(n2.searchableColumns[a2.fieldNum * (o3 - 1) + (t3 - 1)].componentName), { ref_for: true, ref: n2.searchableColumns[a2.fieldNum * (o3 - 1) + (t3 - 1)].componentName, prop: n2.searchableColumns[a2.fieldNum * (o3 - 1) + (t3 - 1)].prop, value: e2.getFormItemValue(n2.searchableColumns[a2.fieldNum * (o3 - 1) + (t3 - 1)].prop), class: "customComponent", onInput: (e3) => n2.setValueToModelProp(n2.searchableColumns[a2.fieldNum * (o3 - 1) + (t3 - 1)].prop, e3) }, null, 40, ["prop", "value", "onInput"]))])) : (r.openBlock(), r.createBlock(N, { key: 11, "model-value": e2.getFormItemValue(n2.searchableColumns[a2.fieldNum * (o3 - 1) + (t3 - 1)].prop), style: r.normalizeStyle(n2.searchableColumns[a2.fieldNum * (o3 - 1) + (t3 - 1)].searchControlWidth), onInput: (e3) => n2.setValueToModelProp(n2.searchableColumns[a2.fieldNum * (o3 - 1) + (t3 - 1)].prop, e3), onKeyup: l2[0] || (l2[0] = r.withKeys((e3) => n2.submitForm("searchForm"), ["enter"])) }, null, 8, ["model-value", "style", "onInput"]))]), _: 2 }, 1032, ["prop", "label-width"])];
|
|
82
|
-
}), _: 2 }, 1024))), 128))]), _: 2 }, 1024))), 128)), r.createVNode(k, { class: "search-btn" }, { default: r.withCtx(() => [r.createVNode(v, { loading: a2.loading, size: "default", type: "primary", onClick: l2[1] || (l2[1] = (e3) => n2.submitForm("searchForm")) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("imatrixUIPublicModel.sure")), 1)]), _: 1 }, 8, ["loading"]), r.createVNode(v, { loading: a2.loading, size: "default", onClick: l2[2] || (l2[2] = (e3) => n2.resetForm("searchForm")) }, { default: r.withCtx(() => [r.createTextVNode(r.toDisplayString(e2.$t("imatrixUIPublicModel.reset")), 1)]), _: 1 }, 8, ["loading"])]), _: 1 })]), _: 1 }, 8, ["label-position", "label-width", "model", "rules"])) : r.createCommentVNode("", true);
|
|
83
|
-
}], ["__scopeId", "data-v-04817310"]]);
|
|
84
|
-
module.exports = i;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const e = { packageSearchParam() {
|
|
3
|
-
const e2 = [];
|
|
4
|
-
return this.searchableColumns.forEach((t) => {
|
|
5
|
-
const r = { leftBracket: "", rightBracket: "", joinSign: "and" };
|
|
6
|
-
let a = t.orgProp;
|
|
7
|
-
if (a.indexOf("__") > 0 && (a = a.replace("__", ".")), r.columnProp = t.prop, r.propName = a, r.enumName = t.enumName, r.operator = this.getOperator(t), r.dataType = t.dataType, "DATE" === t.dataType || "TIME" === t.dataType) {
|
|
8
|
-
const a2 = this.getFormItemValue(t.prop);
|
|
9
|
-
a2 && 2 === a2.length && null !== a2[0] && null !== a2[1] && (r.startValue = a2[0], r.endValue = a2[1], e2.push(r));
|
|
10
|
-
} else if ("INTEGER" === t.dataType || "LONG" === t.dataType) {
|
|
11
|
-
const a2 = this.getFormItemValue(t.prop);
|
|
12
|
-
a2 && (!Array.isArray(a2) || a2.length < 2 || null === a2[0] && null === a2[1] ? Array.isArray(a2) ? a2.length < 2 ? (r.propValue = a2[0], e2.push(r)) : null === a2[0] ? (r.propValue = a2[1], e2.push(r)) : null === a2[1] && (r.propValue = a2[0], e2.push(r)) : (r.propValue = a2, e2.push(r)) : (r.startValue = a2[0], r.endValue = a2[1], e2.push(r)));
|
|
13
|
-
} else if ("multiselect" === t.componentType) {
|
|
14
|
-
const a2 = this.getFormItemValue(t.prop);
|
|
15
|
-
this.packageValueWithArray(a2, e2, r);
|
|
16
|
-
} else {
|
|
17
|
-
const a2 = this.getFormItemValue(t.prop);
|
|
18
|
-
this.packageValueWithArray(a2, e2, r);
|
|
19
|
-
}
|
|
20
|
-
}), e2;
|
|
21
|
-
}, getOperator: (e2) => "TEXT" !== e2.dataType && "CLOB" !== e2.dataType || !e2.fuzzy ? "EQ" : "CONTAIN", getFormItemValue(e2) {
|
|
22
|
-
if (e2.indexOf(".") > 0) {
|
|
23
|
-
return this.getParentObject(e2)[e2.substring(e2.lastIndexOf(".") + 1)];
|
|
24
|
-
}
|
|
25
|
-
return this.searchForm[e2];
|
|
26
|
-
}, getParentObject(e2) {
|
|
27
|
-
const t = e2.split(".");
|
|
28
|
-
if (1 === t.length)
|
|
29
|
-
return this.searchForm;
|
|
30
|
-
{
|
|
31
|
-
let e3;
|
|
32
|
-
for (let r = 0; r < t.length - 1; r++)
|
|
33
|
-
e3 = this.searchForm[t[r]];
|
|
34
|
-
return e3;
|
|
35
|
-
}
|
|
36
|
-
}, packageValueWithArray(e2, t, r) {
|
|
37
|
-
if (e2 && Array.isArray(e2)) {
|
|
38
|
-
const a = e2;
|
|
39
|
-
let l = 0;
|
|
40
|
-
a.forEach((e3) => {
|
|
41
|
-
const p = Object.assign({}, r);
|
|
42
|
-
p.joinSign = "or", 0 === l && (p.leftBracket = "1"), l === a.length - 1 && (p.rightBracket = "1", p.joinSign = "and"), p.propValue = e3, p.operator = "EQ", e3 && t.push(p), l++;
|
|
43
|
-
});
|
|
44
|
-
} else
|
|
45
|
-
void 0 === e2 || "" === e2 || null === e2 || Array.isArray(e2) || (r.propValue = e2, t.push(r));
|
|
46
|
-
} };
|
|
47
|
-
module.exports = e;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const i = require("./store.cjs"), t = require("../../utils/value-set.cjs"), s = require("./utils.cjs"), o = { initialize() {
|
|
3
|
-
let o2 = window.$vueApp.config.globalProperties.baseAPI + "/component/super-grids/" + this.code;
|
|
4
|
-
const n = this.options.isSql;
|
|
5
|
-
this.options && void 0 !== n && (this.isSql = n), o2 = o2 + "?_isSql=" + n, o2 = o2 + "&_publishVersion=" + this.publishVersion, this.isLoading = true, this.$http.get(o2).then((o3) => {
|
|
6
|
-
if (this.options.pageSizes && o3.pagination) {
|
|
7
|
-
let i2 = null;
|
|
8
|
-
const t2 = this.options.pageSizes.split(",");
|
|
9
|
-
if (t2 && t2.length > 0) {
|
|
10
|
-
i2 = [];
|
|
11
|
-
for (var n2 = 0; n2 < t2.length; n2++)
|
|
12
|
-
i2.push(1 * t2[n2]);
|
|
13
|
-
o3.pagination.pageSize = i2[0];
|
|
14
|
-
}
|
|
15
|
-
o3.pagination.layout = "total, sizes, prev, pager, next, jumper", o3.pagination.pageSizes = i2;
|
|
16
|
-
}
|
|
17
|
-
void 0 !== this.options.initSortInfo && (Array.isArray(this.options.initSortInfo) ? o3.sortInfo = this.options.initSortInfo : (o3.sortInfo = [], o3.sortInfo.push(this.options.initSortInfo))), Object.assign(this, o3);
|
|
18
|
-
const e = i.get(this.code + "~" + this.gridId);
|
|
19
|
-
t.packageEnumAndBeanColumnValueSets(this.columns, this.code).then(() => {
|
|
20
|
-
e.isSql = this.isSql, e.columns = this.columns, e.lineEdit = this.lineEdit, e.basicInfo = this.basicInfo, e.pagination = this.pagination, e.query = this.query, this.hasLoadedColumns = true;
|
|
21
|
-
let i2 = true;
|
|
22
|
-
s.isHasOptionFunction("loadBeforeSend", this.storeId) && (i2 = e.options.loadBeforeSend.call(this, { columns: this.columns, gridParams: e, additionalParamMap: e.additionalParamMap })), void 0 !== i2 && true !== i2 || void 0 !== this.options.initSearch && false === this.options.initSearch || (this.urlToSaveOrder = this.lineEdit && this.lineEdit.urlToSaveOrder ? this.lineEdit.urlToSaveOrder : null, this.fetchData().then(() => {
|
|
23
|
-
this.initSelectData();
|
|
24
|
-
}));
|
|
25
|
-
});
|
|
26
|
-
});
|
|
27
|
-
}, initSelectData() {
|
|
28
|
-
if (this.options && this.options.currentIds)
|
|
29
|
-
for (let i2 = 0; i2 < this.gridData.length; i2++) {
|
|
30
|
-
const t2 = this.gridData[i2];
|
|
31
|
-
if ((t2.id || t2.ID) && this.options.currentIds.indexOf(t2.id ? t2.id : t2.ID) >= 0 && (this.changeSelect(t2), false === this.multiple))
|
|
32
|
-
break;
|
|
33
|
-
}
|
|
34
|
-
} };
|
|
35
|
-
module.exports = o;
|
|
@@ -1,215 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const t = require("../../utils/gogocodeTransfer.cjs"), e = require("./custom-formatter.cjs"), i = require("./search-form.vue.cjs"), o = require("./utils.cjs"), s = require("./store.cjs"), n = require("./super-grid-service.cjs"), r = require("./apis.cjs"), a = require("sortablejs"), l = require("vue");
|
|
3
|
-
require("./super-nine-grid.vue2.cjs");
|
|
4
|
-
const c = require("../../_virtual/_plugin-vue_export-helper.cjs"), h = { name: "SuperNineGrid", components: { SearchForm: i }, props: { code: { type: String, default: "" }, url: { type: String, default: "" }, options: { type: Object, default: function() {
|
|
5
|
-
return {};
|
|
6
|
-
} }, publishVersion: { type: Number, default: 0 } }, data() {
|
|
7
|
-
let t2 = [];
|
|
8
|
-
this.options && this.options.mergeFields && "" !== this.options.mergeFields && (t2 = this.options.mergeFields.split(","));
|
|
9
|
-
const e2 = window.$vueApp.config.globalProperties.baseAPI + "/component/super-form/show-image?serverPath=", i2 = this.options && this.options.id ? this.options.id : "_nineGrid";
|
|
10
|
-
return { isLoading: false, currentPage: 1, showColumnConfig: false, basicInfo: { summary: "no" }, columns: [], pagination: null, query: null, lineEdit: null, gridData: [], sortInfo: null, pageSize: null, showSearch: false, height: null, isSql: false, hasLoadData: false, mergeFields: t2, hasLoadedColumns: false, seen: false, current: null, isHasCreate: true, screenBaseUrl: null, props: null, operations: [], propCloumns: null, multiple: false, createPermission: "true", urlToSaveOrder: null, selections: [], selectionIds: [], selectionModels: {}, searchFormContent: null, initSearchProps: [], defaultShowImageAction: e2, gridId: i2, storeId: this.code + "~" + i2, currentId: null, isShowRadio: !(!this.options || void 0 === this.options.showRadio) && this.options.showRadio, titleStyle: null, isShowEnableState: false, colSpan: 6, slotBefore: "before", titleWidth: this.options && this.options.style && void 0 !== this.options.style.titleWidth ? this.options.style.titleWidth : "60%", slotState: "bottom", isShowBottom: true };
|
|
11
|
-
}, computed: {}, provide: () => ({}), created() {
|
|
12
|
-
s.set(this.code + "~" + this.gridId, o.getGridParams()), s.set("_nine_list_code", this.code + "~" + this.gridId), this.initSetting(), this.initialize(), this.operations;
|
|
13
|
-
}, mounted() {
|
|
14
|
-
this.$watch("showSearch", function(t2, e2) {
|
|
15
|
-
this.$nextTick(() => {
|
|
16
|
-
let e3 = o.getTableHeight(t2, this.$refs.sf);
|
|
17
|
-
const i2 = this.resizeHeight();
|
|
18
|
-
i2 && (e3 = i2), this.height = e3;
|
|
19
|
-
});
|
|
20
|
-
}, { immediate: true, deep: true }), this.$watch("hasLoadData", function(t2, e2) {
|
|
21
|
-
true === t2 && this.$nextTick(() => {
|
|
22
|
-
const t3 = s.get(this.storeId);
|
|
23
|
-
o.isHasOptionFunction("gridComplete", this.storeId) && t3.options.gridComplete.call(this, { gridData: this.gridData, columns: t3.columns, superGrid: this.$refs.superGrid });
|
|
24
|
-
const e3 = this.resizeHeight();
|
|
25
|
-
e3 && (this.height = e3);
|
|
26
|
-
});
|
|
27
|
-
}, { immediate: true, deep: true });
|
|
28
|
-
}, methods: { ...n, ...r, ...e, getTitleStyle(t2) {
|
|
29
|
-
return this.options && this.options.titleStyle ? this.options.titleStyle.call(this, t2) : { width: "100%" };
|
|
30
|
-
}, getPropValue(t2, e2) {
|
|
31
|
-
let i2 = "";
|
|
32
|
-
const n2 = s.get(this.storeId);
|
|
33
|
-
if ("content" === t2) {
|
|
34
|
-
let t3 = "";
|
|
35
|
-
o.isHasOptionFunction("setContent", this.storeId) && (t3 = n2.options.getContent.call(this, e2)), void 0 !== t3 && "" !== t3 || (this.props && this.props.content ? t3 = this.objectPropValue(e2, this.propCloumns.content, this.props.content) : this.props && this.props.title && (t3 = this.objectPropValue(e2, this.propCloumns.title, this.props.title))), i2 = t3;
|
|
36
|
-
} else if ("title" === t2) {
|
|
37
|
-
let t3 = "";
|
|
38
|
-
o.isHasOptionFunction("setTitle", this.storeId) && (t3 = n2.options.setTitle.call(this, e2)), void 0 !== t3 && "" !== t3 || (this.props && this.props.title ? t3 = this.objectPropValue(e2, this.propCloumns.title, this.props.title) : this.props && this.props.content && (t3 = this.objectPropValue(e2, this.propCloumns.content, this.props.content))), i2 = t3;
|
|
39
|
-
} else if ("subTitle" === t2) {
|
|
40
|
-
let t3 = "";
|
|
41
|
-
o.isHasOptionFunction("setSubTitle", this.storeId) && (t3 = n2.options.setSubTitle.call(this, e2)), void 0 !== t3 && "" !== t3 || this.props && this.props.subTitle && (t3 = this.objectPropValue(e2, this.propCloumns.subTitle, this.props.subTitle)), i2 = t3;
|
|
42
|
-
}
|
|
43
|
-
return void 0 === i2 && (i2 = ""), i2;
|
|
44
|
-
}, resizeHeight() {
|
|
45
|
-
const t2 = s.get(this.storeId);
|
|
46
|
-
if (o.isHasOptionFunction("resizeHeight", this.storeId)) {
|
|
47
|
-
let e2 = 0;
|
|
48
|
-
return true === this.showSearch && this.$refs.sf && (e2 = this.$refs.sf.$el.offsetHeight), t2.options.resizeHeight.call(this, { code: this.code, height: this.height, searchHeight: e2 });
|
|
49
|
-
}
|
|
50
|
-
}, enter(t2) {
|
|
51
|
-
this.seen = true, this.current = t2;
|
|
52
|
-
}, leave() {
|
|
53
|
-
this.seen = false, this.current = null;
|
|
54
|
-
}, initSetting() {
|
|
55
|
-
const t2 = s.get(this.storeId);
|
|
56
|
-
void 0 !== this.options ? Object.assign(t2.options, this.options) : t2.options = {}, this.options && void 0 !== this.options.isHasCreate && (this.isHasCreate = this.options.isHasCreate), this.options && void 0 !== this.options.props && (this.props = this.options.props), this.options && void 0 !== this.options.operations && (this.operations = this.options.operations), this.options && void 0 !== this.options.createPermission && (this.createPermission = this.options.createPermission), this.options && void 0 !== this.options.multiple && (this.multiple = this.options.multiple), this.options && void 0 !== this.options.isShowEnableState && (this.isShowEnableState = this.options.isShowEnableState), this.options && void 0 !== this.options.colSpan && (this.colSpan = this.options.colSpan);
|
|
57
|
-
}, getPropColumns() {
|
|
58
|
-
this.columns && this.columns.length > 0 && (this.propCloumns = {}, this.columns.forEach((t2) => {
|
|
59
|
-
this.props.imageUrl && this.props.imageUrl === t2.prop && (this.propCloumns.imageUrl = t2), this.props.content && this.props.content === t2.prop && (this.propCloumns.content = t2), this.props.title && this.props.title === t2.prop && (this.propCloumns.title = t2), this.props.subTitle && this.props.subTitle === t2.prop && (this.propCloumns.subTitle = t2);
|
|
60
|
-
}));
|
|
61
|
-
}, fetchData(t2, e2) {
|
|
62
|
-
return new Promise((i2, n2) => {
|
|
63
|
-
if (this.clearSelections(), this.getPropColumns(), this.isLoading = true, this.hasLoadData = false, void 0 === e2 || false === e2) {
|
|
64
|
-
const e3 = window.sessionStorage.getItem("refreshList-" + this.storeId);
|
|
65
|
-
if (void 0 !== e3 && "true" === e3) {
|
|
66
|
-
const e4 = window.sessionStorage.getItem("searchParam-" + this.storeId);
|
|
67
|
-
if (null != e4 && "" !== e4) {
|
|
68
|
-
const i3 = (t2 = JSON.parse(e4)).pagination;
|
|
69
|
-
i3 && (this.currentPage = i3.currentPage, this.pagination.pageSize = i3.pageSize, this.pagination.showTotal = i3.showTotal), this.getInitSearchForm(t2.searchForm);
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
window.sessionStorage.removeItem("refreshList-" + this.storeId), void 0 === t2 && (t2 = this.getSearchParam());
|
|
74
|
-
const r2 = s.get(this.storeId);
|
|
75
|
-
let a2 = t2;
|
|
76
|
-
if (r2.options.extraParam && (a2 = { searchParam: t2 }, r2.options.extraParam))
|
|
77
|
-
for (const t3 in r2.options.extraParam)
|
|
78
|
-
a2[t3] = r2.options.extraParam[t3];
|
|
79
|
-
r2.searchParam = t2, r2.url = this.url;
|
|
80
|
-
const l2 = this.url;
|
|
81
|
-
window.sessionStorage.setItem("searchParam-" + this.storeId, JSON.stringify(a2)), this.$http.post(l2, a2).then((t3) => {
|
|
82
|
-
if (o.isHasOptionFunction("gridDataLoaded", this.storeId)) {
|
|
83
|
-
const e3 = r2.options.gridDataLoaded.call(this, { gridData: t3.data, columns: r2.columns });
|
|
84
|
-
this.gridData = e3 || t3.data;
|
|
85
|
-
} else
|
|
86
|
-
this.gridData = t3.data;
|
|
87
|
-
this.gridData || (this.gridData = []), null !== this.pagination && (this.pagination.total = t3.total), r2.gridData = this.gridData, r2.orgGridData = [].concat(JSON.parse(JSON.stringify(this.gridData))), r2.pagination = this.pagination, r2.loaded = true, this.hasLoadData = true, i2();
|
|
88
|
-
}).catch((t3) => {
|
|
89
|
-
o.isHasOptionFunction("loadError", this.storeId) && r2.options.loadError.call(this, this.code, t3), n2(t3);
|
|
90
|
-
});
|
|
91
|
-
});
|
|
92
|
-
}, getLength: (t2) => t2 && t2.length > 5 ? "(" + t2.substring(0, 5) + "...)" : t2 ? "(" + t2 + ")" : "", getInitSearchForm(t2) {
|
|
93
|
-
const e2 = s.get(this.storeId);
|
|
94
|
-
t2 && t2.length > 0 ? (this.searchFormContent = {}, t2.forEach((t3) => {
|
|
95
|
-
let e3 = t3.propName;
|
|
96
|
-
const i2 = t3.columnProp, s2 = t3.dataType;
|
|
97
|
-
s2 && "BOOLEAN" === s2 && (e3 = i2), this.initSearchProps.push(e3);
|
|
98
|
-
const n2 = t3.propValue;
|
|
99
|
-
e3.indexOf(".") > 0 ? o.addDynamicProp(this.searchFormContent, e3, n2) : this.searchFormContent[e3] = n2;
|
|
100
|
-
}), e2.searchForm = t2, this.showSearchForm()) : e2.searchForm = null;
|
|
101
|
-
}, showDemo() {
|
|
102
|
-
this.isLoading = true, this.$http.get(this.url).then((t2) => {
|
|
103
|
-
Object.assign(this, t2);
|
|
104
|
-
const e2 = s.get(this.storeId);
|
|
105
|
-
if (e2.listCode = this.code, e2.columns = this.columns, e2.columns && this.options.dynamicColumns)
|
|
106
|
-
for (var i2 = 0; i2 < this.options.dynamicColumns.length; i2++)
|
|
107
|
-
this.options.dynamicColumns[i2].dynamic = true, e2.columns.push(this.options.dynamicColumns[i2]);
|
|
108
|
-
if (e2.lineEdit = this.lineEdit, e2.basicInfo = this.basicInfo, e2.pagination = this.pagination, e2.query = this.query, this.gridData = t2.gridData, o.isHasOptionFunction("gridDataLoaded", this.storeId)) {
|
|
109
|
-
const i3 = e2.options.gridDataLoaded.call(this, t2.gridData);
|
|
110
|
-
this.gridData = i3 || t2.gridData;
|
|
111
|
-
} else
|
|
112
|
-
this.gridData = t2.gridData;
|
|
113
|
-
null != this.pagination && (this.pagination.total = t2.total), this.gridData || (this.gridData = []), e2.gridData = this.gridData, e2.orgGridData = [].concat(JSON.parse(JSON.stringify(this.gridData))), e2.pagination = this.pagination, o.isHasOptionFunction("gridComplete", this.storeId) && e2.options.gridComplete.call(this, this.gridData, e2.columns);
|
|
114
|
-
}).catch((t2) => {
|
|
115
|
-
if (o.isHasOptionFunction("loadError", this.storeId)) {
|
|
116
|
-
s.get(this.storeId).options.loadError.call(this, this.code, t2);
|
|
117
|
-
}
|
|
118
|
-
});
|
|
119
|
-
}, search(e2) {
|
|
120
|
-
const i2 = this;
|
|
121
|
-
return new Promise((o2, n2) => {
|
|
122
|
-
const r2 = s.get(i2.storeId);
|
|
123
|
-
r2.searchForm = null != e2 ? e2 : null, i2.fetchData(i2.getSearchParam(), true).then((e3) => {
|
|
124
|
-
void 0 !== r2.options && void 0 !== r2.options.isHiddenSearchForm && true === r2.options.isHiddenSearchForm && (i2.showSearch = false, t.$emit(i2, "cancel-search")), i2.$refs.sf && (i2.$refs.sf.loading = false), o2(e3);
|
|
125
|
-
}).catch((t2) => {
|
|
126
|
-
i2.$refs.sf && (i2.$refs.sf.loading = false), n2(t2);
|
|
127
|
-
});
|
|
128
|
-
});
|
|
129
|
-
}, getSearchParam() {
|
|
130
|
-
const t2 = { code: this.code }, e2 = s.get(this.storeId);
|
|
131
|
-
if (null !== this.pagination) {
|
|
132
|
-
const e3 = { currentPage: this.currentPage, pageSize: this.pagination.pageSize, showTotal: this.pagination.showTotal };
|
|
133
|
-
null !== this.pageSize && (e3.pageSize = this.pageSize), t2.pagination = e3;
|
|
134
|
-
}
|
|
135
|
-
if (null !== this.sortInfo && (t2.sorts = this.sortInfo), this.mergeFields && this.mergeFields.length > 0) {
|
|
136
|
-
t2.sorts || (t2.sorts = []);
|
|
137
|
-
const e3 = [];
|
|
138
|
-
for (const i2 of this.mergeFields) {
|
|
139
|
-
let o2 = true;
|
|
140
|
-
for (const e4 of t2.sorts)
|
|
141
|
-
if (e4.prop === i2) {
|
|
142
|
-
o2 = false;
|
|
143
|
-
break;
|
|
144
|
-
}
|
|
145
|
-
o2 && e3.push({ prop: i2, order: "ascending" });
|
|
146
|
-
}
|
|
147
|
-
e3.push(...t2.sorts), t2.sorts = e3;
|
|
148
|
-
}
|
|
149
|
-
return e2.options && void 0 !== e2.options.initSearchForm && (t2.initSearchForm = e2.options.initSearchForm), void 0 !== e2.searchForm ? t2.searchForm = e2.searchForm : t2.searchForm = [], t2;
|
|
150
|
-
}, handleSizeChange(t2) {
|
|
151
|
-
this.pageSize = t2, this.fetchData(this.getSearchParam());
|
|
152
|
-
}, handleCurrentChange(t2) {
|
|
153
|
-
this.fetchData(this.getSearchParam());
|
|
154
|
-
}, handleSortChange({ column: e2, prop: i2, order: o2 }) {
|
|
155
|
-
this.sortInfo = null !== i2 ? [{ prop: i2, order: o2 }] : null, this.fetchData(this.getSearchParam()), t.$emit(this, "sort-change", { column: e2, prop: i2, order: o2 });
|
|
156
|
-
}, resetSearch() {
|
|
157
|
-
this.search(null, false);
|
|
158
|
-
}, add() {
|
|
159
|
-
t.$emit(this, "add");
|
|
160
|
-
}, buttonClick(e2, i2) {
|
|
161
|
-
e2 && ("function" == typeof e2 ? e2.call(this, i2) : t.$emit(this, e2, i2));
|
|
162
|
-
}, clickContent(e2) {
|
|
163
|
-
this.changeSelect(e2), t.$emit(this, "click", e2);
|
|
164
|
-
}, rowDrop() {
|
|
165
|
-
if (this.urlToSaveOrder) {
|
|
166
|
-
let e2 = this.urlToSaveOrder;
|
|
167
|
-
if (e2.indexOf("http:") < 0 || e2.indexOf("https:") < 0) {
|
|
168
|
-
let t2 = window.$vueApp.config.globalProperties.baseURL;
|
|
169
|
-
t2.lastIndexOf("/") === t2.length - 1 && (t2 = t2.substring(0, t2.length - 1)), e2.indexOf("/") > 0 && (e2 = "/" + e2), e2 = t2 + e2;
|
|
170
|
-
}
|
|
171
|
-
const i2 = document.querySelector("#" + this.gridId + " .el-row");
|
|
172
|
-
if (null != i2) {
|
|
173
|
-
const o2 = this;
|
|
174
|
-
a.create(i2, { draggable: ".col-content", onEnd({ newIndex: i3, oldIndex: s2 }) {
|
|
175
|
-
null != document.querySelector("#" + o2.gridId + " #_addCardId_") && (s2 > 0 && (s2 -= 1), i3 > 0 && (i3 -= 1));
|
|
176
|
-
const n2 = { oldIndex: s2, newIndex: i3, gridData: o2.gridData };
|
|
177
|
-
o2.$http.post(e2, n2).then((e3) => {
|
|
178
|
-
const r2 = o2.gridData.splice(s2, 1)[0];
|
|
179
|
-
o2.gridData.splice(i3, 0, r2), o2.refresh().then(() => {
|
|
180
|
-
t.$emit(o2, "afterDrag", n2);
|
|
181
|
-
});
|
|
182
|
-
});
|
|
183
|
-
} });
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
}, changeChecked(t2, e2) {
|
|
187
|
-
const i2 = this.gridData[e2];
|
|
188
|
-
(t2 + "").indexOf("false-") >= 0 ? this.unselect(i2) : this.select(i2);
|
|
189
|
-
}, unselect(e2) {
|
|
190
|
-
const i2 = e2.id, o2 = this.selectionIds.indexOf(i2);
|
|
191
|
-
o2 > -1 && (this.selections.splice(o2, 1), this.selectionIds.splice(o2, 1)), t.$emit(this, "unselect", e2, this.selections), this.selectionModels["select" + i2] = "false-" + i2;
|
|
192
|
-
}, select(e2) {
|
|
193
|
-
const i2 = e2.id;
|
|
194
|
-
this.selectionIds.indexOf(i2) < 0 && (this.selectionIds[this.selectionIds.length] = i2, this.selections[this.selections.length] = e2), t.$emit(this, "select", e2, this.selections), this.selectionModels["select" + i2] = i2;
|
|
195
|
-
}, changeSelectWhenRadio(t2, e2) {
|
|
196
|
-
const i2 = this.gridData[e2];
|
|
197
|
-
this.selectionIds = [], this.selections = [], this.selectionModels = {}, this.select(i2);
|
|
198
|
-
}, changeSelect(t2) {
|
|
199
|
-
const e2 = t2.id;
|
|
200
|
-
true === this.multiple ? this.selectionIds && this.selectionIds.indexOf(e2) >= 0 ? this.unselect(t2) : this.select(t2) : (this.currentId = e2, this.selectionIds = [], this.selections = [], this.selectionModels = {}, this.select(t2));
|
|
201
|
-
}, isShowButton(t2, e2) {
|
|
202
|
-
const i2 = this.isShowButtonFun(t2, e2);
|
|
203
|
-
return void 0 === i2 || i2;
|
|
204
|
-
}, showEnableButton(t2) {
|
|
205
|
-
const e2 = s.get(this.storeId);
|
|
206
|
-
return !!o.isHasOptionFunction("showEnableButton", this.storeId) && e2.options.showEnableButton.call(this, t2);
|
|
207
|
-
}, changeState(t2) {
|
|
208
|
-
const e2 = s.get(this.storeId);
|
|
209
|
-
return !!o.isHasOptionFunction("changeState", this.storeId) && e2.options.changeState.call(this, t2);
|
|
210
|
-
} }, emits: ["sort-change", , "click", "afterDrag", "unselect", "select", "cancel-search", "add", ,] }, p = { class: "nine-grid-area" }, d = ["id"], u = { style: { "margin-top": "7px" } }, g = ["onClick", "onMouseenter"], m = { class: "image", style: { padding: "15px", "box-sizing": "border-box" } }, f = { key: 0, style: { "margin-left": "2px", color: "#00b42a", "background-color": "#e8ffea", width: "68px", "text-align": "center", display: "inline-block" } }, S = ["title"], C = { class: "button-style" }, y = { style: { padding: "10px", "box-sizing": "border-box", width: "50px" } }, k = { style: { "padding-left": "15px" } }, v = ["onClick"], w = { key: 0, style: { position: "absolute", right: "5%", bottom: "9%" } };
|
|
211
|
-
const b = c(h, [["render", function(t2, e2, i2, o2, s2, n2) {
|
|
212
|
-
const r2 = l.resolveComponent("search-form"), a2 = l.resolveComponent("Plus"), c2 = l.resolveComponent("el-icon"), h2 = l.resolveComponent("el-card"), b2 = l.resolveComponent("el-col"), I = l.resolveComponent("el-tooltip"), D = l.resolveComponent("SuccessFilled"), x = l.resolveComponent("el-button"), P = l.resolveComponent("el-row"), B = l.resolveComponent("el-pagination"), F = l.resolveDirective("permission");
|
|
213
|
-
return l.openBlock(), l.createElementBlock("div", null, [s2.hasLoadedColumns ? l.withDirectives((l.openBlock(), l.createBlock(r2, { key: 0, ref: "sf", code: i2.code, columns: s2.columns, "grid-id": s2.gridId, "init-search-props": s2.initSearchProps, pagination: s2.pagination, query: s2.query, "search-param": s2.searchFormContent, url: i2.url, onReset: n2.resetSearch, onSearch: n2.search }, null, 8, ["code", "columns", "grid-id", "init-search-props", "pagination", "query", "search-param", "url", "onReset", "onSearch"])), [[l.vShow, s2.showSearch]]) : l.createCommentVNode("", true), l.createElementVNode("div", p, [l.createElementVNode("div", { id: s2.gridId, style: l.normalizeStyle("height:" + s2.height + "px;overflow-y: auto;overflow-x: hidden;") }, [l.createVNode(P, { gutter: 24 }, { default: l.withCtx(() => [s2.isHasCreate ? l.withDirectives((l.openBlock(), l.createBlock(b2, { key: 0, id: "_addCardId_", span: s2.colSpan }, { default: l.withCtx(() => [l.createVNode(h2, { "body-style": { padding: "0px" }, style: { "border-radius": "4px", background: "#ffffff", border: "1px solid #e5e8ef" } }, { default: l.withCtx(() => [l.createElementVNode("div", { class: "add-screen", onClick: e2[0] || (e2[0] = (...t3) => n2.add && n2.add(...t3)) }, [l.createVNode(c2, null, { default: l.withCtx(() => [l.createVNode(a2)]), _: 1 }), l.createElementVNode("span", u, l.toDisplayString(t2.$t("superNineGrid.add")), 1)])]), _: 1 })]), _: 1 }, 8, ["span"])), [[F, s2.createPermission]]) : l.createCommentVNode("", true), (l.openBlock(true), l.createElementBlock(l.Fragment, null, l.renderList(s2.gridData, (i3, o3) => (l.openBlock(), l.createBlock(b2, { key: i3.id, offset: 1.5, span: s2.colSpan }, { default: l.withCtx(() => [l.createVNode(h2, { "body-style": { padding: "0px" }, style: l.normalizeStyle({ border: s2.selectionIds.indexOf(i3.id) > -1 ? "1px solid #005EBA" : "", position: "relative" }), shadow: "hover" }, { default: l.withCtx(() => [l.createElementVNode("div", { style: { height: "160px" }, onClick: (t3) => n2.clickContent(i3), onMouseenter: (t3) => n2.enter(o3), onMouseleave: e2[1] || (e2[1] = (t3) => n2.leave()) }, [l.createElementVNode("div", m, [l.createElementVNode("div", null, [l.createVNode(I, { content: s2.props && s2.props.content ? n2.getPropValue("content", i3) + "(" + i3.code + ")" : s2.props && s2.props.title ? n2.getPropValue("title", i3) + "(" + i3.code + ")" : "", effect: "dark", placement: "top-start" }, { default: l.withCtx(() => [s2.props && s2.props.content ? (l.openBlock(), l.createElementBlock("div", { key: 0, style: l.normalizeStyle("display: inline-block;width:" + s2.titleWidth), class: "ellipsis cell--span" }, l.toDisplayString(n2.getPropValue("content", i3) + "(" + i3.code + ")"), 5)) : s2.props && s2.props.title ? (l.openBlock(), l.createElementBlock("div", { key: 1, style: l.normalizeStyle("display: inline-block;width:" + s2.titleWidth), class: "ellipsis cell--span" }, l.toDisplayString(n2.getPropValue("title", i3) + "(" + i3.code + ")"), 5)) : l.createCommentVNode("", true)]), _: 2 }, 1032, ["content"]), n2.showEnableButton(i3) ? (l.openBlock(), l.createElementBlock("div", f, [l.createVNode(c2, null, { default: l.withCtx(() => [l.createVNode(D)]), _: 1 }), l.createElementVNode("span", { title: n2.getPropValue("subTitle", i3), style: { "margin-left": "4px" } }, l.toDisplayString(n2.getPropValue("subTitle", i3)), 9, S)])) : l.createCommentVNode("", true)]), l.createElementVNode("div", C, [l.createElementVNode("div", y, l.toDisplayString(t2.$t("imatrixUIPublicModel.edit")), 1), l.createElementVNode("div", k, [(l.openBlock(true), l.createElementBlock(l.Fragment, null, l.renderList(s2.operations, (t3) => (l.openBlock(), l.createElementBlock(l.Fragment, null, [n2.isShowButton(i3, t3) ? (l.openBlock(), l.createElementBlock(l.Fragment, { key: 0 }, [t3.icon ? l.withDirectives((l.openBlock(), l.createBlock(I, { key: t3.name, content: t3.name, class: "item", effect: "dark", placement: "top", style: { "background-color": "red" } }, { default: l.withCtx(() => [l.createVNode(c2, { class: l.normalizeClass(t3.icon + " icons"), onClick: l.withModifiers((e3) => n2.buttonClick(t3.event, i3), ["stop"]) }, { default: l.withCtx(() => [(l.openBlock(), l.createBlock(l.resolveDynamicComponent(t3.icon)))]), _: 2 }, 1032, ["class", "onClick"])]), _: 2 }, 1032, ["content"])), [[F, t3.permission ? t3.permission : "true"]]) : l.withDirectives((l.openBlock(), l.createElementBlock("em", { key: t3.name, class: l.normalizeClass(t3.name + " icons"), onClick: l.withModifiers((e3) => n2.buttonClick(t3.event, i3), ["stop"]) }, [l.createTextVNode(l.toDisplayString(t3.name), 1)], 10, v)), [[F, t3.permission ? t3.permission : "true"]])], 64)) : l.createCommentVNode("", true)], 64))), 256)), l.renderSlot(t2.$slots, s2.slotBefore, { params: i3 }, void 0, true)])]), s2.isShowBottom ? (l.openBlock(), l.createElementBlock("div", w, [l.renderSlot(t2.$slots, s2.slotState, { params: i3 }, void 0, true), s2.isShowEnableState ? (l.openBlock(), l.createElementBlock(l.Fragment, { key: 0 }, [n2.showEnableButton(i3) ? (l.openBlock(), l.createBlock(x, { key: 0, class: "button--default", size: "default", onClick: l.withModifiers((t3) => n2.changeState(i3), ["stop"]) }, { default: l.withCtx(() => [l.createTextVNode(l.toDisplayString(t2.$t("imatrixUIPublicModel.forbidden")), 1)]), _: 1 }, 8, ["onClick"])) : (l.openBlock(), l.createBlock(x, { key: 1, size: "default", type: "primary", onClick: l.withModifiers((t3) => n2.changeState(i3), ["stop"]) }, { default: l.withCtx(() => [l.createTextVNode(l.toDisplayString(t2.$t("imatrixUIPublicModel.startUsing")), 1)]), _: 1 }, 8, ["onClick"]))], 64)) : l.createCommentVNode("", true)])) : l.createCommentVNode("", true)])], 40, g)]), _: 2 }, 1032, ["style"])]), _: 2 }, 1032, ["span"]))), 128))]), _: 3 })], 12, d), s2.pagination ? (l.openBlock(), l.createBlock(B, { key: 0, background: "", "current-page": s2.currentPage, "onUpdate:currentPage": e2[2] || (e2[2] = (t3) => s2.currentPage = t3), "page-size": s2.pagination.pageSize, "onUpdate:pageSize": e2[3] || (e2[3] = (t3) => s2.pagination.pageSize = t3), layout: s2.pagination.layout, "page-sizes": s2.pagination.pageSizes, total: void 0 !== s2.pagination.total && "" !== s2.pagination.total && null !== s2.pagination.total ? s2.pagination.total : 0, onSizeChange: n2.handleSizeChange, onCurrentChange: n2.handleCurrentChange }, null, 8, ["current-page", "page-size", "layout", "page-sizes", "total", "onSizeChange", "onCurrentChange"])) : l.createCommentVNode("", true)])]);
|
|
214
|
-
}], ["__scopeId", "data-v-80f6a26f"]]);
|
|
215
|
-
module.exports = b;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const e = require("./store.cjs");
|
|
4
|
-
function t(e2) {
|
|
5
|
-
const t2 = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
6
|
-
if (e2) {
|
|
7
|
-
for (const n2 in e2)
|
|
8
|
-
if ("default" !== n2) {
|
|
9
|
-
const o = Object.getOwnPropertyDescriptor(e2, n2);
|
|
10
|
-
Object.defineProperty(t2, n2, o.get ? o : { enumerable: true, get: () => e2[n2] });
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
return t2.default = e2, Object.freeze(t2);
|
|
14
|
-
}
|
|
15
|
-
const n = t(require("vue"));
|
|
16
|
-
exports.addDynamicProp = function(e2, t2, n2) {
|
|
17
|
-
const o = t2.split(".");
|
|
18
|
-
if (1 === o.length)
|
|
19
|
-
return void (e2[t2] = void 0 !== n2 ? n2 : null);
|
|
20
|
-
let r = e2;
|
|
21
|
-
for (let e3 = 0; e3 < o.length - 1; e3++)
|
|
22
|
-
void 0 === r[o[e3]] && (r[o[e3]] = {}), r = r[o[e3]];
|
|
23
|
-
r[o[o.length - 1]] = void 0 !== n2 ? n2 : null;
|
|
24
|
-
}, exports.getGridParams = function() {
|
|
25
|
-
return n.reactive({ columns: [], gridData: [], orgGridData: [], showValidateError: true, options: {} });
|
|
26
|
-
}, exports.getTableHeight = function(e2, t2) {
|
|
27
|
-
if (true === e2) {
|
|
28
|
-
let e3 = 0;
|
|
29
|
-
return t2 && (e3 = t2.$el.offsetHeight), window.innerHeight - e3 - 165;
|
|
30
|
-
}
|
|
31
|
-
return window.innerHeight - 165;
|
|
32
|
-
}, exports.isHasOptionFunction = function(t2, n2) {
|
|
33
|
-
n2 || (n2 = e.get("_nine_list_code")), n2 && n2.indexOf("~") < 0 && (n2 += "~_nineGrid");
|
|
34
|
-
const o = e.get(n2);
|
|
35
|
-
return !(!o.options || "function" != typeof o.options[t2]);
|
|
36
|
-
};
|
package/lib/svg-icon/index.cjs
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const e = require("vue");
|
|
3
|
-
require("./svg-icon.vue2.cjs");
|
|
4
|
-
const s = require("../../_virtual/_plugin-vue_export-helper.cjs"), r = ["xlink:href"];
|
|
5
|
-
const n = s({ name: "SvgIcon", props: { iconClass: { type: String, required: true }, className: { type: String, default: "" } }, computed: { iconName() {
|
|
6
|
-
return `#icon-${this.iconClass}`;
|
|
7
|
-
}, svgClass() {
|
|
8
|
-
return this.className ? "svg-icon " + this.className : "svg-icon";
|
|
9
|
-
} } }, [["render", function(s2, n2, t, c, i, a) {
|
|
10
|
-
return e.openBlock(), e.createElementBlock("svg", { class: e.normalizeClass(a.svgClass), "aria-hidden": "true" }, [e.createElementVNode("use", { "xlink:href": a.iconName }, null, 8, r)], 2);
|
|
11
|
-
}], ["__scopeId", "data-v-67e4e504"]]);
|
|
12
|
-
module.exports = n;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const t = /* @__PURE__ */ new WeakMap();
|
|
4
|
-
function e(e2) {
|
|
5
|
-
let r2 = t.get(e2);
|
|
6
|
-
return r2 || t.set(e2, r2 = /* @__PURE__ */ Object.create(null)), r2;
|
|
7
|
-
}
|
|
8
|
-
exports.$emit = function(t3, r2, ...n) {
|
|
9
|
-
t3 && t3.$emit && t3.$emit(r2, ...n);
|
|
10
|
-
const o = e(t3)[r2];
|
|
11
|
-
return o && o.map((e2) => e2.apply(t3, n)), t3;
|
|
12
|
-
}, exports.$off = function r(n, o, c) {
|
|
13
|
-
const i = n;
|
|
14
|
-
if (!o)
|
|
15
|
-
return t.set(n, /* @__PURE__ */ Object.create(null)), i;
|
|
16
|
-
if (Array.isArray(o))
|
|
17
|
-
return o.forEach((t3) => r(n, t3, c)), i;
|
|
18
|
-
const s = e(n), u = s[o];
|
|
19
|
-
return u ? c ? (s[o] = u.filter((t3) => !(t3 === c || t3.fn === c)), i) : (s[o] = void 0, i) : i;
|
|
20
|
-
}, exports.$on = function t2(r2, n, o) {
|
|
21
|
-
if (Array.isArray(n))
|
|
22
|
-
n.forEach((e2) => t2(r2, e2, o));
|
|
23
|
-
else {
|
|
24
|
-
const t3 = e(r2);
|
|
25
|
-
(t3[n] || (t3[n] = [])).push(o);
|
|
26
|
-
}
|
|
27
|
-
return r2;
|
|
28
|
-
};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const e = require("../src/utils/local-storage.cjs"), t = { memorySearch(e2, t2) {
|
|
3
|
-
var a = this.memoryCacheData;
|
|
4
|
-
setTimeout(() => {
|
|
5
|
-
t2(a);
|
|
6
|
-
}, 10 * Math.random());
|
|
7
|
-
}, setMemoryCacheData(e2, t2) {
|
|
8
|
-
"departmentUser" === t2 ? this.setDepartmentUserMemoryCacheData(e2) : "department" === t2 && this.setDepartmentMemoryCacheData(e2);
|
|
9
|
-
}, getMemoryCacheData(e2) {
|
|
10
|
-
"departmentUser" === e2 ? this.getDepartmentUserMemoryCacheData() : "department" === e2 && this.getDepartmentMemoryCacheData();
|
|
11
|
-
}, setDepartmentUserMemoryCacheData(t2) {
|
|
12
|
-
var a = e.getObject(this.memoryCacheKey);
|
|
13
|
-
const m = (void 0 === t2.name || null === t2.name || "undefined" === t2.name ? "" : t2.name) + "(" + (void 0 === t2.loginName || null === t2.loginName || "undefined" === t2.loginName ? "" : t2.loginName) + "/" + (void 0 === t2.mainDepartmentName || null === t2.mainDepartmentName || "undefined" === t2.mainDepartmentName ? "" : t2.mainDepartmentName) + ")";
|
|
14
|
-
var n = -1;
|
|
15
|
-
a && a.length > 0 ? n = a.findIndex((e2) => e2.loginName === t2.loginName) : a = [], t2.value = m, n < 0 ? (10 === a.length && a.splice(9, 1), a.unshift(t2), e.setObject(this.memoryCacheKey, a)) : (a.splice(n, 1), a.unshift(t2), e.setObject(this.memoryCacheKey, a));
|
|
16
|
-
}, setDepartmentMemoryCacheData(t2) {
|
|
17
|
-
var a = e.getObject(this.memoryCacheKey);
|
|
18
|
-
const m = (void 0 === t2.name || null === t2.name || "undefined" === t2.name ? "" : t2.name) + "(" + (void 0 === t2.code || null === t2.code || "undefined" === t2.code ? "" : t2.code) + ")";
|
|
19
|
-
var n = -1;
|
|
20
|
-
a && a.length > 0 ? n = a.findIndex((e2) => e2.code === t2.code) : a = [], t2.value = m, n < 0 ? (10 === a.length && a.splice(9, 1), a.unshift(t2), e.setObject(this.memoryCacheKey, a)) : (a.splice(n, 1), a.unshift(t2), e.setObject(this.memoryCacheKey, a));
|
|
21
|
-
}, getDepartmentUserMemoryCacheData() {
|
|
22
|
-
var t2 = e.getObject(this.memoryCacheKey);
|
|
23
|
-
t2 && t2.length > 0 && (this.memoryCacheData = t2);
|
|
24
|
-
}, getDepartmentMemoryCacheData() {
|
|
25
|
-
var t2 = e.getObject(this.memoryCacheKey);
|
|
26
|
-
t2 && t2.length > 0 && (this.memoryCacheData = t2);
|
|
27
|
-
} };
|
|
28
|
-
module.exports = t;
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }), exports.addSelectedUserInfo = function(e, a, n) {
|
|
3
|
-
if (e.userIds.indexOf(a.id) < 0) {
|
|
4
|
-
e.userIds.push(a.id), e.loginNames.push(a.loginName), a.email && "" !== a.email && e.emails.push(a.email), a.telephone && "" !== a.telephone && e.telephones.push(a.telephone), a.user ? e.users.push(a.user) : e.users.push(a);
|
|
5
|
-
var t = a.name;
|
|
6
|
-
a.enName && "" !== a.enName && (t = t + "(" + a.enName + ")"), e.userNames.push(t), e.userZhNames.push(a.name), e.userEnNames.push(a.enName ? a.enName : "");
|
|
7
|
-
}
|
|
8
|
-
}, exports.getDeptNamePath = function(e) {
|
|
9
|
-
let a = "";
|
|
10
|
-
if (e && e.data) {
|
|
11
|
-
a = JSON.parse(e.data).namePath;
|
|
12
|
-
}
|
|
13
|
-
return a;
|
|
14
|
-
}, exports.getShowDeptNamePath = function(e, a) {
|
|
15
|
-
let n = "";
|
|
16
|
-
if (a.namePath)
|
|
17
|
-
return e === a.namePath ? "" : a.namePath;
|
|
18
|
-
if (a && a.data) {
|
|
19
|
-
const t = JSON.parse(a.data);
|
|
20
|
-
if (e === t.namePath)
|
|
21
|
-
return "";
|
|
22
|
-
n = t.namePath;
|
|
23
|
-
}
|
|
24
|
-
return n;
|
|
25
|
-
}, exports.getUserMainDeptName = function(e) {
|
|
26
|
-
let a = "";
|
|
27
|
-
if (e && e.data) {
|
|
28
|
-
const n = JSON.parse(e.data);
|
|
29
|
-
n.mainDepartmentEnName && "" !== n.mainDepartmentEnName && window.$locale && "cn" !== window.$locale ? a = n.mainDepartmentEnName : n.mainDepartmentName && "" !== n.mainDepartmentName && (a = n.mainDepartmentName);
|
|
30
|
-
}
|
|
31
|
-
return a;
|
|
32
|
-
}, exports.initSelectUsers = function(e, a, n) {
|
|
33
|
-
return new Promise((t, r) => {
|
|
34
|
-
const i = [];
|
|
35
|
-
a ? "所有用户" === a ? (i.push({ id: -1, name: "所有用户" }), t(i)) : "所有工作组人员" === a ? (i.push({ id: -1, name: "所有工作组人员" }), t(i)) : function(e2, a2, n2) {
|
|
36
|
-
return new Promise((t2, r2) => {
|
|
37
|
-
e2 && a2 ? window.$vueApp.config.globalProperties.$http.get(window.$vueApp.config.globalProperties.baseAPI + "/component/organization-trees/select-users-mobile?searchField=" + e2 + "&selectUserInfo=" + a2 + "&separator=" + n2).then((e3) => {
|
|
38
|
-
t2(e3);
|
|
39
|
-
}).catch((e3) => {
|
|
40
|
-
r2(e3);
|
|
41
|
-
}) : t2([]);
|
|
42
|
-
});
|
|
43
|
-
}(e, a, n).then((e2) => {
|
|
44
|
-
t(e2);
|
|
45
|
-
}).catch((e2) => {
|
|
46
|
-
r(e2);
|
|
47
|
-
}) : t(i);
|
|
48
|
-
});
|
|
49
|
-
}, exports.packageSelectResult = function(e, a) {
|
|
50
|
-
let n = e.name;
|
|
51
|
-
return e.enName && "" !== e.enName.trim() && (n = n + "(" + e.enName + ")"), { id: e.id, name: n, zhName: e.name, loginName: e.loginName, email: e.email, telephone: e.telephone, containBranch: a, user: e, enName: e.enName ? e.enName : "", subCompanyName: e.subCompanyName, divisionManager: e.divisionManager, divisionManagerName: e.divisionManagerName };
|
|
52
|
-
}, exports.resizeScrollTargetHeightUtil = function() {
|
|
53
|
-
let e = window.innerHeight - 16;
|
|
54
|
-
return document.querySelector(".el-page-header") && (e -= 50), document.querySelector(".mobile-tab") && (e -= 56), e;
|
|
55
|
-
};
|