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,39 +1,32 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import p from "../fs-preview-new.vue.js";
|
|
4
|
-
import { isImage as v } from "../../../src/utils/util.js";
|
|
5
|
-
import { getToken as y } from "../../../src/utils/auth.js";
|
|
6
|
-
import { isPlateSys as w, getReplaceUrlDomain as b } from "../../../src/utils/common-util.js";
|
|
7
|
-
const h = { style: { width: "100%" } }, g = { key: 0, class: "el-upload-list__item-thumbnail" }, F = { class: "file-name-container" }, k = ["src"], _ = e({ __name: "file-upload-component", props: { systemCode: { type: String, default: "" }, disabled: { type: Boolean, default: false }, fileList: { type: Array, default: () => [] }, beforeRemove: { type: Function, default: () => {
|
|
1
|
+
"use strict";
|
|
2
|
+
const e = require("vue"), t = require("@element-plus/icons-vue"), o = require("../fs-preview-new.vue.js"), l = require("../../../src/utils/util.js"), i = require("../../../src/utils/auth.js"), a = require("../../../src/utils/common-util.js"), r = { style: { width: "100%" } }, s = { key: 0, class: "el-upload-list__item-thumbnail" }, n = { class: "file-name-container" }, c = ["src"], u = e.defineComponent({ __name: "file-upload-component", props: { systemCode: { type: String, default: "" }, disabled: { type: Boolean, default: false }, fileList: { type: Array, default: () => [] }, beforeRemove: { type: Function, default: () => {
|
|
8
3
|
} }, onRemove: { type: Function, default: () => {
|
|
9
4
|
} }, beforeDownload: { type: Function, default: () => {
|
|
10
|
-
} }, accept: { type: String, default: "" }, limitFileSize: { type: Number, default: 30 }, baseURL: { type: String, default: "" }, watermark: { type: Object, default: () => ({}) } }, emits: ["chooseFile", "remove"], setup(
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
const
|
|
14
|
-
let
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
const
|
|
18
|
-
|
|
19
|
-
},
|
|
20
|
-
function
|
|
21
|
-
|
|
22
|
-
const o2 =
|
|
23
|
-
let l2 =
|
|
24
|
-
return
|
|
5
|
+
} }, accept: { type: String, default: "" }, limitFileSize: { type: Number, default: 30 }, baseURL: { type: String, default: "" }, watermark: { type: Object, default: () => ({}) } }, emits: ["chooseFile", "remove"], setup(u2, { expose: m, emit: d }) {
|
|
6
|
+
const p = u2;
|
|
7
|
+
e.ref(""), e.ref(false);
|
|
8
|
+
const f = e.ref(false);
|
|
9
|
+
let v = p.baseURL;
|
|
10
|
+
const w = window.$vueApp.config.globalProperties.baseAPI, y = e.ref(p.fileList);
|
|
11
|
+
y.value ? JSON.stringify(y.value) : y.value;
|
|
12
|
+
const b = () => {
|
|
13
|
+
d("chooseFile");
|
|
14
|
+
}, h = (e2) => l.isImage(e2.showName ? e2.showName : e2.name);
|
|
15
|
+
function g(e2, t2) {
|
|
16
|
+
e2 = k(e2);
|
|
17
|
+
const o2 = i.getToken();
|
|
18
|
+
let l2 = v + "/common/super-form/downloads?jwt=" + o2;
|
|
19
|
+
return a.isPlateSys(p.systemCode) && (l2 = w + "/component/super-form/downloads?jwt=" + o2), l2 = a.getReplaceUrlDomain(l2), l2 + "&showName=" + encodeURI(e2) + "&serverPath=" + t2;
|
|
25
20
|
}
|
|
26
|
-
const
|
|
27
|
-
function
|
|
28
|
-
|
|
21
|
+
const k = (e2) => (e2 && (e2 = e2.replace("#", "~~").replace("?", "~$").replace("&", "$")), e2);
|
|
22
|
+
function N(e2) {
|
|
23
|
+
d("remove", e2);
|
|
29
24
|
}
|
|
30
|
-
return
|
|
31
|
-
|
|
32
|
-
} }), (
|
|
33
|
-
const
|
|
34
|
-
return
|
|
25
|
+
return m({ changeFileList: function(e2) {
|
|
26
|
+
y.value = e2;
|
|
27
|
+
} }), (l2, i2) => {
|
|
28
|
+
const a2 = e.resolveComponent("el-text"), m2 = e.resolveComponent("el-icon"), d2 = e.resolveComponent("el-upload");
|
|
29
|
+
return e.openBlock(), e.createBlock(d2, { action: "#", "list-type": "picture-card", "file-list": y.value, "auto-upload": false, disabled: true }, e.createSlots({ file: e.withCtx(({ file: t2 }) => [e.createElementVNode("div", r, [h(t2) ? (e.openBlock(), e.createElementBlock("img", { key: 1, class: "el-upload-list__item-thumbnail", src: g(t2.showName ? t2.showName : t2.name, t2.serverPath), alt: "" }, null, 8, c)) : (e.openBlock(), e.createElementBlock("div", s, [e.createElementVNode("div", n, e.toDisplayString(t2.name), 1)])), e.createVNode(o, { disabled: f.value, "file-list": y.value, file: t2, "system-code": u2.systemCode, watermark: u2.watermark, "before-remove": u2.beforeRemove, "on-remove": u2.onRemove, "before-download": u2.beforeDownload, onRemove: N }, null, 8, ["disabled", "file-list", "file", "system-code", "watermark", "before-remove", "on-remove", "before-download"])])]), _: 2 }, [f.value ? void 0 : { name: "tip", fn: e.withCtx(() => [e.createVNode(a2, { size: "small", style: { padding: "10px", "font-weight": "600" } }, { default: e.withCtx(() => [e.createTextVNode(e.toDisplayString(u2.accept) + " " + e.toDisplayString(u2.limitFileSize ? l2.$t("imatrixUIMessage.uploadFileTip", { fileSize: u2.limitFileSize }) : ""), 1)]), _: 1 })]), key: "0" }, f.value ? void 0 : { name: "trigger", fn: e.withCtx(() => [e.createVNode(m2, { onClick: b }, { default: e.withCtx(() => [e.createVNode(e.unref(t.Plus))]), _: 1 })]), key: "1" }]), 1032, ["file-list"]);
|
|
35
30
|
};
|
|
36
31
|
} });
|
|
37
|
-
|
|
38
|
-
_ as default
|
|
39
|
-
};
|
|
32
|
+
module.exports = u;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { Upload as d } from "@element-plus/icons-vue";
|
|
4
|
-
const r = e({ __name: "file-upload-input", props: { openFsUpload: { type: Object, default: true }, entity: { type: Object, default: () => null }, fileInfo: { type: Object, default: () => ({}) }, systemCode: { type: String, default: "" }, displayType: { type: String, default: "input" }, disabled: { type: Boolean, default: false }, accept: { type: String, default: "" }, multiple: { type: Boolean, default: false }, limit: { type: Number, default: 1 }, limitFileSize: { type: Number, default: 30 }, placeholder: { type: String, default: "拖拽文件 或 点击上传" }, action: { type: String, default: "" }, headers: { type: Object, default: () => ({ Authorization: null }) }, fileList: { type: Array, default: () => [] }, onSuccess: { type: Function, default: () => {
|
|
1
|
+
"use strict";
|
|
2
|
+
const e = require("vue"), o = require("./file-upload.vue.js"), t = require("@element-plus/icons-vue"), l = e.defineComponent({ __name: "file-upload-input", props: { openFsUpload: { type: Object, default: true }, entity: { type: Object, default: () => null }, fileInfo: { type: Object, default: () => ({}) }, systemCode: { type: String, default: "" }, displayType: { type: String, default: "input" }, disabled: { type: Boolean, default: false }, accept: { type: String, default: "" }, multiple: { type: Boolean, default: false }, limit: { type: Number, default: 1 }, limitFileSize: { type: Number, default: 30 }, placeholder: { type: String, default: "拖拽文件 或 点击上传" }, action: { type: String, default: "" }, headers: { type: Object, default: () => ({ Authorization: null }) }, fileList: { type: Array, default: () => [] }, onSuccess: { type: Function, default: () => {
|
|
5
3
|
} }, beforeRemove: { type: Function, default: () => {
|
|
6
4
|
} }, onRemove: { type: Function, default: () => {
|
|
7
5
|
} }, beforeDownload: { type: Function, default: () => {
|
|
@@ -10,36 +8,34 @@ const r = e({ __name: "file-upload-input", props: { openFsUpload: { type: Object
|
|
|
10
8
|
} }, componentName: { type: String, default: function() {
|
|
11
9
|
return "file-upload";
|
|
12
10
|
} }, listCode: { type: String, default: null }, openCameraOrChoosePhoto: { type: String, default: "openCameraAndChoosePhoto" }, beforeUpload: { type: Function, default: () => {
|
|
13
|
-
} }, watermark: { type: Object, default: () => ({}) } }, emits: ["remove", "uploadend"], setup(
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
const
|
|
17
|
-
|
|
11
|
+
} }, watermark: { type: Object, default: () => ({}) } }, emits: ["remove", "uploadend"], setup(l2, { expose: a, emit: i }) {
|
|
12
|
+
const n = l2, r = e.ref(false), p = e.ref(null);
|
|
13
|
+
p.value = n.fileList && n.fileList.length > 0 ? n.fileList.map((e2) => e2.showName).join(",") : null;
|
|
14
|
+
const u = () => {
|
|
15
|
+
r.value = true;
|
|
18
16
|
};
|
|
19
|
-
function
|
|
20
|
-
const
|
|
21
|
-
JSON.stringify(
|
|
22
|
-
|
|
23
|
-
}), JSON.stringify(
|
|
17
|
+
function d(e2) {
|
|
18
|
+
const o2 = Array.from(n.fileList, ({ serverPath: e3 }) => e3);
|
|
19
|
+
JSON.stringify(n.fileList), JSON.stringify(e2), e2.forEach((e3) => {
|
|
20
|
+
o2.indexOf(e3.serverPath) < 0 && n.fileList.push({ showName: e3.name, serverPath: e3.serverPath });
|
|
21
|
+
}), JSON.stringify(n.fileList), JSON.stringify(e2), p.value = n.fileList.map((e3) => e3.showName).join(","), p.value, n.onSuccess();
|
|
24
22
|
}
|
|
25
|
-
function
|
|
26
|
-
const
|
|
27
|
-
if (
|
|
28
|
-
let
|
|
29
|
-
|
|
23
|
+
function s(e2) {
|
|
24
|
+
const o2 = e2.rmFiles && e2.rmFiles.length > 0 ? e2.rmFiles[0] : null;
|
|
25
|
+
if (o2) {
|
|
26
|
+
let e3 = n.fileList.findIndex((e4) => e4.serverPath === o2.serverPath);
|
|
27
|
+
e3 > -1 && n.fileList.splice(e3, 1);
|
|
30
28
|
}
|
|
31
|
-
|
|
29
|
+
p.value = n.fileList.map((e3) => e3.showName).join(","), n.onRemove();
|
|
32
30
|
}
|
|
33
|
-
const
|
|
34
|
-
return navigator.userAgent.indexOf(" uni-app ") > 0 ?
|
|
35
|
-
"app" ===
|
|
36
|
-
}, uploadFileDone: function(
|
|
37
|
-
"app" ===
|
|
38
|
-
} }), (
|
|
39
|
-
const
|
|
40
|
-
return
|
|
31
|
+
const f = e.ref(null), c = e.ref(null);
|
|
32
|
+
return navigator.userAgent.indexOf(" uni-app ") > 0 ? f.value = "app" : f.value = "browser", a({ pickFileDone: function(e2) {
|
|
33
|
+
"app" === f.value && c.value.pickFileDone(e2);
|
|
34
|
+
}, uploadFileDone: function(e2) {
|
|
35
|
+
"app" === f.value && c.value.uploadFileDone(e2);
|
|
36
|
+
} }), (a2, i2) => {
|
|
37
|
+
const n2 = e.resolveComponent("el-button"), f2 = e.resolveComponent("el-input"), m = e.resolveComponent("el-dialog");
|
|
38
|
+
return e.openBlock(), e.createElementBlock("div", null, [e.createVNode(f2, { ref: "item", disabled: l2.disabled, modelValue: p.value, "onUpdate:modelValue": i2[0] || (i2[0] = (e2) => p.value = e2), placeholder: a2.$t("imatrixUIMessage.fileUpload"), readonly: true }, { append: e.withCtx(() => [e.createVNode(n2, { icon: e.unref(t.Upload), size: "default", onClick: u }, null, 8, ["icon"])]), _: 1 }, 8, ["disabled", "modelValue", "placeholder"]), e.createVNode(m, { modelValue: r.value, "onUpdate:modelValue": i2[1] || (i2[1] = (e2) => r.value = e2), "append-to-body": true, "show-close": true, title: a2.$t("imatrixUIMessage.upload"), width: "80%", onClose: i2[2] || (i2[2] = (e2) => r.value = false) }, { default: e.withCtx(() => [e.createVNode(o, { ref_key: "fileUploadRef", ref: c, disabled: l2.disabled, fileInfo: l2.fileInfo, systemCode: l2.systemCode, accept: l2.accept, multiple: l2.multiple, limit: l2.limit, limitFileSize: l2.limitFileSize, placeholder: l2.placeholder, action: l2.action, headers: l2.headers, "file-list": l2.fileList, beforeUpload: l2.beforeUpload, onSuccess: l2.onSuccess, beforeRemove: l2.beforeRemove, onRemove: [l2.onRemove, s], beforeDownload: l2.beforeDownload, pageContext: l2.pageContext, configure: l2.configure, openFsUpload: l2.openFsUpload, componentId: l2.componentId, componentName: l2.componentName, listCode: l2.listCode, openCameraOrChoosePhoto: l2.openCameraOrChoosePhoto, watermark: l2.watermark, onUploadend: d }, null, 8, ["disabled", "fileInfo", "systemCode", "accept", "multiple", "limit", "limitFileSize", "placeholder", "action", "headers", "file-list", "beforeUpload", "onSuccess", "beforeRemove", "onRemove", "beforeDownload", "pageContext", "configure", "openFsUpload", "componentId", "componentName", "listCode", "openCameraOrChoosePhoto", "watermark"])]), _: 1 }, 8, ["modelValue", "title"])]);
|
|
41
39
|
};
|
|
42
40
|
} });
|
|
43
|
-
|
|
44
|
-
r as default
|
|
45
|
-
};
|
|
41
|
+
module.exports = l;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
1
|
+
"use strict";
|
|
2
|
+
const e = require("./file-upload-input.vue.js");
|
|
3
|
+
module.exports = e;
|
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { useI18n as p } from "vue-i18n";
|
|
4
|
-
import r from "./file-upload-app.vue.js";
|
|
5
|
-
import d from "./file-upload-browser.vue.js";
|
|
6
|
-
const u = e({ __name: "file-upload", props: { openFsUpload: { type: Object, default: true }, entity: { type: Object, default: () => null }, fileInfo: { type: Object, default: () => ({}) }, systemCode: { type: String, default: "" }, displayType: { type: String, default: "input" }, disabled: { type: Boolean, default: false }, accept: { type: String, default: "" }, multiple: { type: Boolean, default: false }, limit: { type: Number, default: 1 }, limitFileSize: { type: Number, default: 30 }, placeholder: { type: String, default: "拖拽文件 或 点击上传" }, action: { type: String, default: "" }, headers: { type: Object, default: () => ({ Authorization: null }) }, fileList: { type: Array, default: () => [] }, onSuccess: { type: Function, default: () => {
|
|
1
|
+
"use strict";
|
|
2
|
+
const e = require("vue"), o = require("element-plus"), t = require("vue-i18n"), l = require("./file-upload-app.vue.js"), a = require("./file-upload-browser.vue.js"), n = e.defineComponent({ __name: "file-upload", props: { openFsUpload: { type: Object, default: true }, entity: { type: Object, default: () => null }, fileInfo: { type: Object, default: () => ({}) }, systemCode: { type: String, default: "" }, displayType: { type: String, default: "input" }, disabled: { type: Boolean, default: false }, accept: { type: String, default: "" }, multiple: { type: Boolean, default: false }, limit: { type: Number, default: 1 }, limitFileSize: { type: Number, default: 30 }, placeholder: { type: String, default: "拖拽文件 或 点击上传" }, action: { type: String, default: "" }, headers: { type: Object, default: () => ({ Authorization: null }) }, fileList: { type: Array, default: () => [] }, onSuccess: { type: Function, default: () => {
|
|
7
3
|
} }, beforeRemove: { type: Function, default: () => {
|
|
8
4
|
} }, onRemove: { type: Function, default: () => {
|
|
9
5
|
} }, beforeDownload: { type: Function, default: () => {
|
|
@@ -12,24 +8,22 @@ const u = e({ __name: "file-upload", props: { openFsUpload: { type: Object, defa
|
|
|
12
8
|
} }, componentName: { type: String, default: function() {
|
|
13
9
|
return "file-upload";
|
|
14
10
|
} }, listCode: { type: String, default: null }, openCameraOrChoosePhoto: { type: String, default: "openCameraAndChoosePhoto" }, beforeUpload: { type: Function, default: () => {
|
|
15
|
-
} }, watermark: { type: Object, default: () => ({}) } }, emits: ["uploadend", "remove", "pickup-file", "close"], setup(
|
|
16
|
-
const
|
|
17
|
-
function
|
|
18
|
-
|
|
11
|
+
} }, watermark: { type: Object, default: () => ({}) } }, emits: ["uploadend", "remove", "pickup-file", "close"], setup(n2, { expose: i, emit: p }) {
|
|
12
|
+
const r = window.$vueApp.config.globalProperties.baseAPI + "/component/super-form/deleteFile", { t: d } = t.useI18n(), u = e.ref(null), s = e.ref(null), f = e.ref([]), c = e.ref(null), m = navigator.userAgent;
|
|
13
|
+
function v(e2) {
|
|
14
|
+
p("uploadend", e2);
|
|
19
15
|
}
|
|
20
|
-
function
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
}),
|
|
24
|
-
|
|
25
|
-
}),
|
|
16
|
+
function b({ rmFiles: e2, serverFiles: t2, newFiles: l2 }) {
|
|
17
|
+
e2 && e2.length > 0 && (e2.forEach((e3) => {
|
|
18
|
+
e3.serverPath && f.value && f.value.indexOf(e3.serverPath) < 0 && f.value.push(e3.serverPath);
|
|
19
|
+
}), f.value && f.value.length > 0 && window.$vueApp.config.globalProperties.$http.post(r, f.value).then(() => {
|
|
20
|
+
o.ElMessage({ showClose: true, message: d("fsUpload.updateSuccess"), type: "success" });
|
|
21
|
+
}), p("remove", { rmFiles: e2, serverFiles: t2, newFiles: l2 }));
|
|
26
22
|
}
|
|
27
|
-
return
|
|
28
|
-
"app" ===
|
|
29
|
-
}, uploadFileDone: function(
|
|
30
|
-
"app" ===
|
|
31
|
-
} }), (o2,
|
|
23
|
+
return s.value = m, m.indexOf(" uni-app ") > 0 ? u.value = "app" : u.value = "browser", i({ pickFileDone: function(e2) {
|
|
24
|
+
"app" === u.value && c.value.pickFileDone(e2);
|
|
25
|
+
}, uploadFileDone: function(e2) {
|
|
26
|
+
"app" === u.value && c.value.uploadFileDone(e2);
|
|
27
|
+
} }), (o2, t2) => (e.openBlock(), e.createElementBlock("div", null, ["app" === u.value ? (e.openBlock(), e.createBlock(l, { key: 0, ref_key: "fileUploadRef", ref: c, "file-list": n2.fileList, multiple: n2.multiple, disabled: n2.disabled, fileInfo: n2.fileInfo, systemCode: n2.systemCode, accept: n2.accept, limit: n2.limit, limitFileSize: n2.limitFileSize, placeholder: n2.placeholder, action: n2.action, headers: n2.headers, beforeUpload: n2.beforeUpload, onSuccess: n2.onSuccess, beforeRemove: n2.beforeRemove, onRemove: [n2.onRemove, b], beforeDownload: n2.beforeDownload, pageContext: n2.pageContext, configure: n2.configure, openFsUpload: n2.openFsUpload, componentId: n2.componentId, componentName: n2.componentName, listCode: n2.listCode, openCameraOrChoosePhoto: n2.openCameraOrChoosePhoto, watermark: n2.watermark, onUploadend: v }, null, 8, ["file-list", "multiple", "disabled", "fileInfo", "systemCode", "accept", "limit", "limitFileSize", "placeholder", "action", "headers", "beforeUpload", "onSuccess", "beforeRemove", "onRemove", "beforeDownload", "pageContext", "configure", "openFsUpload", "componentId", "componentName", "listCode", "openCameraOrChoosePhoto", "watermark"])) : "browser" === u.value ? (e.openBlock(), e.createBlock(a, { key: 1, ref_key: "fileUploadRef", ref: c, "file-list": n2.fileList, multiple: n2.multiple, disabled: n2.disabled, fileInfo: n2.fileInfo, systemCode: n2.systemCode, accept: n2.accept, limit: n2.limit, limitFileSize: n2.limitFileSize, placeholder: n2.placeholder, action: n2.action, headers: n2.headers, beforeUpload: n2.beforeUpload, onSuccess: n2.onSuccess, beforeRemove: n2.beforeRemove, onRemove: [n2.onRemove, b], beforeDownload: n2.beforeDownload, pageContext: n2.pageContext, configure: n2.configure, openFsUpload: n2.openFsUpload, componentId: n2.componentId, componentName: n2.componentName, listCode: n2.listCode, openCameraOrChoosePhoto: n2.openCameraOrChoosePhoto, watermark: n2.watermark, onUploadend: v }, null, 8, ["file-list", "multiple", "disabled", "fileInfo", "systemCode", "accept", "limit", "limitFileSize", "placeholder", "action", "headers", "beforeUpload", "onSuccess", "beforeRemove", "onRemove", "beforeDownload", "pageContext", "configure", "openFsUpload", "componentId", "componentName", "listCode", "openCameraOrChoosePhoto", "watermark"])) : e.createCommentVNode("", true)]));
|
|
32
28
|
} });
|
|
33
|
-
|
|
34
|
-
u as default
|
|
35
|
-
};
|
|
29
|
+
module.exports = n;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
1
|
+
"use strict";
|
|
2
|
+
const e = require("./file-upload.vue.js");
|
|
3
|
+
module.exports = e;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
p as default
|
|
7
|
-
};
|
|
1
|
+
"use strict";
|
|
2
|
+
const e = require("./fs-button-upload.vue2.js");
|
|
3
|
+
require("./fs-button-upload.vue3.js");
|
|
4
|
+
const u = require("../../_virtual/_plugin-vue_export-helper.js")(e, [["__scopeId", "data-v-5bb8bf7f"]]);
|
|
5
|
+
module.exports = u;
|
|
@@ -1,62 +1,55 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { getToken as y } from "../../src/utils/auth.js";
|
|
4
|
-
import g from "./fs-preview-new.vue.js";
|
|
5
|
-
import { ElMessage as h } from "element-plus";
|
|
6
|
-
import { useI18n as w } from "vue-i18n";
|
|
7
|
-
const x = { style: { width: "100%" } }, F = { key: 0, style: { display: "flex", "align-items": "center" } }, S = { class: "fs-upload-tag-text" }, z = { class: "fs-upload-tag-percent" }, U = e({ __name: "fs-button-upload", props: { openFsUpload: { type: Boolean, default: true }, systemCode: { type: String, default: "" }, disabled: { type: Boolean, default: false }, downloadable: { type: Boolean, default: true }, accept: { type: String, default: "" }, multiple: { type: Boolean, default: false }, limitFileSize: { type: Number, default: 30 }, placeholder: { type: String, default: "点击上传" }, action: { type: String, default: "" }, headers: { type: Object, default: () => ({ Authorization: null }) }, fileList: { type: Array, default: () => [] }, onSuccess: { type: Function, default: () => {
|
|
1
|
+
"use strict";
|
|
2
|
+
const e = require("vue"), t = require("../../src/utils/common-util.js"), o = require("../../src/utils/auth.js"), l = require("./fs-preview-new.vue.js"), a = require("element-plus"), r = require("vue-i18n"), i = { style: { width: "100%" } }, s = { key: 0, style: { display: "flex", "align-items": "center" } }, n = { class: "fs-upload-tag-text" }, d = { class: "fs-upload-tag-percent" }, u = e.defineComponent({ __name: "fs-button-upload", props: { openFsUpload: { type: Boolean, default: true }, systemCode: { type: String, default: "" }, disabled: { type: Boolean, default: false }, downloadable: { type: Boolean, default: true }, accept: { type: String, default: "" }, multiple: { type: Boolean, default: false }, limitFileSize: { type: Number, default: 30 }, placeholder: { type: String, default: "点击上传" }, action: { type: String, default: "" }, headers: { type: Object, default: () => ({ Authorization: null }) }, fileList: { type: Array, default: () => [] }, onSuccess: { type: Function, default: () => {
|
|
8
3
|
} }, beforeRemove: { type: Function, default: () => {
|
|
9
4
|
} }, onRemove: { type: Function, default: () => {
|
|
10
5
|
} }, beforeDownload: { type: Function, default: () => {
|
|
11
6
|
} }, pageContext: { type: Object, default: () => ({}) }, configure: { type: Object, default: () => ({}) }, beforeUpload: { type: Function, default: () => {
|
|
12
|
-
} }, disabledNoPreview: { type: Boolean, default: false }, disabledNoDownload: { type: Boolean, default: false }, limit: { type: Number, default: 0 }, watermark: { type: Object, default: () => ({}) } }, emits: ["on-error"], setup(
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
return { background: `linear-gradient(90deg, #409EFF ${
|
|
7
|
+
} }, disabledNoPreview: { type: Boolean, default: false }, disabledNoDownload: { type: Boolean, default: false }, limit: { type: Number, default: 0 }, watermark: { type: Object, default: () => ({}) } }, emits: ["on-error"], setup(u2, { emit: p }) {
|
|
8
|
+
const c = u2, { t: f } = r.useI18n(), m = t.getRelativeBaseUrl(window.$vueApp.config.globalProperties.baseURL), b = t.getRelativeBaseUrl(window.$vueApp.config.globalProperties.baseAPI), g = e.ref(""), v = e.ref(), y = e.ref(false), h = e.ref(""), w = e.ref(0), x = e.ref(c.limitFileSize), N = e.computed(() => {
|
|
9
|
+
const e2 = Math.max(0, Math.min(100, Number(w.value || 0)));
|
|
10
|
+
return { background: `linear-gradient(90deg, #409EFF ${e2}%, rgba(255,255,255,0.92) ${e2}%)`, color: e2 >= 50 ? "#fff" : "#303133", transition: "background 0.3s linear" };
|
|
16
11
|
});
|
|
17
|
-
if (
|
|
18
|
-
|
|
12
|
+
if (c.action)
|
|
13
|
+
g.value = c.action;
|
|
19
14
|
else {
|
|
20
|
-
let
|
|
21
|
-
|
|
15
|
+
let e2 = m + "/common/fs-upload";
|
|
16
|
+
t.isPlateSys(window.$vueApp.config.globalProperties.systemCode) && (e2 = b + "/component/super-form/uploads"), g.value = e2;
|
|
22
17
|
}
|
|
23
|
-
|
|
24
|
-
const
|
|
18
|
+
c.headers && c.headers.Authorization || (c.headers.Authorization = o.getToken());
|
|
19
|
+
const C = (e2) => {
|
|
25
20
|
var _a;
|
|
26
|
-
if (0 !== ((_a =
|
|
27
|
-
return
|
|
28
|
-
if (
|
|
29
|
-
return
|
|
30
|
-
return
|
|
31
|
-
},
|
|
32
|
-
|
|
33
|
-
},
|
|
34
|
-
|
|
35
|
-
let o2 =
|
|
21
|
+
if (0 !== ((_a = c.fileList) == null ? void 0 : _a.length) && c.limit > 0 && c.fileList.length >= c.limit)
|
|
22
|
+
return a.ElMessage({ type: "warning", message: f("fsUpload.theNumberOfUploadsExceedsTheLimitTheLimitIs") + ": " + c.limit, showClose: true }), false;
|
|
23
|
+
if (x.value || (x.value = 30), e2.size > 1024 * x.value * 1024)
|
|
24
|
+
return a.ElMessage({ type: "warning", message: f("imatrixUIMessage.exceedFileSize", { fileSize: x.value }), showClose: true }), false;
|
|
25
|
+
return c.beforeUpload({ fileObj: e2, files: [e2], isMobile: false, pageContext: c.pageContext, configureObj: c.configure });
|
|
26
|
+
}, S = (e2, t2, o2) => {
|
|
27
|
+
a.ElMessage({ message: f("fsUpload.uploadSucceeded"), type: "success", placement: "top" }), c.fileList.push({ showName: e2.name, serverPath: e2.serverPath }), c.onSuccess(e2, t2, o2), y.value = false, w.value = 0;
|
|
28
|
+
}, k = (e2, t2) => {
|
|
29
|
+
y.value = false, w.value = 0;
|
|
30
|
+
let o2 = f("fsUpload.uploadFailed");
|
|
36
31
|
try {
|
|
37
|
-
const
|
|
38
|
-
if (
|
|
39
|
-
const t3 = "string" == typeof
|
|
32
|
+
const e3 = t2 && t2.xhr && (t2.xhr.response || t2.xhr.responseText);
|
|
33
|
+
if (e3) {
|
|
34
|
+
const t3 = "string" == typeof e3 ? JSON.parse(e3) : e3;
|
|
40
35
|
o2 = (t3 == null ? void 0 : t3.message) || (t3 == null ? void 0 : t3.msg) || (t3 == null ? void 0 : t3.error) || o2;
|
|
41
36
|
}
|
|
42
|
-
} catch (
|
|
37
|
+
} catch (e3) {
|
|
43
38
|
}
|
|
44
|
-
|
|
39
|
+
a.ElMessage({ type: "error", message: o2 }), p("on-error", e2);
|
|
45
40
|
};
|
|
46
|
-
function
|
|
41
|
+
function B(e2, t2, o2) {
|
|
47
42
|
try {
|
|
48
|
-
|
|
49
|
-
const o3 =
|
|
50
|
-
|
|
51
|
-
} catch (
|
|
52
|
-
|
|
43
|
+
h.value = t2.name;
|
|
44
|
+
const o3 = e2 && e2.percent ? Math.floor(e2.percent) : 0;
|
|
45
|
+
y.value = true, w.value = 100 === o3 ? 99 : o3;
|
|
46
|
+
} catch (e3) {
|
|
47
|
+
y.value = false, w.value = 0;
|
|
53
48
|
}
|
|
54
49
|
}
|
|
55
50
|
return (t2, o2) => {
|
|
56
|
-
const
|
|
57
|
-
return
|
|
51
|
+
const a2 = e.resolveComponent("el-button"), r2 = e.resolveComponent("el-text"), p2 = e.resolveComponent("el-upload"), c2 = e.resolveComponent("el-tag");
|
|
52
|
+
return e.openBlock(), e.createElementBlock(e.Fragment, null, [e.createElementVNode("div", i, [u2.disabled ? e.createCommentVNode("", true) : (e.openBlock(), e.createBlock(p2, { key: 0, ref_key: "buttonUploadRef", ref: v, class: "upload-demo", accept: u2.accept, "show-file-list": false, "auto-upload": "", headers: u2.headers, disabled: !u2.openFsUpload, action: g.value, multiple: u2.multiple, "before-upload": C, "before-remove": u2.beforeRemove, "on-success": S, "on-error": k, "on-progress": B }, { tip: e.withCtx(() => [e.createVNode(r2, null, { default: e.withCtx(() => [e.createTextVNode(e.toDisplayString(u2.accept) + " " + e.toDisplayString(t2.$t("imatrixUIMessage.uploadFileTip", { fileSize: u2.limitFileSize })), 1)]), _: 1 })]), default: e.withCtx(() => [e.createVNode(a2, { size: "small", type: "primary" }, { default: e.withCtx(() => [e.createTextVNode(e.toDisplayString(u2.placeholder), 1)]), _: 1 })]), _: 1 }, 8, ["accept", "headers", "disabled", "action", "multiple", "before-remove"]))]), y.value ? (e.openBlock(), e.createElementBlock("div", s, [e.createVNode(c2, { style: e.normalizeStyle(N.value), size: "large", class: "fs-upload-tag" }, { default: e.withCtx(() => [e.createTextVNode(" 上传中: "), e.createElementVNode("span", n, e.toDisplayString(h.value), 1), e.createElementVNode("span", d, e.toDisplayString(w.value) + "%", 1)]), _: 1 }, 8, ["style"])])) : e.createCommentVNode("", true), u2.fileList && u2.fileList.length > 0 ? (e.openBlock(), e.createBlock(l, { key: 1, disabled: u2.disabled, "disabled-no-preview": u2.disabledNoPreview, "disabled-no-download": u2.disabledNoDownload, "file-list": u2.fileList, "system-code": u2.systemCode, "before-remove": u2.beforeRemove, watermark: u2.watermark, "on-remove": u2.onRemove, "before-download": u2.beforeDownload, downloadable: u2.downloadable }, null, 8, ["disabled", "disabled-no-preview", "disabled-no-download", "file-list", "system-code", "before-remove", "watermark", "on-remove", "before-download", "downloadable"])) : e.createCommentVNode("", true)], 64);
|
|
58
53
|
};
|
|
59
54
|
} });
|
|
60
|
-
|
|
61
|
-
U as default
|
|
62
|
-
};
|
|
55
|
+
module.exports = u;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const r =
|
|
5
|
-
|
|
6
|
-
r as default
|
|
7
|
-
};
|
|
1
|
+
"use strict";
|
|
2
|
+
const e = require("./fs-drag-upload.vue2.js");
|
|
3
|
+
require("./fs-drag-upload.vue3.js");
|
|
4
|
+
const r = require("../../_virtual/_plugin-vue_export-helper.js")(e, [["__scopeId", "data-v-e5cde7de"]]);
|
|
5
|
+
module.exports = r;
|
|
@@ -1,63 +1,55 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { getRelativeBaseUrl as g, isPlateSys as y } from "../../src/utils/common-util.js";
|
|
4
|
-
import { getToken as h } from "../../src/utils/auth.js";
|
|
5
|
-
import w from "./fs-preview-new.vue.js";
|
|
6
|
-
import { ElMessage as x } from "element-plus";
|
|
7
|
-
import { useI18n as F } from "vue-i18n";
|
|
8
|
-
const S = { class: "el-upload__text" }, z = { key: 1, style: { display: "flex", "align-items": "center" } }, U = { class: "fs-upload-tag-text" }, k = { class: "fs-upload-tag-percent" }, L = e({ __name: "fs-drag-upload", props: { openFsUpload: { type: Boolean, default: true }, systemCode: { type: String, default: "" }, disabled: { type: Boolean, default: false }, downloadable: { type: Boolean, default: true }, accept: { type: String, default: "" }, multiple: { type: Boolean, default: false }, limitFileSize: { type: Number, default: 30 }, placeholder: { type: String, default: "拖拽文件 或 点击上传" }, action: { type: String, default: "" }, headers: { type: Object, default: () => ({ Authorization: null }) }, fileList: { type: Array, default: () => [] }, onSuccess: { type: Function, default: () => {
|
|
1
|
+
"use strict";
|
|
2
|
+
const e = require("vue"), t = require("@element-plus/icons-vue"), o = require("../../src/utils/common-util.js"), l = require("../../src/utils/auth.js"), a = require("./fs-preview-new.vue.js"), r = require("element-plus"), i = require("vue-i18n"), s = { class: "el-upload__text" }, n = { key: 1, style: { display: "flex", "align-items": "center" } }, d = { class: "fs-upload-tag-text" }, u = { class: "fs-upload-tag-percent" }, p = e.defineComponent({ __name: "fs-drag-upload", props: { openFsUpload: { type: Boolean, default: true }, systemCode: { type: String, default: "" }, disabled: { type: Boolean, default: false }, downloadable: { type: Boolean, default: true }, accept: { type: String, default: "" }, multiple: { type: Boolean, default: false }, limitFileSize: { type: Number, default: 30 }, placeholder: { type: String, default: "拖拽文件 或 点击上传" }, action: { type: String, default: "" }, headers: { type: Object, default: () => ({ Authorization: null }) }, fileList: { type: Array, default: () => [] }, onSuccess: { type: Function, default: () => {
|
|
9
3
|
} }, beforeRemove: { type: Function, default: () => {
|
|
10
4
|
} }, onRemove: { type: Function, default: () => {
|
|
11
5
|
} }, beforeDownload: { type: Function, default: () => {
|
|
12
6
|
} }, pageContext: { type: Object, default: () => ({}) }, configure: { type: Object, default: () => ({}) }, beforeUpload: { type: Function, default: () => {
|
|
13
|
-
} }, disabledNoPreview: { type: Boolean, default: false }, disabledNoDownload: { type: Boolean, default: false }, limit: { type: Number, default: 0 }, watermark: { type: Object, default: () => ({}) } }, emits: ["on-error"], setup(
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
return { background: `linear-gradient(90deg, #409EFF ${
|
|
7
|
+
} }, disabledNoPreview: { type: Boolean, default: false }, disabledNoDownload: { type: Boolean, default: false }, limit: { type: Number, default: 0 }, watermark: { type: Object, default: () => ({}) } }, emits: ["on-error"], setup(p2, { emit: c }) {
|
|
8
|
+
const f = p2, { t: m } = i.useI18n(), g = o.getRelativeBaseUrl(window.$vueApp.config.globalProperties.baseURL), v = o.getRelativeBaseUrl(window.$vueApp.config.globalProperties.baseAPI), y = e.ref(""), b = e.ref(f.limitFileSize), h = e.ref(false), w = e.ref(""), x = e.ref(0), N = e.ref(), C = e.computed(() => {
|
|
9
|
+
const e2 = Math.max(0, Math.min(100, Number(x.value || 0)));
|
|
10
|
+
return { background: `linear-gradient(90deg, #409EFF ${e2}%, rgba(255,255,255,0.92) ${e2}%)`, color: e2 >= 50 ? "#fff" : "#303133", transition: "background 0.3s linear" };
|
|
17
11
|
});
|
|
18
|
-
if (
|
|
19
|
-
|
|
12
|
+
if (f.action)
|
|
13
|
+
y.value = f.action;
|
|
20
14
|
else {
|
|
21
|
-
let
|
|
22
|
-
|
|
15
|
+
let e2 = g + "/common/fs-upload";
|
|
16
|
+
o.isPlateSys(window.$vueApp.config.globalProperties.systemCode) && (e2 = v + "/component/super-form/uploads"), y.value = e2;
|
|
23
17
|
}
|
|
24
|
-
|
|
25
|
-
const
|
|
18
|
+
f.headers && f.headers.Authorization || (f.headers.Authorization = l.getToken());
|
|
19
|
+
const S = (e2) => {
|
|
26
20
|
var _a;
|
|
27
|
-
if (0 !== ((_a =
|
|
28
|
-
return
|
|
29
|
-
if (
|
|
30
|
-
return
|
|
31
|
-
return
|
|
32
|
-
},
|
|
33
|
-
|
|
34
|
-
},
|
|
35
|
-
|
|
36
|
-
let o2 =
|
|
21
|
+
if (0 !== ((_a = f.fileList) == null ? void 0 : _a.length) && f.limit > 0 && f.fileList.length >= f.limit)
|
|
22
|
+
return r.ElMessage({ type: "warning", message: m("fsUpload.theNumberOfUploadsExceedsTheLimitTheLimitIs") + ": " + f.limit, showClose: true }), false;
|
|
23
|
+
if (b.value || (b.value = 30), e2.size > 1024 * b.value * 1024)
|
|
24
|
+
return r.ElMessage({ type: "warning", message: m("imatrixUIMessage.exceedFileSize", { fileSize: b.value }), showClose: true }), false;
|
|
25
|
+
return f.beforeUpload({ fileObj: e2, files: [e2], isMobile: false, pageContext: f.pageContext, configureObj: f.configure });
|
|
26
|
+
}, k = (e2, t2, o2) => {
|
|
27
|
+
r.ElMessage.success(m("fsUpload.uploadSucceeded")), f.fileList.push({ showName: e2.name, serverPath: e2.serverPath }), f.onSuccess(e2, t2, o2), h.value = false, x.value = 0;
|
|
28
|
+
}, B = (e2, t2) => {
|
|
29
|
+
h.value = false, x.value = 0;
|
|
30
|
+
let o2 = m("fsUpload.uploadFailed");
|
|
37
31
|
try {
|
|
38
|
-
const
|
|
39
|
-
if (
|
|
40
|
-
const t3 = "string" == typeof
|
|
32
|
+
const e3 = t2 && t2.xhr && (t2.xhr.response || t2.xhr.responseText);
|
|
33
|
+
if (e3) {
|
|
34
|
+
const t3 = "string" == typeof e3 ? JSON.parse(e3) : e3;
|
|
41
35
|
o2 = (t3 == null ? void 0 : t3.message) || (t3 == null ? void 0 : t3.msg) || (t3 == null ? void 0 : t3.error) || o2;
|
|
42
36
|
}
|
|
43
|
-
} catch (
|
|
37
|
+
} catch (e3) {
|
|
44
38
|
}
|
|
45
|
-
|
|
39
|
+
r.ElMessage({ type: "error", message: o2 }), c("on-error", e2);
|
|
46
40
|
};
|
|
47
|
-
function
|
|
41
|
+
function F(e2, t2, o2) {
|
|
48
42
|
try {
|
|
49
|
-
|
|
50
|
-
const o3 =
|
|
51
|
-
|
|
52
|
-
} catch (
|
|
53
|
-
|
|
43
|
+
w.value = t2.name;
|
|
44
|
+
const o3 = e2 && e2.percent ? Math.floor(e2.percent) : 0;
|
|
45
|
+
h.value = true, x.value = 100 === o3 ? 99 : o3;
|
|
46
|
+
} catch (e3) {
|
|
47
|
+
h.value = false, x.value = 0;
|
|
54
48
|
}
|
|
55
49
|
}
|
|
56
|
-
return (
|
|
57
|
-
const
|
|
58
|
-
return
|
|
50
|
+
return (o2, l2) => {
|
|
51
|
+
const r2 = e.resolveComponent("el-icon"), i2 = e.resolveComponent("el-text"), c2 = e.resolveComponent("el-upload"), f2 = e.resolveComponent("el-tag");
|
|
52
|
+
return e.openBlock(), e.createElementBlock(e.Fragment, null, [p2.disabled ? e.createCommentVNode("", true) : (e.openBlock(), e.createBlock(c2, { key: 0, ref_key: "buttonUploadRef", ref: N, class: "upload-demo", style: { width: "100%" }, accept: p2.accept, "show-file-list": false, drag: "", headers: p2.headers, action: y.value, multiple: p2.multiple, "before-upload": S, "on-success": k, "before-remove": p2.beforeRemove, "on-error": B, "on-progress": F }, { tip: e.withCtx(() => [e.createVNode(i2, null, { default: e.withCtx(() => [e.createTextVNode(e.toDisplayString(p2.accept) + " " + e.toDisplayString(o2.$t("imatrixUIMessage.uploadFileTip", { fileSize: p2.limitFileSize })), 1)]), _: 1 })]), default: e.withCtx(() => [e.createVNode(r2, { class: "el-icon--upload" }, { default: e.withCtx(() => [e.createVNode(e.unref(t.UploadFilled))]), _: 1 }), e.createElementVNode("div", s, e.toDisplayString(p2.placeholder), 1)]), _: 1 }, 8, ["accept", "headers", "action", "multiple", "before-remove"])), h.value ? (e.openBlock(), e.createElementBlock("div", n, [e.createVNode(f2, { style: e.normalizeStyle(C.value), size: "large", class: "fs-upload-tag" }, { default: e.withCtx(() => [e.createTextVNode(" 上传中: "), e.createElementVNode("span", d, e.toDisplayString(w.value), 1), e.createElementVNode("span", u, e.toDisplayString(x.value) + "%", 1)]), _: 1 }, 8, ["style"])])) : e.createCommentVNode("", true), p2.fileList && p2.fileList.length > 0 ? (e.openBlock(), e.createBlock(a, { key: 2, disabled: p2.disabled, "disabled-no-preview": p2.disabledNoPreview, "disabled-no-download": p2.disabledNoDownload, "file-list": p2.fileList, "system-code": p2.systemCode, watermark: p2.watermark, "before-remove": p2.beforeRemove, "on-remove": p2.onRemove, "before-download": p2.beforeDownload }, null, 8, ["disabled", "disabled-no-preview", "disabled-no-download", "file-list", "system-code", "watermark", "before-remove", "on-remove", "before-download"])) : e.createCommentVNode("", true)], 64);
|
|
59
53
|
};
|
|
60
54
|
} });
|
|
61
|
-
|
|
62
|
-
L as default
|
|
63
|
-
};
|
|
55
|
+
module.exports = p;
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export {
|
|
7
|
-
p as default
|
|
8
|
-
};
|
|
1
|
+
"use strict";
|
|
2
|
+
const e = require("./fs-preview-new.vue2.js");
|
|
3
|
+
require("./fs-preview-new.vue3.js"), require("./fs-preview-new.vue4.js");
|
|
4
|
+
const r = require("../../_virtual/_plugin-vue_export-helper.js")(e, [["__scopeId", "data-v-13b41596"]]);
|
|
5
|
+
module.exports = r;
|