agilebuilder-ui 1.1.65-tmp15 → 1.1.65-tmp17
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/lib/IntervalSelection/index.js +5 -7
- package/lib/IntervalSelection/src/sectionDate.vue.js +17 -21
- package/lib/IntervalSelection/src/sectionDate.vue2.js +2 -4
- package/lib/_virtual/__vite-browser-external.js +2 -4
- package/lib/_virtual/_plugin-vue_export-helper.js +6 -8
- package/lib/breadcrumb/index.js +3 -5
- package/lib/breadcrumb/src/breadcrumb.vue.js +28 -19
- package/lib/breadcrumb/src/breadcrumb.vue2.js +2 -4
- package/lib/chat-embed/index.js +3 -5
- package/lib/chat-embed/src/chat-addition-data.vue.js +5 -7
- package/lib/chat-embed/src/chat-addition-data.vue2.js +11 -13
- package/lib/chat-embed/src/chat-addition-data.vue3.js +2 -4
- package/lib/chat-embed/src/chat-ai-answer-tip.vue.js +5 -7
- package/lib/chat-embed/src/chat-ai-answer-tip.vue2.js +17 -20
- package/lib/chat-embed/src/chat-ai-answer-tip.vue3.js +2 -4
- package/lib/chat-embed/src/chat-bubble-footer.vue.js +5 -7
- package/lib/chat-embed/src/chat-bubble-footer.vue2.js +17 -22
- package/lib/chat-embed/src/chat-bubble-footer.vue3.js +2 -4
- package/lib/chat-embed/src/chat-embed-message.js +14 -20
- package/lib/chat-embed/src/chat-sender.vue.js +5 -7
- package/lib/chat-embed/src/chat-sender.vue2.js +110 -123
- package/lib/chat-embed/src/chat-sender.vue3.js +2 -4
- package/lib/chat-embed/src/components/answer-auto-chart.vue.js +5 -7
- package/lib/chat-embed/src/components/answer-auto-chart.vue2.js +42 -50
- package/lib/chat-embed/src/components/answer-auto-chart.vue3.js +2 -4
- package/lib/chat-embed/src/components/answer-home-chart.vue.js +5 -7
- package/lib/chat-embed/src/components/answer-home-chart.vue2.js +3 -6
- package/lib/chat-embed/src/components/answer-home-chart.vue3.js +2 -4
- package/lib/chat-embed/src/components/answer-interaction-data.vue.js +5 -7
- package/lib/chat-embed/src/components/answer-interaction-data.vue2.js +74 -84
- package/lib/chat-embed/src/components/answer-interaction-data.vue3.js +2 -4
- package/lib/chat-embed/src/components/history-detail.vue.js +5 -7
- package/lib/chat-embed/src/components/history-detail.vue2.js +27 -32
- package/lib/chat-embed/src/components/history-detail.vue3.js +2 -4
- package/lib/chat-embed/src/header.vue.js +5 -7
- package/lib/chat-embed/src/header.vue2.js +25 -32
- package/lib/chat-embed/src/header.vue3.js +2 -4
- package/lib/chat-embed/src/index.vue.js +5 -7
- package/lib/chat-embed/src/index.vue2.js +185 -211
- package/lib/chat-embed/src/index.vue3.js +2 -4
- package/lib/chat-embed/src/recommendation-message.vue.js +5 -7
- package/lib/chat-embed/src/recommendation-message.vue2.js +5 -8
- package/lib/chat-embed/src/recommendation-message.vue3.js +2 -4
- package/lib/chat-embed/src/sidebar-item.vue.js +5 -7
- package/lib/chat-embed/src/sidebar-item.vue2.js +84 -93
- package/lib/chat-embed/src/sidebar-item.vue3.js +2 -4
- package/lib/chat-embed/src/type.js +3 -5
- package/lib/chat-embed/src/util/chat-embed-util.js +35 -41
- package/lib/chat-embed/src/util/history-message-util.js +63 -85
- package/lib/chat-embed/src/util/mcp-utils.js +5 -8
- package/lib/chat-embed/src/util/text-file-util.js +7 -11
- package/lib/chat-embed/src/voice/index.js +5 -7
- package/lib/chat-embed/src/voice/js/crypto-js.js +987 -995
- package/lib/chat-embed/src/voice/js/processor/index.umd.js +161 -169
- package/lib/chat-embed/src/voice/js/timer.js +7 -10
- package/lib/chat-embed/src/voice/voice.vue.js +61 -70
- package/lib/date-picker-range/index.js +5 -7
- package/lib/date-picker-range/index.vue.js +5 -7
- package/lib/date-picker-range/index.vue2.js +59 -63
- package/lib/date-picker-range/index.vue3.js +2 -4
- package/lib/department-tree/index.js +3 -5
- package/lib/department-tree/src/department-tree.vue.js +11 -17
- package/lib/department-tree-inline/index.js +3 -5
- package/lib/department-tree-inline/src/department-multi-tree-inline.vue.js +17 -27
- package/lib/department-tree-inline/src/department-multi-tree-inline.vue2.js +2 -4
- package/lib/department-tree-inline/src/department-single-tree-inline.vue.js +17 -27
- package/lib/department-tree-inline/src/department-single-tree-inline.vue2.js +2 -4
- package/lib/department-tree-inline/src/department-tree-inline.vue.js +8 -13
- package/lib/department-tree-inline/src/department-tree-service.js +8 -10
- package/lib/department-tree-inline/src/search-result.vue.js +19 -23
- package/lib/department-tree-inline/src/search-result.vue2.js +2 -4
- package/lib/department-tree-mobile/index.js +4 -7
- package/lib/department-tree-mobile/src/department-tree-app.vue.js +9 -12
- package/lib/department-tree-mobile/src/department-tree-app.vue2.js +2 -4
- package/lib/department-tree-mobile/src/department-tree-app.vue3.js +3 -5
- package/lib/department-tree-mobile/src/department-tree-inline-app.vue.js +80 -91
- package/lib/department-tree-mobile/src/department-tree-inline-app.vue2.js +3 -4
- package/lib/department-tree-mobile/src/department-tree-service.js +32 -42
- package/lib/department-tree-mobile/src/dept-path.vue.js +10 -11
- package/lib/department-tree-mobile/src/dept-path.vue2.js +3 -4
- package/lib/department-tree-mobile/src/dept-result.vue.js +11 -14
- package/lib/department-tree-mobile/src/dept-result.vue2.js +3 -4
- package/lib/department-user-tree/index.js +3 -5
- package/lib/department-user-tree/src/department-user-multiple-tree.vue.js +10 -14
- package/lib/department-user-tree/src/department-user-multiple-tree.vue2.js +2 -4
- package/lib/department-user-tree/src/department-user-single-tree.vue.js +9 -14
- package/lib/department-user-tree/src/department-user-tree.vue.js +14 -20
- package/lib/department-user-tree-inline/index.js +3 -5
- package/lib/department-user-tree-inline/src/department-user-multiple-tree-inline.vue.js +17 -28
- package/lib/department-user-tree-inline/src/department-user-multiple-tree-inline.vue2.js +2 -4
- package/lib/department-user-tree-inline/src/department-user-single-tree-inline.vue.js +21 -33
- package/lib/department-user-tree-inline/src/department-user-single-tree-inline.vue2.js +2 -4
- package/lib/department-user-tree-inline/src/department-user-tree-inline.vue.js +8 -13
- package/lib/department-user-tree-inline/src/department-user-tree-multi-service.js +6 -9
- package/lib/department-user-tree-inline/src/department-user-tree-single-service.js +8 -11
- package/lib/department-user-tree-inline/src/group-user/group-input.vue.js +7 -12
- package/lib/department-user-tree-inline/src/group-user/group-list.vue.js +7 -12
- package/lib/department-user-tree-inline/src/group-user/group-user.vue.js +8 -14
- package/lib/department-user-tree-inline/src/group-user-multiple-tree.vue.js +14 -20
- package/lib/department-user-tree-inline/src/group-user-single-tree.vue.js +17 -23
- package/lib/department-user-tree-inline/src/group-user-tree-service.js +2 -3
- package/lib/department-user-tree-inline/src/search-result.vue.js +12 -15
- package/lib/department-user-tree-inline/src/search-result.vue2.js +2 -4
- package/lib/department-user-tree-mobile/index.js +4 -7
- package/lib/department-user-tree-mobile/src/department-user-tree-app.vue.js +9 -12
- package/lib/department-user-tree-mobile/src/department-user-tree-app.vue2.js +2 -4
- package/lib/department-user-tree-mobile/src/department-user-tree-app.vue3.js +3 -5
- package/lib/department-user-tree-mobile/src/department-user-tree-inline-app.vue.js +93 -104
- package/lib/department-user-tree-mobile/src/department-user-tree-inline-app.vue2.js +3 -4
- package/lib/department-user-tree-mobile/src/department-user-tree-service.js +20 -30
- package/lib/department-user-tree-mobile/src/dept-path.vue.js +10 -11
- package/lib/department-user-tree-mobile/src/dept-path.vue2.js +3 -4
- package/lib/department-user-tree-mobile/src/dept-result.vue.js +11 -15
- package/lib/department-user-tree-mobile/src/dept-result.vue2.js +3 -4
- package/lib/directives/prevent-reclick.js +2 -3
- package/lib/dynamic-source-select/index.js +5 -7
- package/lib/dynamic-source-select/src/dynamic-source-select-service.js +13 -15
- package/lib/dynamic-source-select/src/dynamic-source-select.vue.js +173 -183
- package/lib/dynamic-source-select/src/dynamic-source-select.vue2.js +2 -4
- package/lib/dynamic-source-select/src/dynamic-source-select.vue3.js +2 -4
- package/lib/dynamic-source-select/src/events.js +2 -3
- package/lib/empty-state/index.vue.js +5 -8
- package/lib/empty-state/index.vue2.js +3 -4
- package/lib/fs-preview/index.js +5 -7
- package/lib/fs-preview/src/fs-preview.vue.js +63 -72
- package/lib/fs-preview/src/fs-preview.vue2.js +2 -4
- package/lib/fs-upload/index.js +5 -7
- package/lib/fs-upload/src/fs-upload-multi.vue.js +24 -32
- package/lib/fs-upload/src/fs-upload-single.vue.js +30 -39
- package/lib/fs-upload/src/fs-upload.vue.js +10 -16
- package/lib/fs-upload/src/see-big-picture.vue.js +8 -11
- package/lib/fs-upload-list/index.js +5 -7
- package/lib/fs-upload-list/src/fs-upload-list.vue.js +33 -40
- package/lib/fs-upload-list/src/fs-upload-list.vue2.js +2 -4
- package/lib/fs-upload-new/index.js +5 -7
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-app.vue.js +34 -38
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-app.vue2.js +3 -4
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue.js +101 -109
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue2.js +3 -4
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-component.vue.js +5 -7
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-component.vue2.js +26 -33
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-component.vue3.js +2 -4
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-input.vue.js +27 -31
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-input.vue2.js +3 -4
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload.vue.js +18 -24
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload.vue2.js +3 -4
- package/lib/fs-upload-new/src/fs-button-upload.vue.js +5 -7
- package/lib/fs-upload-new/src/fs-button-upload.vue2.js +36 -43
- package/lib/fs-upload-new/src/fs-button-upload.vue3.js +2 -4
- package/lib/fs-upload-new/src/fs-drag-upload.vue.js +5 -7
- package/lib/fs-upload-new/src/fs-drag-upload.vue2.js +37 -45
- package/lib/fs-upload-new/src/fs-drag-upload.vue3.js +2 -4
- package/lib/fs-upload-new/src/fs-preview-new.vue.js +5 -8
- package/lib/fs-upload-new/src/fs-preview-new.vue2.js +61 -70
- package/lib/fs-upload-new/src/fs-preview-new.vue3.js +2 -4
- package/lib/fs-upload-new/src/fs-preview-new.vue4.js +2 -4
- package/lib/fs-upload-new/src/fs-upload-new.vue.js +37 -47
- package/lib/fs-upload-new/src/fs-upload-new.vue2.js +3 -4
- package/lib/hamburger/index.js +3 -5
- package/lib/hamburger/src/hamburger.vue.js +10 -14
- package/lib/hamburger/src/hamburger.vue2.js +2 -4
- package/lib/index.js +40 -382
- package/lib/json-view/json-view-dialog.vue.js +12 -15
- package/lib/json-view/json-view-dialog.vue2.js +3 -4
- package/lib/json-view/json-view.vue.js +3 -4
- package/lib/json-view/json-view.vue2.js +27 -31
- package/lib/multipart-upload/index.js +5 -7
- package/lib/multipart-upload/src/index.vue.js +7 -11
- package/lib/multipart-upload/src/multipart-upload-form.vue.js +40 -49
- package/lib/multipart-upload/src/multipart-upload-list.vue.js +59 -67
- package/lib/organization-input/index.js +5 -7
- package/lib/organization-input/src/organization-input.vue.js +31 -37
- package/lib/organization-input/src/organization-input.vue2.js +2 -4
- package/lib/plugins/export-data-new.js +96 -104
- package/lib/plugins/export-data.js +45 -51
- package/lib/plugins/index.js +4 -8
- package/lib/plugins/public-method.js +2 -3
- package/lib/remove-department/index.js +3 -5
- package/lib/remove-department/src/remove-department.vue.js +13 -19
- package/lib/remove-department/src/remove-dept-service.js +9 -10
- package/lib/remove-user/index.js +5 -7
- package/lib/remove-user/src/remove-user-service.js +3 -4
- package/lib/remove-user/src/remove-user.vue.js +16 -22
- package/lib/remove-workgroup/index.js +5 -7
- package/lib/remove-workgroup/src/remove-workgroup-service.js +3 -4
- package/lib/remove-workgroup/src/remove-workgroup.vue.js +12 -18
- package/lib/rich-editor/index.js +5 -7
- package/lib/rich-editor/index.vue.js +28 -76
- package/lib/rich-editor/tinymce/zh_CN.js +2 -2
- package/lib/rich-editor/viewer.vue.js +7 -10
- package/lib/row-form/index.js +5 -7
- package/lib/row-form/index.vue.js +5 -7
- package/lib/row-form/index.vue2.js +41 -47
- package/lib/row-form/index.vue3.js +2 -4
- package/lib/row-form/operation.vue.js +22 -26
- package/lib/row-form/operation.vue2.js +3 -4
- package/lib/scan-code-input/index.js +5 -7
- package/lib/scan-code-input/src/events.js +11 -13
- package/lib/scan-code-input/src/scan-code-input.vue.js +9 -15
- package/lib/scan-code-input-browser/index.js +5 -7
- package/lib/scan-code-input-browser/src/scan-code-input.vue.js +16 -21
- package/lib/secret-info/index.js +5 -7
- package/lib/secret-info/index.vue.js +6 -9
- package/lib/src/api/sso-service.js +34 -36
- package/lib/src/api/tab.js +8 -9
- package/lib/src/assets/401/401.gif.js +2 -4
- package/lib/src/assets/404/404-cloud.png.js +2 -4
- package/lib/src/assets/404/404.png.js +2 -4
- package/lib/src/assets/chat-embed/robot.gif.js +2 -4
- package/lib/src/assets/chat-embed/robot.svg.js +2 -4
- package/lib/src/assets/nonemessage.png.js +2 -4
- package/lib/src/components/Affix/index.vue.js +5 -7
- package/lib/src/components/Affix/index.vue2.js +56 -58
- package/lib/src/components/Affix/index.vue3.js +2 -4
- package/lib/src/components/Card/index.js +33 -38
- package/lib/src/components/Scrollbar/index.vue.js +33 -37
- package/lib/src/components/Scrollbar/index.vue2.js +2 -4
- package/lib/src/directives/permission/index.js +3 -5
- package/lib/src/directives/permission/permission.js +7 -9
- package/lib/src/i18n/i18n.js +3 -7
- package/lib/src/i18n/langs/cn.js +2 -4
- package/lib/src/i18n/langs/en.js +2 -4
- package/lib/src/mixins/resizeMixin.js +2 -3
- package/lib/src/permission.js +43 -46
- package/lib/src/router/index.js +16 -9
- package/lib/src/store/getters.js +2 -4
- package/lib/src/store/index.js +16 -13
- package/lib/src/store/modules/app.js +3 -4
- package/lib/src/store/modules/chat-ai-store.js +19 -22
- package/lib/src/store/modules/permission.js +10 -11
- package/lib/src/store/modules/system.js +7 -9
- package/lib/src/store/modules/tab-content.js +13 -15
- package/lib/src/store/modules/table.js +2 -3
- package/lib/src/store/modules/user.js +89 -95
- package/lib/src/utils/auth-api.js +3 -5
- package/lib/src/utils/auth.js +69 -139
- package/lib/src/utils/calculator/calculator-factory-wf.js +48 -49
- package/lib/src/utils/calculator/calculator-factory.js +57 -58
- package/lib/src/utils/calculator/calculator-util.js +29 -32
- package/lib/src/utils/chat-ai-util.js +17 -25
- package/lib/src/utils/common-util.js +271 -356
- package/lib/src/utils/eventBus.js +3 -6
- package/lib/src/utils/file-util.js +15 -16
- package/lib/src/utils/global-prop.js +21 -37
- package/lib/src/utils/guid.js +5 -8
- package/lib/src/utils/i18n-util.js +16 -24
- package/lib/src/utils/iconUtils.js +16 -23
- package/lib/src/utils/index.js +26 -40
- package/lib/src/utils/insert_css.js +8 -7
- package/lib/src/utils/json-util.js +25 -27
- package/lib/src/utils/jump-page-utils.js +172 -180
- package/lib/src/utils/local-storage.js +2 -3
- package/lib/src/utils/menu.js +10 -11
- package/lib/src/utils/permission.js +22 -26
- package/lib/src/utils/permissionAuth.js +102 -136
- package/lib/src/utils/range-selector.js +41 -45
- package/lib/src/utils/request.js +77 -86
- package/lib/src/utils/resize.js +5 -5
- package/lib/src/utils/restful-interface-utils.js +12 -15
- package/lib/src/utils/util.js +6 -26
- package/lib/src/utils/validate.js +10 -20
- package/lib/src/utils/voice-setting-cache.js +140 -153
- package/lib/src/utils/watermark-cache.js +9 -14
- package/lib/src/utils/watermark.js +23 -30
- package/lib/src/utils/workflow-util.js +25 -26
- package/lib/src/views/dsc-component/Sidebar/Item.vue.js +5 -7
- package/lib/src/views/dsc-component/Sidebar/Item.vue2.js +8 -11
- package/lib/src/views/dsc-component/Sidebar/Item.vue3.js +2 -4
- package/lib/src/views/dsc-component/Sidebar/Link.vue.js +9 -12
- package/lib/src/views/dsc-component/Sidebar/SidebarItem.vue.js +19 -26
- package/lib/src/views/dsc-component/Sidebar/SidebarItem.vue2.js +2 -4
- package/lib/src/views/dsc-component/Sidebar/index.vue.js +12 -20
- package/lib/src/views/dsc-component/tabs/tab-content.vue.js +21 -26
- package/lib/src/views/dsc-component/tabs/tab-content.vue2.js +2 -4
- package/lib/src/views/dsc-component/tabs/tab-content.vue3.js +2 -4
- package/lib/src/views/error-page/401.vue.js +9 -13
- package/lib/src/views/error-page/401.vue2.js +2 -4
- package/lib/src/views/error-page/404.vue.js +7 -11
- package/lib/src/views/error-page/404.vue2.js +2 -4
- package/lib/src/views/layout/EmptyLayout.vue.js +6 -8
- package/lib/src/views/layout/Layout.vue.js +12 -19
- package/lib/src/views/layout/Layout.vue2.js +2 -4
- package/lib/src/views/layout/NewLayout.vue.js +6 -10
- package/lib/src/views/layout/components/AppMain.vue.js +9 -11
- package/lib/src/views/layout/components/AppMain.vue2.js +2 -4
- package/lib/src/views/layout/components/Breadcrumb/index.vue.js +44 -37
- package/lib/src/views/layout/components/Breadcrumb/index.vue2.js +2 -4
- package/lib/src/views/layout/components/Menubar/Item.vue.js +5 -7
- package/lib/src/views/layout/components/Menubar/Item.vue2.js +12 -14
- package/lib/src/views/layout/components/Menubar/Item.vue3.js +2 -4
- package/lib/src/views/layout/components/Menubar/Link.vue.js +9 -12
- package/lib/src/views/layout/components/Menubar/SidebarItem.vue.js +15 -24
- package/lib/src/views/layout/components/Menubar/SidebarItem.vue2.js +2 -4
- package/lib/src/views/layout/components/Menubar/index.vue.js +19 -30
- package/lib/src/views/layout/components/Sidebar/Item.vue.js +6 -8
- package/lib/src/views/layout/components/Sidebar/Item.vue2.js +3 -4
- package/lib/src/views/layout/components/Sidebar/Link.vue.js +8 -11
- package/lib/src/views/layout/components/Sidebar/SidebarItem.vue.js +11 -17
- package/lib/src/views/layout/components/Sidebar/SidebarItem.vue2.js +2 -4
- package/lib/src/views/layout/components/Sidebar/index.vue.js +18 -25
- package/lib/src/views/layout/components/iframe-page.vue.js +8 -10
- package/lib/src/views/layout/components/iframe-page.vue2.js +2 -4
- package/lib/src/views/layout/components/tabs/tab-content.vue.js +10 -14
- package/lib/src/views/layout/components/tabs/tab-content.vue2.js +2 -4
- package/lib/src/views/layout/components/tabs/tab-content.vue3.js +2 -4
- package/lib/src/views/layout/mixin/ResizeHandler.js +3 -5
- package/lib/src/views/layout/tab-content-iframe-index.vue.js +8 -10
- package/lib/src/views/layout/tab-content-iframe-index.vue2.js +2 -4
- package/lib/src/views/layout/tab-content-index.vue.js +12 -18
- package/lib/src/views/layout/tab-content-index.vue2.js +2 -4
- package/lib/src/views/login/authredirect.vue.js +2 -3
- package/lib/src/views/redirect/index.vue.js +17 -8
- package/lib/src/views/svg-icon/src/svg-icon.vue.js +2 -4
- package/lib/src/views/wf-history/tache-subprocess-history.vue.js +11 -13
- package/lib/src/views/wf-history/tache-subprocess-history.vue2.js +2 -4
- package/lib/style.css +647 -647
- package/lib/super-grid/index.js +5 -7
- package/lib/super-grid/src/apis.js +221 -231
- package/lib/super-grid/src/columns-config.vue.js +16 -22
- package/lib/super-grid/src/components/grid-icon.vue.js +26 -34
- package/lib/super-grid/src/components/grid-radio-input.vue.js +15 -18
- package/lib/super-grid/src/components/grid-radio-input.vue2.js +3 -4
- package/lib/super-grid/src/components/mobile-table-card.js +73 -83
- package/lib/super-grid/src/components/select-input.vue.js +98 -106
- package/lib/super-grid/src/components/select-input.vue2.js +3 -4
- package/lib/super-grid/src/custom-formatter.js +69 -74
- package/lib/super-grid/src/dynamic-input.vue.js +142 -159
- package/lib/super-grid/src/eventBus.js +3 -6
- package/lib/super-grid/src/events.js +34 -36
- package/lib/super-grid/src/formValidatorUtil.js +62 -65
- package/lib/super-grid/src/formatter.js +36 -41
- package/lib/super-grid/src/group-column.vue.js +8 -13
- package/lib/super-grid/src/header-context-menu.vue.js +10 -13
- package/lib/super-grid/src/header-context-menu.vue2.js +2 -4
- package/lib/super-grid/src/index-column.vue.js +7 -10
- package/lib/super-grid/src/normal-column-content.vue.js +186 -205
- package/lib/super-grid/src/normal-column-content.vue2.js +2 -4
- package/lib/super-grid/src/normal-column.vue.js +40 -55
- package/lib/super-grid/src/normal-column.vue2.js +2 -4
- package/lib/super-grid/src/public-methods.js +12 -14
- package/lib/super-grid/src/row-detail.vue.js +7 -10
- package/lib/super-grid/src/row-operation.vue.js +19 -26
- package/lib/super-grid/src/row-operation.vue2.js +2 -4
- package/lib/super-grid/src/scan-util.js +24 -26
- package/lib/super-grid/src/search-button.vue.js +12 -17
- package/lib/super-grid/src/search-condition-input.vue.js +8 -12
- package/lib/super-grid/src/search-condition-list.vue.js +10 -13
- package/lib/super-grid/src/search-form-advancedQuery.vue.js +13 -23
- package/lib/super-grid/src/search-form-advancedQuery.vue2.js +2 -4
- package/lib/super-grid/src/search-form-dialog.vue.js +9 -13
- package/lib/super-grid/src/search-form-item.vue.js +16 -24
- package/lib/super-grid/src/search-form-item.vue2.js +2 -4
- package/lib/super-grid/src/search-form-mobile.vue.js +13 -22
- package/lib/super-grid/src/search-form-mobile.vue2.js +2 -4
- package/lib/super-grid/src/search-form-number.vue.js +9 -14
- package/lib/super-grid/src/search-form-open.vue.js +7 -13
- package/lib/super-grid/src/search-form-ordinarySearch.vue.js +11 -19
- package/lib/super-grid/src/search-form-ordinarySearch.vue2.js +2 -4
- package/lib/super-grid/src/search-form.vue.js +65 -77
- package/lib/super-grid/src/search-form.vue2.js +2 -4
- package/lib/super-grid/src/search-methods.js +2 -3
- package/lib/super-grid/src/selection-column.vue.js +7 -9
- package/lib/super-grid/src/store.js +3 -4
- package/lib/super-grid/src/super-grid-service.js +121 -128
- package/lib/super-grid/src/super-grid.vue.js +186 -217
- package/lib/super-grid/src/super-grid.vue2.js +2 -4
- package/lib/super-grid/src/utils.js +265 -322
- package/lib/super-grid/src/view-image-dialog.vue.js +26 -33
- package/lib/super-icon/index.js +5 -7
- package/lib/super-icon/src/index.vue.js +5 -7
- package/lib/super-icon/src/index.vue2.js +8 -11
- package/lib/super-icon/src/index.vue3.js +2 -4
- package/lib/super-nine-grid/index.js +5 -7
- package/lib/super-nine-grid/src/apis.js +5 -8
- package/lib/super-nine-grid/src/custom-formatter.js +5 -7
- package/lib/super-nine-grid/src/formatter.js +28 -29
- package/lib/super-nine-grid/src/search-form-number.vue.js +8 -12
- package/lib/super-nine-grid/src/search-form.vue.js +33 -40
- package/lib/super-nine-grid/src/search-form.vue2.js +2 -4
- package/lib/super-nine-grid/src/search-methods.js +2 -3
- package/lib/super-nine-grid/src/store.js +3 -4
- package/lib/super-nine-grid/src/super-grid-service.js +5 -9
- package/lib/super-nine-grid/src/super-nine-grid.vue.js +95 -105
- package/lib/super-nine-grid/src/super-nine-grid.vue2.js +2 -4
- package/lib/super-nine-grid/src/utils.js +31 -27
- package/lib/svg-icon/index.js +5 -7
- package/lib/svg-icon/src/svg-icon.vue.js +8 -10
- package/lib/svg-icon/src/svg-icon.vue2.js +2 -4
- package/lib/utils/gogocodeTransfer.js +23 -28
- package/lib/utils/memory-cache-utils.js +3 -5
- package/lib/utils/organization.js +40 -53
- package/lib/utils/utils.js +27 -29
- package/lib/utils/value-set.js +68 -70
- package/lib/valid-code/index.js +5 -7
- package/lib/valid-code/src/valid-code.vue.js +10 -13
- package/lib/valid-code/src/valid-code.vue2.js +2 -4
- package/lib/workflow-button/index.js +3 -5
- package/lib/workflow-button/src/workflow-button.vue.js +34 -39
- package/lib/workflow-history-list/index.js +5 -7
- package/lib/workflow-history-list/src/api.js +2 -3
- package/lib/workflow-history-list/src/workflow-history-list.vue.js +59 -65
- package/lib/workflow-history-list/src/workflow-history-list.vue2.js +2 -4
- package/lib/workgroup-tree/index.js +5 -7
- package/lib/workgroup-tree/src/workgroup-tree.vue.js +11 -17
- package/lib/workgroup-tree-inline/index.js +3 -5
- package/lib/workgroup-tree-inline/src/search-result.vue.js +21 -25
- package/lib/workgroup-tree-inline/src/search-result.vue2.js +2 -4
- package/lib/workgroup-tree-inline/src/workgroup-tree-inline.vue.js +43 -52
- package/lib/workgroup-tree-inline/src/workgroup-tree-inline.vue2.js +2 -4
- package/lib/workgroup-tree-inline/src/workgroup-tree-service.js +5 -7
- package/lib/workgroup-tree-mobile/index.js +5 -8
- package/lib/workgroup-tree-mobile/src/dept-result.vue.js +11 -14
- package/lib/workgroup-tree-mobile/src/dept-result.vue2.js +3 -4
- package/lib/workgroup-tree-mobile/src/workgroup-tree-app.vue.js +9 -12
- package/lib/workgroup-tree-mobile/src/workgroup-tree-app.vue2.js +2 -4
- package/lib/workgroup-tree-mobile/src/workgroup-tree-app.vue3.js +3 -5
- package/lib/workgroup-tree-mobile/src/workgroup-tree-inline-app.vue.js +76 -86
- package/lib/workgroup-tree-mobile/src/workgroup-tree-inline-app.vue2.js +3 -4
- package/lib/workgroup-tree-mobile/src/workgroup-tree-service.js +20 -28
- package/lib/workgroup-user-tree/index.js +5 -7
- package/lib/workgroup-user-tree/src/workgroup-user-tree.vue.js +11 -17
- package/lib/workgroup-user-tree-inline/index.js +3 -5
- package/lib/workgroup-user-tree-inline/src/search-result.vue.js +21 -25
- package/lib/workgroup-user-tree-inline/src/search-result.vue2.js +2 -4
- package/lib/workgroup-user-tree-inline/src/workgroup-tree-inline-service.js +9 -11
- package/lib/workgroup-user-tree-inline/src/workgroup-user-tree-inline.vue.js +34 -43
- package/lib/workgroup-user-tree-inline/src/workgroup-user-tree-inline.vue2.js +2 -4
- package/lib/workgroup-user-tree-mobile/src/dept-path.vue.js +10 -11
- package/lib/workgroup-user-tree-mobile/src/dept-path.vue2.js +3 -4
- package/lib/workgroup-user-tree-mobile/src/dept-result.vue.js +11 -15
- package/lib/workgroup-user-tree-mobile/src/dept-result.vue2.js +3 -4
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue.js +9 -12
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue2.js +2 -4
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue3.js +3 -5
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-inline-app.vue.js +93 -104
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-inline-app.vue2.js +3 -4
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-service.js +16 -25
- package/lib/year-range-picker/index.js +3 -5
- package/lib/year-range-picker/src/year-range-picker.vue.js +9 -12
- package/package.json +1 -3
- package/vite.config.js +22 -22
- package/dist/favicon.svg +0 -29
- package/dist/index.full.min.js +0 -16440
- package/dist/style.css +0 -3078
|
@@ -1,30 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
import P from "../../fs-preview/src/fs-preview.vue.js";
|
|
8
|
-
import U from "../../_virtual/_plugin-vue_export-helper.js";
|
|
9
|
-
const F = { data() {
|
|
10
|
-
const i2 = { Authorization: s() };
|
|
11
|
-
let t2 = window.$vueApp.config.globalProperties.baseURL + "/common/fs-upload";
|
|
12
|
-
return n(window.$vueApp.config.globalProperties.systemCode) && (t2 = window.$vueApp.config.globalProperties.baseAPI + "/component/super-form/uploads"), { deleteUuids: [], headers: i2, defaultAction: t2, annexUploadFlag: false, showPreviewSingleImage: false, showPreviewMulti: false, lastFileName: null, previewImageInfo: {}, showFileList: this.fileList, ElIconUpload2: e, ElIconZoomIn: l };
|
|
13
|
-
}, components: { FsPreview: P, ElIconView: i, ElIconDelete: t }, name: "MultipartUploadForm", props: { value: { type: String, default: null }, fileInfo: { type: Object, default: () => ({ name: null, serverPath: null }) }, fileSetObj: { type: Object, default: () => ({ limitFileSize: 30, multiple: false, accept: null }) }, customViewUrl: { type: Boolean, default: false }, disabled: { type: Boolean, default: false }, uploadAble: { type: Boolean, default: true }, deletaAble: { type: Boolean, default: true }, fileList: { type: Array, default: () => [] } }, created() {
|
|
1
|
+
"use strict";
|
|
2
|
+
const e = require("@element-plus/icons-vue"), t = require("../../utils/gogocodeTransfer.js"), o = require("../../src/utils/auth.js"), l = require("../../src/utils/util.js"), i = require("../../src/utils/common-util.js"), s = require("vue"), a = require("../../fs-preview/src/fs-preview.vue.js"), n = require("../../_virtual/_plugin-vue_export-helper.js"), r = { data() {
|
|
3
|
+
const t2 = { Authorization: o.getToken() };
|
|
4
|
+
let l2 = window.$vueApp.config.globalProperties.baseURL + "/common/fs-upload";
|
|
5
|
+
return i.isPlateSys(window.$vueApp.config.globalProperties.systemCode) && (l2 = window.$vueApp.config.globalProperties.baseAPI + "/component/super-form/uploads"), { deleteUuids: [], headers: t2, defaultAction: l2, annexUploadFlag: false, showPreviewSingleImage: false, showPreviewMulti: false, lastFileName: null, previewImageInfo: {}, showFileList: this.fileList, ElIconUpload2: e.Upload, ElIconZoomIn: e.ZoomIn };
|
|
6
|
+
}, components: { FsPreview: a, ElIconView: e.View, ElIconDelete: e.Delete }, name: "MultipartUploadForm", props: { value: { type: String, default: null }, fileInfo: { type: Object, default: () => ({ name: null, serverPath: null }) }, fileSetObj: { type: Object, default: () => ({ limitFileSize: 30, multiple: false, accept: null }) }, customViewUrl: { type: Boolean, default: false }, disabled: { type: Boolean, default: false }, uploadAble: { type: Boolean, default: true }, deletaAble: { type: Boolean, default: true }, fileList: { type: Array, default: () => [] } }, created() {
|
|
14
7
|
}, mounted() {
|
|
15
8
|
this.getFileList();
|
|
16
9
|
}, methods: { openAnnexUpload() {
|
|
17
10
|
this.annexUploadFlag = true;
|
|
18
11
|
}, handleBeforeUpload(e2) {
|
|
19
|
-
let
|
|
20
|
-
if (void 0 ===
|
|
21
|
-
return this.$message({ type: "warning", message: this.$t("imatrixUIMessage.exceedFileSize", { fileSize:
|
|
22
|
-
}, uploadOnSuccess(e2,
|
|
12
|
+
let t2 = this.fileSetObj.limitFileSize;
|
|
13
|
+
if (void 0 === t2 && (t2 = 30), e2.size > 1024 * t2 * 1024)
|
|
14
|
+
return this.$message({ type: "warning", message: this.$t("imatrixUIMessage.exceedFileSize", { fileSize: t2 }), showClose: true }), false;
|
|
15
|
+
}, uploadOnSuccess(e2, o2) {
|
|
23
16
|
if (e2)
|
|
24
|
-
if (
|
|
17
|
+
if (t.$emit(this, "upload-success", { showName: e2.name, serverPath: e2.serverPath }), this.fileSetObj.multiple)
|
|
25
18
|
if (this.fileInfo.showName) {
|
|
26
|
-
const
|
|
27
|
-
|
|
19
|
+
const t2 = this.fileInfo.showName.split(","), o3 = this.fileInfo.serverPath.split(",");
|
|
20
|
+
t2.push(e2.name), o3.push(e2.serverPath), this.fileInfo.showName = t2.join(","), this.fileInfo.serverPath = o3.join(",");
|
|
28
21
|
} else
|
|
29
22
|
this.fileInfo.showName = e2.name, this.fileInfo.serverPath = e2.serverPath;
|
|
30
23
|
else
|
|
@@ -33,50 +26,48 @@ const F = { data() {
|
|
|
33
26
|
}, preview() {
|
|
34
27
|
this.getFileList(), this.showPreviewMulti = true;
|
|
35
28
|
}, previewSingle(e2) {
|
|
36
|
-
|
|
29
|
+
l.isImage(e2.showName) ? (this.previewImageInfo = e2, this.showPreviewSingleImage = true) : this.previewDoc(e2);
|
|
37
30
|
}, getFileList() {
|
|
38
31
|
if (this.customViewUrl)
|
|
39
32
|
this.showFileList = this.fileList;
|
|
40
33
|
else {
|
|
41
|
-
const e2 = this.fileInfo.showName.split(","),
|
|
42
|
-
if (0 === e2.length || 0 ===
|
|
34
|
+
const e2 = this.fileInfo.showName.split(","), t2 = this.fileInfo.serverPath.split(",");
|
|
35
|
+
if (0 === e2.length || 0 === t2.length || e2.length !== t2.length)
|
|
43
36
|
return;
|
|
44
|
-
const i2 = [],
|
|
37
|
+
const i2 = [], s2 = window.$vueApp.config.globalProperties.baseURL + "/common/super-form/downloads?jwt=" + o.getToken();
|
|
45
38
|
for (let o2 = 0; o2 < e2.length; o2++) {
|
|
46
|
-
const
|
|
47
|
-
if (
|
|
48
|
-
const e3 = { showName:
|
|
49
|
-
|
|
39
|
+
const a2 = e2[o2];
|
|
40
|
+
if (a2 && t2[o2]) {
|
|
41
|
+
const e3 = { showName: a2, serverPath: t2[o2], src: s2 + "&showName=" + a2 + "&serverPath=" + t2[o2] };
|
|
42
|
+
l.isImage(a2) ? e3.isImg = true : e3.isImg = false, i2.push(e3);
|
|
50
43
|
}
|
|
51
44
|
}
|
|
52
45
|
this.showFileList = i2;
|
|
53
46
|
}
|
|
54
47
|
}, previewDoc(e2) {
|
|
55
|
-
const
|
|
48
|
+
const t2 = o.getToken();
|
|
56
49
|
if (window.$vueApp.config.globalProperties.customPreviewUrl)
|
|
57
|
-
window.open(
|
|
50
|
+
window.open(i.getSystemFrontendUrlWith(window.$vueApp.config.globalProperties.portalUrl) + "/#/file-service/preview?serverPath=" + e2.serverPath + "&showName=" + encodeURI(e2.showName), e2.showName);
|
|
58
51
|
else {
|
|
59
|
-
let
|
|
60
|
-
const
|
|
61
|
-
let
|
|
62
|
-
if (
|
|
63
|
-
const e3 =
|
|
64
|
-
|
|
65
|
-
window.open(e4,
|
|
52
|
+
let o2;
|
|
53
|
+
const l2 = e2.showName, s2 = e2.serverPath;
|
|
54
|
+
let a2 = window.$vueApp.config.globalProperties.baseURL;
|
|
55
|
+
if (i.isPlateSys(window.$vueApp.config.globalProperties.systemCode) && (a2 = window.$vueApp.config.globalProperties.baseAPI), window.$vueApp.config.globalProperties.kkFileViewUrl) {
|
|
56
|
+
const e3 = a2 + "/common/super-form/downloads?jwt=" + t2 + "&showName=" + encodeURI(l2) + "&serverPath=" + s2 + "&fullfilename=" + l2;
|
|
57
|
+
i.getKkFilePreviewUrl(e3).then((e4) => {
|
|
58
|
+
window.open(e4, l2);
|
|
66
59
|
});
|
|
67
60
|
} else
|
|
68
|
-
|
|
61
|
+
o2 = a2 + "/common/fs-upload/preview?jwt=" + t2, o2 = o2 + "&showName=" + encodeURI(l2) + "&serverPath=" + s2, window.open(o2, l2);
|
|
69
62
|
}
|
|
70
63
|
}, deleteRow(e2) {
|
|
71
|
-
const
|
|
72
|
-
for (let
|
|
73
|
-
|
|
74
|
-
this.fileInfo.showName =
|
|
75
|
-
} }, emits: ["close", "upload-success", "delete-success", "delete", "update:value", , "close", , "update:value"] },
|
|
76
|
-
const
|
|
77
|
-
const
|
|
78
|
-
return
|
|
64
|
+
const o2 = this.showFileList[e2], l2 = [], i2 = [];
|
|
65
|
+
for (let t2 = 0; t2 < this.showFileList.length; t2++)
|
|
66
|
+
t2 !== e2 && (l2.push(this.showFileList[t2].showName), i2.push(this.showFileList[t2].serverPath));
|
|
67
|
+
this.fileInfo.showName = l2.join(","), this.fileInfo.serverPath = i2.join(","), this.getFileList(), t.$emit(this, "delete-success", { deleteFile: o2, all: this.showFileList }), t.$emit(this, "delete", this.showFileList, e2);
|
|
68
|
+
} }, emits: ["close", "upload-success", "delete-success", "delete", "update:value", , "close", , "update:value"] }, d = { class: "group-link-btn-main" };
|
|
69
|
+
const c = n(r, [["render", function(e2, t2, o2, l2, i2, a2) {
|
|
70
|
+
const n2 = s.resolveComponent("ElIconUpload2"), r2 = s.resolveComponent("el-icon"), c2 = s.resolveComponent("el-link"), p = s.resolveComponent("ElIconZoomIn"), h = s.resolveComponent("el-input"), u = s.resolveComponent("el-button"), m = s.resolveComponent("el-upload"), w = s.resolveComponent("el-dialog"), f = s.resolveComponent("el-image"), v = s.resolveComponent("el-table-column"), g = s.resolveComponent("el-icon-view"), I = s.resolveComponent("el-tooltip"), C = s.resolveComponent("el-icon-delete"), P = s.resolveComponent("el-table"), b = s.resolveComponent("fs-preview");
|
|
71
|
+
return s.openBlock(), s.createElementBlock("div", null, [o2.disabled ? (s.openBlock(), s.createBlock(b, { key: 1, "file-list": i2.showFileList, label: o2.value }, null, 8, ["file-list", "label"])) : (s.openBlock(), s.createElementBlock(s.Fragment, { key: 0 }, [s.createVNode(h, { ref: "item", disabled: o2.disabled, "model-value": o2.value, placeholder: e2.$t("imatrixUIMessage.fileUpload"), readonly: true }, { append: s.withCtx(() => [s.createElementVNode("div", d, [o2.disabled ? s.createCommentVNode("", true) : (s.openBlock(), s.createBlock(c2, { key: 0, type: "info", underline: false, onClick: a2.openAnnexUpload }, { icon: s.withCtx(() => [s.createVNode(r2, { size: 14 }, { default: s.withCtx(() => [s.createVNode(n2)]), _: 1 })]), _: 1 }, 8, ["onClick"])), s.createVNode(c2, { size: "default", type: "info", underline: false, onClick: a2.preview }, { icon: s.withCtx(() => [s.createVNode(r2, { size: 14 }, { default: s.withCtx(() => [s.createVNode(p)]), _: 1 })]), _: 1 }, 8, ["onClick"])])]), _: 1 }, 8, ["disabled", "model-value", "placeholder"]), s.createVNode(w, { modelValue: i2.annexUploadFlag, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => i2.annexUploadFlag = e3), "append-to-body": true, "show-close": true, title: e2.$t("imatrixUIMessage.tips"), width: "30%" }, { default: s.withCtx(() => [i2.annexUploadFlag ? (s.openBlock(), s.createBlock(m, { key: 0, accept: o2.fileSetObj.accept ? o2.fileSetObj.accept : null, action: i2.defaultAction, "before-upload": a2.handleBeforeUpload, headers: i2.headers, "on-success": a2.uploadOnSuccess, "with-credentials": true, name: "file" }, { default: s.withCtx(() => [s.createVNode(u, null, { default: s.withCtx(() => [s.createTextVNode(s.toDisplayString(e2.$t("imatrixUIMessage.upload")), 1)]), _: 1 })]), _: 1 }, 8, ["accept", "action", "before-upload", "headers", "on-success"])) : s.createCommentVNode("", true)]), _: 1 }, 8, ["modelValue", "title"]), s.createVNode(w, { modelValue: i2.showPreviewSingleImage, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => i2.showPreviewSingleImage = e3), "append-to-body": true, "show-close": true, title: e2.$t("imatrixUIPublicModel.previewImage"), onClose: t2[2] || (t2[2] = (t3) => e2.$emit("close")) }, { title: s.withCtx(() => [s.createElementVNode("span", null, s.toDisplayString(e2.$t("imatrixUIPublicModel.previewImage")) + " ", 1)]), default: s.withCtx(() => [i2.previewImageInfo && i2.previewImageInfo.isImg ? (s.openBlock(), s.createBlock(f, { key: 0, "preview-src-list": [i2.previewImageInfo.src], src: i2.previewImageInfo.src }, null, 8, ["preview-src-list", "src"])) : s.createCommentVNode("", true)]), _: 1 }, 8, ["modelValue", "title"]), s.createVNode(w, { modelValue: i2.showPreviewMulti, "onUpdate:modelValue": t2[3] || (t2[3] = (e3) => i2.showPreviewMulti = e3), "append-to-body": true, "show-close": true, title: e2.$t("imatrixUIPublicModel.preview"), width: "30%", onClose: t2[4] || (t2[4] = (t3) => e2.$emit("close")) }, { title: s.withCtx(() => [s.createElementVNode("span", null, s.toDisplayString(e2.$t("imatrixUIPublicModel.preview")) + " ", 1)]), default: s.withCtx(() => [s.createVNode(P, { data: i2.showFileList, "show-header": false }, { default: s.withCtx(() => [s.createVNode(v, { prop: "showName", width: "300" }), s.createVNode(v, { align: "right" }, { default: s.withCtx((t3) => [s.createVNode(I, { content: e2.$t("imatrixUIPublicModel.preview"), class: "item", effect: "dark", placement: "top" }, { default: s.withCtx(() => [s.createVNode(r2, { style: { cursor: "pointer" }, onClick: (e3) => a2.previewSingle(t3.row) }, { default: s.withCtx(() => [s.createVNode(g)]), _: 2 }, 1032, ["onClick"])]), _: 2 }, 1032, ["content"])]), _: 1 }), o2.disabled ? s.createCommentVNode("", true) : (s.openBlock(), s.createBlock(v, { key: 0 }, { default: s.withCtx((t3) => [s.createVNode(I, { content: e2.$t("imatrixUIPublicModel.delete"), class: "item", effect: "dark", placement: "top" }, { default: s.withCtx(() => [s.createVNode(r2, { style: { cursor: "pointer" }, onClick: (e3) => a2.deleteRow(t3.$index) }, { default: s.withCtx(() => [s.createVNode(C)]), _: 2 }, 1032, ["onClick"])]), _: 2 }, 1032, ["content"])]), _: 1 }))]), _: 1 }, 8, ["data"])]), _: 1 }, 8, ["modelValue", "title"])], 64))]);
|
|
79
72
|
}]]);
|
|
80
|
-
|
|
81
|
-
$ as default
|
|
82
|
-
};
|
|
73
|
+
module.exports = c;
|
|
@@ -1,27 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import { isPlateSys as s, getSystemFrontendUrlWith as p, getKkFilePreviewUrl as r } from "../../src/utils/common-util.js";
|
|
5
|
-
import { resolveComponent as d, openBlock as u, createElementBlock as c, Fragment as m, createVNode as h, withCtx as f, createBlock as w, createCommentVNode as g, createElementVNode as v, createTextVNode as b, toDisplayString as y, renderList as P } from "vue";
|
|
6
|
-
import U from "../../fs-preview/src/fs-preview.vue.js";
|
|
7
|
-
import N from "../../_virtual/_plugin-vue_export-helper.js";
|
|
8
|
-
const F = { data() {
|
|
9
|
-
const l2 = { Authorization: a() };
|
|
1
|
+
"use strict";
|
|
2
|
+
const e = require("@element-plus/icons-vue"), t = require("../../src/utils/auth.js"), l = require("../../src/utils/util.js"), o = require("../../src/utils/common-util.js"), i = require("vue"), a = require("../../fs-preview/src/fs-preview.vue.js"), n = require("../../_virtual/_plugin-vue_export-helper.js"), s = { data() {
|
|
3
|
+
const l2 = { Authorization: t.getToken() };
|
|
10
4
|
let i2 = window.$vueApp.config.globalProperties.baseURL + "/common/fs-upload";
|
|
11
|
-
return
|
|
12
|
-
}, components: { FsPreview:
|
|
5
|
+
return o.isPlateSys(window.$vueApp.config.globalProperties.systemCode) && (i2 = window.$vueApp.config.globalProperties.baseAPI + "/component/super-form/uploads"), { deleteUuids: [], headers: l2, defaultAction: i2, annexUploadFlag: false, showPreviewSingleImage: false, showPreviewMulti: false, lastFileName: null, previewImageInfo: {}, showFileList: [], uploadingFile: [], cancelUploadFile: [], fileContent: [], chunkSize: 5242880, ElIconUpload2: e.Upload };
|
|
6
|
+
}, components: { FsPreview: a, ElIconPaperclip: e.Paperclip, ElIconClose: e.Close, ElIconView: e.View, ElIconDelete: e.Delete }, name: "MultipartUploadList", props: { value: { type: String, default: null }, entity: { type: Object, default: null }, fileSetObj: { type: Object, default: () => ({ limitFileSize: 10, multiple: false, accept: null }) }, disabled: { type: Boolean, default: false } }, created() {
|
|
13
7
|
}, mounted() {
|
|
14
8
|
this.fileSetObj.limitFileSize || (this.fileSetObj.limitFileSize = 10);
|
|
15
9
|
const e2 = this.entity[this.fileSetObj.showNameData.dbName], l2 = this.entity[this.fileSetObj.serverNameData.dbName];
|
|
16
10
|
if (e2 && l2) {
|
|
17
|
-
const i2 = e2.split(","),
|
|
11
|
+
const i2 = e2.split(","), a2 = l2.split(",");
|
|
18
12
|
i2.forEach((e3, l3) => {
|
|
19
|
-
this.fileContent.push({ name: e3, serverName:
|
|
20
|
-
const i3 =
|
|
21
|
-
let
|
|
22
|
-
|
|
23
|
-
const
|
|
24
|
-
this.showFileList.push({ showName: e3, serverPath:
|
|
13
|
+
this.fileContent.push({ name: e3, serverName: a2[l3] });
|
|
14
|
+
const i3 = t.getToken();
|
|
15
|
+
let n2 = window.$vueApp.config.globalProperties.baseURL + "/common/super-form/downloads?jwt=" + i3;
|
|
16
|
+
o.isPlateSys(window.$vueApp.config.globalProperties.systemCode) && (n2 = window.$vueApp.config.globalProperties.baseAPI + "/component/super-form/downloads?jwt=" + i3);
|
|
17
|
+
const s2 = n2 + "&showName=" + encodeURI(e3) + "&serverPath=" + a2[l3];
|
|
18
|
+
this.showFileList.push({ showName: e3, serverPath: a2[l3], src: s2 });
|
|
25
19
|
});
|
|
26
20
|
}
|
|
27
21
|
}, methods: { openAnnexUpload() {
|
|
@@ -29,76 +23,74 @@ const F = { data() {
|
|
|
29
23
|
}, async uploadFile(e2) {
|
|
30
24
|
if (this.uploadingFile.length > 0 && !this.fileSetObj.multiple)
|
|
31
25
|
return void this.$message({ showClose: true, message: "文件单选,请勿同时上传多份文件!", type: "warning" });
|
|
32
|
-
const
|
|
33
|
-
this.uploadingFile.push({ name: e2.raw.name, uploadProgress: 0, serverName:
|
|
34
|
-
const
|
|
35
|
-
|
|
36
|
-
const a2 = { fileName:
|
|
26
|
+
const t2 = Date.now();
|
|
27
|
+
this.uploadingFile.push({ name: e2.raw.name, uploadProgress: 0, serverName: t2 });
|
|
28
|
+
const l2 = e2.raw, o2 = l2.size, i2 = Math.ceil(o2 / this.chunkSize);
|
|
29
|
+
l2.size;
|
|
30
|
+
const a2 = { fileName: l2.name, chunkCount: i2 };
|
|
37
31
|
this.$http.post(window.$vueApp.config.globalProperties.baseURL + "/common/mutipart-upload/create", a2).then(async (e3) => {
|
|
38
32
|
if (this.cancelUploadFile, this.cancelUploadFile.indexOf(a2.serverName) > 0)
|
|
39
33
|
return;
|
|
40
|
-
const n2 = this.uploadingFile.findIndex((e4) => e4.serverName ===
|
|
41
|
-
this.uploadingFile[n2] = { uploadProgress: 0, name:
|
|
42
|
-
const
|
|
43
|
-
for (let
|
|
44
|
-
const a3 =
|
|
45
|
-
if (
|
|
34
|
+
const n2 = this.uploadingFile.findIndex((e4) => e4.serverName === t2), s2 = e3.serverName;
|
|
35
|
+
this.uploadingFile[n2] = { uploadProgress: 0, name: l2.name, serverName: s2, folder: e3.folder }, this.uploadingFile;
|
|
36
|
+
const r2 = [];
|
|
37
|
+
for (let t3 = 0; t3 < i2; t3++) {
|
|
38
|
+
const a3 = t3 * this.chunkSize, p2 = Math.min(o2, a3 + this.chunkSize), d2 = l2.slice(a3, p2), c2 = new FormData();
|
|
39
|
+
if (c2.append("folder", e3.folder), c2.append("serverName", s2), c2.append("file", d2), this.cancelUploadFile.indexOf(s2) > 0)
|
|
46
40
|
break;
|
|
47
|
-
await this.$http.post(window.$vueApp.config.globalProperties.baseURL + "/common/mutipart-upload/upload",
|
|
48
|
-
|
|
49
|
-
const
|
|
50
|
-
this.uploadingFile[n2].uploadProgress =
|
|
41
|
+
await this.$http.post(window.$vueApp.config.globalProperties.baseURL + "/common/mutipart-upload/upload", c2).then((e4) => {
|
|
42
|
+
r2.push(e4.uploadName);
|
|
43
|
+
const l3 = parseInt((t3 + 1) / i2 * 100);
|
|
44
|
+
this.uploadingFile[n2].uploadProgress = l3 > 100 ? 100 : l3, this.uploadingFile[n2] = this.uploadingFile[n2], this.uploadingFile;
|
|
51
45
|
});
|
|
52
46
|
}
|
|
53
|
-
this.cancelUploadFile.indexOf(s2) < 0 ? this.composeFile(
|
|
47
|
+
this.cancelUploadFile.indexOf(s2) < 0 ? this.composeFile(l2.name, i2, o2, s2, r2, e3.folder) : await this.$http.post(window.$vueApp.config.globalProperties.baseURL + "/common/mutipart-upload/remove-chunks", { serverName: s2, folder: e3.folder }).then((e4) => {
|
|
54
48
|
});
|
|
55
49
|
});
|
|
56
|
-
}, composeFile(e2,
|
|
57
|
-
const n2 = { fileName: e2, chunkSize:
|
|
58
|
-
this.$http.post(window.$vueApp.config.globalProperties.baseURL + "/common/mutipart-upload/merge", n2).then((
|
|
59
|
-
if (this.uploadingFile.splice(this.uploadingFile.findIndex((e3) => e3.serverName ===
|
|
60
|
-
this.fileContent.push({ name: e2, serverName:
|
|
61
|
-
const
|
|
62
|
-
|
|
50
|
+
}, composeFile(e2, t2, l2, o2, i2, a2) {
|
|
51
|
+
const n2 = { fileName: e2, chunkSize: t2, fileSize: l2, serverName: o2, chunkNames: i2, folder: a2 };
|
|
52
|
+
this.$http.post(window.$vueApp.config.globalProperties.baseURL + "/common/mutipart-upload/merge", n2).then((t3) => {
|
|
53
|
+
if (this.uploadingFile.splice(this.uploadingFile.findIndex((e3) => e3.serverName === o2), 1), this.fileSetObj.multiple) {
|
|
54
|
+
this.fileContent.push({ name: e2, serverName: o2 });
|
|
55
|
+
const t4 = this.entity[this.fileSetObj.showNameData.dbName];
|
|
56
|
+
t4 && t4.length > 0 ? this.setEntityValue(t4 + "," + e2, this.entity[this.fileSetObj.serverNameData.dbName] + "," + o2) : this.setEntityValue(e2, o2);
|
|
63
57
|
} else
|
|
64
|
-
this.fileContent = [{ name: e2, serverName:
|
|
58
|
+
this.fileContent = [{ name: e2, serverName: o2 }], this.setEntityValue(e2, o2);
|
|
65
59
|
this.entity;
|
|
66
60
|
});
|
|
67
|
-
}, setEntityValue(e2,
|
|
68
|
-
this.entity[this.fileSetObj.showNameData.dbName] = e2, this.entity[this.fileSetObj.serverNameData.dbName] =
|
|
61
|
+
}, setEntityValue(e2, t2) {
|
|
62
|
+
this.entity[this.fileSetObj.showNameData.dbName] = e2, this.entity[this.fileSetObj.serverNameData.dbName] = t2;
|
|
69
63
|
}, cancelUpload(e2) {
|
|
70
|
-
this.entity.DOC_NAME = null, this.entity.DOC_PATH = null, this.cancelUploadFile.push(e2), this.uploadingFile.splice(this.uploadingFile.findIndex((
|
|
71
|
-
}, preview(e2,
|
|
72
|
-
|
|
64
|
+
this.entity.DOC_NAME = null, this.entity.DOC_PATH = null, this.cancelUploadFile.push(e2), this.uploadingFile.splice(this.uploadingFile.findIndex((t2) => t2.serverName === e2), 1);
|
|
65
|
+
}, preview(e2, o2) {
|
|
66
|
+
l.isImage(e2) ? (this.previewImageInfo = { src: window.$vueApp.config.globalProperties.baseURL + "/common/super-form/downloads?jwt=" + t.getToken() + "&showName=" + e2 + "&serverPath=" + o2 }, this.showPreviewSingleImage = true) : this.previewDoc(e2, o2);
|
|
73
67
|
}, previewDoc(e2, l2) {
|
|
74
|
-
const i2 =
|
|
68
|
+
const i2 = t.getToken();
|
|
75
69
|
if (window.$vueApp.config.globalProperties.customPreviewUrl)
|
|
76
|
-
window.open(
|
|
70
|
+
window.open(o.getSystemFrontendUrlWith(window.$vueApp.config.globalProperties.portalUrl) + "/#/file-service/preview?serverPath=" + l2 + "&showName=" + encodeURI(e2), e2);
|
|
77
71
|
else {
|
|
78
72
|
let t2;
|
|
79
|
-
const
|
|
80
|
-
let
|
|
81
|
-
if (
|
|
82
|
-
const e3 =
|
|
83
|
-
|
|
84
|
-
window.open(e4,
|
|
73
|
+
const a2 = e2, n2 = l2;
|
|
74
|
+
let s2 = window.$vueApp.config.globalProperties.baseURL;
|
|
75
|
+
if (o.isPlateSys(window.$vueApp.config.globalProperties.systemCode) && (s2 = window.$vueApp.config.globalProperties.baseAPI), window.$vueApp.config.globalProperties.kkFileViewUrl) {
|
|
76
|
+
const e3 = s2 + "/common/super-form/downloads?jwt=" + i2 + "&showName=" + encodeURI(a2) + "&serverPath=" + n2 + "&fullfilename=" + a2;
|
|
77
|
+
o.getKkFilePreviewUrl(e3).then((e4) => {
|
|
78
|
+
window.open(e4, a2);
|
|
85
79
|
});
|
|
86
80
|
} else
|
|
87
|
-
t2 =
|
|
81
|
+
t2 = s2 + "/common/fs-upload/preview?jwt=" + i2, t2 = t2 + "&showName=" + encodeURI(a2) + "&serverPath=" + n2, window.open(t2, a2);
|
|
88
82
|
}
|
|
89
83
|
}, handleOnRemove(e2) {
|
|
90
84
|
if (this.fileContent.splice(e2, 1), this.fileSetObj.multiple) {
|
|
91
|
-
const e3 = [],
|
|
92
|
-
this.fileContent.forEach((
|
|
93
|
-
|
|
94
|
-
}), this.setEntityValue(e3.join(","),
|
|
85
|
+
const e3 = [], t2 = [];
|
|
86
|
+
this.fileContent.forEach((l2) => {
|
|
87
|
+
l2.name && l2.serverName && (e3.push(l2.name), t2.push(l2.serverName));
|
|
88
|
+
}), this.setEntityValue(e3.join(","), t2.join(","));
|
|
95
89
|
} else
|
|
96
90
|
this.setEntityValue(null, null);
|
|
97
|
-
} }, emits: ["close", "update:value", "update:value"] },
|
|
98
|
-
const
|
|
99
|
-
const
|
|
100
|
-
return
|
|
91
|
+
} }, emits: ["close", "update:value", "update:value"] }, r = { class: "el-upload__tip", style: { "margin-left": "12px" } }, p = { key: 0 }, d = i.createElementVNode("br", null, null, -1), c = { style: { "margin-left": "6.5px" } }, m = { style: { "line-height": "30px" } }, u = ["onClick"], h = { style: { "margin-left": "6.5px" } };
|
|
92
|
+
const w = n(s, [["render", function(e2, t2, l2, o2, a2, n2) {
|
|
93
|
+
const s2 = i.resolveComponent("el-button"), w2 = i.resolveComponent("el-input"), f = i.resolveComponent("el-upload"), g = i.resolveComponent("el-icon-paperclip"), v = i.resolveComponent("el-icon"), N = i.resolveComponent("el-icon-close"), C = i.resolveComponent("el-tooltip"), b = i.resolveComponent("el-tag"), V = i.resolveComponent("el-progress"), x = i.resolveComponent("el-row"), k = i.resolveComponent("el-col"), y = i.resolveComponent("el-dialog"), P = i.resolveComponent("el-image"), U = i.resolveComponent("el-table-column"), F = i.resolveComponent("el-icon-view"), S = i.resolveComponent("el-icon-delete"), I = i.resolveComponent("el-table"), $ = i.resolveComponent("fs-preview");
|
|
94
|
+
return i.openBlock(), i.createElementBlock("div", null, [l2.disabled ? (i.openBlock(), i.createBlock($, { key: 1, "file-list": a2.showFileList, label: l2.value }, null, 8, ["file-list", "label"])) : (i.openBlock(), i.createElementBlock(i.Fragment, { key: 0 }, [i.createVNode(w2, { ref: "item", disabled: l2.disabled, "model-value": l2.value, placeholder: e2.$t("imatrixUIMessage.fileUpload"), readonly: true }, { append: i.withCtx(() => [l2.disabled ? i.createCommentVNode("", true) : (i.openBlock(), i.createBlock(s2, { key: 0, icon: a2.ElIconUpload2, size: "default", onClick: n2.openAnnexUpload }, null, 8, ["icon", "onClick"]))]), _: 1 }, 8, ["disabled", "model-value", "placeholder"]), i.createVNode(y, { modelValue: a2.annexUploadFlag, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => a2.annexUploadFlag = e3), "append-to-body": true, "show-close": true, title: e2.$t("imatrixUIMessage.tips"), width: "40%" }, { default: i.withCtx(() => [i.createVNode(f, { id: "upload", "auto-upload": false, "on-change": n2.uploadFile, "show-file-list": false, action: "" }, { tip: i.withCtx(() => [i.createElementVNode("span", r, [i.createTextVNode(" 上传文件不能超过" + i.toDisplayString(l2.fileSetObj.limitFileSize) + "M ", 1), l2.fileSetObj.accept ? (i.openBlock(), i.createElementBlock("span", p, ",并且只接受" + i.toDisplayString(l2.fileSetObj.accept) + "类型文件", 1)) : i.createCommentVNode("", true)])]), default: i.withCtx(() => [i.createVNode(s2, { size: "default", type: "primary" }, { default: i.withCtx(() => [i.createTextVNode(" 选择文件")]), _: 1 })]), _: 1 }, 8, ["on-change"]), d, (i.openBlock(true), i.createElementBlock(i.Fragment, null, i.renderList(a2.uploadingFile, (e3, t3) => (i.openBlock(), i.createBlock(x, { key: t3 }, { default: i.withCtx(() => [i.createVNode(b, { size: "small form-list-file" }, { default: i.withCtx(() => [i.createElementVNode("span", null, [i.createVNode(v, null, { default: i.withCtx(() => [i.createVNode(g)]), _: 1 }), i.createElementVNode("span", c, i.toDisplayString(e3.name), 1)]), i.createVNode(C, { content: "取消上传", effect: "light", placement: "right" }, { default: i.withCtx(() => [i.createVNode(v, { style: { "margin-left": "8px" }, onClick: (t4) => n2.cancelUpload(e3.serverName) }, { default: i.withCtx(() => [i.createVNode(N)]), _: 2 }, 1032, ["onClick"])]), _: 2 }, 1024)]), _: 2 }, 1024), i.createVNode(V, { percentage: e3.uploadProgress }, null, 8, ["percentage"])]), _: 2 }, 1024))), 128)), i.createElementVNode("div", m, [i.createVNode(x, null, { default: i.withCtx(() => [i.createVNode(k, null, { default: i.withCtx(() => [(i.openBlock(true), i.createElementBlock(i.Fragment, null, i.renderList(a2.fileContent, (e3, t3) => (i.openBlock(), i.createBlock(b, { key: t3, size: "small form-list-file" }, { default: i.withCtx(() => [i.createElementVNode("span", { onClick: (t4) => n2.preview(e3.name, e3.serverName) }, [i.createVNode(v, null, { default: i.withCtx(() => [i.createVNode(g)]), _: 1 }), i.createElementVNode("span", h, i.toDisplayString(e3.name), 1)], 8, u), i.createVNode(C, { content: "移除已上传文件", effect: "light", placement: "right" }, { default: i.withCtx(() => [i.createVNode(v, { style: { "margin-left": "8px" }, onClick: (l3) => n2.handleOnRemove(t3, e3) }, { default: i.withCtx(() => [i.createVNode(N)]), _: 2 }, 1032, ["onClick"])]), _: 2 }, 1024)]), _: 2 }, 1024))), 128))]), _: 1 })]), _: 1 })])]), _: 1 }, 8, ["modelValue", "title"]), i.createVNode(y, { modelValue: a2.showPreviewSingleImage, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => a2.showPreviewSingleImage = e3), "append-to-body": true, "show-close": true, title: e2.$t("imatrixUIPublicModel.previewImage"), onClose: t2[2] || (t2[2] = (t3) => e2.$emit("close")) }, { title: i.withCtx(() => [i.createElementVNode("span", null, i.toDisplayString(e2.$t("imatrixUIPublicModel.previewImage")) + " ", 1)]), default: i.withCtx(() => [i.createVNode(P, { "preview-src-list": [a2.previewImageInfo.src], src: a2.previewImageInfo.src }, null, 8, ["preview-src-list", "src"])]), _: 1 }, 8, ["modelValue", "title"]), i.createVNode(y, { modelValue: a2.showPreviewMulti, "onUpdate:modelValue": t2[3] || (t2[3] = (e3) => a2.showPreviewMulti = e3), "append-to-body": true, "show-close": true, title: e2.$t("imatrixUIPublicModel.preview"), width: "30%", onClose: t2[4] || (t2[4] = (t3) => e2.$emit("close")) }, { title: i.withCtx(() => [i.createElementVNode("span", null, i.toDisplayString(e2.$t("imatrixUIPublicModel.preview")) + " ", 1)]), default: i.withCtx(() => [i.createVNode(I, { data: a2.showFileList, "show-header": false }, { default: i.withCtx(() => [i.createVNode(U, { prop: "showName", width: "300" }), i.createVNode(U, { align: "right" }, { default: i.withCtx((t3) => [i.createVNode(C, { content: e2.$t("imatrixUIPublicModel.preview"), class: "item", effect: "dark", placement: "top" }, { default: i.withCtx(() => [i.createVNode(v, { style: { cursor: "pointer" }, onClick: (l3) => e2.previewSingle(t3.row) }, { default: i.withCtx(() => [i.createVNode(F)]), _: 2 }, 1032, ["onClick"])]), _: 2 }, 1032, ["content"])]), _: 1 }), l2.disabled ? i.createCommentVNode("", true) : (i.openBlock(), i.createBlock(U, { key: 0 }, { default: i.withCtx((t3) => [i.createVNode(C, { content: e2.$t("imatrixUIPublicModel.delete"), class: "item", effect: "dark", placement: "top" }, { default: i.withCtx(() => [i.createVNode(v, { style: { cursor: "pointer" }, onClick: (l3) => e2.deleteRow(t3.$index) }, { default: i.withCtx(() => [i.createVNode(S)]), _: 2 }, 1032, ["onClick"])]), _: 2 }, 1032, ["content"])]), _: 1 }))]), _: 1 }, 8, ["data"])]), _: 1 }, 8, ["modelValue", "title"])], 64))]);
|
|
101
95
|
}]]);
|
|
102
|
-
|
|
103
|
-
C as default
|
|
104
|
-
};
|
|
96
|
+
module.exports = w;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
n
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
n as default
|
|
7
|
-
};
|
|
1
|
+
"use strict";
|
|
2
|
+
const n = require("./src/organization-input.vue.js");
|
|
3
|
+
n.install = function(t) {
|
|
4
|
+
t.component(n.name, n);
|
|
5
|
+
}, module.exports = n;
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import { resolveComponent as l, openBlock as s, createElementBlock as o, createBlock as p, withCtx as u, createVNode as m, createCommentVNode as c } from "vue";
|
|
6
|
-
import "./organization-input.vue2.js";
|
|
7
|
-
import h from "../../_virtual/_plugin-vue_export-helper.js";
|
|
8
|
-
const f = { components: { ElIconSearch: e, ElIconDelete: t, DepartmentUserTree: a, DepartmentTree: r }, name: "OrganizationInput", model: { prop: "value", event: "input" }, props: { value: { type: String, default: "" }, multiple: { type: Boolean, default: false }, checkStrictly: { type: Boolean, default: false }, treeType: { type: String, default: "DeptUserTree" }, disabled: { type: Boolean, default: false }, fields: { type: Array, default: null }, models: { type: Object, default: null }, size: { type: String, default: "" }, tableName: { type: String, default: null }, isJoinTable: { type: Boolean, default: false }, departmentInfo: { type: Array, default: null }, separator: { type: String, default: "," }, openTree: { type: Boolean, default: true }, pageModels: { type: Object, default: null }, limitFilterColumn: { type: String, default: "code" } }, data: () => ({ showOrganizationTreeFlag: false, isAppendResult: false, showRemoveComponent: false, selectOrganizationInfo: null, searchField: null, selectOrganizationAllInfo: {} }), created() {
|
|
1
|
+
"use strict";
|
|
2
|
+
const e = require("@element-plus/icons-vue"), t = require("../../src/utils/util.js"), i = require("../../department-user-tree/src/department-user-tree.vue.js"), n = require("../../department-tree/src/department-tree.vue.js"), o = require("vue");
|
|
3
|
+
require("./organization-input.vue2.js");
|
|
4
|
+
const r = require("../../_virtual/_plugin-vue_export-helper.js"), l = { components: { ElIconSearch: e.Search, ElIconDelete: e.Delete, DepartmentUserTree: i, DepartmentTree: n }, name: "OrganizationInput", model: { prop: "value", event: "input" }, props: { value: { type: String, default: "" }, multiple: { type: Boolean, default: false }, checkStrictly: { type: Boolean, default: false }, treeType: { type: String, default: "DeptUserTree" }, disabled: { type: Boolean, default: false }, fields: { type: Array, default: null }, models: { type: Object, default: null }, size: { type: String, default: "" }, tableName: { type: String, default: null }, isJoinTable: { type: Boolean, default: false }, departmentInfo: { type: Array, default: null }, separator: { type: String, default: "," }, openTree: { type: Boolean, default: true }, pageModels: { type: Object, default: null }, limitFilterColumn: { type: String, default: "code" } }, data: () => ({ showOrganizationTreeFlag: false, isAppendResult: false, showRemoveComponent: false, selectOrganizationInfo: null, searchField: null, selectOrganizationAllInfo: {} }), created() {
|
|
9
5
|
}, methods: { changeEvent(e2) {
|
|
10
6
|
this.$emit("change", e2);
|
|
11
7
|
}, showOrganizationTree() {
|
|
@@ -13,7 +9,7 @@ const f = { components: { ElIconSearch: e, ElIconDelete: t, DepartmentUserTree:
|
|
|
13
9
|
let e2 = this.multiple;
|
|
14
10
|
void 0 === e2 && (e2 = false), true === e2 && this.getSelectInfo(), this.$emit("focus"), this.showOrganizationTreeFlag = true, this.$emit("show-tree");
|
|
15
11
|
}
|
|
16
|
-
}, getPropName: (e2,
|
|
12
|
+
}, getPropName: (e2, i2, n2) => (e2 && e2.startsWith("${") && (e2 = e2.substring(e2.indexOf(".") + 1, e2.length - 1)), t.getPropNameWhenJoinTable(e2, i2, n2)), getPropType(e2) {
|
|
17
13
|
let t2 = "data";
|
|
18
14
|
return e2 && e2.startsWith("${") && (t2 = e2.substring(2, e2.indexOf("."))), t2;
|
|
19
15
|
}, emptyOrganizationResult() {
|
|
@@ -27,12 +23,12 @@ const f = { components: { ElIconSearch: e, ElIconDelete: t, DepartmentUserTree:
|
|
|
27
23
|
}, setOrganizationData(e2, t2, i2) {
|
|
28
24
|
let n2 = this.multiple;
|
|
29
25
|
void 0 === n2 && (n2 = false);
|
|
30
|
-
const
|
|
26
|
+
const o2 = this.treeType, r2 = this.fields;
|
|
31
27
|
r2 && r2.length > 0 && r2.forEach((r3) => {
|
|
32
|
-
const l2 = r3.type,
|
|
33
|
-
this.getOrgDataModel(
|
|
28
|
+
const l2 = r3.type, a2 = this.getOrgSelectData(l2, e2, this.isUserTree(o2), n2), s2 = this.getPropName(r3.model), p = this.getPropType(r3.model);
|
|
29
|
+
this.getOrgDataModel(s2, a2, n2, l2, t2, i2, p);
|
|
34
30
|
});
|
|
35
|
-
}, getOrgDataModel(e2, t2, i2, n2,
|
|
31
|
+
}, getOrgDataModel(e2, t2, i2, n2, o2, r2, l2) {
|
|
36
32
|
if (i2) {
|
|
37
33
|
const i3 = this.getModelValue(e2, l2);
|
|
38
34
|
this.selectOrganizationAllInfo[n2] = t2, this.setValue(e2, t2, l2), this.$emit("replace", e2, i3, t2);
|
|
@@ -45,8 +41,8 @@ const f = { components: { ElIconSearch: e, ElIconDelete: t, DepartmentUserTree:
|
|
|
45
41
|
if (false === this.isJoinTable && e2 && e2.indexOf(".") > 0) {
|
|
46
42
|
n2 = this.getParentObject(e2, i2)[e2.substring(e2.lastIndexOf(".") + 1)];
|
|
47
43
|
} else {
|
|
48
|
-
const
|
|
49
|
-
n2 = t2 && "page" === t2 ? i2 ? i2[
|
|
44
|
+
const o2 = this.getPropName(e2);
|
|
45
|
+
n2 = t2 && "page" === t2 ? i2 ? i2[o2] : null : i2[o2];
|
|
50
46
|
}
|
|
51
47
|
return n2;
|
|
52
48
|
}, isUserTree: (e2) => "DeptUserTree" === e2 || "WgUserTree" === e2, getOrgSelectData(e2, t2, i2, n2) {
|
|
@@ -69,12 +65,12 @@ const f = { components: { ElIconSearch: e, ElIconDelete: t, DepartmentUserTree:
|
|
|
69
65
|
}
|
|
70
66
|
if ("mainDeptCode" === e2 || "mainDeptName" === e2) {
|
|
71
67
|
const n3 = "mainDeptCode" === e2 ? "mainDepartmentCode" : "mainDepartmentName";
|
|
72
|
-
let
|
|
68
|
+
let o2 = null;
|
|
73
69
|
if (i2) {
|
|
74
70
|
const e3 = t2.user;
|
|
75
|
-
e3 && (
|
|
71
|
+
e3 && (o2 = e3[n3]);
|
|
76
72
|
}
|
|
77
|
-
return
|
|
73
|
+
return o2;
|
|
78
74
|
}
|
|
79
75
|
if ("subCompanyName" === e2) {
|
|
80
76
|
let e3 = null;
|
|
@@ -129,11 +125,11 @@ const f = { components: { ElIconSearch: e, ElIconDelete: t, DepartmentUserTree:
|
|
|
129
125
|
return e3.join(this.separator);
|
|
130
126
|
}
|
|
131
127
|
if ("mainDeptCode" === e2 || "mainDeptName" === e2) {
|
|
132
|
-
const n3 = [],
|
|
128
|
+
const n3 = [], o2 = "mainDeptCode" === e2 ? "mainDepartmentCode" : "mainDepartmentName";
|
|
133
129
|
if (i2) {
|
|
134
130
|
const e3 = t2.users;
|
|
135
131
|
e3 && e3.forEach((e4) => {
|
|
136
|
-
e4[
|
|
132
|
+
e4[o2] && n3.push(e4[o2]);
|
|
137
133
|
});
|
|
138
134
|
}
|
|
139
135
|
return n3.join(this.separator);
|
|
@@ -173,9 +169,9 @@ const f = { components: { ElIconSearch: e, ElIconDelete: t, DepartmentUserTree:
|
|
|
173
169
|
if (n2 && n2.length > 0) {
|
|
174
170
|
const e3 = n2[0];
|
|
175
171
|
if (e3) {
|
|
176
|
-
const t3 = this.getPropName(e3.model), n3 = this.getPropType(e3.model),
|
|
177
|
-
if (
|
|
178
|
-
this.selectOrganizationInfo =
|
|
172
|
+
const t3 = this.getPropName(e3.model), n3 = this.getPropType(e3.model), o2 = this.getModelValue(t3, n3);
|
|
173
|
+
if (o2 && null !== o2 && "" !== o2) {
|
|
174
|
+
this.selectOrganizationInfo = o2, this.searchField = i2;
|
|
179
175
|
break;
|
|
180
176
|
}
|
|
181
177
|
}
|
|
@@ -193,16 +189,16 @@ const f = { components: { ElIconSearch: e, ElIconDelete: t, DepartmentUserTree:
|
|
|
193
189
|
i2 || (i2 = this.getPropType(e2));
|
|
194
190
|
let n2 = this.models;
|
|
195
191
|
i2 && "page" === i2 && (n2 = this.pageModels), this.setEntityValue(e2, t2, n2);
|
|
196
|
-
}, setEntityValue(e2,
|
|
197
|
-
if (
|
|
192
|
+
}, setEntityValue(e2, i2, n2) {
|
|
193
|
+
if (n2) {
|
|
198
194
|
if (false === this.isJoinTable && e2 && e2.indexOf(".") > 0) {
|
|
199
|
-
const
|
|
200
|
-
|
|
195
|
+
const o2 = this.getParentObject(e2, n2);
|
|
196
|
+
o2 && t.setEntityFieldValue(o2, e2.substring(e2.lastIndexOf(".") + 1), i2);
|
|
201
197
|
} else {
|
|
202
|
-
const
|
|
203
|
-
|
|
198
|
+
const o2 = this.getPropName(e2);
|
|
199
|
+
t.setEntityFieldValue(n2, o2, i2);
|
|
204
200
|
}
|
|
205
|
-
this.$emit("setValue", e2,
|
|
201
|
+
this.$emit("setValue", e2, i2), null != i2 && "" !== i2 || this.$emit("clear", e2);
|
|
206
202
|
}
|
|
207
203
|
}, getParentObject(e2, t2) {
|
|
208
204
|
const i2 = e2.split(".");
|
|
@@ -214,11 +210,9 @@ const f = { components: { ElIconSearch: e, ElIconDelete: t, DepartmentUserTree:
|
|
|
214
210
|
e3 = 0 === n2 ? this.getParentModelProp(i2[n2], t2) : this.getParentModelProp(i2[n2], e3);
|
|
215
211
|
return e3;
|
|
216
212
|
}
|
|
217
|
-
}, getParentModelProp: (e2, t2) => (t2 || (t2 = {}), t2[e2] || (t2[e2] = {}), t2[e2]) }, emits: ["replace", "setValue", "clear", "focus", "update:value", "change"] },
|
|
218
|
-
const
|
|
219
|
-
const
|
|
220
|
-
return
|
|
213
|
+
}, getParentModelProp: (e2, t2) => (t2 || (t2 = {}), t2[e2] || (t2[e2] = {}), t2[e2]) }, emits: ["replace", "setValue", "clear", "focus", "update:value", "change"] }, a = { style: { width: "100%" }, class: "organization-input" };
|
|
214
|
+
const s = r(l, [["render", function(e2, t2, i2, n2, r2, l2) {
|
|
215
|
+
const s2 = o.resolveComponent("el-icon-search"), p = o.resolveComponent("el-icon"), c = o.resolveComponent("el-icon-delete"), u = o.resolveComponent("el-input"), m = o.resolveComponent("department-user-tree"), h = o.resolveComponent("department-tree"), d = o.resolveComponent("workgroup-tree"), f = o.resolveComponent("workgroup-user-tree");
|
|
216
|
+
return o.openBlock(), o.createElementBlock("span", a, [i2.disabled ? (o.openBlock(), o.createBlock(u, { key: 0, disabled: true, "model-value": i2.value, readonly: true, size: i2.size, type: "text", placeholder: e2.$t("imatrixUIMessage.pleaseSelect") }, { append: o.withCtx(() => [o.createVNode(p, { class: "el-input__icon" }, { suffix: o.withCtx(() => [o.createVNode(s2)]), _: 1 }), o.createVNode(p, { class: "el-input__icon" }, { suffix: o.withCtx(() => [o.createVNode(c)]), _: 1 })]), _: 1 }, 8, ["model-value", "size", "placeholder"])) : (o.openBlock(), o.createBlock(u, { key: 1, "model-value": i2.value, readonly: true, size: i2.size, type: "text", placeholder: e2.$t("imatrixUIMessage.pleaseSelect"), onClick: t2[2] || (t2[2] = (e3) => l2.showOrganizationTree(false)), onChange: l2.changeEvent }, { append: o.withCtx(() => [o.createVNode(p, { class: "el-input__icon", onClick: t2[0] || (t2[0] = (e3) => l2.showOrganizationTree(false)) }, { default: o.withCtx(() => [o.createVNode(s2)]), _: 1 }), o.createVNode(p, { class: "el-input__icon", onClick: t2[1] || (t2[1] = (e3) => l2.emptyOrganizationResult()) }, { default: o.withCtx(() => [o.createVNode(c)]), _: 1 })]), _: 1 }, 8, ["model-value", "size", "placeholder", "onChange"])), i2.treeType && "DeptUserTree" === i2.treeType && r2.showOrganizationTreeFlag ? (o.openBlock(), o.createBlock(m, { key: 2, "department-info": i2.departmentInfo, multiple: void 0 !== i2.multiple && i2.multiple, "search-field": r2.searchField, "select-user-info": r2.selectOrganizationInfo, separator: i2.separator, "limit-filter-column": i2.limitFilterColumn, onClose: l2.closeOrganizationTree }, null, 8, ["department-info", "multiple", "search-field", "select-user-info", "separator", "limit-filter-column", "onClose"])) : o.createCommentVNode("", true), i2.treeType && "DeptTree" === i2.treeType && r2.showOrganizationTreeFlag ? (o.openBlock(), o.createBlock(h, { key: 3, "check-strictly": void 0 !== i2.checkStrictly && i2.checkStrictly, multiple: void 0 !== i2.multiple && i2.multiple, "search-field": r2.searchField, "department-info": i2.departmentInfo, "select-department-info": r2.selectOrganizationInfo, separator: i2.separator, "limit-filter-column": i2.limitFilterColumn, width: "30%", onClose: l2.closeOrganizationTree }, null, 8, ["check-strictly", "multiple", "search-field", "department-info", "select-department-info", "separator", "limit-filter-column", "onClose"])) : o.createCommentVNode("", true), i2.treeType && "WgTree" === i2.treeType && r2.showOrganizationTreeFlag ? (o.openBlock(), o.createBlock(d, { key: 4, multiple: void 0 !== i2.multiple && i2.multiple, "branch-info": i2.departmentInfo, "search-field": r2.searchField, "select-workgroup-info": r2.selectOrganizationInfo, separator: i2.separator, "limit-filter-column": i2.limitFilterColumn, width: "30%", onClose: l2.closeOrganizationTree }, null, 8, ["multiple", "branch-info", "search-field", "select-workgroup-info", "separator", "limit-filter-column", "onClose"])) : o.createCommentVNode("", true), i2.treeType && "WgUserTree" === i2.treeType && r2.showOrganizationTreeFlag ? (o.openBlock(), o.createBlock(f, { key: 5, "branch-info": i2.departmentInfo, multiple: void 0 !== i2.multiple && i2.multiple, "search-field": r2.searchField, "select-user-info": r2.selectOrganizationInfo, separator: i2.separator, "limit-filter-column": i2.limitFilterColumn, width: "30%", onClose: l2.closeOrganizationTree }, null, 8, ["branch-info", "multiple", "search-field", "select-user-info", "separator", "limit-filter-column", "onClose"])) : o.createCommentVNode("", true)]);
|
|
221
217
|
}]]);
|
|
222
|
-
|
|
223
|
-
g as default
|
|
224
|
-
};
|
|
218
|
+
module.exports = s;
|