agilebuilder-ui 1.1.65-tmp30 → 1.1.65-tmp32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/chat-embed/src/index.vue.mjs +1 -1
- package/es/chat-embed/src/index.vue2.mjs +104 -100
- package/es/chat-embed/src/voice/js/crypto-js.mjs +46 -50
- package/es/chat-embed/src/voice/voice.vue.mjs +8 -11
- package/es/date-picker-range/index.vue.mjs +1 -1
- package/es/date-picker-range/index.vue2.mjs +41 -33
- package/es/department-tree-inline/src/department-tree-service.mjs +0 -1
- package/es/department-user-tree-inline/src/department-user-multiple-tree-inline.vue.mjs +14 -11
- package/es/department-user-tree-inline/src/department-user-single-tree-inline.vue.mjs +6 -6
- package/es/department-user-tree-inline/src/department-user-tree-multi-service.mjs +19 -20
- package/es/department-user-tree-inline/src/department-user-tree-single-service.mjs +0 -1
- package/es/department-user-tree-inline/src/search-result.vue.mjs +4 -4
- package/es/department-user-tree-mobile/src/department-user-tree-inline-app.vue.mjs +2 -2
- package/es/dynamic-source-select/src/dynamic-source-select.vue.mjs +86 -85
- package/es/fs-preview/src/fs-preview.vue.mjs +73 -59
- package/es/fs-upload/src/fs-upload-multi.vue.mjs +3 -3
- package/es/fs-upload-list/src/fs-upload-list.vue.mjs +5 -6
- package/es/fs-upload-new/src/file-upload-mobile/file-upload-app.vue.mjs +15 -17
- package/es/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue.mjs +19 -19
- package/es/fs-upload-new/src/file-upload-mobile/file-upload-component.vue2.mjs +2 -2
- package/es/fs-upload-new/src/fs-preview-new.vue.mjs +1 -1
- package/es/fs-upload-new/src/fs-preview-new.vue2.mjs +50 -50
- package/es/i18n-setting/index.mjs +7 -0
- package/es/i18n-setting/src/i18n-setting-dialog.vue.mjs +23 -0
- package/es/i18n-setting/src/i18n-setting.mjs +14 -0
- package/es/i18n-setting/src/index.vue.mjs +47 -0
- package/es/index.mjs +46 -41
- package/es/multipart-upload/src/multipart-upload-form.vue.mjs +5 -5
- package/es/multipart-upload/src/multipart-upload-list.vue.mjs +6 -6
- package/es/organization-input/src/organization-input.vue.mjs +58 -58
- package/es/remove-department/src/remove-dept-service.mjs +4 -5
- package/es/remove-user/src/remove-user-service.mjs +0 -1
- package/es/remove-workgroup/src/remove-workgroup-service.mjs +0 -1
- package/es/rich-editor/index.vue.mjs +43 -84
- package/es/scan-code-input/src/scan-code-input.vue.mjs +1 -1
- package/es/scan-code-input-browser/src/scan-code-input.vue.mjs +20 -9
- package/es/src/api/sso-service.mjs +0 -1
- package/es/src/i18n/langs/cn.mjs +1 -1
- package/es/src/i18n/langs/en.mjs +1 -1
- package/es/src/permission.mjs +7 -10
- package/es/src/router/index.mjs +0 -1
- package/es/src/store/index.mjs +0 -1
- package/es/src/store/modules/app.mjs +0 -1
- package/es/src/utils/common-util.mjs +143 -143
- package/es/src/utils/i18n-util.mjs +32 -30
- package/es/src/utils/iconUtils.mjs +0 -1
- package/es/src/utils/jump-page-utils.mjs +1 -1
- package/es/src/utils/permission.mjs +25 -26
- package/es/src/utils/permissionAuth.mjs +0 -1
- package/es/src/utils/restful-interface-utils.mjs +5 -6
- package/es/src/utils/watermark.mjs +2 -7
- package/es/src/utils/workflow-util.mjs +6 -6
- package/es/src/views/dsc-component/Sidebar/Item.vue.mjs +1 -1
- package/es/src/views/dsc-component/Sidebar/Item.vue2.mjs +1 -1
- package/es/src/views/layout/components/Menubar/Item.vue.mjs +1 -1
- package/es/src/views/layout/components/Menubar/Item.vue2.mjs +8 -8
- package/es/src/views/layout/components/Menubar/SidebarItem.vue.mjs +11 -11
- package/es/style.css +1 -3103
- package/es/super-grid/src/apis.mjs +155 -151
- package/es/super-grid/src/components/mobile-table-card.mjs +14 -10
- package/es/super-grid/src/components/select-input.vue.mjs +66 -66
- package/es/super-grid/src/custom-formatter.mjs +5 -6
- package/es/super-grid/src/dynamic-input.vue.mjs +31 -39
- package/es/super-grid/src/formValidatorUtil.mjs +0 -1
- package/es/super-grid/src/normal-column-content.vue.mjs +1 -2
- package/es/super-grid/src/normal-column.vue.mjs +12 -10
- package/es/super-grid/src/row-operation.vue.mjs +3 -3
- package/es/super-grid/src/search-form-item.vue.mjs +18 -14
- package/es/super-grid/src/search-form-number.vue.mjs +7 -6
- package/es/super-grid/src/search-form-open.vue.mjs +3 -2
- package/es/super-grid/src/search-form-open.vue2.mjs +4 -0
- package/es/super-grid/src/search-form-ordinarySearch.vue.mjs +1 -1
- package/es/super-grid/src/super-grid.vue.mjs +254 -242
- package/es/super-grid/src/utils.mjs +6 -6
- package/es/super-grid/src/view-image-dialog.vue.mjs +5 -5
- package/es/super-nine-grid/src/super-nine-grid.vue.mjs +89 -83
- package/es/utils/utils.mjs +0 -1
- package/es/utils/value-set.mjs +0 -1
- package/es/workflow-history-list/src/workflow-history-list.vue.mjs +11 -10
- package/es/workgroup-tree-inline/src/workgroup-tree-service.mjs +0 -1
- package/es/workgroup-user-tree-inline/src/workgroup-tree-inline-service.mjs +0 -1
- package/es/workgroup-user-tree-mobile/src/workgroup-user-tree-inline-app.vue.mjs +2 -2
- package/package.json +6 -2
- package/src/styles/index.scss +4 -0
- package/src/styles/theme/dark-blue/select.scss +27 -1
- package/src/styles/theme/forest-green/select.scss +27 -1
- package/src/styles/theme/green/select.scss +27 -1
- package/src/styles/theme/ocean-blue/select.scss +27 -1
- package/src/styles/theme/tiffany-blue-mobile/select.scss +29 -2
- package/.eslintrc.cjs +0 -28
- package/.prettierrc.json +0 -12
- package/dist/favicon.svg +0 -29
- package/dist/index.full.min.js +0 -16659
- package/dist/style.css +0 -3104
- package/index.html +0 -19
- package/lib/IntervalSelection/index.cjs +0 -5
- package/lib/IntervalSelection/src/sectionDate.vue.cjs +0 -45
- package/lib/IntervalSelection/src/sectionDate.vue2.cjs +0 -2
- package/lib/_virtual/__vite-browser-external.cjs +0 -2
- package/lib/_virtual/_plugin-vue_export-helper.cjs +0 -7
- package/lib/breadcrumb/index.cjs +0 -5
- package/lib/breadcrumb/src/breadcrumb.vue.cjs +0 -37
- package/lib/breadcrumb/src/breadcrumb.vue2.cjs +0 -2
- package/lib/chat-embed/index.cjs +0 -5
- package/lib/chat-embed/src/chat-addition-data.vue.cjs +0 -5
- package/lib/chat-embed/src/chat-addition-data.vue2.cjs +0 -15
- package/lib/chat-embed/src/chat-addition-data.vue3.cjs +0 -2
- package/lib/chat-embed/src/chat-ai-answer-tip.vue.cjs +0 -5
- package/lib/chat-embed/src/chat-ai-answer-tip.vue2.cjs +0 -26
- package/lib/chat-embed/src/chat-ai-answer-tip.vue3.cjs +0 -2
- package/lib/chat-embed/src/chat-bubble-footer.vue.cjs +0 -5
- package/lib/chat-embed/src/chat-bubble-footer.vue2.cjs +0 -28
- package/lib/chat-embed/src/chat-bubble-footer.vue3.cjs +0 -2
- package/lib/chat-embed/src/chat-embed-message.cjs +0 -16
- package/lib/chat-embed/src/chat-sender.vue.cjs +0 -5
- package/lib/chat-embed/src/chat-sender.vue2.cjs +0 -145
- package/lib/chat-embed/src/chat-sender.vue3.cjs +0 -2
- package/lib/chat-embed/src/components/answer-auto-chart.vue.cjs +0 -5
- package/lib/chat-embed/src/components/answer-auto-chart.vue2.cjs +0 -50
- package/lib/chat-embed/src/components/answer-auto-chart.vue3.cjs +0 -2
- package/lib/chat-embed/src/components/answer-home-chart.vue.cjs +0 -5
- package/lib/chat-embed/src/components/answer-home-chart.vue2.cjs +0 -3
- package/lib/chat-embed/src/components/answer-home-chart.vue3.cjs +0 -2
- package/lib/chat-embed/src/components/answer-interaction-data.vue.cjs +0 -5
- package/lib/chat-embed/src/components/answer-interaction-data.vue2.cjs +0 -107
- package/lib/chat-embed/src/components/answer-interaction-data.vue3.cjs +0 -2
- package/lib/chat-embed/src/components/history-detail.vue.cjs +0 -5
- package/lib/chat-embed/src/components/history-detail.vue2.cjs +0 -50
- package/lib/chat-embed/src/components/history-detail.vue3.cjs +0 -2
- package/lib/chat-embed/src/header.vue.cjs +0 -5
- package/lib/chat-embed/src/header.vue2.cjs +0 -39
- package/lib/chat-embed/src/header.vue3.cjs +0 -2
- package/lib/chat-embed/src/index.vue.cjs +0 -5
- package/lib/chat-embed/src/index.vue2.cjs +0 -281
- package/lib/chat-embed/src/index.vue3.cjs +0 -2
- package/lib/chat-embed/src/recommendation-message.vue.cjs +0 -5
- package/lib/chat-embed/src/recommendation-message.vue2.cjs +0 -8
- package/lib/chat-embed/src/recommendation-message.vue3.cjs +0 -2
- package/lib/chat-embed/src/sidebar-item.vue.cjs +0 -5
- package/lib/chat-embed/src/sidebar-item.vue2.cjs +0 -109
- package/lib/chat-embed/src/sidebar-item.vue3.cjs +0 -2
- package/lib/chat-embed/src/type.cjs +0 -3
- package/lib/chat-embed/src/util/chat-embed-util.cjs +0 -51
- package/lib/chat-embed/src/util/history-message-util.cjs +0 -74
- package/lib/chat-embed/src/util/mcp-utils.cjs +0 -50
- package/lib/chat-embed/src/util/text-file-util.cjs +0 -8
- package/lib/chat-embed/src/voice/index.cjs +0 -5
- package/lib/chat-embed/src/voice/js/crypto-js.cjs +0 -1005
- package/lib/chat-embed/src/voice/js/processor/index.umd.cjs +0 -170
- package/lib/chat-embed/src/voice/js/timer.cjs +0 -8
- package/lib/chat-embed/src/voice/voice.vue.cjs +0 -96
- package/lib/date-picker-range/index.cjs +0 -5
- package/lib/date-picker-range/index.vue.cjs +0 -5
- package/lib/date-picker-range/index.vue2.cjs +0 -89
- package/lib/date-picker-range/index.vue3.cjs +0 -2
- package/lib/department-tree/index.cjs +0 -5
- package/lib/department-tree/src/department-tree.vue.cjs +0 -17
- package/lib/department-tree-inline/index.cjs +0 -5
- package/lib/department-tree-inline/src/department-multi-tree-inline.vue.cjs +0 -81
- package/lib/department-tree-inline/src/department-multi-tree-inline.vue2.cjs +0 -2
- package/lib/department-tree-inline/src/department-single-tree-inline.vue.cjs +0 -54
- package/lib/department-tree-inline/src/department-single-tree-inline.vue2.cjs +0 -2
- package/lib/department-tree-inline/src/department-tree-inline.vue.cjs +0 -12
- package/lib/department-tree-inline/src/department-tree-service.cjs +0 -106
- package/lib/department-tree-inline/src/search-result.vue.cjs +0 -36
- package/lib/department-tree-inline/src/search-result.vue2.cjs +0 -2
- package/lib/department-tree-mobile/index.cjs +0 -5
- package/lib/department-tree-mobile/src/department-tree-app.vue.cjs +0 -13
- package/lib/department-tree-mobile/src/department-tree-app.vue2.cjs +0 -2
- package/lib/department-tree-mobile/src/department-tree-app.vue3.cjs +0 -3
- package/lib/department-tree-mobile/src/department-tree-inline-app.vue.cjs +0 -110
- package/lib/department-tree-mobile/src/department-tree-inline-app.vue2.cjs +0 -3
- package/lib/department-tree-mobile/src/department-tree-service.cjs +0 -47
- package/lib/department-tree-mobile/src/dept-path.vue.cjs +0 -13
- package/lib/department-tree-mobile/src/dept-path.vue2.cjs +0 -3
- package/lib/department-tree-mobile/src/dept-result.vue.cjs +0 -14
- package/lib/department-tree-mobile/src/dept-result.vue2.cjs +0 -3
- package/lib/department-user-tree/index.cjs +0 -5
- package/lib/department-user-tree/src/department-user-multiple-tree.vue.cjs +0 -16
- package/lib/department-user-tree/src/department-user-multiple-tree.vue2.cjs +0 -2
- package/lib/department-user-tree/src/department-user-single-tree.vue.cjs +0 -14
- package/lib/department-user-tree/src/department-user-tree.vue.cjs +0 -21
- package/lib/department-user-tree-inline/index.cjs +0 -5
- package/lib/department-user-tree-inline/src/department-user-multiple-tree-inline.vue.cjs +0 -154
- package/lib/department-user-tree-inline/src/department-user-multiple-tree-inline.vue2.cjs +0 -2
- package/lib/department-user-tree-inline/src/department-user-single-tree-inline.vue.cjs +0 -57
- package/lib/department-user-tree-inline/src/department-user-single-tree-inline.vue2.cjs +0 -2
- package/lib/department-user-tree-inline/src/department-user-tree-inline.vue.cjs +0 -11
- package/lib/department-user-tree-inline/src/department-user-tree-multi-service.cjs +0 -78
- package/lib/department-user-tree-inline/src/department-user-tree-single-service.cjs +0 -51
- package/lib/department-user-tree-inline/src/group-user/group-input.vue.cjs +0 -34
- package/lib/department-user-tree-inline/src/group-user/group-list.vue.cjs +0 -22
- package/lib/department-user-tree-inline/src/group-user/group-user.vue.cjs +0 -10
- package/lib/department-user-tree-inline/src/group-user-multiple-tree.vue.cjs +0 -72
- package/lib/department-user-tree-inline/src/group-user-single-tree.vue.cjs +0 -28
- package/lib/department-user-tree-inline/src/group-user-tree-service.cjs +0 -33
- package/lib/department-user-tree-inline/src/search-result.vue.cjs +0 -38
- package/lib/department-user-tree-inline/src/search-result.vue2.cjs +0 -2
- package/lib/department-user-tree-mobile/index.cjs +0 -5
- package/lib/department-user-tree-mobile/src/department-user-tree-app.vue.cjs +0 -13
- package/lib/department-user-tree-mobile/src/department-user-tree-app.vue2.cjs +0 -2
- package/lib/department-user-tree-mobile/src/department-user-tree-app.vue3.cjs +0 -3
- package/lib/department-user-tree-mobile/src/department-user-tree-inline-app.vue.cjs +0 -124
- package/lib/department-user-tree-mobile/src/department-user-tree-inline-app.vue2.cjs +0 -3
- package/lib/department-user-tree-mobile/src/department-user-tree-service.cjs +0 -28
- package/lib/department-user-tree-mobile/src/dept-path.vue.cjs +0 -13
- package/lib/department-user-tree-mobile/src/dept-path.vue2.cjs +0 -3
- package/lib/department-user-tree-mobile/src/dept-result.vue.cjs +0 -14
- package/lib/department-user-tree-mobile/src/dept-result.vue2.cjs +0 -3
- package/lib/directives/prevent-reclick.cjs +0 -14
- package/lib/dynamic-source-select/index.cjs +0 -5
- package/lib/dynamic-source-select/src/dynamic-source-select-service.cjs +0 -30
- package/lib/dynamic-source-select/src/dynamic-source-select.vue.cjs +0 -266
- package/lib/dynamic-source-select/src/dynamic-source-select.vue2.cjs +0 -2
- package/lib/dynamic-source-select/src/dynamic-source-select.vue3.cjs +0 -2
- package/lib/dynamic-source-select/src/events.cjs +0 -28
- package/lib/empty-state/index.vue.cjs +0 -6
- package/lib/empty-state/index.vue2.cjs +0 -3
- package/lib/favicon.svg +0 -29
- package/lib/fs-preview/index.cjs +0 -5
- package/lib/fs-preview/src/fs-preview.vue.cjs +0 -119
- package/lib/fs-preview/src/fs-preview.vue2.cjs +0 -2
- package/lib/fs-upload/index.cjs +0 -5
- package/lib/fs-upload/src/fs-upload-multi.vue.cjs +0 -63
- package/lib/fs-upload/src/fs-upload-single.vue.cjs +0 -64
- package/lib/fs-upload/src/fs-upload.vue.cjs +0 -18
- package/lib/fs-upload/src/see-big-picture.vue.cjs +0 -9
- package/lib/fs-upload-list/index.cjs +0 -5
- package/lib/fs-upload-list/src/fs-upload-list.vue.cjs +0 -91
- package/lib/fs-upload-list/src/fs-upload-list.vue2.cjs +0 -2
- package/lib/fs-upload-new/index.cjs +0 -5
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-app.vue.cjs +0 -57
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-app.vue2.cjs +0 -3
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue.cjs +0 -170
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue2.cjs +0 -3
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-component.vue.cjs +0 -5
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-component.vue2.cjs +0 -32
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-component.vue3.cjs +0 -2
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-input.vue.cjs +0 -41
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-input.vue2.cjs +0 -3
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload.vue.cjs +0 -29
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload.vue2.cjs +0 -3
- package/lib/fs-upload-new/src/fs-button-upload.vue.cjs +0 -5
- package/lib/fs-upload-new/src/fs-button-upload.vue2.cjs +0 -55
- package/lib/fs-upload-new/src/fs-button-upload.vue3.cjs +0 -2
- package/lib/fs-upload-new/src/fs-drag-upload.vue.cjs +0 -5
- package/lib/fs-upload-new/src/fs-drag-upload.vue2.cjs +0 -55
- package/lib/fs-upload-new/src/fs-drag-upload.vue3.cjs +0 -2
- package/lib/fs-upload-new/src/fs-preview-new.vue.cjs +0 -5
- package/lib/fs-upload-new/src/fs-preview-new.vue2.cjs +0 -84
- package/lib/fs-upload-new/src/fs-preview-new.vue3.cjs +0 -2
- package/lib/fs-upload-new/src/fs-preview-new.vue4.cjs +0 -2
- package/lib/fs-upload-new/src/fs-upload-new.vue.cjs +0 -54
- package/lib/fs-upload-new/src/fs-upload-new.vue2.cjs +0 -3
- package/lib/hamburger/index.cjs +0 -5
- package/lib/hamburger/src/hamburger.vue.cjs +0 -11
- package/lib/hamburger/src/hamburger.vue2.cjs +0 -2
- package/lib/index.cjs +0 -41
- package/lib/json-view/json-view-dialog.vue.cjs +0 -16
- package/lib/json-view/json-view-dialog.vue2.cjs +0 -3
- package/lib/json-view/json-view.vue.cjs +0 -3
- package/lib/json-view/json-view.vue2.cjs +0 -32
- package/lib/multipart-upload/index.cjs +0 -5
- package/lib/multipart-upload/src/index.vue.cjs +0 -10
- package/lib/multipart-upload/src/multipart-upload-form.vue.cjs +0 -73
- package/lib/multipart-upload/src/multipart-upload-list.vue.cjs +0 -96
- package/lib/organization-input/index.cjs +0 -5
- package/lib/organization-input/src/organization-input.vue.cjs +0 -218
- package/lib/organization-input/src/organization-input.vue2.cjs +0 -2
- package/lib/plugins/export-data-new.cjs +0 -229
- package/lib/plugins/export-data.cjs +0 -173
- package/lib/plugins/index.cjs +0 -5
- package/lib/plugins/public-method.cjs +0 -13
- package/lib/remove-department/index.cjs +0 -5
- package/lib/remove-department/src/remove-department.vue.cjs +0 -27
- package/lib/remove-department/src/remove-dept-service.cjs +0 -12
- package/lib/remove-user/index.cjs +0 -5
- package/lib/remove-user/src/remove-user-service.cjs +0 -12
- package/lib/remove-user/src/remove-user.vue.cjs +0 -29
- package/lib/remove-workgroup/index.cjs +0 -5
- package/lib/remove-workgroup/src/remove-workgroup-service.cjs +0 -12
- package/lib/remove-workgroup/src/remove-workgroup.vue.cjs +0 -25
- package/lib/rich-editor/index.cjs +0 -5
- package/lib/rich-editor/index.vue.cjs +0 -67
- package/lib/rich-editor/tinymce/zh_CN.cjs +0 -2
- package/lib/rich-editor/viewer.vue.cjs +0 -24
- package/lib/row-form/index.cjs +0 -5
- package/lib/row-form/index.vue.cjs +0 -5
- package/lib/row-form/index.vue2.cjs +0 -56
- package/lib/row-form/index.vue3.cjs +0 -2
- package/lib/row-form/operation.vue.cjs +0 -28
- package/lib/row-form/operation.vue2.cjs +0 -3
- package/lib/scan-code-input/index.cjs +0 -5
- package/lib/scan-code-input/src/events.cjs +0 -13
- package/lib/scan-code-input/src/scan-code-input.vue.cjs +0 -26
- package/lib/scan-code-input-browser/index.cjs +0 -5
- package/lib/scan-code-input-browser/src/scan-code-input.vue.cjs +0 -34
- package/lib/secret-info/index.cjs +0 -5
- package/lib/secret-info/index.vue.cjs +0 -13
- package/lib/src/api/sso-service.cjs +0 -55
- package/lib/src/api/tab.cjs +0 -14
- package/lib/src/assets/401/401.gif.cjs +0 -2
- package/lib/src/assets/404/404-cloud.png.cjs +0 -2
- package/lib/src/assets/404/404.png.cjs +0 -2
- package/lib/src/assets/chat-embed/robot.gif.cjs +0 -2
- package/lib/src/assets/chat-embed/robot.svg.cjs +0 -2
- package/lib/src/assets/nonemessage.png.cjs +0 -2
- package/lib/src/components/Affix/index.vue.cjs +0 -5
- package/lib/src/components/Affix/index.vue2.cjs +0 -81
- package/lib/src/components/Affix/index.vue3.cjs +0 -2
- package/lib/src/components/Card/index.cjs +0 -46
- package/lib/src/components/Scrollbar/index.vue.cjs +0 -48
- package/lib/src/components/Scrollbar/index.vue2.cjs +0 -2
- package/lib/src/directives/permission/index.cjs +0 -5
- package/lib/src/directives/permission/permission.cjs +0 -9
- package/lib/src/i18n/i18n.cjs +0 -3
- package/lib/src/i18n/langs/cn.cjs +0 -2
- package/lib/src/i18n/langs/en.cjs +0 -2
- package/lib/src/mixins/resizeMixin.cjs +0 -20
- package/lib/src/permission.cjs +0 -76
- package/lib/src/router/index.cjs +0 -16
- package/lib/src/store/getters.cjs +0 -2
- package/lib/src/store/index.cjs +0 -16
- package/lib/src/store/modules/app.cjs +0 -40
- package/lib/src/store/modules/chat-ai-store.cjs +0 -33
- package/lib/src/store/modules/permission.cjs +0 -30
- package/lib/src/store/modules/system.cjs +0 -10
- package/lib/src/store/modules/tab-content.cjs +0 -18
- package/lib/src/store/modules/table.cjs +0 -17
- package/lib/src/store/modules/user.cjs +0 -133
- package/lib/src/utils/auth-api.cjs +0 -132
- package/lib/src/utils/auth.cjs +0 -86
- package/lib/src/utils/calculator/calculator-factory-wf.cjs +0 -166
- package/lib/src/utils/calculator/calculator-factory.cjs +0 -92
- package/lib/src/utils/calculator/calculator-util.cjs +0 -53
- package/lib/src/utils/chat-ai-util.cjs +0 -26
- package/lib/src/utils/common-util.cjs +0 -362
- package/lib/src/utils/eventBus.cjs +0 -3
- package/lib/src/utils/file-util.cjs +0 -22
- package/lib/src/utils/global-prop.cjs +0 -22
- package/lib/src/utils/guid.cjs +0 -7
- package/lib/src/utils/i18n-util.cjs +0 -62
- package/lib/src/utils/iconUtils.cjs +0 -19
- package/lib/src/utils/index.cjs +0 -32
- package/lib/src/utils/insert_css.cjs +0 -18
- package/lib/src/utils/json-util.cjs +0 -45
- package/lib/src/utils/jump-page-utils.cjs +0 -256
- package/lib/src/utils/local-storage.cjs +0 -18
- package/lib/src/utils/menu.cjs +0 -13
- package/lib/src/utils/permission.cjs +0 -41
- package/lib/src/utils/permissionAuth.cjs +0 -120
- package/lib/src/utils/range-selector.cjs +0 -101
- package/lib/src/utils/request.cjs +0 -131
- package/lib/src/utils/resize.cjs +0 -11
- package/lib/src/utils/restful-interface-utils.cjs +0 -15
- package/lib/src/utils/util.cjs +0 -341
- package/lib/src/utils/validate.cjs +0 -12
- package/lib/src/utils/voice-setting-cache.cjs +0 -199
- package/lib/src/utils/watermark-cache.cjs +0 -10
- package/lib/src/utils/watermark.cjs +0 -33
- package/lib/src/utils/workflow-util.cjs +0 -41
- package/lib/src/views/dsc-component/Sidebar/Item.vue.cjs +0 -5
- package/lib/src/views/dsc-component/Sidebar/Item.vue2.cjs +0 -9
- package/lib/src/views/dsc-component/Sidebar/Item.vue3.cjs +0 -2
- package/lib/src/views/dsc-component/Sidebar/Link.vue.cjs +0 -11
- package/lib/src/views/dsc-component/Sidebar/SidebarItem.vue.cjs +0 -46
- package/lib/src/views/dsc-component/Sidebar/SidebarItem.vue2.cjs +0 -2
- package/lib/src/views/dsc-component/Sidebar/index.vue.cjs +0 -103
- package/lib/src/views/dsc-component/tabs/tab-content.vue.cjs +0 -61
- package/lib/src/views/dsc-component/tabs/tab-content.vue2.cjs +0 -2
- package/lib/src/views/dsc-component/tabs/tab-content.vue3.cjs +0 -2
- package/lib/src/views/error-page/401.vue.cjs +0 -11
- package/lib/src/views/error-page/401.vue2.cjs +0 -2
- package/lib/src/views/error-page/404.vue.cjs +0 -8
- package/lib/src/views/error-page/404.vue2.cjs +0 -2
- package/lib/src/views/layout/EmptyLayout.vue.cjs +0 -7
- package/lib/src/views/layout/Layout.vue.cjs +0 -21
- package/lib/src/views/layout/Layout.vue2.cjs +0 -2
- package/lib/src/views/layout/NewLayout.vue.cjs +0 -7
- package/lib/src/views/layout/components/AppMain.vue.cjs +0 -11
- package/lib/src/views/layout/components/AppMain.vue2.cjs +0 -2
- package/lib/src/views/layout/components/Breadcrumb/index.vue.cjs +0 -56
- package/lib/src/views/layout/components/Breadcrumb/index.vue2.cjs +0 -2
- package/lib/src/views/layout/components/Menubar/Item.vue.cjs +0 -5
- package/lib/src/views/layout/components/Menubar/Item.vue2.cjs +0 -13
- package/lib/src/views/layout/components/Menubar/Item.vue3.cjs +0 -2
- package/lib/src/views/layout/components/Menubar/Link.vue.cjs +0 -11
- package/lib/src/views/layout/components/Menubar/SidebarItem.vue.cjs +0 -47
- package/lib/src/views/layout/components/Menubar/SidebarItem.vue2.cjs +0 -2
- package/lib/src/views/layout/components/Menubar/index.vue.cjs +0 -79
- package/lib/src/views/layout/components/Sidebar/Item.vue.cjs +0 -7
- package/lib/src/views/layout/components/Sidebar/Item.vue2.cjs +0 -3
- package/lib/src/views/layout/components/Sidebar/Link.vue.cjs +0 -9
- package/lib/src/views/layout/components/Sidebar/SidebarItem.vue.cjs +0 -16
- package/lib/src/views/layout/components/Sidebar/SidebarItem.vue2.cjs +0 -2
- package/lib/src/views/layout/components/Sidebar/index.vue.cjs +0 -51
- package/lib/src/views/layout/components/iframe-page.vue.cjs +0 -12
- package/lib/src/views/layout/components/iframe-page.vue2.cjs +0 -2
- package/lib/src/views/layout/components/tabs/tab-content.vue.cjs +0 -60
- package/lib/src/views/layout/components/tabs/tab-content.vue2.cjs +0 -2
- package/lib/src/views/layout/components/tabs/tab-content.vue3.cjs +0 -2
- package/lib/src/views/layout/mixin/ResizeHandler.cjs +0 -14
- package/lib/src/views/layout/tab-content-iframe-index.vue.cjs +0 -12
- package/lib/src/views/layout/tab-content-iframe-index.vue2.cjs +0 -2
- package/lib/src/views/layout/tab-content-index.vue.cjs +0 -22
- package/lib/src/views/layout/tab-content-index.vue2.cjs +0 -2
- package/lib/src/views/login/authredirect.vue.cjs +0 -6
- package/lib/src/views/redirect/index.vue.cjs +0 -17
- package/lib/src/views/super-icon/index.cjs +0 -5
- package/lib/src/views/super-icon/src/index.vue.cjs +0 -5
- package/lib/src/views/super-icon/src/index.vue2.cjs +0 -10
- package/lib/src/views/super-icon/src/index.vue3.cjs +0 -2
- package/lib/src/views/svg-icon/src/svg-icon.vue.cjs +0 -2
- package/lib/src/views/svg-icon/src/svg-icon.vue2.cjs +0 -12
- package/lib/src/views/wf-history/tache-subprocess-history.vue.cjs +0 -12
- package/lib/src/views/wf-history/tache-subprocess-history.vue2.cjs +0 -2
- package/lib/style.css +0 -3103
- package/lib/super-grid/index.cjs +0 -5
- package/lib/super-grid/src/apis.cjs +0 -477
- package/lib/super-grid/src/columns-config.vue.cjs +0 -76
- package/lib/super-grid/src/components/grid-icon.vue.cjs +0 -39
- package/lib/super-grid/src/components/grid-radio-input.vue.cjs +0 -22
- package/lib/super-grid/src/components/grid-radio-input.vue2.cjs +0 -3
- package/lib/super-grid/src/components/mobile-table-card.cjs +0 -99
- package/lib/super-grid/src/components/select-input.vue.cjs +0 -141
- package/lib/super-grid/src/components/select-input.vue2.cjs +0 -3
- package/lib/super-grid/src/custom-formatter.cjs +0 -163
- package/lib/super-grid/src/dynamic-input.vue.cjs +0 -465
- package/lib/super-grid/src/eventBus.cjs +0 -3
- package/lib/super-grid/src/events.cjs +0 -35
- package/lib/super-grid/src/formValidatorUtil.cjs +0 -106
- package/lib/super-grid/src/formatter.cjs +0 -69
- package/lib/super-grid/src/group-column.vue.cjs +0 -19
- package/lib/super-grid/src/header-context-menu.vue.cjs +0 -12
- package/lib/super-grid/src/header-context-menu.vue2.cjs +0 -2
- package/lib/super-grid/src/index-column.vue.cjs +0 -19
- package/lib/super-grid/src/normal-column-content.vue.cjs +0 -303
- package/lib/super-grid/src/normal-column-content.vue2.cjs +0 -2
- package/lib/super-grid/src/normal-column.vue.cjs +0 -90
- package/lib/super-grid/src/normal-column.vue2.cjs +0 -2
- package/lib/super-grid/src/public-methods.cjs +0 -20
- package/lib/super-grid/src/row-detail.vue.cjs +0 -11
- package/lib/super-grid/src/row-operation.vue.cjs +0 -82
- package/lib/super-grid/src/row-operation.vue2.cjs +0 -2
- package/lib/super-grid/src/scan-util.cjs +0 -98
- package/lib/super-grid/src/search-button.vue.cjs +0 -20
- package/lib/super-grid/src/search-condition-input.vue.cjs +0 -13
- package/lib/super-grid/src/search-condition-list.vue.cjs +0 -17
- package/lib/super-grid/src/search-form-advancedQuery.vue.cjs +0 -106
- package/lib/super-grid/src/search-form-advancedQuery.vue2.cjs +0 -2
- package/lib/super-grid/src/search-form-dialog.vue.cjs +0 -23
- package/lib/super-grid/src/search-form-item.vue.cjs +0 -120
- package/lib/super-grid/src/search-form-item.vue2.cjs +0 -2
- package/lib/super-grid/src/search-form-mobile.vue.cjs +0 -32
- package/lib/super-grid/src/search-form-mobile.vue2.cjs +0 -2
- package/lib/super-grid/src/search-form-number.vue.cjs +0 -21
- package/lib/super-grid/src/search-form-open.vue.cjs +0 -46
- package/lib/super-grid/src/search-form-ordinarySearch.vue.cjs +0 -33
- package/lib/super-grid/src/search-form-ordinarySearch.vue2.cjs +0 -2
- package/lib/super-grid/src/search-form.vue.cjs +0 -194
- package/lib/super-grid/src/search-form.vue2.cjs +0 -2
- package/lib/super-grid/src/search-methods.cjs +0 -163
- package/lib/super-grid/src/selection-column.vue.cjs +0 -9
- package/lib/super-grid/src/store.cjs +0 -3
- package/lib/super-grid/src/super-grid-service.cjs +0 -253
- package/lib/super-grid/src/super-grid.vue.cjs +0 -1083
- package/lib/super-grid/src/super-grid.vue2.cjs +0 -2
- package/lib/super-grid/src/utils.cjs +0 -373
- package/lib/super-grid/src/view-image-dialog.vue.cjs +0 -60
- package/lib/super-icon/index.cjs +0 -5
- package/lib/super-icon/src/index.vue.cjs +0 -5
- package/lib/super-icon/src/index.vue2.cjs +0 -10
- package/lib/super-icon/src/index.vue3.cjs +0 -2
- package/lib/super-nine-grid/index.cjs +0 -5
- package/lib/super-nine-grid/src/apis.cjs +0 -33
- package/lib/super-nine-grid/src/custom-formatter.cjs +0 -33
- package/lib/super-nine-grid/src/formatter.cjs +0 -36
- package/lib/super-nine-grid/src/search-form-number.vue.cjs +0 -9
- package/lib/super-nine-grid/src/search-form.vue.cjs +0 -84
- package/lib/super-nine-grid/src/search-form.vue2.cjs +0 -2
- package/lib/super-nine-grid/src/search-methods.cjs +0 -47
- package/lib/super-nine-grid/src/store.cjs +0 -3
- package/lib/super-nine-grid/src/super-grid-service.cjs +0 -35
- package/lib/super-nine-grid/src/super-nine-grid.vue.cjs +0 -215
- package/lib/super-nine-grid/src/super-nine-grid.vue2.cjs +0 -2
- package/lib/super-nine-grid/src/utils.cjs +0 -36
- package/lib/svg-icon/index.cjs +0 -5
- package/lib/svg-icon/src/svg-icon.vue.cjs +0 -12
- package/lib/svg-icon/src/svg-icon.vue2.cjs +0 -2
- package/lib/utils/gogocodeTransfer.cjs +0 -28
- package/lib/utils/memory-cache-utils.cjs +0 -28
- package/lib/utils/organization.cjs +0 -55
- package/lib/utils/utils.cjs +0 -85
- package/lib/utils/value-set.cjs +0 -92
- package/lib/valid-code/index.cjs +0 -5
- package/lib/valid-code/src/valid-code.vue.cjs +0 -20
- package/lib/valid-code/src/valid-code.vue2.cjs +0 -2
- package/lib/workflow-button/index.cjs +0 -5
- package/lib/workflow-button/src/workflow-button.vue.cjs +0 -80
- package/lib/workflow-history-list/index.cjs +0 -5
- package/lib/workflow-history-list/src/api.cjs +0 -5
- package/lib/workflow-history-list/src/workflow-history-list.vue.cjs +0 -83
- package/lib/workflow-history-list/src/workflow-history-list.vue2.cjs +0 -2
- package/lib/workgroup-tree/index.cjs +0 -5
- package/lib/workgroup-tree/src/workgroup-tree.vue.cjs +0 -17
- package/lib/workgroup-tree-inline/index.cjs +0 -5
- package/lib/workgroup-tree-inline/src/search-result.vue.cjs +0 -35
- package/lib/workgroup-tree-inline/src/search-result.vue2.cjs +0 -2
- package/lib/workgroup-tree-inline/src/workgroup-tree-inline.vue.cjs +0 -119
- package/lib/workgroup-tree-inline/src/workgroup-tree-inline.vue2.cjs +0 -2
- package/lib/workgroup-tree-inline/src/workgroup-tree-service.cjs +0 -33
- package/lib/workgroup-tree-mobile/index.cjs +0 -5
- package/lib/workgroup-tree-mobile/src/dept-result.vue.cjs +0 -14
- package/lib/workgroup-tree-mobile/src/dept-result.vue2.cjs +0 -3
- package/lib/workgroup-tree-mobile/src/workgroup-tree-app.vue.cjs +0 -13
- package/lib/workgroup-tree-mobile/src/workgroup-tree-app.vue2.cjs +0 -2
- package/lib/workgroup-tree-mobile/src/workgroup-tree-app.vue3.cjs +0 -3
- package/lib/workgroup-tree-mobile/src/workgroup-tree-inline-app.vue.cjs +0 -99
- package/lib/workgroup-tree-mobile/src/workgroup-tree-inline-app.vue2.cjs +0 -3
- package/lib/workgroup-tree-mobile/src/workgroup-tree-service.cjs +0 -25
- package/lib/workgroup-user-tree/index.cjs +0 -5
- package/lib/workgroup-user-tree/src/workgroup-user-tree.vue.cjs +0 -17
- package/lib/workgroup-user-tree-inline/index.cjs +0 -5
- package/lib/workgroup-user-tree-inline/src/search-result.vue.cjs +0 -35
- package/lib/workgroup-user-tree-inline/src/search-result.vue2.cjs +0 -2
- package/lib/workgroup-user-tree-inline/src/workgroup-tree-inline-service.cjs +0 -71
- package/lib/workgroup-user-tree-inline/src/workgroup-user-tree-inline.vue.cjs +0 -163
- package/lib/workgroup-user-tree-inline/src/workgroup-user-tree-inline.vue2.cjs +0 -2
- package/lib/workgroup-user-tree-mobile/src/dept-path.vue.cjs +0 -13
- package/lib/workgroup-user-tree-mobile/src/dept-path.vue2.cjs +0 -3
- package/lib/workgroup-user-tree-mobile/src/dept-result.vue.cjs +0 -14
- package/lib/workgroup-user-tree-mobile/src/dept-result.vue2.cjs +0 -3
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue.cjs +0 -13
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue2.cjs +0 -2
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue3.cjs +0 -3
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-inline-app.vue.cjs +0 -124
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-inline-app.vue2.cjs +0 -3
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-service.cjs +0 -20
- package/lib/year-range-picker/index.cjs +0 -5
- package/lib/year-range-picker/src/year-range-picker.vue.cjs +0 -11
- package/src/api/sso-service.js +0 -222
- package/src/api/tab.js +0 -36
- package/src/assets/401/401.gif +0 -0
- package/src/assets/404/404-cloud.png +0 -0
- package/src/assets/404/404.png +0 -0
- package/src/assets/chat-embed/background.png +0 -0
- package/src/assets/chat-embed/robot.gif +0 -0
- package/src/assets/chat-embed/robot.svg +0 -32
- package/src/assets/cloud.png +0 -0
- package/src/assets/nonemessage.png +0 -0
- package/src/assets/tab-selectWhite.png +0 -0
- package/src/components/Affix/index.vue +0 -272
- package/src/components/Card/index.jsx +0 -227
- package/src/components/Scrollbar/index.vue +0 -224
- package/src/directives/permission/index.js +0 -14
- package/src/directives/permission/permission.js +0 -27
- package/src/i18n/i18n.js +0 -16
- package/src/i18n/langs/cn.js +0 -344
- package/src/i18n/langs/en.js +0 -344
- package/src/index.js +0 -22
- package/src/mixins/resizeMixin.js +0 -49
- package/src/permission.js +0 -252
- package/src/plugins.js +0 -18
- package/src/router/index.js +0 -92
- package/src/store/getters.js +0 -26
- package/src/store/index.js +0 -23
- package/src/store/modules/app.js +0 -96
- package/src/store/modules/chat-ai-store.ts +0 -85
- package/src/store/modules/permission.js +0 -143
- package/src/store/modules/system.js +0 -35
- package/src/store/modules/tab-content.js +0 -42
- package/src/store/modules/table.js +0 -76
- package/src/store/modules/user.js +0 -448
- package/src/utils/auth-api.js +0 -370
- package/src/utils/auth.js +0 -194
- package/src/utils/calculator/calculator-factory-wf.js +0 -465
- package/src/utils/calculator/calculator-factory.js +0 -133
- package/src/utils/calculator/calculator-util.js +0 -184
- package/src/utils/chat-ai-util.ts +0 -41
- package/src/utils/common-util.js +0 -1019
- package/src/utils/dingtalk-util.ts +0 -43
- package/src/utils/eventBus.js +0 -10
- package/src/utils/file-util.ts +0 -42
- package/src/utils/global-prop.ts +0 -44
- package/src/utils/guid.js +0 -13
- package/src/utils/i18n-util.js +0 -145
- package/src/utils/iconUtils.js +0 -37
- package/src/utils/iframe-communicator.js +0 -234
- package/src/utils/index.js +0 -102
- package/src/utils/insert_css.js +0 -47
- package/src/utils/json-util.ts +0 -85
- package/src/utils/jump-page-utils.js +0 -829
- package/src/utils/local-storage.js +0 -33
- package/src/utils/menu.js +0 -19
- package/src/utils/permission.js +0 -126
- package/src/utils/permissionAuth.js +0 -311
- package/src/utils/range-selector.js +0 -204
- package/src/utils/request.js +0 -407
- package/src/utils/resize.js +0 -19
- package/src/utils/restful-interface-utils.js +0 -57
- package/src/utils/util.js +0 -1000
- package/src/utils/validate.js +0 -34
- package/src/utils/voice-setting-cache.js +0 -497
- package/src/utils/watermark-cache.js +0 -13
- package/src/utils/watermark.js +0 -119
- package/src/utils/workflow-util.js +0 -107
- package/src/views/404.vue +0 -248
- package/src/views/dsc-component/Sidebar/Item.vue +0 -95
- package/src/views/dsc-component/Sidebar/Link.vue +0 -38
- package/src/views/dsc-component/Sidebar/SidebarItem.vue +0 -245
- package/src/views/dsc-component/Sidebar/index.vue +0 -258
- package/src/views/dsc-component/tabs/tab-content.vue +0 -230
- package/src/views/error-page/401.vue +0 -106
- package/src/views/error-page/404.vue +0 -248
- package/src/views/layout/EmptyLayout.vue +0 -3
- package/src/views/layout/Layout.vue +0 -85
- package/src/views/layout/NewLayout.vue +0 -18
- package/src/views/layout/components/AppMain.vue +0 -46
- package/src/views/layout/components/Breadcrumb/index.vue +0 -158
- package/src/views/layout/components/Menubar/Item.vue +0 -125
- package/src/views/layout/components/Menubar/Link.vue +0 -38
- package/src/views/layout/components/Menubar/SidebarItem.vue +0 -333
- package/src/views/layout/components/Menubar/index.vue +0 -250
- package/src/views/layout/components/Sidebar/Item.vue +0 -33
- package/src/views/layout/components/Sidebar/Link.vue +0 -38
- package/src/views/layout/components/Sidebar/SidebarItem.vue +0 -179
- package/src/views/layout/components/Sidebar/index.vue +0 -141
- package/src/views/layout/components/iframe-page.vue +0 -38
- package/src/views/layout/components/index.js +0 -4
- package/src/views/layout/components/tabs/tab-content.vue +0 -273
- package/src/views/layout/mixin/ResizeHandler.js +0 -41
- package/src/views/layout/tab-content-iframe-index.vue +0 -38
- package/src/views/layout/tab-content-index.vue +0 -92
- package/src/views/login/authredirect.vue +0 -10
- package/src/views/login/index.vue +0 -296
- package/src/views/login/update-password.vue +0 -246
- package/src/views/redirect/index.vue +0 -14
- package/src/views/super-icon/index.js +0 -6
- package/src/views/super-icon/src/index.vue +0 -52
- package/src/views/svg-icon/index.js +0 -6
- package/src/views/svg-icon/src/svg-icon.vue +0 -43
- package/src/views/wf-history/tache-subprocess-history.vue +0 -45
- package/vite.config.js +0 -103
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Paperclip as e, View as i, Download as t } from "@element-plus/icons-vue";
|
|
2
|
-
import { resolveComponent as
|
|
3
|
-
import {
|
|
4
|
-
import { isImage as P,
|
|
2
|
+
import { resolveComponent as s, openBlock as l, createElementBlock as o, createElementVNode as a, renderSlot as n, Fragment as r, createVNode as d, toDisplayString as h, createCommentVNode as m, createBlock as w, withCtx as f, createTextVNode as p, renderList as c } from "vue";
|
|
3
|
+
import { getRelativeBaseUrl as u, getSystemFrontendUrlWith as v, getKkFilePreviewUrl as g, isPlateSys as b } from "../../src/utils/common-util.mjs";
|
|
4
|
+
import { isImage as P, getI18n as y, getEntityFieldValue as N } from "../../src/utils/util.mjs";
|
|
5
5
|
import { packageFile as F } from "../../super-grid/src/utils.mjs";
|
|
6
6
|
import { getToken as k } from "../../src/utils/auth.mjs";
|
|
7
7
|
import { getFileIconByName as I } from "../../src/utils/file-util.mjs";
|
|
8
8
|
import { getWatermarkSetting as S } from "../../src/utils/watermark.mjs";
|
|
9
9
|
import "./fs-preview.vue2.mjs";
|
|
10
|
-
import
|
|
10
|
+
import U from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
11
11
|
const j = { components: { ElIconPaperclip: e, ElIconView: i, ElIconDownload: t }, name: "FsPreview", props: { width: { type: [String, Number], default: "100%" }, label: { type: String, default: null }, fileSetObj: { type: Object, default: null }, isSql: { type: Boolean, default: false }, entity: { type: Object, default: () => ({}) }, fileInfo: { type: Object, default: () => ({}) }, disabled: { type: Boolean, default: false }, enableDelete: { type: Boolean, default: false }, watermark: { type: Object, default: () => ({}) }, uploading: { type: Boolean, default: false } }, data: () => ({ showPreviewSingleImage: false, showPreviewMulti: false, initialIndex: 0, previewImageListInfo: [], fileList: [], downloadable: true, keyValueParam: {}, showMultipleFile: false, firstFileUUid: "" }), computed: { firstFileName() {
|
|
12
12
|
var _a;
|
|
13
13
|
return ((_a = this.label) == null ? void 0 : _a.indexOf(",")) > -1 ? (this.showMultipleFile = true, this.label.split(",")[0]) : (this.showMultipleFile = false, this.label);
|
|
@@ -18,24 +18,38 @@ const j = { components: { ElIconPaperclip: e, ElIconView: i, ElIconDownload: t }
|
|
|
18
18
|
}, methods: { dblclickEvent() {
|
|
19
19
|
clearTimeout(this.time);
|
|
20
20
|
}, getFirstFile() {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
return new Promise((e2) => {
|
|
22
|
+
const { showName: i2, serverPath: t2 } = this.getShowNameAndUuidKey();
|
|
23
|
+
if (t2) {
|
|
24
|
+
const s2 = t2.split(",");
|
|
25
|
+
s2.length > 1 ? this.queryFileInfoByUuids(s2).then((i3) => {
|
|
26
|
+
const t3 = s2[0], l2 = i3.find((e3) => e3.serverPath === t3);
|
|
27
|
+
e2(l2);
|
|
28
|
+
}) : e2({ showName: i2, serverPath: t2 });
|
|
29
|
+
} else
|
|
30
|
+
e2(null);
|
|
31
|
+
});
|
|
26
32
|
}, previewFirst() {
|
|
27
|
-
this.
|
|
33
|
+
this.getFirstFile().then((e2) => {
|
|
34
|
+
this.previewSingle(e2);
|
|
35
|
+
});
|
|
28
36
|
}, downloadFirst() {
|
|
29
|
-
|
|
30
|
-
|
|
37
|
+
this.getFirstFile().then((e2) => {
|
|
38
|
+
this.download(e2.showName, e2.serverPath);
|
|
39
|
+
});
|
|
31
40
|
}, previewSingle(e2) {
|
|
32
41
|
if (e2 = F(e2.showName, e2.serverPath), P(e2.showName)) {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
this.
|
|
42
|
+
this.previewImageListInfo.length = [];
|
|
43
|
+
const { showName: i2, serverPath: t2 } = this.getShowNameAndUuidKey();
|
|
44
|
+
if (!t2)
|
|
45
|
+
return console.error("No serverPath found for preview"), void this.$message({ showClose: true, type: "warning", message: "" + y().t("fsUpload.noPreviewFile") });
|
|
46
|
+
const s2 = t2.split(",");
|
|
47
|
+
this.queryFileInfoByUuids(s2).then((i3) => {
|
|
48
|
+
const t3 = k();
|
|
49
|
+
for (let s3 = 0; s3 < i3.length; s3++)
|
|
50
|
+
P(i3[s3].showName) && (this.previewImageListInfo.push(window.$vueApp.config.globalProperties.baseURL + "/common/super-form/downloads?serverPath=" + i3[s3].serverPath + "&jwt=" + t3), i3[s3].serverPath === e2.serverPath && (this.initialIndex = this.previewImageListInfo.length - 1));
|
|
51
|
+
this.showPreviewSingleImage = true;
|
|
52
|
+
});
|
|
39
53
|
} else
|
|
40
54
|
this.previewDoc(e2);
|
|
41
55
|
}, donwloadViewFile() {
|
|
@@ -52,77 +66,77 @@ const j = { components: { ElIconPaperclip: e, ElIconView: i, ElIconDownload: t }
|
|
|
52
66
|
const { showName: e2, serverPath: i2 } = this.getShowNameAndUuidKey();
|
|
53
67
|
if (i2) {
|
|
54
68
|
const t2 = i2.split(",");
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
u(window.$vueApp.config.globalProperties.systemCode) && (l2 = i3 + "/api/search-file-names"), l2 = v(l2), this.$http.post(l2, t2).then((e4) => {
|
|
59
|
-
this.fileList = [], t2.forEach((i4) => {
|
|
60
|
-
this.fileList.push({ showName: e4[i4], serverPath: i4 });
|
|
61
|
-
}), this.showPreviewMulti = true;
|
|
62
|
-
});
|
|
63
|
-
} else
|
|
64
|
-
this.previewSingle({ showName: e2, serverPath: i2 });
|
|
69
|
+
t2.length > 1 ? this.queryFileInfoByUuids(t2).then((e3) => {
|
|
70
|
+
this.fileList = e3, this.showPreviewMulti = true;
|
|
71
|
+
}) : this.previewSingle({ showName: e2, serverPath: i2 });
|
|
65
72
|
}
|
|
73
|
+
}, queryFileInfoByUuids(e2) {
|
|
74
|
+
return new Promise((i2, t2) => {
|
|
75
|
+
const s2 = window.$vueApp.config.globalProperties.baseURL, l2 = window.$vueApp.config.globalProperties.baseAPI;
|
|
76
|
+
let o2 = s2 + "/common/fs-upload/search-file-names";
|
|
77
|
+
b(window.$vueApp.config.globalProperties.systemCode) && (o2 = l2 + "/api/search-file-names"), o2 = u(o2);
|
|
78
|
+
const a2 = [];
|
|
79
|
+
this.$http.post(o2, e2).then((t3) => {
|
|
80
|
+
e2.forEach((e3) => {
|
|
81
|
+
a2.push({ showName: t3[e3], serverPath: e3 });
|
|
82
|
+
}), i2(a2);
|
|
83
|
+
});
|
|
84
|
+
});
|
|
66
85
|
}, previewDoc(e2) {
|
|
67
86
|
const i2 = k(), t2 = e2.showName;
|
|
68
87
|
if (window.$vueApp.config.globalProperties.customPreviewUrl)
|
|
69
|
-
window.open(
|
|
88
|
+
window.open(v(window.$vueApp.config.globalProperties.portalUrl) + "/#/file-service/preview?serverPath=" + e2.serverPath + "&showName=" + encodeURIComponent(t2), t2);
|
|
70
89
|
else {
|
|
71
|
-
let
|
|
72
|
-
if (
|
|
73
|
-
const
|
|
74
|
-
|
|
90
|
+
let s2, l2 = window.$vueApp.config.globalProperties.baseURL;
|
|
91
|
+
if (b(window.$vueApp.config.globalProperties.systemCode) && (l2 = window.$vueApp.config.globalProperties.baseAPI), window.$vueApp.config.globalProperties.kkFileViewUrl) {
|
|
92
|
+
const s3 = l2 + "/common/super-form/downloads?jwt=" + i2 + "&showName=" + encodeURIComponent(t2) + "&serverPath=" + e2.serverPath + "&fullfilename=" + encodeURIComponent(t2);
|
|
93
|
+
g(s3).then((e3) => {
|
|
75
94
|
window.open(e3, t2);
|
|
76
95
|
});
|
|
77
96
|
} else
|
|
78
|
-
|
|
97
|
+
s2 = l2 + "/common/fs-upload/preview?jwt=" + i2, s2 = s2 + "&showName=" + encodeURIComponent(t2) + "&serverPath=" + e2.serverPath, s2 = u(s2), window.open(s2, t2);
|
|
79
98
|
}
|
|
80
99
|
}, donwloadFile(e2) {
|
|
81
100
|
const i2 = this.formatFileName(this.fileList[e2].showName);
|
|
82
101
|
if (this.fileList[e2].src) {
|
|
83
|
-
const i3 =
|
|
102
|
+
const i3 = u(this.fileList[e2].src);
|
|
84
103
|
window.open(i3);
|
|
85
104
|
} else
|
|
86
105
|
this.download(i2, this.fileList[e2].serverPath);
|
|
87
106
|
}, async download(e2, i2) {
|
|
88
107
|
var _a;
|
|
89
|
-
const t2 = k(),
|
|
90
|
-
let
|
|
91
|
-
|
|
108
|
+
const t2 = k(), s2 = await S();
|
|
109
|
+
let l2 = false;
|
|
110
|
+
s2 && s2.useRange && s2.useRange.indexOf("annex") >= 0 && (l2 = void 0 === this.watermark.isShowWatermark || this.watermark.isShowWatermark);
|
|
92
111
|
let o2 = (_a = this.watermark) == null ? void 0 : _a.content;
|
|
93
|
-
!o2 &&
|
|
112
|
+
!o2 && s2 && (o2 = s2.content), o2 || (o2 = "");
|
|
94
113
|
let a2 = window.$vueApp.config.globalProperties.baseURL + "/common/super-form/downloads?jwt=" + t2;
|
|
95
|
-
|
|
96
|
-
const n2 = a2 + "&showName=" + encodeURIComponent(e2) + "&serverPath=" + i2 + "&isShowWatermark=" +
|
|
114
|
+
b(window.$vueApp.config.globalProperties.systemCode) && (a2 = window.$vueApp.config.globalProperties.baseAPI + "/component/super-form/downloads?jwt=" + t2), a2 = u(a2);
|
|
115
|
+
const n2 = a2 + "&showName=" + encodeURIComponent(e2) + "&serverPath=" + i2 + "&isShowWatermark=" + l2 + "&watermark=" + o2;
|
|
97
116
|
window.open(n2);
|
|
98
117
|
}, analysisFileSetObj(e2, i2) {
|
|
99
|
-
let t2 = "",
|
|
100
|
-
return e2 && (e2.showNameData && (i2 ? e2.showNameData.dbName && (t2 = e2.showNameData.dbName) : e2.showNameData.name && (t2 = e2.showNameData.name)), e2.serverNameData && (i2 ? e2.serverNameData.dbName && (
|
|
118
|
+
let t2 = "", s2 = "";
|
|
119
|
+
return e2 && (e2.showNameData && (i2 ? e2.showNameData.dbName && (t2 = e2.showNameData.dbName) : e2.showNameData.name && (t2 = e2.showNameData.name)), e2.serverNameData && (i2 ? e2.serverNameData.dbName && (s2 = e2.serverNameData.dbName) : e2.serverNameData.name && (s2 = e2.serverNameData.name))), { showName: t2, serverPath: s2 };
|
|
101
120
|
}, formatFileName: (e2) => e2.replace("#", "~~").replace("?", "~$").replace("&", "$"), getFileIconByName: (e2) => I(e2), showMultiView() {
|
|
102
121
|
const { showName: e2, serverPath: i2 } = this.getShowNameAndUuidKey();
|
|
103
122
|
if (i2) {
|
|
104
123
|
const e3 = i2.split(",");
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
u(window.$vueApp.config.globalProperties.systemCode) && (l2 = t2 + "/api/search-file-names"), l2 = v(l2), this.$http.post(l2, e3).then((i4) => {
|
|
109
|
-
this.fileList = [], e3.forEach((e4) => {
|
|
110
|
-
this.fileList.push({ showName: i4[e4], serverPath: e4 });
|
|
111
|
-
});
|
|
112
|
-
});
|
|
113
|
-
}
|
|
124
|
+
e3.length > 1 && this.queryFileInfoByUuids(e3).then((e4) => {
|
|
125
|
+
this.fileList = e4;
|
|
126
|
+
});
|
|
114
127
|
}
|
|
115
128
|
return this.fileList;
|
|
116
129
|
}, deleteFirst() {
|
|
117
|
-
|
|
118
|
-
|
|
130
|
+
this.getFirstFile().then((e2) => {
|
|
131
|
+
this.$emit("delete-file", e2), this.fileList = this.fileList.filter((i2) => i2.serverPath !== e2.serverPath), this.$message({ showClose: true, type: "success", message: y().t("fsUpload.deleteSuccessful") });
|
|
132
|
+
});
|
|
119
133
|
}, deleteFile(e2) {
|
|
120
134
|
this.$emit("delete-file", e2), this.fileList = this.fileList.filter((i2) => i2.serverPath !== e2.serverPath), this.$message({ showClose: true, type: "success", message: y().t("fsUpload.deleteSuccessful") });
|
|
121
|
-
} }, emits: ["close", "delete-file"] },
|
|
122
|
-
const _ =
|
|
123
|
-
const b2 =
|
|
124
|
-
return
|
|
125
|
-
}], ["__scopeId", "data-v-
|
|
135
|
+
} }, emits: ["close", "delete-file"] }, $ = { ref: "fsPreviewRef" }, A = { class: "fs-preview-container" }, C = ["title"], L = { key: 1, ref: "toolRef", class: "fs-preview-tool" }, x = { style: { "max-height": "300px", "overflow-y": "auto" } }, D = { style: { display: "flex", "align-items": "center", flex: "1" } }, O = { class: "more-file-icon" }, V = { class: "amb-list-preivew-name", style: { width: "230px", "margin-left": "10px" } }, R = { class: "file-actions" };
|
|
136
|
+
const _ = U(j, [["render", function(e2, i2, t2, u2, v2, g2) {
|
|
137
|
+
const b2 = s("super-icon"), P2 = s("el-tooltip"), y2 = s("el-divider"), N2 = s("ArrowDownBold"), F2 = s("el-icon"), k2 = s("el-button"), I2 = s("el-popover"), S2 = s("el-image-viewer");
|
|
138
|
+
return l(), o("div", $, [a("div", { ref: "filePreviewRef", onDblclick: i2[3] || (i2[3] = (...e3) => g2.dblclickEvent && g2.dblclickEvent(...e3)), class: "fs-preview-container" }, [n(e2.$slots, "prefix", {}, void 0, true), g2.firstFileName && !t2.uploading ? (l(), o(r, { key: 0 }, [a("div", A, [d(b2, { iconValue: g2.getFileIconByName(g2.firstFileName) }, null, 8, ["iconValue"])]), a("span", { title: g2.firstFileName, ref: "nameRef", class: "amb-list-preivew-name" }, h(g2.firstFileName), 9, C)], 64)) : m("", true), g2.firstFileName && !t2.uploading ? (l(), o("div", L, [t2.disabled && t2.fileSetObj.disabledNoPreview ? m("", true) : (l(), w(P2, { key: 0, content: e2.$t("fsUpload.preview") }, { default: f(() => [d(b2, { onClick: i2[0] || (i2[0] = (e3) => g2.previewFirst()), iconValue: "amb-icon-yulan" })]), _: 1 }, 8, ["content"])), t2.disabled && t2.fileSetObj.disabledNoDownload ? m("", true) : (l(), w(P2, { key: 1, content: e2.$t("fsUpload.download") }, { default: f(() => [d(b2, { onClick: i2[1] || (i2[1] = (e3) => g2.downloadFirst()), iconValue: "amb-icon-xiazai" })]), _: 1 }, 8, ["content"])), t2.enableDelete && !t2.disabled ? (l(), w(P2, { key: 2, content: e2.$t("fsUpload.delete") }, { default: f(() => [d(b2, { onClick: i2[2] || (i2[2] = (e3) => g2.deleteFirst()), iconValue: "amb-color-icon-del" })]), _: 1 }, 8, ["content"])) : m("", true), v2.showMultipleFile ? (l(), w(y2, { key: 3, direction: "vertical" })) : m("", true), d(I2, { width: 450, trigger: "click" }, { reference: f(() => [v2.showMultipleFile ? (l(), w(k2, { key: 0, plain: "", type: "primary", round: "", size: "small", onClick: g2.showMultiView }, { default: f(() => [p(h(e2.$t("fsUpload.more")) + " ", 1), d(F2, null, { default: f(() => [d(N2)]), _: 1 })]), _: 1 }, 8, ["onClick"])) : m("", true)]), default: f(() => [a("div", x, [(l(true), o(r, null, c(v2.fileList, (i3, s2) => (l(), o("div", { ref_for: true, ref: i3.serverPath, key: i3.serverPath, class: "file-item" }, [a("div", D, [a("span", O, [d(b2, { iconValue: g2.getFileIconByName(i3.showName) }, null, 8, ["iconValue"])]), a("span", V, h(i3.showName), 1)]), a("div", R, [n(e2.$slots, "tool-more-prefix", { item: i3 }, void 0, true), t2.disabled && t2.fileSetObj.disabledNoPreview ? m("", true) : (l(), w(P2, { key: 0, content: e2.$t("fsUpload.preview") }, { default: f(() => [d(b2, { onClick: (e3) => g2.previewSingle(i3), iconValue: "amb-icon-yulan" }, null, 8, ["onClick"])]), _: 2 }, 1032, ["content"])), t2.disabled && t2.fileSetObj.disabledNoDownload ? m("", true) : (l(), w(P2, { key: 1, content: e2.$t("fsUpload.download") }, { default: f(() => [d(b2, { onClick: (e3) => g2.donwloadFile(s2), iconValue: "amb-icon-xiazai" }, null, 8, ["onClick"])]), _: 2 }, 1032, ["content"])), t2.enableDelete ? (l(), w(P2, { key: 2, content: e2.$t("fsUpload.delete") }, { default: f(() => [d(b2, { onClick: (e3) => g2.deleteFile(i3), iconValue: "amb-color-icon-shanchu" }, null, 8, ["onClick"])]), _: 2 }, 1032, ["content"])) : m("", true)])]))), 128))])]), _: 3 })], 512)) : m("", true)], 544), v2.showPreviewSingleImage ? (l(), w(S2, { key: 0, teleported: "", "url-list": v2.previewImageListInfo, "initial-index": v2.initialIndex, onClose: i2[4] || (i2[4] = (e3) => v2.showPreviewSingleImage = false) }, null, 8, ["url-list", "initial-index"])) : m("", true)], 512);
|
|
139
|
+
}], ["__scopeId", "data-v-92652036"]]);
|
|
126
140
|
export {
|
|
127
141
|
_ as default
|
|
128
142
|
};
|
|
@@ -3,7 +3,7 @@ import { $emit as l } from "../../utils/gogocodeTransfer.mjs";
|
|
|
3
3
|
import { resolveComponent as o, resolveDirective as s, withDirectives as a, openBlock as d, createElementBlock as n, createBlock as u, withCtx as r, createTextVNode as c, toDisplayString as p, createCommentVNode as f, createElementVNode as h, createVNode as m, Fragment as w, renderList as g } from "vue";
|
|
4
4
|
import b from "./see-big-picture.vue.mjs";
|
|
5
5
|
import { getToken as y } from "../../src/utils/auth.mjs";
|
|
6
|
-
import { getRelativeBaseUrl as v, getSystemFrontendUrlWith as U,
|
|
6
|
+
import { getRelativeBaseUrl as v, getSystemFrontendUrlWith as U, getKkFilePreviewUrl as $, isPlateSys as k } from "../../src/utils/common-util.mjs";
|
|
7
7
|
import P from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
8
8
|
const C = { data: () => ({ unifiedEnclosures: [], bigPictureVisible: false, baseURL: "", accepts: "", showIndex: 0, loading: "", ElIconUpload2: e }), components: { seeBigPicture: b, ElIconDelete: t, ElIconView: i }, name: "FsUploadMulti", props: { systemCode: { type: String, default: null }, accept: { type: String, default: null }, isImg: { type: Boolean, default: false }, isShowList: { type: Boolean, default: true }, fit: { type: String, default: null }, disabled: { type: Boolean, default: false }, isShowButton: { type: Boolean, default: true }, isShowData: { type: Boolean, default: true }, data: { type: Array, default: null }, imgSize: { type: Number, default: 0 }, fileSize: { type: Number, default: 0 }, tableHeight: { type: String, default: null } }, created() {
|
|
9
9
|
this.baseURL = v(window.$vueApp.config.globalProperties.baseURL), this.data && (this.unifiedEnclosures = this.data), this.judgeImg();
|
|
@@ -37,9 +37,9 @@ const C = { data: () => ({ unifiedEnclosures: [], bigPictureVisible: false, base
|
|
|
37
37
|
else {
|
|
38
38
|
const i3 = e2.fileName, o2 = e2.uuid;
|
|
39
39
|
let s2, a2 = this.baseURL;
|
|
40
|
-
if (
|
|
40
|
+
if (k(window.$vueApp.config.globalProperties.systemCode) && (a2 = window.$vueApp.config.globalProperties.baseAPI), window.$vueApp.config.globalProperties.kkFileViewUrl) {
|
|
41
41
|
const e3 = a2 + "/common/super-form/downloads?jwt=" + l2 + "&showName=" + encodeURI(i3) + "&serverPath=" + o2;
|
|
42
|
-
|
|
42
|
+
$(e3 + "&fullfilename=" + i3).then((e4) => {
|
|
43
43
|
window.open(e4, t2);
|
|
44
44
|
});
|
|
45
45
|
} else
|
|
@@ -2,12 +2,11 @@ import { View as e, Delete as t } from "@element-plus/icons-vue";
|
|
|
2
2
|
import { $emit as l } from "../../utils/gogocodeTransfer.mjs";
|
|
3
3
|
import { getToken as o } from "../../src/utils/auth.mjs";
|
|
4
4
|
import "../../src/i18n/i18n.mjs";
|
|
5
|
-
import {
|
|
5
|
+
import { getRelativeBaseUrl as i, isMobileBrowser as s, isPlateSys as a } from "../../src/utils/common-util.mjs";
|
|
6
6
|
import r from "../../fs-preview/src/fs-preview.vue.mjs";
|
|
7
7
|
import { resolveComponent as n, openBlock as p, createElementBlock as f, Fragment as d, createBlock as u, withCtx as h, createElementVNode as c, createVNode as m, normalizeStyle as g, createTextVNode as b, toDisplayString as w, createCommentVNode as y } from "vue";
|
|
8
8
|
import "../../super-grid/src/formatter.mjs";
|
|
9
9
|
import v from "../../fs-upload-new/src/file-upload-mobile/file-upload-input.vue.mjs";
|
|
10
|
-
import "js-base64";
|
|
11
10
|
import { getFileIconByName as S } from "../../src/utils/file-util.mjs";
|
|
12
11
|
import { ElMessage as j } from "element-plus";
|
|
13
12
|
import "./fs-upload-list.vue2.mjs";
|
|
@@ -15,8 +14,8 @@ import I from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
|
15
14
|
const F = { name: "FsUploadList", 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: () => [] }, row: { type: Object, default: () => ({}) }, isSql: { type: Boolean, default: false }, openFsUpload: { type: Boolean, default: true }, pageContext: { type: Object, default: () => ({}) }, listCode: { type: String, default: null }, componentId: { type: String, default: null } }, data() {
|
|
16
15
|
const e2 = { Authorization: o() };
|
|
17
16
|
let t2 = window.$vueApp.config.globalProperties.baseURL + "/common/fs-upload";
|
|
18
|
-
|
|
19
|
-
const l2 =
|
|
17
|
+
a(window.$vueApp.config.globalProperties.systemCode) && (t2 = window.$vueApp.config.globalProperties.baseAPI + "/component/super-form/uploads"), t2 = i(t2);
|
|
18
|
+
const l2 = s(), r2 = this.pageContext && this.pageContext.systemCode ? this.pageContext.systemCode : null, n2 = this.fileSetObj.watermark;
|
|
20
19
|
return { deleteUuids: [], headers: e2, defaultAction: t2, annexUploadFlag: false, showPreviewSingleImage: false, showPreviewMulti: false, lastFileName: null, previewImageInfo: {}, showFileList: this.fileList, isMobile: l2, systemCode: r2, watermark: n2, uploading: false, uploadPercentage: 0, uoloadingFileName: "" };
|
|
21
20
|
}, components: { FsPreview: r, ElIconView: e, ElIconDelete: t, FileUploadInputMobile: v }, created() {
|
|
22
21
|
this.fileList.length = 0, this.fileList.push(...this.getFileList());
|
|
@@ -30,7 +29,7 @@ const F = { name: "FsUploadList", props: { value: { type: String, default: null
|
|
|
30
29
|
if ((_a = this.fileInfo) == null ? void 0 : _a.serverPath) {
|
|
31
30
|
const t2 = this.fileInfo.serverPath.split(","), l2 = this.fileInfo.showName.split(",");
|
|
32
31
|
for (let o2 = 0; o2 < t2.length; o2++)
|
|
33
|
-
t2[o2] && e2.push({ serverPath: t2[o2], showName: l2[o2] });
|
|
32
|
+
t2[o2] && e2.push({ serverPath: t2[o2], showName: l2[o2], name: l2[o2] });
|
|
34
33
|
}
|
|
35
34
|
return e2;
|
|
36
35
|
}, openAnnexUpload() {
|
|
@@ -92,7 +91,7 @@ const F = { name: "FsUploadList", props: { value: { type: String, default: null
|
|
|
92
91
|
const L = I(F, [["render", function(e2, t2, l2, o2, i2, s2) {
|
|
93
92
|
const a2 = n("UploadFilled"), r2 = n("el-icon"), v2 = n("el-button"), S2 = n("el-upload"), j2 = n("el-tag"), I2 = n("fs-preview"), F2 = n("FileUploadInputMobile");
|
|
94
93
|
return p(), f("span", O, [l2.disabled ? (p(), u(I2, { key: 1, entity: l2.row, disabled: l2.disabled, fileInfo: l2.fileInfo, "file-set-obj": l2.fileSetObj, "is-sql": l2.isSql, label: l2.value, watermark: i2.watermark }, null, 8, ["entity", "disabled", "fileInfo", "file-set-obj", "is-sql", "label", "watermark"])) : (p(), f(d, { key: 0 }, [i2.isMobile ? (p(), u(F2, { key: 1, ref: "fileUploadRef", disabled: l2.disabled, fileInfo: l2.fileInfo, systemCode: i2.systemCode, accept: l2.fileSetObj.accept ? l2.fileSetObj.accept : null, multiple: l2.fileSetObj.multiple, limitFileSize: l2.fileSetObj.limitFileSize, placeholder: e2.$t("imatrixUIMessage.fileUpload"), "file-list": l2.fileList, beforeUpload: l2.fileSetObj.beforeUpload, onSuccess: s2.uploadOnSuccessMobile, beforeRemove: l2.fileSetObj.beforeRemove, onRemove: s2.onRemoveMobile, beforeDownload: l2.fileSetObj.beforeDownload, pageContext: l2.pageContext, openFsUpload: l2.openFsUpload, componentId: l2.componentId, listCode: l2.listCode, openCameraOrChoosePhoto: l2.fileSetObj.openCameraOrChoosePhoto, watermark: i2.watermark }, null, 8, ["disabled", "fileInfo", "systemCode", "accept", "multiple", "limitFileSize", "placeholder", "file-list", "beforeUpload", "onSuccess", "beforeRemove", "onRemove", "beforeDownload", "pageContext", "openFsUpload", "componentId", "listCode", "openCameraOrChoosePhoto", "watermark"])) : (p(), u(I2, { key: 0, "enable-delete": true, entity: l2.row, disabled: l2.disabled, fileInfo: l2.fileInfo, "file-set-obj": l2.fileSetObj, "is-sql": l2.isSql, label: l2.value, uploading: i2.uploading, watermark: i2.watermark, onDeleteFile: s2.deleteRow }, { prefix: h(() => [c("div", P, [m(S2, { ref: "uploadRef", accept: l2.fileSetObj.accept ? l2.fileSetObj.accept : null, action: i2.defaultAction, multiple: l2.fileSetObj.multiple, "before-upload": s2.handleBeforeUpload, "on-progress": s2.uploadOnProgress, "show-file-list": false, headers: i2.headers, "on-success": s2.uploadOnSuccess, "on-error": s2.onError, "with-credentials": true, name: "file" }, { default: h(() => [m(v2, { size: "small", style: { "margin-right": "5px" }, bg: "" }, { default: h(() => [m(r2, null, { default: h(() => [m(a2)]), _: 1 })]), _: 1 })]), _: 1 }, 8, ["accept", "action", "multiple", "before-upload", "on-progress", "headers", "on-success", "on-error"]), i2.uploading ? (p(), f("div", U, [m(j2, { style: g(s2.tagStyle), size: "large", class: "fs-upload-tag" }, { default: h(() => [t2[0] || (t2[0] = b(" 上传中: ", -1)), c("span", x, w(i2.uoloadingFileName), 1), c("span", C, w(i2.uploadPercentage) + "%", 1)]), _: 1 }, 8, ["style"])])) : y("", true)])]), _: 1 }, 8, ["entity", "disabled", "fileInfo", "file-set-obj", "is-sql", "label", "uploading", "watermark", "onDeleteFile"]))], 64))]);
|
|
95
|
-
}], ["__scopeId", "data-v-
|
|
94
|
+
}], ["__scopeId", "data-v-f07d2dfe"]]);
|
|
96
95
|
export {
|
|
97
96
|
L as default
|
|
98
97
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, openBlock as o, createElementBlock as l, createVNode as
|
|
2
|
-
import { getToken as
|
|
1
|
+
import { defineComponent as e, ref as t, openBlock as o, createElementBlock as l, createVNode as a } from "vue";
|
|
2
|
+
import { getToken as n } from "../../../src/utils/auth.mjs";
|
|
3
3
|
import i from "./file-upload-component.vue.mjs";
|
|
4
4
|
const p = e({ __name: "file-upload-app", 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
5
|
} }, beforeRemove: { type: Function, default: () => {
|
|
@@ -11,14 +11,12 @@ const p = e({ __name: "file-upload-app", props: { openFsUpload: { type: Object,
|
|
|
11
11
|
return "file-upload";
|
|
12
12
|
} }, listCode: { type: String, default: null }, openCameraOrChoosePhoto: { type: String, default: "openCameraAndChoosePhoto" }, beforeUpload: { type: Function, default: () => {
|
|
13
13
|
} }, watermark: { type: Object, default: () => ({}) } }, emits: ["remove", "uploadend"], setup(e2, { expose: p2, emit: r }) {
|
|
14
|
-
const u = e2,
|
|
15
|
-
let
|
|
16
|
-
u.pageContext && u.pageContext.backendUrl && (
|
|
17
|
-
const d = t(
|
|
18
|
-
window.$vueApp.config.globalProperties.baseAPI;
|
|
19
|
-
const m = t(null), c = r, y = t(["album", "camera"]);
|
|
14
|
+
const u = e2, f = t(u.fileList);
|
|
15
|
+
let s = window.$vueApp.config.globalProperties.baseURL;
|
|
16
|
+
u.pageContext && u.pageContext.backendUrl && (s = u.pageContext.backendUrl), s || (s = window.$vueApp.config.globalProperties.baseURL);
|
|
17
|
+
const d = t(s), m = t(null), c = r, y = t(["album", "camera"]);
|
|
20
18
|
function b() {
|
|
21
|
-
let e3 = { type: "pickFiles", sourceType: y.value, multiple: u.multiple, componentId: u.componentId, componentName: u.componentName, systemCode: u.systemCode, token:
|
|
19
|
+
let e3 = { type: "pickFiles", sourceType: y.value, multiple: u.multiple, componentId: u.componentId, componentName: u.componentName, systemCode: u.systemCode, token: n(), listCode: u.listCode };
|
|
22
20
|
window.parent && window.parent.parent ? (e3.myCustom = "window.parent.parent", window.parent.parent.postMessage(JSON.stringify(e3), "*")) : (e3.myCustom = "window.parent", window.parent.postMessage(JSON.stringify(e3), "*"));
|
|
23
21
|
}
|
|
24
22
|
function v(e3) {
|
|
@@ -28,8 +26,8 @@ const p = e({ __name: "file-upload-app", props: { openFsUpload: { type: Object,
|
|
|
28
26
|
let t3 = true;
|
|
29
27
|
if (u.beforeUpload && "function" == typeof u.beforeUpload)
|
|
30
28
|
for (let o3 = 0; o3 < e4.length; o3++) {
|
|
31
|
-
const l2 = e4[o3],
|
|
32
|
-
if (t3 = u.beforeUpload({ fileObj: l2, files: e4, isMobile:
|
|
29
|
+
const l2 = e4[o3], a2 = true;
|
|
30
|
+
if (t3 = u.beforeUpload({ fileObj: l2, files: e4, isMobile: a2, pageContext: u.pageContext, configureObj: u.configure }), void 0 !== t3 && false === t3)
|
|
33
31
|
break;
|
|
34
32
|
}
|
|
35
33
|
if (void 0 !== t3 && !t3)
|
|
@@ -37,24 +35,24 @@ const p = e({ __name: "file-upload-app", props: { openFsUpload: { type: Object,
|
|
|
37
35
|
if (e4)
|
|
38
36
|
if (u.multiple)
|
|
39
37
|
e4.forEach((e5) => {
|
|
40
|
-
|
|
38
|
+
f.value.push(e5);
|
|
41
39
|
});
|
|
42
40
|
else {
|
|
43
|
-
const t4 = JSON.parse(JSON.stringify(
|
|
44
|
-
|
|
41
|
+
const t4 = JSON.parse(JSON.stringify(f.value));
|
|
42
|
+
f.value = e4, c("remove", { rmFiles: t4, serverFiles: f.value });
|
|
45
43
|
}
|
|
46
|
-
JSON.stringify(
|
|
44
|
+
JSON.stringify(f.value), m.value.changeFileList(f.value), c("uploadend", f.value);
|
|
47
45
|
}(o2);
|
|
48
46
|
}
|
|
49
47
|
function g(e3) {
|
|
50
48
|
const t2 = e3.file;
|
|
51
|
-
t2 && c("remove", { rmFiles: [t2], serverFiles:
|
|
49
|
+
t2 && c("remove", { rmFiles: [t2], serverFiles: f.value, index: e3.index });
|
|
52
50
|
}
|
|
53
51
|
return u.openCameraOrChoosePhoto && ("openCamera" === u.openCameraOrChoosePhoto ? y.value = ["camera"] : "openChoosePhoto" === u.openCameraOrChoosePhoto && (y.value = ["album"])), p2({ pickFileDone: function(e3) {
|
|
54
52
|
v(e3);
|
|
55
53
|
}, uploadFileDone: function(e3) {
|
|
56
54
|
v(e3);
|
|
57
|
-
} }), (t2,
|
|
55
|
+
} }), (t2, n2) => (o(), l("div", null, [a(i, { ref_key: "fileUploadRef", ref: m, disabled: e2.disabled, systemCode: e2.systemCode, accept: e2.accept, multiple: e2.multiple, limitFileSize: e2.limitFileSize, fileList: f.value, beforeRemove: e2.beforeRemove, onRemove: [e2.onRemove, g], beforeDownload: e2.beforeDownload, baseURL: d.value, watermark: e2.watermark, onChooseFile: b }, null, 8, ["disabled", "systemCode", "accept", "multiple", "limitFileSize", "fileList", "beforeRemove", "onRemove", "beforeDownload", "baseURL", "watermark"])]));
|
|
58
56
|
} });
|
|
59
57
|
export {
|
|
60
58
|
p as default
|
|
@@ -20,9 +20,9 @@ const g = ["multiple", "accept"], b = ["multiple", "accept"], C = e({ __name: "f
|
|
|
20
20
|
const U = t(false);
|
|
21
21
|
U.value = f();
|
|
22
22
|
const O = t(w.fileList);
|
|
23
|
-
let
|
|
24
|
-
w.pageContext && w.pageContext.backendUrl && (
|
|
25
|
-
const
|
|
23
|
+
let P = window.$vueApp.config.globalProperties.baseURL;
|
|
24
|
+
w.pageContext && w.pageContext.backendUrl && (P = w.pageContext.backendUrl), P || (P = window.$vueApp.config.globalProperties.baseURL);
|
|
25
|
+
const S = t(P), k = window.$vueApp.config.globalProperties.baseAPI, x = t("");
|
|
26
26
|
if (w.action)
|
|
27
27
|
x.value = w.action;
|
|
28
28
|
else {
|
|
@@ -30,17 +30,17 @@ const g = ["multiple", "accept"], b = ["multiple", "accept"], C = e({ __name: "f
|
|
|
30
30
|
w.multiple && (e3 = k + "/component/super-form/batch-uploads"), x.value = e3;
|
|
31
31
|
}
|
|
32
32
|
x.value = m(x.value);
|
|
33
|
-
let
|
|
33
|
+
let L = t(w.accept ? w.accept : "image/*");
|
|
34
34
|
t([]);
|
|
35
|
-
let
|
|
35
|
+
let R = t(false);
|
|
36
36
|
t(false);
|
|
37
|
-
const
|
|
37
|
+
const j = t(), z = t(false), T = C2, { t: A } = h(), N = t(null);
|
|
38
38
|
function I(e3) {
|
|
39
39
|
const t2 = e3.file;
|
|
40
40
|
t2 && T("remove", { rmFiles: [t2], serverFiles: O.value, index: e3.index });
|
|
41
41
|
}
|
|
42
42
|
function $() {
|
|
43
|
-
|
|
43
|
+
L.value = "image/*", U.value ? function() {
|
|
44
44
|
let e3 = ["album"];
|
|
45
45
|
"openCameraAndChoosePhoto" === w.openCameraOrChoosePhoto ? e3 = ["album", "camera"] : "openChoosePhoto" === w.openCameraOrChoosePhoto ? e3 = ["album"] : "openCamera" === w.openCameraOrChoosePhoto && (e3 = ["camera"]);
|
|
46
46
|
let t2 = 1;
|
|
@@ -68,7 +68,7 @@ const g = ["multiple", "accept"], b = ["multiple", "accept"], C = e({ __name: "f
|
|
|
68
68
|
}
|
|
69
69
|
if (t3 && t3.length > 0) {
|
|
70
70
|
const e6 = new FormData();
|
|
71
|
-
if (w.
|
|
71
|
+
if (w.multiple) {
|
|
72
72
|
if (O.value && O.value.length > 0 && O.value.length + t3.length > w.limit)
|
|
73
73
|
return void v({ showClose: true, type: "warning", message: A("fsUpload.theNumberOfUploadsExceedsTheLimitTheLimitIs") + ": " + w.limit });
|
|
74
74
|
for (let l2 = 0; l2 < t3.length; l2++)
|
|
@@ -80,12 +80,12 @@ const g = ["multiple", "accept"], b = ["multiple", "accept"], C = e({ __name: "f
|
|
|
80
80
|
});
|
|
81
81
|
});
|
|
82
82
|
}() : setTimeout(() => {
|
|
83
|
-
|
|
83
|
+
j.value.click();
|
|
84
84
|
});
|
|
85
85
|
}
|
|
86
86
|
function _(e3) {
|
|
87
|
-
|
|
88
|
-
|
|
87
|
+
L.value = "", e3 && "image" === e3 ? L.value = "image/*" : e3 && "video" === e3 && (L.value = "video/*"), setTimeout(() => {
|
|
88
|
+
z.value = false, j.value.click();
|
|
89
89
|
});
|
|
90
90
|
}
|
|
91
91
|
function D(e3, t2) {
|
|
@@ -99,20 +99,20 @@ const g = ["multiple", "accept"], b = ["multiple", "accept"], C = e({ __name: "f
|
|
|
99
99
|
const t2 = JSON.parse(JSON.stringify(O.value));
|
|
100
100
|
O.value = [], O.value.push(e3), T("remove", { rmFiles: t2, serverFiles: O.value, index: 0 });
|
|
101
101
|
}
|
|
102
|
-
|
|
102
|
+
j.value.value = null, R.value = false, N.value.changeFileList(O.value), T("uploadend", O.value);
|
|
103
103
|
}
|
|
104
104
|
function M() {
|
|
105
105
|
!function() {
|
|
106
|
-
const e3 =
|
|
106
|
+
const e3 = j.value.files;
|
|
107
107
|
if (e3 && e3.length > 0) {
|
|
108
108
|
if (U.value && !w.multiple && e3.length > 1)
|
|
109
|
-
return v({ showClose: true, type: "warning", message: A("fsUpload.theNumberOfUploadsExceedsTheLimitTheLimitIs") + ": 1" }), void (
|
|
110
|
-
|
|
109
|
+
return v({ showClose: true, type: "warning", message: A("fsUpload.theNumberOfUploadsExceedsTheLimitTheLimitIs") + ": 1" }), void (j.value.value = null);
|
|
110
|
+
R.value = true, async function() {
|
|
111
111
|
const e4 = new FormData(), t2 = [], l2 = [];
|
|
112
112
|
let o2 = w.limitFileSize;
|
|
113
113
|
null == o2 && (o2 = 30);
|
|
114
114
|
let a2 = false;
|
|
115
|
-
const i2 =
|
|
115
|
+
const i2 = j.value.files;
|
|
116
116
|
for (let e5 = 0; e5 < i2.length; e5++) {
|
|
117
117
|
const l3 = i2[e5];
|
|
118
118
|
if (a2 = D(l3, o2), !a2)
|
|
@@ -146,7 +146,7 @@ const g = ["multiple", "accept"], b = ["multiple", "accept"], C = e({ __name: "f
|
|
|
146
146
|
B(e4);
|
|
147
147
|
}();
|
|
148
148
|
} else
|
|
149
|
-
|
|
149
|
+
j.value.value = null, T("uploadend", O.value);
|
|
150
150
|
}();
|
|
151
151
|
}
|
|
152
152
|
function V(e3) {
|
|
@@ -165,12 +165,12 @@ const g = ["multiple", "accept"], b = ["multiple", "accept"], C = e({ __name: "f
|
|
|
165
165
|
e3.append("systemCode", w.systemCode), window.$vueApp.config.globalProperties.$http.post(x.value, e3, { headers: { "Content-Type": "multipart/form-data", Authorization: c() } }).then((e4) => {
|
|
166
166
|
e4 ? w.multiple ? e4.length > 0 ? E(e4) : console.error("多选时上传后返回值异常") : E(e4) : console.error("上传后返回值异常");
|
|
167
167
|
}).catch(() => {
|
|
168
|
-
|
|
168
|
+
R.value = false;
|
|
169
169
|
});
|
|
170
170
|
}
|
|
171
171
|
return (t2, f2) => {
|
|
172
172
|
const m2 = l("el-button"), c2 = l("el-drawer");
|
|
173
|
-
return o(), a("div", null, [i(y, { ref_key: "fileUploadRef", ref: N, disabled: e2.disabled, systemCode: e2.systemCode, accept: e2.accept, multiple: e2.multiple, limitFileSize: e2.limitFileSize, fileList: O.value, beforeRemove: e2.beforeRemove, onRemove: [e2.onRemove, I], beforeDownload: e2.beforeDownload, baseURL:
|
|
173
|
+
return o(), a("div", null, [i(y, { ref_key: "fileUploadRef", ref: N, disabled: e2.disabled, systemCode: e2.systemCode, accept: e2.accept, multiple: e2.multiple, limitFileSize: e2.limitFileSize, fileList: O.value, beforeRemove: e2.beforeRemove, onRemove: [e2.onRemove, I], beforeDownload: e2.beforeDownload, baseURL: S.value, watermark: e2.watermark, onChooseFile: $ }, null, 8, ["disabled", "systemCode", "accept", "multiple", "limitFileSize", "fileList", "beforeRemove", "onRemove", "beforeDownload", "baseURL", "watermark"]), "openChoosePhoto" === e2.openCameraOrChoosePhoto || "openCameraAndChoosePhoto" === e2.openCameraOrChoosePhoto ? (o(), a("input", { key: 0, ref_key: "fileRef", ref: j, type: "file", multiple: F.value, name: "file", accept: n(L), style: { display: "none" }, onChange: M }, null, 40, g)) : (o(), a("input", { key: 1, ref_key: "fileRef", ref: j, type: "file", multiple: F.value, capture: "environment", name: "file", accept: n(L), style: { display: "none" }, onChange: M }, null, 40, b)), i(c2, { modelValue: z.value, "onUpdate:modelValue": f2[2] || (f2[2] = (e3) => z.value = e3), direction: "btt", onClose: f2[3] || (f2[3] = (e3) => z.value = false) }, { default: u(() => [r("div", null, [i(m2, { link: "", onClick: f2[0] || (f2[0] = (e3) => _("image")) }, { default: u(() => [s(p(t2.$t("fsUpload.image")), 1)]), _: 1 })]), r("div", null, [i(m2, { link: "", onClick: f2[1] || (f2[1] = (e3) => _("video")) }, { default: u(() => [s(p(t2.$t("fsUpload.video")), 1)]), _: 1 })])]), _: 1 }, 8, ["modelValue"])]);
|
|
174
174
|
};
|
|
175
175
|
} });
|
|
176
176
|
export {
|
|
@@ -3,7 +3,7 @@ import { Plus as c } from "@element-plus/icons-vue";
|
|
|
3
3
|
import p from "../fs-preview-new.vue.mjs";
|
|
4
4
|
import { isImage as v } from "../../../src/utils/util.mjs";
|
|
5
5
|
import { getToken as y } from "../../../src/utils/auth.mjs";
|
|
6
|
-
import {
|
|
6
|
+
import { getReplaceUrlDomain as w, isPlateSys as b } from "../../../src/utils/common-util.mjs";
|
|
7
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: () => {
|
|
8
8
|
} }, onRemove: { type: Function, default: () => {
|
|
9
9
|
} }, beforeDownload: { type: Function, default: () => {
|
|
@@ -21,7 +21,7 @@ const h = { style: { width: "100%" } }, g = { key: 0, class: "el-upload-list__it
|
|
|
21
21
|
e3 = $(e3);
|
|
22
22
|
const o2 = y();
|
|
23
23
|
let l2 = x + "/common/super-form/downloads?jwt=" + o2;
|
|
24
|
-
return
|
|
24
|
+
return b(S.systemCode) && (l2 = z + "/component/super-form/downloads?jwt=" + o2), l2 = w(l2), l2 + "&showName=" + encodeURI(e3) + "&serverPath=" + t2;
|
|
25
25
|
}
|
|
26
26
|
const $ = (e3) => (e3 && (e3 = e3.replace("#", "~~").replace("?", "~$").replace("&", "$")), e3);
|
|
27
27
|
function A(e3) {
|
|
@@ -2,7 +2,7 @@ import e from "./fs-preview-new.vue2.mjs";
|
|
|
2
2
|
import "./fs-preview-new.vue3.mjs";
|
|
3
3
|
import "./fs-preview-new.vue4.mjs";
|
|
4
4
|
import r from "../../_virtual/_plugin-vue_export-helper.mjs";
|
|
5
|
-
const p = r(e, [["__scopeId", "data-v-
|
|
5
|
+
const p = r(e, [["__scopeId", "data-v-ab7b2aef"]]);
|
|
6
6
|
export {
|
|
7
7
|
p as default
|
|
8
8
|
};
|