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,266 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const e = require("../../utils/gogocodeTransfer.cjs"), t = require("./dynamic-source-select-service.cjs"), l = require("./events.cjs"), i = require("../../src/utils/eventBus.cjs"), a = require("../../src/utils/util.cjs"), s = require("@element-plus/icons-vue"), o = require("clipboard"), n = require("vue");
|
|
3
|
-
require("./dynamic-source-select.vue2.cjs"), require("./dynamic-source-select.vue3.cjs");
|
|
4
|
-
const u = require("../../_virtual/_plugin-vue_export-helper.cjs"), r = { name: "DynamicSourceSelect", components: {}, model: { prop: "value", event: "input" }, props: { column: { type: Object, default: null }, value: { type: [String, Boolean, Number, Array], default: null }, baseProps: { type: Object, default: null }, entity: { type: Object, default: null }, options: { type: Object, default: null }, tableName: { type: String, default: null }, isJoinTable: { type: Boolean, default: false }, parent: { type: Object, default: null }, listCode: { type: String, default: null }, formCode: { type: String, default: null }, listToolbarFormData: { type: Object, default: () => ({}) }, fullWidth: { type: Boolean, default: true }, clearable: { type: Boolean, default: true }, size: { type: String, default: "default" }, allowCreate: { type: Boolean, default: false }, analysisArea: { type: Number, default: null }, placeholder: { type: String, default: null }, optionWidth: { default: 0 }, isSearch: { type: Boolean, default: false } }, inject: { isPageInfo: { value: "isPageInfo", default: false } }, data() {
|
|
5
|
-
const e2 = Object.assign({}, this.baseProps);
|
|
6
|
-
let t2;
|
|
7
|
-
this.entity && (t2 = JSON.stringify(this.entity));
|
|
8
|
-
let l2 = [];
|
|
9
|
-
void 0 !== this.baseProps.multiple && true === this.baseProps.multiple && void 0 !== this.value && null !== this.value && Array.isArray(this.value) && (l2 = JSON.parse(JSON.stringify(this.value)));
|
|
10
|
-
const i2 = "copyBtn_" + (/* @__PURE__ */ new Date()).getTime();
|
|
11
|
-
return { markValue: t2, optionItems: [], myProps: e2, valueSetOptions: [], dynamicDataSourceCode: "", loading: false, valueAttribute: null, remote: false, additionalParameterStr: this.options.additionalParameter, isLoaded: false, watchAttr: null, backendUrl: null, descriptionAttribute: null, queryParam: {}, lastValues: l2, optionItemList: [], checkEmptyValue: false, CopyDocument: s.CopyDocument, copyBtnId: i2 };
|
|
12
|
-
}, watch: { baseProps: { deep: true, handler(e2) {
|
|
13
|
-
this.myProps = Object.assign({}, e2);
|
|
14
|
-
} } }, created() {
|
|
15
|
-
if (this.options && this.options.backendUrl && (this.backendUrl = this.options.backendUrl), this.options && this.options.dynamicDataSourceCode) {
|
|
16
|
-
this.dynamicDataSourceCode = this.options.dynamicDataSourceCode.trim();
|
|
17
|
-
const t2 = { _listCode: this.listCode, _formCode: this.formCode, _tableName: this.tableName };
|
|
18
|
-
this.parent && (t2.parent = this.parent), this.isPageInfo || this.packageDynamicDataSourceInfo(this.dynamicDataSourceCode, t2).then((t3) => {
|
|
19
|
-
if (t3.backendUrl && (this.backendUrl = t3.backendUrl), void 0 !== t3.fuzzyQuery && true === t3.fuzzyQuery && (this.remote = true), this.options && this.options.valueSetOptions && (this.valueSetOptions = this.options.valueSetOptions), this.options && void 0 !== this.options.isSql && null !== this.options.isSql && (this.isSql = this.options.isSql), this.watchAttr) {
|
|
20
|
-
let e2;
|
|
21
|
-
this.watchAttr.split(",").forEach((t4) => {
|
|
22
|
-
this.entity && (e2 = this.entity[t4]), this.$watch("entity." + t4, function(e3, t5) {
|
|
23
|
-
e3 ? this.watchAttrValueChange(e3) : this.watchAttrValueChange("");
|
|
24
|
-
this.optionItems.filter((t6) => t6[this.valueAttribute] === e3) || this.inputValue("");
|
|
25
|
-
});
|
|
26
|
-
}), this.watchAttrValueChange(e2);
|
|
27
|
-
}
|
|
28
|
-
if (this.isLoaded = true, !t3.defaultSelect || void 0 !== this.value && null !== this.value && "" !== this.value || this.setValues(this.optionItems[0][this.valueAttribute]), 1 !== this.analysisArea && this.remote) {
|
|
29
|
-
const t4 = this;
|
|
30
|
-
e.$on(i, "remoteMethod", () => {
|
|
31
|
-
t4.remoteMethod("");
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
this.$emit("load-completed", t3);
|
|
35
|
-
}).catch((e2) => {
|
|
36
|
-
this.$emit("load-completed", { code: this.dynamicDataSourceCode, error: e2 }), this.isLoaded = true;
|
|
37
|
-
});
|
|
38
|
-
} else
|
|
39
|
-
this.isLoaded = true;
|
|
40
|
-
}, mounted() {
|
|
41
|
-
const e2 = this, t2 = new o("#" + this.copyBtnId, { text: function() {
|
|
42
|
-
return e2.getSelectItemsTitle(e2.value);
|
|
43
|
-
} });
|
|
44
|
-
t2.on("success", () => {
|
|
45
|
-
e2.$message({ type: "success", message: e2.$t("chatEmbed.copySuccess"), showClose: true });
|
|
46
|
-
}), t2.on("error", (e3) => {
|
|
47
|
-
console.error("复制失败", e3);
|
|
48
|
-
});
|
|
49
|
-
}, methods: { ...t, ...l, blurEvent(e2) {
|
|
50
|
-
this.$emit("blur", e2);
|
|
51
|
-
}, changeEvent(e2) {
|
|
52
|
-
this.inputValue(e2), this.change(e2);
|
|
53
|
-
}, getClassOptionTitle(e2) {
|
|
54
|
-
if (null != e2 && "" !== e2 && e2.length > 0) {
|
|
55
|
-
let t2 = "";
|
|
56
|
-
return "string" == typeof e2 ? this.descriptionAttribute ? this.optionItems.forEach((l2) => {
|
|
57
|
-
l2[this.valueAttribute] === e2 && (t2 = l2._label_ + l2._description_);
|
|
58
|
-
}) : this.optionItems.forEach((l2) => {
|
|
59
|
-
l2[this.valueAttribute] === e2 && (t2 = l2._label_);
|
|
60
|
-
}) : this.descriptionAttribute ? (this.optionItems.forEach((l2) => {
|
|
61
|
-
e2.forEach((e3) => {
|
|
62
|
-
l2[this.valueAttribute] === e3 && (t2 = t2 + l2._label_ + ",");
|
|
63
|
-
});
|
|
64
|
-
}), t2 = t2.slice(0, t2.length - 1)) : (this.optionItems.forEach((l2) => {
|
|
65
|
-
e2.forEach((e3) => {
|
|
66
|
-
l2[this.valueAttribute] === e3 && (t2 = t2 + l2._label_ + ",");
|
|
67
|
-
});
|
|
68
|
-
}), t2 = t2.slice(0, t2.length - 1)), t2;
|
|
69
|
-
}
|
|
70
|
-
}, inputValue(e2) {
|
|
71
|
-
let t2 = false;
|
|
72
|
-
if (void 0 !== this.baseProps.multiple && true === this.baseProps.multiple && e2 && e2.indexOf("saveAll") >= 0)
|
|
73
|
-
if (t2 = true, e2.length - 1 >= this.optionItems.length)
|
|
74
|
-
e2 = [];
|
|
75
|
-
else {
|
|
76
|
-
const t3 = [];
|
|
77
|
-
for (let e3 = 0; e3 < this.optionItems.length; e3++) {
|
|
78
|
-
const l2 = this.optionItems[e3];
|
|
79
|
-
t3.push(l2[this.valueAttribute]);
|
|
80
|
-
}
|
|
81
|
-
e2 = t3;
|
|
82
|
-
}
|
|
83
|
-
this.$emit("update:value", e2), !this.remote || null != e2 && "" !== e2 || this.remoteQueryMethod(e2), this.setValues(e2, t2);
|
|
84
|
-
}, packageDynamicDataSourceInfo(e2, t2) {
|
|
85
|
-
return new Promise((l2, i2) => {
|
|
86
|
-
this.findDynamicDataSourceByCode(e2, this.entity, t2, this.additionalParameterStr, this.backendUrl).then((e3) => {
|
|
87
|
-
if (e3) {
|
|
88
|
-
if (e3.options) {
|
|
89
|
-
this.optionItems = e3.options;
|
|
90
|
-
let t3 = e3.options;
|
|
91
|
-
if (void 0 !== this.baseProps.multiple && true === this.baseProps.multiple && t3 && t3.length > 0) {
|
|
92
|
-
t3 = [{ value: "saveAll", _label_: this.$t("superGrid.selectAll") }, ...t3];
|
|
93
|
-
}
|
|
94
|
-
if (this.optionItemList = t3, this.column && this.column.prop !== e3.valueAttribute) {
|
|
95
|
-
this.column["_dynamic-source-data-" + this.column.prop] = { valueSetOptions: this.options.valueSetOptions, optionItems: this.optionItems, valueAttribute: e3.valueAttribute };
|
|
96
|
-
const t4 = this.options.valueSetOptions.find((t5) => t5.columnName === e3.valueAttribute);
|
|
97
|
-
if (t4) {
|
|
98
|
-
let e4 = this.entity[t4.valueColumn.dbColumnName];
|
|
99
|
-
e4 && this.$emit("set-value", { value: e4, targetColumnName: this.column.prop, options: this.optionItems, valueAttribute: this.valueAttribute });
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
} else
|
|
103
|
-
this.optionItems = [];
|
|
104
|
-
e3.valueAttribute && (this.valueAttribute = e3.valueAttribute), e3.descriptionAttribute && (this.descriptionAttribute = e3.descriptionAttribute), this.valueAttribute = this.getValueAttribute(), this.watchAttr = e3.watchAttr, this.$emit("load-completed", e3), l2(e3);
|
|
105
|
-
} else
|
|
106
|
-
l2();
|
|
107
|
-
}).catch((e3) => {
|
|
108
|
-
i2(e3);
|
|
109
|
-
});
|
|
110
|
-
});
|
|
111
|
-
}, remoteQuery(e2, t2) {
|
|
112
|
-
if (null != e2 || null != t2) {
|
|
113
|
-
const l2 = { _listCode: this.listCode, _formCode: this.formCode, _tableName: this.tableName };
|
|
114
|
-
if (null != e2 && (l2.searchText = e2), null != t2)
|
|
115
|
-
"[object Array]" === Object.prototype.toString.apply(t2) ? l2.watchAttrValue = t2.join(",") : l2.watchAttrValue = t2 + "";
|
|
116
|
-
else if (this.entity) {
|
|
117
|
-
const e3 = this.entity[this.watchAttr];
|
|
118
|
-
null != e3 && ("[object Array]" === Object.prototype.toString.apply(e3) ? l2.watchAttrValue = e3.join(",") : l2.watchAttrValue = e3 + "");
|
|
119
|
-
}
|
|
120
|
-
this.parent && (l2.parent = this.parent), this.loading = true, this.packageDynamicDataSourceInfo(this.dynamicDataSourceCode, l2).then((e3) => {
|
|
121
|
-
this.loading = false;
|
|
122
|
-
}).catch((e3) => {
|
|
123
|
-
this.loading = false;
|
|
124
|
-
});
|
|
125
|
-
}
|
|
126
|
-
}, remoteQueryMethod(e2) {
|
|
127
|
-
Array.isArray(this.value) ? 0 === this.value.length && this.remoteQuery(e2, null) : this.remoteQuery(e2, null);
|
|
128
|
-
}, remoteMethod(e2) {
|
|
129
|
-
this.remoteQuery(e2, null);
|
|
130
|
-
}, watchAttrValueChange(e2) {
|
|
131
|
-
this.remoteQuery(null, e2);
|
|
132
|
-
}, getValueAttribute() {
|
|
133
|
-
return this.valueAttribute && "[label]" !== this.valueAttribute ? this.valueAttribute : "_label_";
|
|
134
|
-
}, setValues(e2, t2) {
|
|
135
|
-
this.valueSetOptions && this.valueSetOptions.length > 0 && (void 0 !== this.baseProps.multiple && true === this.baseProps.multiple ? this.setColumnValueWhenMulti(e2, t2) : this.valueSetOptions.forEach((t3) => {
|
|
136
|
-
const l2 = t3.columnName;
|
|
137
|
-
let i2;
|
|
138
|
-
this.optionItems && l2 && (i2 = this.getTargetColumnValue(e2, l2));
|
|
139
|
-
let s2 = null;
|
|
140
|
-
const o2 = t3.valueColumn;
|
|
141
|
-
o2 && (s2 = o2.name, true === this.isSql && (s2 = o2.dbColumnName, s2 = a.getPropNameWhenJoinTable(s2, this.isJoinTable, this.tableName))), this.entity && s2 && null !== s2 && "" !== s2 && a.setEntityFieldValue(this.entity, s2, i2);
|
|
142
|
-
const n2 = this.getSelectedOptionItem(e2);
|
|
143
|
-
this.$emit("set-value", { value: i2, sourceColumnName: l2, targetColumnName: s2, options: this.optionItems, valueAttribute: this.valueAttribute, selectedItem: n2 });
|
|
144
|
-
}));
|
|
145
|
-
}, setColumnValue(e2, t2, l2) {
|
|
146
|
-
let i2 = null;
|
|
147
|
-
const s2 = l2.valueColumn;
|
|
148
|
-
s2 && (i2 = s2.name, true === this.isSql && (i2 = s2.dbColumnName, i2 = a.getPropNameWhenJoinTable(i2, this.isJoinTable, this.tableName))), this.entity && i2 && null !== i2 && "" !== i2 && a.setEntityFieldValue(this.entity, i2, t2), this.$emit("set-value", { value: t2, sourceColumnName: e2, targetColumnName: i2, options: this.optionItems, valueAttribute: this.valueAttribute });
|
|
149
|
-
}, setColumnValueWhenMulti(e2, t2) {
|
|
150
|
-
let l2, i2 = false;
|
|
151
|
-
if (this.valueSetOptions.forEach((t3) => {
|
|
152
|
-
const a2 = t3.columnName;
|
|
153
|
-
if (a2 === this.valueAttribute) {
|
|
154
|
-
let s2;
|
|
155
|
-
if (this.optionItems && a2 && (s2 = this.getTargetColumnValue(e2, a2)), this.setColumnValue(a2, s2, t3), this.lastValues.length < e2.length)
|
|
156
|
-
i2 = true;
|
|
157
|
-
else if (this.lastValues.length > e2.length) {
|
|
158
|
-
i2 = false;
|
|
159
|
-
const t4 = [...this.lastValues, ...e2], a3 = new Set(t4), s3 = Array.from(a3), o2 = [...s3.filter((e3) => !this.lastValues.includes(e3)), ...s3.filter((t5) => !e2.includes(t5))];
|
|
160
|
-
o2 && o2.length > 0 && (l2 = o2[0]);
|
|
161
|
-
}
|
|
162
|
-
this.lastValues = JSON.parse(JSON.stringify(e2));
|
|
163
|
-
}
|
|
164
|
-
}), i2) {
|
|
165
|
-
const l3 = false;
|
|
166
|
-
if (t2)
|
|
167
|
-
this.setAllTagValue(l3);
|
|
168
|
-
else {
|
|
169
|
-
const t3 = e2[e2.length - 1], i3 = this.optionItems.filter((e3) => e3[this.valueAttribute] === t3);
|
|
170
|
-
i3 && i3.length > 0 && this.setTagValue(null, l3, i3[0]);
|
|
171
|
-
}
|
|
172
|
-
} else {
|
|
173
|
-
const e3 = true;
|
|
174
|
-
t2 ? this.setAllTagValue(e3) : this.setTagValue(l2, e3);
|
|
175
|
-
}
|
|
176
|
-
}, setAllTagValue(e2) {
|
|
177
|
-
this.valueSetOptions && this.valueSetOptions.length > 0 && this.valueSetOptions.forEach((t2) => {
|
|
178
|
-
const l2 = t2.columnName;
|
|
179
|
-
if (l2 !== this.valueAttribute) {
|
|
180
|
-
let i2 = null;
|
|
181
|
-
const s2 = t2.valueColumn;
|
|
182
|
-
let o2;
|
|
183
|
-
if (s2 && (i2 = s2.name, true === this.isSql && (i2 = s2.dbColumnName, i2 = a.getPropNameWhenJoinTable(i2, this.isJoinTable, this.tableName))), i2)
|
|
184
|
-
if (e2)
|
|
185
|
-
o2 = null;
|
|
186
|
-
else {
|
|
187
|
-
let e3 = "";
|
|
188
|
-
this.optionItems && this.optionItems.length > 0 && (this.optionItems.forEach((t3) => {
|
|
189
|
-
const i3 = t3[l2];
|
|
190
|
-
e3 = null != e3 && "" !== e3 ? e3 + "," + i3 : i3;
|
|
191
|
-
}), o2 = e3);
|
|
192
|
-
}
|
|
193
|
-
this.setTargetColumnValue(l2, i2, o2);
|
|
194
|
-
}
|
|
195
|
-
});
|
|
196
|
-
}, setTargetColumnValue(e2, t2, l2) {
|
|
197
|
-
this.entity && t2 && null !== t2 && "" !== t2 && a.setEntityFieldValue(this.entity, t2, l2), this.$emit("set-value", { value: l2, sourceColumnName: e2, targetColumnName: t2, options: this.optionItems, valueAttribute: this.valueAttribute });
|
|
198
|
-
}, setTagValue(e2, t2, l2) {
|
|
199
|
-
this.valueSetOptions && this.valueSetOptions.length > 0 && this.valueSetOptions.forEach((i2) => {
|
|
200
|
-
const s2 = i2.columnName;
|
|
201
|
-
if (s2 !== this.valueAttribute) {
|
|
202
|
-
let o2 = null;
|
|
203
|
-
const n2 = i2.valueColumn;
|
|
204
|
-
let u2;
|
|
205
|
-
if (n2 && (o2 = n2.name, true === this.isSql && (o2 = n2.dbColumnName, o2 = a.getPropNameWhenJoinTable(o2, this.isJoinTable, this.tableName))), o2) {
|
|
206
|
-
const i3 = a.getEntityFieldValue(this.entity, o2);
|
|
207
|
-
if (t2) {
|
|
208
|
-
const t3 = this.value.indexOf(e2);
|
|
209
|
-
if (null != i3 && "" !== i3) {
|
|
210
|
-
let e3 = i3;
|
|
211
|
-
"string" == typeof i3 && (e3 = i3.split(",")), e3.splice(t3, 1), u2 = e3.join(",");
|
|
212
|
-
}
|
|
213
|
-
} else {
|
|
214
|
-
let e3;
|
|
215
|
-
l2 && (e3 = l2[s2]), u2 = null != i3 && "" !== i3 ? i3 + "," + e3 : e3;
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
this.setTargetColumnValue(s2, o2, u2);
|
|
219
|
-
}
|
|
220
|
-
});
|
|
221
|
-
}, getTargetColumnValue(e2, t2) {
|
|
222
|
-
if (e2) {
|
|
223
|
-
let l2 = "";
|
|
224
|
-
if (void 0 !== this.baseProps.multiple && true === this.baseProps.multiple && Array.isArray(e2)) {
|
|
225
|
-
let i2 = 0;
|
|
226
|
-
e2.forEach((a2) => {
|
|
227
|
-
const s2 = this.optionItems.filter((e3) => e3[this.valueAttribute] === a2);
|
|
228
|
-
s2 && s2.length > 0 && (l2 += s2[0][t2], i2 < e2.length - 1 && (l2 += ","), i2++);
|
|
229
|
-
});
|
|
230
|
-
} else {
|
|
231
|
-
const i2 = this.optionItems.filter((t3) => t3[this.valueAttribute] === e2);
|
|
232
|
-
i2 && i2.length > 0 && (l2 = i2[0][t2]);
|
|
233
|
-
}
|
|
234
|
-
return l2;
|
|
235
|
-
}
|
|
236
|
-
}, clearMarkValue() {
|
|
237
|
-
if (this.markValue && this.entity) {
|
|
238
|
-
const e2 = JSON.parse(this.markValue);
|
|
239
|
-
for (let t2 = 0; t2 < this.options.valueSetOptions.length; t2++) {
|
|
240
|
-
e2[this.options.valueSetOptions[t2].valueColumn.dbColumnName] = null;
|
|
241
|
-
}
|
|
242
|
-
this.markValue = JSON.stringify(e2);
|
|
243
|
-
}
|
|
244
|
-
}, changeEmptyValue(e2) {
|
|
245
|
-
this.$emit("changeEmptyValue", e2);
|
|
246
|
-
}, clearEmptyValue() {
|
|
247
|
-
this.checkEmptyValue = false;
|
|
248
|
-
}, getSelectItemsTitle(e2) {
|
|
249
|
-
if (null != e2 && "" !== e2 && e2.length > 0) {
|
|
250
|
-
let t2 = "";
|
|
251
|
-
return "string" == typeof e2 ? this.optionItems.length > 0 ? this.optionItems.forEach((l2) => {
|
|
252
|
-
l2[this.valueAttribute] === e2 && (t2 = l2._label_);
|
|
253
|
-
}) : t2 = e2 : this.optionItems.length > 0 ? (this.optionItems.forEach((l2) => {
|
|
254
|
-
e2.forEach((e3) => {
|
|
255
|
-
l2[this.valueAttribute] === e3 && (t2 = t2 + l2._label_ + ",");
|
|
256
|
-
});
|
|
257
|
-
}), t2 = t2.slice(0, t2.length - 1)) : t2 = e2.join(","), t2;
|
|
258
|
-
}
|
|
259
|
-
} }, emits: ["set-default-value", "load-completed", "set-value", "update:value", "focus", "blur", "visible-change", "change", "chnageEmptyValue"] }, h = { class: "select-top-span" }, c = { style: { "padding-left": "5px" } }, p = { style: { display: "flex" } }, m = { style: { color: "#8492a6", "font-size": "13px", "margin-left": "30px" } }, d = { style: { float: "left" } }, v = { style: { float: "right", color: "#8492a6", "font-size": "13px", "margin-left": "30px" } };
|
|
260
|
-
const b = u(r, [["render", function(e2, t2, l2, i2, a2, s2) {
|
|
261
|
-
const o2 = n.resolveComponent("CopyDocument"), u2 = n.resolveComponent("el-icon"), r2 = n.resolveComponent("el-checkbox"), b2 = n.resolveComponent("el-option"), y = n.resolveComponent("el-select"), f = n.resolveComponent("el-popover");
|
|
262
|
-
return n.openBlock(), n.createElementBlock("span", h, [n.createVNode(f, { placement: "top", trigger: "hover" }, { reference: n.withCtx(() => [n.createElementVNode("div", { onKeydown: t2[4] || (t2[4] = n.withKeys(n.withModifiers(() => {
|
|
263
|
-
}, ["stop"]), ["space"])) }, [n.createVNode(y, n.mergeProps({ ref: "dynamicDataSourceRef", "allow-create": l2.allowCreate, clearable: l2.clearable, filterable: a2.remote, loading: a2.loading, "model-value": l2.value, placeholder: l2.placeholder, remote: a2.remote, "remote-method": s2.remoteMethod, "reserve-keyword": true, size: l2.size, style: l2.fullWidth ? { width: "100%", height: "100%" } : {}, title: s2.getClassOptionTitle(l2.value), "value-key": a2.valueAttribute, "default-first-option": "" }, a2.myProps, { "remote-show-suffix": "", onKeydown: t2[1] || (t2[1] = n.withKeys(n.withModifiers(() => {
|
|
264
|
-
}, ["stop"]), ["space"])), onBlur: t2[2] || (t2[2] = (e3) => s2.blurEvent(e3)), onChange: s2.changeEvent, onClear: e2.clear, onFocus: e2.focus, onVisibleChange: e2.visibleChange, onRemoveTag: t2[3] || (t2[3] = (t3) => e2.removeTag(a2.remote, t3)) }), n.createSlots({ default: n.withCtx(() => [a2.descriptionAttribute ? (n.openBlock(), n.createElementBlock(n.Fragment, { key: 0 }, [l2.optionWidth > 0 ? (n.openBlock(), n.createElementBlock("div", { key: 0, style: n.normalizeStyle({ width: l2.optionWidth + "px" }) }, [(n.openBlock(true), n.createElementBlock(n.Fragment, null, n.renderList(a2.optionItemList, (e3) => (n.openBlock(), n.createBlock(b2, { key: e3.value, label: e3._label_, title: e3._description_ ? e3._label_ + e3._description_ : e3._label_, value: l2.baseProps.multiple && "saveAll" === e3.value ? e3.value : e3[a2.valueAttribute] }, { default: n.withCtx(() => [n.createElementVNode("div", p, [n.createElementVNode("span", null, n.toDisplayString(e3._label_), 1), n.createElementVNode("span", m, n.toDisplayString(e3._description_ ? e3._description_ : e3._label_), 1)])]), _: 2 }, 1032, ["label", "title", "value"]))), 128))], 4)) : (n.openBlock(true), n.createElementBlock(n.Fragment, { key: 1 }, n.renderList(a2.optionItemList, (e3) => (n.openBlock(), n.createBlock(b2, { key: e3.value, label: e3._label_, title: e3._description_ ? e3._label_ + e3._description_ : e3._label_, value: l2.baseProps.multiple && "saveAll" === e3.value ? e3.value : e3[a2.valueAttribute] }, { default: n.withCtx(() => [n.createElementVNode("span", d, n.toDisplayString(e3._label_), 1), n.createElementVNode("span", v, n.toDisplayString(e3._description_ ? e3._description_ : e3._label_), 1)]), _: 2 }, 1032, ["label", "title", "value"]))), 128))], 64)) : (n.openBlock(), n.createElementBlock(n.Fragment, { key: 1 }, [l2.optionWidth > 0 ? (n.openBlock(), n.createElementBlock("div", { key: 0, style: n.normalizeStyle({ width: l2.optionWidth + "px", position: "relative" }) }, [(n.openBlock(true), n.createElementBlock(n.Fragment, null, n.renderList(a2.optionItemList, (e3) => (n.openBlock(), n.createBlock(b2, { key: e3.value, label: e3._label_, value: l2.baseProps.multiple && "saveAll" === e3.value ? e3.value : e3[a2.valueAttribute] }, null, 8, ["label", "value"]))), 128))], 4)) : (n.openBlock(true), n.createElementBlock(n.Fragment, { key: 1 }, n.renderList(a2.optionItemList, (e3) => (n.openBlock(), n.createBlock(b2, { key: e3.value, label: e3._label_, value: l2.baseProps.multiple && "saveAll" === e3.value ? e3.value : e3[a2.valueAttribute] }, null, 8, ["label", "value"]))), 128))], 64))]), _: 2 }, [l2.isSearch ? { name: "header", fn: n.withCtx(() => [n.createVNode(r2, { modelValue: a2.checkEmptyValue, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => a2.checkEmptyValue = e3), onChange: s2.changeEmptyValue }, { default: n.withCtx(() => [n.createTextVNode(n.toDisplayString(e2.$t("imatrixUIPublicModel.emptyValue")), 1)]), _: 1 }, 8, ["modelValue", "onChange"])]), key: "0" } : void 0]), 1040, ["allow-create", "clearable", "filterable", "loading", "model-value", "placeholder", "remote", "remote-method", "size", "style", "title", "value-key", "onChange", "onClear", "onFocus", "onVisibleChange"])], 32)]), default: n.withCtx(() => [n.createElementVNode("span", c, [n.createVNode(u2, { id: a2.copyBtnId }, { default: n.withCtx(() => [n.createVNode(o2)]), _: 1 }, 8, ["id"])])]), _: 1 })]);
|
|
265
|
-
}], ["__scopeId", "data-v-34406c62"]]);
|
|
266
|
-
module.exports = b;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const t = { change: function(t2) {
|
|
3
|
-
const e = this.getSelectedOptionItem(t2);
|
|
4
|
-
this.$emit("change", t2, e);
|
|
5
|
-
}, visibleChange: function(t2) {
|
|
6
|
-
this.$emit("visible-change", t2);
|
|
7
|
-
}, removeTag: function(t2, e) {
|
|
8
|
-
this.$emit("remove-tag", e), Array.isArray(this.value) && 1 === this.value.length && t2 && (this.clearMarkValue(), this.remoteQuery("", null));
|
|
9
|
-
}, clear: function() {
|
|
10
|
-
this.clearMarkValue(), this.$emit("clear");
|
|
11
|
-
}, blur: function(t2) {
|
|
12
|
-
this.$emit("blur", t2);
|
|
13
|
-
}, focus: function(t2) {
|
|
14
|
-
this.$emit("focus", t2);
|
|
15
|
-
}, input(t2) {
|
|
16
|
-
this.$emit("update:value", t2);
|
|
17
|
-
}, getSelectedOptionItem(t2) {
|
|
18
|
-
if (void 0 !== this.baseProps.multiple && true === this.baseProps.multiple && Array.isArray(t2)) {
|
|
19
|
-
const i = [];
|
|
20
|
-
for (var e = 0; e < t2.length; e++) {
|
|
21
|
-
const s = this.optionItems.find((i2) => i2[this.valueAttribute] === t2[e]);
|
|
22
|
-
i.push(s);
|
|
23
|
-
}
|
|
24
|
-
return i;
|
|
25
|
-
}
|
|
26
|
-
return this.optionItems.find((e2) => e2[this.valueAttribute] === t2);
|
|
27
|
-
} };
|
|
28
|
-
module.exports = t;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const e = require("vue"), t = require("vue-i18n"), i = { class: "empty_center_area" }, n = { class: "empty_notAvailable_text" }, a = e.defineComponent({ __name: "index", props: { imageHeight: { type: String, default: "120px" }, imageWidth: { type: String, default: "120px" }, emptyText: { type: String, default: "" } }, setup(a2) {
|
|
3
|
-
const { t: r } = t.useI18n(), l = a2;
|
|
4
|
-
return (t2, a3) => (e.openBlock(), e.createElementBlock("div", i, [e.createElementVNode("div", { class: "empty_notAvailable", style: e.normalizeStyle({ width: l.imageWidth, height: l.imageHeight }) }, [e.createElementVNode("span", n, e.toDisplayString(l.emptyText ? l.emptyText : e.unref(r)("imatrixUIPromptMessage.NoContent")), 1)], 4)]));
|
|
5
|
-
} });
|
|
6
|
-
module.exports = a;
|
package/lib/favicon.svg
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<svg version="1.1" xmlns="http://www.w3.org/2000/svg"
|
|
3
|
-
viewBox="0 0 442 442"
|
|
4
|
-
preserveAspectRatio="xMidYMid meet">
|
|
5
|
-
|
|
6
|
-
<g transform="translate(0.000000,442.000000) scale(0.100000,-0.100000)" stroke="none">
|
|
7
|
-
<path fill="#e15814" d="M1801 4004 c-395 -45 -745 -180 -1045 -402 -377 -280 -644 -692 -727
|
|
8
|
-
-1123 -19 -99 -21 -137 -16 -313 4 -175 8 -214 31 -301 69 -265 189 -470 391
|
|
9
|
-
-670 123 -122 168 -156 184 -139 11 12 111 300 111 320 0 9 -42 59 -93 112
|
|
10
|
-
-194 203 -281 394 -294 639 l-6 112 29 12 c21 8 166 9 522 4 429 -7 494 -10
|
|
11
|
-
499 -23 4 -8 -3 -58 -15 -111 -12 -53 -51 -238 -87 -411 -36 -173 -86 -409
|
|
12
|
-
-111 -525 -24 -115 -55 -257 -67 -314 l-22 -103 26 -22 c36 -31 276 -128 299
|
|
13
|
-
-121 23 7 25 13 60 174 82 383 175 818 234 1086 36 165 106 489 155 720 50
|
|
14
|
-
231 135 629 191 885 55 256 100 474 100 486 0 11 -5 25 -12 32 -16 16 -185 14
|
|
15
|
-
-337 -4z m-101 -358 c0 -14 -22 -128 -49 -253 -28 -125 -78 -356 -112 -513
|
|
16
|
-
-35 -163 -68 -292 -77 -302 -14 -17 -52 -18 -526 -18 -285 0 -517 4 -525 9
|
|
17
|
-
-30 19 61 236 166 396 197 300 564 551 993 681 103 31 130 31 130 0z"/>
|
|
18
|
-
<path fill="#239753" d="M2401 3956 c-6 -7 -38 -139 -72 -292 -33 -153 -87 -400 -119 -549
|
|
19
|
-
-32 -148 -82 -376 -109 -505 -28 -129 -140 -649 -251 -1155 -110 -505 -199
|
|
20
|
-
-926 -198 -934 4 -19 62 -33 253 -62 191 -29 411 -29 600 0 201 31 436 85 450
|
|
21
|
-
105 7 9 24 73 38 143 14 71 62 306 106 523 44 217 105 516 136 665 59 291 64
|
|
22
|
-
329 39 339 -9 3 -166 6 -350 6 l-334 0 0 30 c0 50 41 204 58 217 12 10 198 13
|
|
23
|
-
853 13 529 0 840 4 844 10 3 5 -6 44 -21 87 -225 661 -642 1045 -1364 1255
|
|
24
|
-
-179 53 -250 69 -414 98 -141 24 -131 23 -145 6z"/>
|
|
25
|
-
<path fill="#239753" d="M3677 2213 c-5 -9 -47 -194 -212 -942 -82 -368 -113 -527 -105 -535
|
|
26
|
-
12 -12 32 -2 185 99 183 121 259 185 410 351 121 131 198 239 264 371 104 207
|
|
27
|
-
158 397 163 569 l3 89 -352 3 c-193 1 -354 -1 -356 -5z"/>
|
|
28
|
-
</g>
|
|
29
|
-
</svg>
|
package/lib/fs-preview/index.cjs
DELETED
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const e = require("@element-plus/icons-vue"), t = require("vue"), i = require("../../src/utils/common-util.cjs"), o = require("../../src/utils/util.cjs"), l = require("../../super-grid/src/utils.cjs"), s = require("../../src/utils/auth.cjs"), a = require("../../src/utils/file-util.cjs"), r = require("../../src/utils/watermark.cjs");
|
|
3
|
-
require("./fs-preview.vue2.cjs");
|
|
4
|
-
const n = require("../../_virtual/_plugin-vue_export-helper.cjs"), c = { components: { ElIconPaperclip: e.Paperclip, ElIconView: e.View, ElIconDownload: e.Download }, 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() {
|
|
5
|
-
var _a;
|
|
6
|
-
return ((_a = this.label) == null ? void 0 : _a.indexOf(",")) > -1 ? (this.showMultipleFile = true, this.label.split(",")[0]) : (this.showMultipleFile = false, this.label);
|
|
7
|
-
}, lab() {
|
|
8
|
-
return this.label || this.fileInfo.showName || "文件预览";
|
|
9
|
-
} }, created() {
|
|
10
|
-
this.keyValueParam = this.analysisFileSetObj(this.fileSetObj, this.isSql), this.fileSetObj && void 0 !== this.fileSetObj.downloadable && null !== this.fileSetObj.downloadable && (this.downloadable = this.fileSetObj.downloadable);
|
|
11
|
-
}, methods: { dblclickEvent() {
|
|
12
|
-
clearTimeout(this.time);
|
|
13
|
-
}, getFirstFile() {
|
|
14
|
-
const { showName: e2, serverPath: t2 } = this.getShowNameAndUuidKey();
|
|
15
|
-
if (t2) {
|
|
16
|
-
return t2.split(",").length > 1 ? { showName: e2.split(",")[0], serverPath: t2.split(",")[0] } : { showName: e2, serverPath: t2 };
|
|
17
|
-
}
|
|
18
|
-
return null;
|
|
19
|
-
}, previewFirst() {
|
|
20
|
-
this.previewSingle(this.getFirstFile());
|
|
21
|
-
}, downloadFirst() {
|
|
22
|
-
const { showName: e2, serverPath: t2 } = this.getFirstFile();
|
|
23
|
-
this.download(e2, t2);
|
|
24
|
-
}, previewSingle(e2) {
|
|
25
|
-
if (e2 = l.packageFile(e2.showName, e2.serverPath), o.isImage(e2.showName)) {
|
|
26
|
-
if (this.previewImageListInfo.length = [], this.entity) {
|
|
27
|
-
const { showName: t2, serverPath: i2 } = this.getShowNameAndUuidKey(), l2 = i2.split(","), a2 = s.getToken();
|
|
28
|
-
for (let i3 = 0; i3 < l2.length; i3++)
|
|
29
|
-
o.isImage(t2.split(",")[i3]) && (l2[i3] === e2.serverPath && (this.initialIndex = i3), this.previewImageListInfo.push(window.$vueApp.config.globalProperties.baseURL + "/common/super-form/downloads?serverPath=" + l2[i3] + "&jwt=" + a2));
|
|
30
|
-
}
|
|
31
|
-
this.showPreviewSingleImage = true;
|
|
32
|
-
} else
|
|
33
|
-
this.previewDoc(e2);
|
|
34
|
-
}, donwloadViewFile() {
|
|
35
|
-
const { showName: e2, serverPath: t2 } = this.getShowNameAndUuidKey();
|
|
36
|
-
if (t2) {
|
|
37
|
-
t2.split(",").length > 1 ? this.previewMuti() : this.download(e2, t2);
|
|
38
|
-
}
|
|
39
|
-
}, getShowNameAndUuidKey() {
|
|
40
|
-
let e2 = null, t2 = null;
|
|
41
|
-
return this.fileInfo.showName && this.fileInfo.serverPath ? (t2 = this.fileInfo.serverPath, e2 = this.fileInfo.showName) : this.entity && (t2 = o.getEntityFieldValue(this.entity, this.keyValueParam.serverPath), e2 = o.getEntityFieldValue(this.entity, this.keyValueParam.showName)), { showName: e2, serverPath: t2 };
|
|
42
|
-
}, previewMuti() {
|
|
43
|
-
if (this.disabled && this.fileSetObj.disabledNoPreview)
|
|
44
|
-
return;
|
|
45
|
-
const { showName: e2, serverPath: t2 } = this.getShowNameAndUuidKey();
|
|
46
|
-
if (t2) {
|
|
47
|
-
const o2 = t2.split(",");
|
|
48
|
-
if (o2.length > 1) {
|
|
49
|
-
const e3 = window.$vueApp.config.globalProperties.baseURL, t3 = window.$vueApp.config.globalProperties.baseAPI;
|
|
50
|
-
let l2 = e3 + "/common/fs-upload/search-file-names";
|
|
51
|
-
i.isPlateSys(window.$vueApp.config.globalProperties.systemCode) && (l2 = t3 + "/api/search-file-names"), l2 = i.getRelativeBaseUrl(l2), this.$http.post(l2, o2).then((e4) => {
|
|
52
|
-
this.fileList = [], o2.forEach((t4) => {
|
|
53
|
-
this.fileList.push({ showName: e4[t4], serverPath: t4 });
|
|
54
|
-
}), this.showPreviewMulti = true;
|
|
55
|
-
});
|
|
56
|
-
} else
|
|
57
|
-
this.previewSingle({ showName: e2, serverPath: t2 });
|
|
58
|
-
}
|
|
59
|
-
}, previewDoc(e2) {
|
|
60
|
-
const t2 = s.getToken(), o2 = e2.showName;
|
|
61
|
-
if (window.$vueApp.config.globalProperties.customPreviewUrl)
|
|
62
|
-
window.open(i.getSystemFrontendUrlWith(window.$vueApp.config.globalProperties.portalUrl) + "/#/file-service/preview?serverPath=" + e2.serverPath + "&showName=" + encodeURIComponent(o2), o2);
|
|
63
|
-
else {
|
|
64
|
-
let l2, s2 = window.$vueApp.config.globalProperties.baseURL;
|
|
65
|
-
if (i.isPlateSys(window.$vueApp.config.globalProperties.systemCode) && (s2 = window.$vueApp.config.globalProperties.baseAPI), window.$vueApp.config.globalProperties.kkFileViewUrl) {
|
|
66
|
-
const l3 = s2 + "/common/super-form/downloads?jwt=" + t2 + "&showName=" + encodeURIComponent(o2) + "&serverPath=" + e2.serverPath + "&fullfilename=" + encodeURIComponent(o2);
|
|
67
|
-
i.getKkFilePreviewUrl(l3).then((e3) => {
|
|
68
|
-
window.open(e3, o2);
|
|
69
|
-
});
|
|
70
|
-
} else
|
|
71
|
-
l2 = s2 + "/common/fs-upload/preview?jwt=" + t2, l2 = l2 + "&showName=" + encodeURIComponent(o2) + "&serverPath=" + e2.serverPath, l2 = i.getRelativeBaseUrl(l2), window.open(l2, o2);
|
|
72
|
-
}
|
|
73
|
-
}, donwloadFile(e2) {
|
|
74
|
-
const t2 = this.formatFileName(this.fileList[e2].showName);
|
|
75
|
-
if (this.fileList[e2].src) {
|
|
76
|
-
const t3 = i.getRelativeBaseUrl(this.fileList[e2].src);
|
|
77
|
-
window.open(t3);
|
|
78
|
-
} else
|
|
79
|
-
this.download(t2, this.fileList[e2].serverPath);
|
|
80
|
-
}, async download(e2, t2) {
|
|
81
|
-
var _a;
|
|
82
|
-
const o2 = s.getToken(), l2 = await r.getWatermarkSetting();
|
|
83
|
-
let a2 = false;
|
|
84
|
-
l2 && l2.useRange && l2.useRange.indexOf("annex") >= 0 && (a2 = void 0 === this.watermark.isShowWatermark || this.watermark.isShowWatermark);
|
|
85
|
-
let n2 = (_a = this.watermark) == null ? void 0 : _a.content;
|
|
86
|
-
!n2 && l2 && (n2 = l2.content), n2 || (n2 = "");
|
|
87
|
-
let c2 = window.$vueApp.config.globalProperties.baseURL + "/common/super-form/downloads?jwt=" + o2;
|
|
88
|
-
i.isPlateSys(window.$vueApp.config.globalProperties.systemCode) && (c2 = window.$vueApp.config.globalProperties.baseAPI + "/component/super-form/downloads?jwt=" + o2), c2 = i.getRelativeBaseUrl(c2);
|
|
89
|
-
const d2 = c2 + "&showName=" + encodeURIComponent(e2) + "&serverPath=" + t2 + "&isShowWatermark=" + a2 + "&watermark=" + n2;
|
|
90
|
-
window.open(d2);
|
|
91
|
-
}, analysisFileSetObj(e2, t2) {
|
|
92
|
-
let i2 = "", o2 = "";
|
|
93
|
-
return e2 && (e2.showNameData && (t2 ? e2.showNameData.dbName && (i2 = e2.showNameData.dbName) : e2.showNameData.name && (i2 = e2.showNameData.name)), e2.serverNameData && (t2 ? e2.serverNameData.dbName && (o2 = e2.serverNameData.dbName) : e2.serverNameData.name && (o2 = e2.serverNameData.name))), { showName: i2, serverPath: o2 };
|
|
94
|
-
}, formatFileName: (e2) => e2.replace("#", "~~").replace("?", "~$").replace("&", "$"), getFileIconByName: (e2) => a.getFileIconByName(e2), showMultiView() {
|
|
95
|
-
const { showName: e2, serverPath: t2 } = this.getShowNameAndUuidKey();
|
|
96
|
-
if (t2) {
|
|
97
|
-
const e3 = t2.split(",");
|
|
98
|
-
if (e3.length > 1) {
|
|
99
|
-
const t3 = window.$vueApp.config.globalProperties.baseURL, o2 = window.$vueApp.config.globalProperties.baseAPI;
|
|
100
|
-
let l2 = t3 + "/common/fs-upload/search-file-names";
|
|
101
|
-
i.isPlateSys(window.$vueApp.config.globalProperties.systemCode) && (l2 = o2 + "/api/search-file-names"), l2 = i.getRelativeBaseUrl(l2), this.$http.post(l2, e3).then((t4) => {
|
|
102
|
-
this.fileList = [], e3.forEach((e4) => {
|
|
103
|
-
this.fileList.push({ showName: t4[e4], serverPath: e4 });
|
|
104
|
-
});
|
|
105
|
-
});
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
return this.fileList;
|
|
109
|
-
}, deleteFirst() {
|
|
110
|
-
const e2 = this.getFirstFile();
|
|
111
|
-
this.$emit("delete-file", e2), this.fileList = this.fileList.filter((t2) => t2.serverPath !== e2.serverPath), this.$message({ showClose: true, type: "success", message: o.getI18n().t("fsUpload.deleteSuccessful") });
|
|
112
|
-
}, deleteFile(e2) {
|
|
113
|
-
this.$emit("delete-file", e2), this.fileList = this.fileList.filter((t2) => t2.serverPath !== e2.serverPath), this.$message({ showClose: true, type: "success", message: o.getI18n().t("fsUpload.deleteSuccessful") });
|
|
114
|
-
} }, emits: ["close", "delete-file"] }, d = { ref: "fsPreviewRef" }, m = { class: "fs-preview-container" }, h = ["title"], p = { key: 1, ref: "toolRef", class: "fs-preview-tool" }, w = { style: { "max-height": "300px", "overflow-y": "auto" } }, f = { style: { display: "flex", "align-items": "center", flex: "1" } }, u = { class: "more-file-icon" }, v = { class: "amb-list-preivew-name", style: { width: "230px", "margin-left": "10px" } }, g = { class: "file-actions" };
|
|
115
|
-
const N = n(c, [["render", function(e2, i2, o2, l2, s2, a2) {
|
|
116
|
-
const r2 = t.resolveComponent("super-icon"), n2 = t.resolveComponent("el-tooltip"), c2 = t.resolveComponent("el-divider"), N2 = t.resolveComponent("ArrowDownBold"), b = t.resolveComponent("el-icon"), k = t.resolveComponent("el-button"), P = t.resolveComponent("el-popover"), y = t.resolveComponent("el-image-viewer");
|
|
117
|
-
return t.openBlock(), t.createElementBlock("div", d, [t.createElementVNode("div", { ref: "filePreviewRef", onDblclick: i2[3] || (i2[3] = (...e3) => a2.dblclickEvent && a2.dblclickEvent(...e3)), class: "fs-preview-container" }, [t.renderSlot(e2.$slots, "prefix", {}, void 0, true), a2.firstFileName && !o2.uploading ? (t.openBlock(), t.createElementBlock(t.Fragment, { key: 0 }, [t.createElementVNode("div", m, [t.createVNode(r2, { iconValue: a2.getFileIconByName(a2.firstFileName) }, null, 8, ["iconValue"])]), t.createElementVNode("span", { title: a2.firstFileName, ref: "nameRef", class: "amb-list-preivew-name" }, t.toDisplayString(a2.firstFileName), 9, h)], 64)) : t.createCommentVNode("", true), a2.firstFileName && !o2.uploading ? (t.openBlock(), t.createElementBlock("div", p, [t.renderSlot(e2.$slots, "tool-prefix", { item: a2.getFirstFile() }, void 0, true), o2.disabled && o2.fileSetObj.disabledNoPreview ? t.createCommentVNode("", true) : (t.openBlock(), t.createBlock(n2, { key: 0, content: e2.$t("fsUpload.preview") }, { default: t.withCtx(() => [t.createVNode(r2, { onClick: i2[0] || (i2[0] = (e3) => a2.previewFirst()), iconValue: "amb-icon-yulan" })]), _: 1 }, 8, ["content"])), o2.disabled && o2.fileSetObj.disabledNoDownload ? t.createCommentVNode("", true) : (t.openBlock(), t.createBlock(n2, { key: 1, content: e2.$t("fsUpload.download") }, { default: t.withCtx(() => [t.createVNode(r2, { onClick: i2[1] || (i2[1] = (e3) => a2.downloadFirst()), iconValue: "amb-icon-xiazai" })]), _: 1 }, 8, ["content"])), o2.enableDelete && !o2.disabled ? (t.openBlock(), t.createBlock(n2, { key: 2, content: e2.$t("fsUpload.delete") }, { default: t.withCtx(() => [t.createVNode(r2, { onClick: i2[2] || (i2[2] = (e3) => a2.deleteFirst()), iconValue: "amb-color-icon-del" })]), _: 1 }, 8, ["content"])) : t.createCommentVNode("", true), t.renderSlot(e2.$slots, "tool-suffix", { item: a2.getFirstFile() }, void 0, true), s2.showMultipleFile ? (t.openBlock(), t.createBlock(c2, { key: 3, direction: "vertical" })) : t.createCommentVNode("", true), t.createVNode(P, { width: 450, trigger: "click" }, { reference: t.withCtx(() => [s2.showMultipleFile ? (t.openBlock(), t.createBlock(k, { key: 0, plain: "", type: "primary", round: "", size: "small", onClick: a2.showMultiView }, { default: t.withCtx(() => [t.createTextVNode(t.toDisplayString(e2.$t("fsUpload.more")) + " ", 1), t.createVNode(b, null, { default: t.withCtx(() => [t.createVNode(N2)]), _: 1 })]), _: 1 }, 8, ["onClick"])) : t.createCommentVNode("", true)]), default: t.withCtx(() => [t.createElementVNode("div", w, [(t.openBlock(true), t.createElementBlock(t.Fragment, null, t.renderList(s2.fileList, (i3, l3) => (t.openBlock(), t.createElementBlock("div", { ref_for: true, ref: i3.serverPath, key: i3.serverPath, class: "file-item" }, [t.createElementVNode("div", f, [t.createElementVNode("span", u, [t.createVNode(r2, { iconValue: a2.getFileIconByName(i3.showName) }, null, 8, ["iconValue"])]), t.createElementVNode("span", v, t.toDisplayString(i3.showName), 1)]), t.createElementVNode("div", g, [t.renderSlot(e2.$slots, "tool-more-prefix", { item: i3 }, void 0, true), o2.disabled && o2.fileSetObj.disabledNoPreview ? t.createCommentVNode("", true) : (t.openBlock(), t.createBlock(n2, { key: 0, content: e2.$t("fsUpload.preview") }, { default: t.withCtx(() => [t.createVNode(r2, { onClick: (e3) => a2.previewSingle(i3), iconValue: "amb-icon-yulan" }, null, 8, ["onClick"])]), _: 2 }, 1032, ["content"])), o2.disabled && o2.fileSetObj.disabledNoDownload ? t.createCommentVNode("", true) : (t.openBlock(), t.createBlock(n2, { key: 1, content: e2.$t("fsUpload.download") }, { default: t.withCtx(() => [t.createVNode(r2, { onClick: (e3) => a2.donwloadFile(l3), iconValue: "amb-icon-xiazai" }, null, 8, ["onClick"])]), _: 2 }, 1032, ["content"])), o2.enableDelete ? (t.openBlock(), t.createBlock(n2, { key: 2, content: e2.$t("fsUpload.delete") }, { default: t.withCtx(() => [t.createVNode(r2, { onClick: (e3) => a2.deleteFile(i3), iconValue: "amb-color-icon-shanchu" }, null, 8, ["onClick"])]), _: 2 }, 1032, ["content"])) : t.createCommentVNode("", true)])]))), 128))])]), _: 3 })], 512)) : t.createCommentVNode("", true)], 544), s2.showPreviewSingleImage ? (t.openBlock(), t.createBlock(y, { key: 0, teleported: "", "url-list": s2.previewImageListInfo, "initial-index": s2.initialIndex, onClose: i2[4] || (i2[4] = (e3) => s2.showPreviewSingleImage = false) }, null, 8, ["url-list", "initial-index"])) : t.createCommentVNode("", true)], 512);
|
|
118
|
-
}], ["__scopeId", "data-v-7f109349"]]);
|
|
119
|
-
module.exports = N;
|
package/lib/fs-upload/index.cjs
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const e = require("@element-plus/icons-vue"), t = require("../../utils/gogocodeTransfer.cjs"), o = require("vue"), i = require("./see-big-picture.vue.cjs"), l = require("../../src/utils/auth.cjs"), s = require("../../src/utils/common-util.cjs"), a = require("../../_virtual/_plugin-vue_export-helper.cjs"), n = { data: () => ({ unifiedEnclosures: [], bigPictureVisible: false, baseURL: "", accepts: "", showIndex: 0, loading: "", ElIconUpload2: e.Upload }), components: { seeBigPicture: i, ElIconDelete: e.Delete, ElIconView: e.View }, 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() {
|
|
3
|
-
this.baseURL = s.getRelativeBaseUrl(window.$vueApp.config.globalProperties.baseURL), this.data && (this.unifiedEnclosures = this.data), this.judgeImg();
|
|
4
|
-
}, methods: { bigPicture(e2) {
|
|
5
|
-
this.showIndex = e2, this.bigPictureVisible = true;
|
|
6
|
-
}, onSuccess() {
|
|
7
|
-
const e2 = this.unifiedEnclosures;
|
|
8
|
-
t.$emit(this, "onSuccess", e2);
|
|
9
|
-
}, judgeImg() {
|
|
10
|
-
this.isImg ? this.accepts = "image/*" : this.accept && (this.accepts = this.accept);
|
|
11
|
-
}, selectDataFile() {
|
|
12
|
-
this.$refs.uploadTemplate.click();
|
|
13
|
-
}, deleteFile(e2) {
|
|
14
|
-
this.deleteUuid = this.unifiedEnclosures[e2].uuid, this.unifiedEnclosures.splice(e2, 1), this.deleteSuccess();
|
|
15
|
-
}, deleteSuccess() {
|
|
16
|
-
const e2 = this.unifiedEnclosures;
|
|
17
|
-
t.$emit(this, "deleteSuccess", this.deleteUuid, e2);
|
|
18
|
-
}, preview(e2) {
|
|
19
|
-
if (window.$vueApp.config.globalProperties.isOffice) {
|
|
20
|
-
const t2 = l.getToken(), o2 = { fileName: window.$vueApp.config.globalProperties.officeweb365Url + "/common/fs-upload/download?serverPath=" + e2.uuid + "&showName=" + e2.fileName + "&jwt=" + t2 };
|
|
21
|
-
this.$http.post(this.baseURL + "/common/fs-upload/des-encrypt", o2).then((e3) => {
|
|
22
|
-
window.open(window.$vueApp.config.globalProperties.isOffice + e3);
|
|
23
|
-
});
|
|
24
|
-
} else {
|
|
25
|
-
let t2;
|
|
26
|
-
const o2 = e2.fileName.split(".");
|
|
27
|
-
t2 = "xls" === o2[o2.length - 1].toLowerCase() || "xlsx" === o2[o2.length - 1].toLowerCase() || "csv" === o2[o2.length - 1].toLowerCase() ? o2[0] + ".html" : o2[0] + ".pdf";
|
|
28
|
-
const i2 = l.getToken();
|
|
29
|
-
if (window.$vueApp.config.globalProperties.customPreviewUrl)
|
|
30
|
-
window.open(s.getSystemFrontendUrlWith(window.$vueApp.config.globalProperties.portalUrl) + "/#/file-service/preview?serverPath=" + e2.uuid + "&showName=" + encodeURI(e2.fileName), t2);
|
|
31
|
-
else {
|
|
32
|
-
const o3 = e2.fileName, l2 = e2.uuid;
|
|
33
|
-
let a2, n2 = this.baseURL;
|
|
34
|
-
if (s.isPlateSys(window.$vueApp.config.globalProperties.systemCode) && (n2 = window.$vueApp.config.globalProperties.baseAPI), window.$vueApp.config.globalProperties.kkFileViewUrl) {
|
|
35
|
-
const e3 = n2 + "/common/super-form/downloads?jwt=" + i2 + "&showName=" + encodeURI(o3) + "&serverPath=" + l2 + "&fullfilename=" + o3;
|
|
36
|
-
s.getKkFilePreviewUrl(e3).then((e4) => {
|
|
37
|
-
window.open(e4, t2);
|
|
38
|
-
});
|
|
39
|
-
} else
|
|
40
|
-
a2 = n2 + "/common/fs-upload/preview?jwt=" + i2, a2 = a2 + "&showName=" + encodeURI(o3) + "&serverPath=" + l2, a2 = s.getRelativeBaseUrl(a2), window.open(a2, t2);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}, upload(e2) {
|
|
44
|
-
let t2;
|
|
45
|
-
if (this.fileSize && 0 !== this.fileSize && this.unifiedEnclosures.length >= this.fileSize && (t2 = this.$t("fsUpload.theNumberOfUploadsExceedsTheLimitTheLimitIs") + ":" + this.fileSize), t2)
|
|
46
|
-
e2.target.value = "", this.$message({ showClose: true, type: "warning", message: t2 });
|
|
47
|
-
else {
|
|
48
|
-
this.loading = true;
|
|
49
|
-
const t3 = new FormData();
|
|
50
|
-
t3.append("file", this.$refs.uploadTemplate.files[0]);
|
|
51
|
-
const o2 = this.$http;
|
|
52
|
-
o2.headers = "'Content-Type': 'multipart/form-data'", o2.post(this.baseURL + "/common/fs-upload/upload-template/" + this.systemCode, t3, { headers: { "Content-Type": "multipart/form-data" } }).then((t4) => {
|
|
53
|
-
this.unifiedEnclosures.push(t4), e2.target.value = "", this.judgeImg(), this.unifiedEnclosures, this.onSuccess(), this.$message({ showClose: true, type: "success", message: this.$t("fsUpload.uploadSucceeded") }), this.loading = false;
|
|
54
|
-
}).catch(() => {
|
|
55
|
-
e2.target.value = "", this.loading = false;
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
} }, emits: ["onSuccess", "deleteSuccess"] }, d = ["accept"], r = { key: 1 }, c = { key: 0 }, u = { key: 1 }, p = { key: 2 };
|
|
59
|
-
const h = a(n, [["render", function(e2, t2, i2, l2, s2, a2) {
|
|
60
|
-
const n2 = o.resolveComponent("el-button"), h2 = o.resolveComponent("el-link"), f = o.resolveComponent("el-table-column"), m = o.resolveComponent("el-image"), w = o.resolveComponent("el-table"), g = o.resolveComponent("el-icon-delete"), v = o.resolveComponent("el-icon"), C = o.resolveComponent("el-tooltip"), b = o.resolveComponent("el-icon-view"), y = o.resolveComponent("see-big-picture"), N = o.resolveDirective("loading");
|
|
61
|
-
return o.withDirectives((o.openBlock(), o.createElementBlock("div", null, [i2.isShowButton && !i2.disabled ? (o.openBlock(), o.createBlock(n2, { key: 0, icon: s2.ElIconUpload2, size: "default", type: "primary", onClick: a2.selectDataFile }, { default: o.withCtx(() => [o.createTextVNode(o.toDisplayString(e2.$t("fsUpload.upload")), 1)]), _: 1 }, 8, ["icon", "onClick"])) : o.createCommentVNode("", true), o.createElementVNode("input", { ref: "uploadTemplate", accept: s2.accepts, name: "uploadTemplate", style: { display: "none" }, type: "file", onChange: t2[0] || (t2[0] = (...e3) => a2.upload && a2.upload(...e3)) }, null, 40, d), s2.unifiedEnclosures && s2.unifiedEnclosures.length > 0 && i2.isShowData ? (o.openBlock(), o.createElementBlock("div", r, [i2.isImg ? (o.openBlock(), o.createElementBlock("div", c, [o.createVNode(w, { data: s2.unifiedEnclosures, height: i2.tableHeight, style: { width: "100%" } }, { default: o.withCtx(() => [o.createVNode(f, { label: e2.$t("fsUpload.name"), width: "240" }, { default: o.withCtx((e3) => [o.createVNode(h2, { href: s2.baseURL + "/common/fs-upload/download?serverPath=" + e3.row.uuid + "&showName=" + e3.row.fileName, type: "primary" }, { default: o.withCtx(() => [o.createTextVNode(o.toDisplayString(e3.row.fileName), 1)]), _: 2 }, 1032, ["href"])]), _: 1 }, 8, ["label"]), o.createVNode(f, { label: e2.$t("fsUpload.picture"), width: "240" }, { default: o.withCtx((e3) => [o.createVNode(m, { "preview-src-list": [s2.baseURL + "/common/fs-upload/download?serverPath=" + e3.row.uuid + "&showName=" + e3.row.fileName], src: s2.baseURL + "/common/fs-upload/download?serverPath=" + e3.row.uuid + "&showName=" + e3.row.fileName, onClick: (t3) => a2.bigPicture(e3.$index) }, null, 8, ["preview-src-list", "src", "onClick"])]), _: 1 }, 8, ["label"]), i2.disabled ? o.createCommentVNode("", true) : (o.openBlock(), o.createBlock(f, { key: 0, label: e2.$t("fsUpload.operating"), width: "120" }, { default: o.withCtx((t3) => [o.createVNode(n2, { size: "default", type: "danger", onClick: (e3) => a2.deleteFile(t3.$index) }, { default: o.withCtx(() => [o.createTextVNode(o.toDisplayString(e2.$t("fsUpload.delete")), 1)]), _: 1 }, 8, ["onClick"])]), _: 1 }, 8, ["label"]))]), _: 1 }, 8, ["data", "height"])])) : i2.isShowList ? (o.openBlock(), o.createElementBlock("div", u, [o.createVNode(w, { data: s2.unifiedEnclosures, height: i2.tableHeight, style: { width: "100%" } }, { default: o.withCtx(() => [o.createVNode(f, { label: e2.$t("fsUpload.name"), width: "240" }, { default: o.withCtx((e3) => [o.createVNode(h2, { href: s2.baseURL + "/common/fs-upload/download?serverPath=" + e3.row.uuid + "&showName=" + e3.row.fileName, type: "primary" }, { default: o.withCtx(() => [o.createTextVNode(o.toDisplayString(e3.row.fileName), 1)]), _: 2 }, 1032, ["href"])]), _: 1 }, 8, ["label"]), o.createVNode(f, { label: e2.$t("fsUpload.operating"), width: "200" }, { default: o.withCtx((t3) => [i2.disabled ? o.createCommentVNode("", true) : (o.openBlock(), o.createBlock(n2, { key: 0, size: "default", type: "danger", onClick: (e3) => a2.deleteFile(t3.$index) }, { default: o.withCtx(() => [o.createTextVNode(o.toDisplayString(e2.$t("fsUpload.delete")), 1)]), _: 1 }, 8, ["onClick"])), o.createVNode(n2, { size: "default", onClick: (e3) => a2.preview(t3.row) }, { default: o.withCtx(() => [o.createTextVNode(o.toDisplayString(e2.$t("fsUpload.preview")), 1)]), _: 1 }, 8, ["onClick"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["data", "height"])])) : (o.openBlock(), o.createElementBlock("div", p, [(o.openBlock(true), o.createElementBlock(o.Fragment, null, o.renderList(s2.unifiedEnclosures, (t3, l3) => (o.openBlock(), o.createElementBlock("div", { key: l3 }, [o.createVNode(h2, { href: s2.baseURL + "/common/fs-upload/download?serverPath=" + t3.uuid + "&showName=" + t3.fileName, type: "primary" }, { default: o.withCtx(() => [o.createTextVNode(o.toDisplayString(t3.fileName), 1)]), _: 2 }, 1032, ["href"]), o.createVNode(C, { content: e2.$t("fsUpload.delete"), effect: "light" }, { default: o.withCtx(() => [i2.disabled ? o.createCommentVNode("", true) : (o.openBlock(), o.createBlock(v, { key: 0, style: { color: "red", "margin-left": "10px" }, onClick: (e3) => a2.deleteFile(l3) }, { default: o.withCtx(() => [o.createVNode(g)]), _: 1 }, 8, ["onClick"]))]), _: 2 }, 1032, ["content"]), o.createVNode(C, { content: e2.$t("fsUpload.preview"), effect: "light", style: { "margin-left": "10px" } }, { default: o.withCtx(() => [o.createVNode(v, { onClick: (e3) => a2.preview(t3) }, { default: o.withCtx(() => [o.createVNode(b)]), _: 1 }, 8, ["onClick"])]), _: 2 }, 1032, ["content"])]))), 128))]))])) : o.createCommentVNode("", true), s2.bigPictureVisible ? (o.openBlock(), o.createBlock(y, { key: 2, "show-index": s2.showIndex, "unified-enclosures": s2.unifiedEnclosures, onClose: t2[1] || (t2[1] = (e3) => s2.bigPictureVisible = false) }, null, 8, ["show-index", "unified-enclosures"])) : o.createCommentVNode("", true)])), [[N, s2.loading]]);
|
|
62
|
-
}]]);
|
|
63
|
-
module.exports = h;
|