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,96 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const e = require("@element-plus/icons-vue"), t = require("../../src/utils/auth.cjs"), l = require("../../src/utils/util.cjs"), o = require("../../src/utils/common-util.cjs"), i = require("vue"), a = require("../../fs-preview/src/fs-preview.vue.cjs"), n = require("../../_virtual/_plugin-vue_export-helper.cjs"), s = { data() {
|
|
3
|
-
const l2 = { Authorization: t.getToken() };
|
|
4
|
-
let i2 = window.$vueApp.config.globalProperties.baseURL + "/common/fs-upload";
|
|
5
|
-
return o.isPlateSys(window.$vueApp.config.globalProperties.systemCode) && (i2 = window.$vueApp.config.globalProperties.baseAPI + "/component/super-form/uploads"), { deleteUuids: [], headers: l2, defaultAction: i2, annexUploadFlag: false, showPreviewSingleImage: false, showPreviewMulti: false, lastFileName: null, previewImageInfo: {}, showFileList: [], uploadingFile: [], cancelUploadFile: [], fileContent: [], chunkSize: 5242880, ElIconUpload2: e.Upload };
|
|
6
|
-
}, components: { FsPreview: a, ElIconPaperclip: e.Paperclip, ElIconClose: e.Close, ElIconView: e.View, ElIconDelete: e.Delete }, name: "MultipartUploadList", props: { value: { type: String, default: null }, entity: { type: Object, default: null }, fileSetObj: { type: Object, default: () => ({ limitFileSize: 10, multiple: false, accept: null }) }, disabled: { type: Boolean, default: false } }, created() {
|
|
7
|
-
}, mounted() {
|
|
8
|
-
this.fileSetObj.limitFileSize || (this.fileSetObj.limitFileSize = 10);
|
|
9
|
-
const e2 = this.entity[this.fileSetObj.showNameData.dbName], l2 = this.entity[this.fileSetObj.serverNameData.dbName];
|
|
10
|
-
if (e2 && l2) {
|
|
11
|
-
const i2 = e2.split(","), a2 = l2.split(",");
|
|
12
|
-
i2.forEach((e3, l3) => {
|
|
13
|
-
this.fileContent.push({ name: e3, serverName: a2[l3] });
|
|
14
|
-
const i3 = t.getToken();
|
|
15
|
-
let n2 = window.$vueApp.config.globalProperties.baseURL + "/common/super-form/downloads?jwt=" + i3;
|
|
16
|
-
o.isPlateSys(window.$vueApp.config.globalProperties.systemCode) && (n2 = window.$vueApp.config.globalProperties.baseAPI + "/component/super-form/downloads?jwt=" + i3);
|
|
17
|
-
const s2 = n2 + "&showName=" + encodeURI(e3) + "&serverPath=" + a2[l3];
|
|
18
|
-
this.showFileList.push({ showName: e3, serverPath: a2[l3], src: s2 });
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
}, methods: { openAnnexUpload() {
|
|
22
|
-
this.annexUploadFlag = true;
|
|
23
|
-
}, async uploadFile(e2) {
|
|
24
|
-
if (this.uploadingFile.length > 0 && !this.fileSetObj.multiple)
|
|
25
|
-
return void this.$message({ showClose: true, message: "文件单选,请勿同时上传多份文件!", type: "warning" });
|
|
26
|
-
const t2 = Date.now();
|
|
27
|
-
this.uploadingFile.push({ name: e2.raw.name, uploadProgress: 0, serverName: t2 });
|
|
28
|
-
const l2 = e2.raw, o2 = l2.size, i2 = Math.ceil(o2 / this.chunkSize);
|
|
29
|
-
l2.size;
|
|
30
|
-
const a2 = { fileName: l2.name, chunkCount: i2 };
|
|
31
|
-
this.$http.post(window.$vueApp.config.globalProperties.baseURL + "/common/mutipart-upload/create", a2).then(async (e3) => {
|
|
32
|
-
if (this.cancelUploadFile, this.cancelUploadFile.indexOf(a2.serverName) > 0)
|
|
33
|
-
return;
|
|
34
|
-
const n2 = this.uploadingFile.findIndex((e4) => e4.serverName === t2), s2 = e3.serverName;
|
|
35
|
-
this.uploadingFile[n2] = { uploadProgress: 0, name: l2.name, serverName: s2, folder: e3.folder }, this.uploadingFile;
|
|
36
|
-
const r2 = [];
|
|
37
|
-
for (let t3 = 0; t3 < i2; t3++) {
|
|
38
|
-
const a3 = t3 * this.chunkSize, p2 = Math.min(o2, a3 + this.chunkSize), c2 = l2.slice(a3, p2), d2 = new FormData();
|
|
39
|
-
if (d2.append("folder", e3.folder), d2.append("serverName", s2), d2.append("file", c2), this.cancelUploadFile.indexOf(s2) > 0)
|
|
40
|
-
break;
|
|
41
|
-
await this.$http.post(window.$vueApp.config.globalProperties.baseURL + "/common/mutipart-upload/upload", d2).then((e4) => {
|
|
42
|
-
r2.push(e4.uploadName);
|
|
43
|
-
const l3 = parseInt((t3 + 1) / i2 * 100);
|
|
44
|
-
this.uploadingFile[n2].uploadProgress = l3 > 100 ? 100 : l3, this.uploadingFile[n2] = this.uploadingFile[n2], this.uploadingFile;
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
this.cancelUploadFile.indexOf(s2) < 0 ? this.composeFile(l2.name, i2, o2, s2, r2, e3.folder) : await this.$http.post(window.$vueApp.config.globalProperties.baseURL + "/common/mutipart-upload/remove-chunks", { serverName: s2, folder: e3.folder }).then((e4) => {
|
|
48
|
-
});
|
|
49
|
-
});
|
|
50
|
-
}, composeFile(e2, t2, l2, o2, i2, a2) {
|
|
51
|
-
const n2 = { fileName: e2, chunkSize: t2, fileSize: l2, serverName: o2, chunkNames: i2, folder: a2 };
|
|
52
|
-
this.$http.post(window.$vueApp.config.globalProperties.baseURL + "/common/mutipart-upload/merge", n2).then((t3) => {
|
|
53
|
-
if (this.uploadingFile.splice(this.uploadingFile.findIndex((e3) => e3.serverName === o2), 1), this.fileSetObj.multiple) {
|
|
54
|
-
this.fileContent.push({ name: e2, serverName: o2 });
|
|
55
|
-
const t4 = this.entity[this.fileSetObj.showNameData.dbName];
|
|
56
|
-
t4 && t4.length > 0 ? this.setEntityValue(t4 + "," + e2, this.entity[this.fileSetObj.serverNameData.dbName] + "," + o2) : this.setEntityValue(e2, o2);
|
|
57
|
-
} else
|
|
58
|
-
this.fileContent = [{ name: e2, serverName: o2 }], this.setEntityValue(e2, o2);
|
|
59
|
-
this.entity;
|
|
60
|
-
});
|
|
61
|
-
}, setEntityValue(e2, t2) {
|
|
62
|
-
this.entity[this.fileSetObj.showNameData.dbName] = e2, this.entity[this.fileSetObj.serverNameData.dbName] = t2;
|
|
63
|
-
}, cancelUpload(e2) {
|
|
64
|
-
this.entity.DOC_NAME = null, this.entity.DOC_PATH = null, this.cancelUploadFile.push(e2), this.uploadingFile.splice(this.uploadingFile.findIndex((t2) => t2.serverName === e2), 1);
|
|
65
|
-
}, preview(e2, o2) {
|
|
66
|
-
l.isImage(e2) ? (this.previewImageInfo = { src: window.$vueApp.config.globalProperties.baseURL + "/common/super-form/downloads?jwt=" + t.getToken() + "&showName=" + e2 + "&serverPath=" + o2 }, this.showPreviewSingleImage = true) : this.previewDoc(e2, o2);
|
|
67
|
-
}, previewDoc(e2, l2) {
|
|
68
|
-
const i2 = t.getToken();
|
|
69
|
-
if (window.$vueApp.config.globalProperties.customPreviewUrl)
|
|
70
|
-
window.open(o.getSystemFrontendUrlWith(window.$vueApp.config.globalProperties.portalUrl) + "/#/file-service/preview?serverPath=" + l2 + "&showName=" + encodeURI(e2), e2);
|
|
71
|
-
else {
|
|
72
|
-
let t2;
|
|
73
|
-
const a2 = e2, n2 = l2;
|
|
74
|
-
let s2 = window.$vueApp.config.globalProperties.baseURL;
|
|
75
|
-
if (o.isPlateSys(window.$vueApp.config.globalProperties.systemCode) && (s2 = window.$vueApp.config.globalProperties.baseAPI), window.$vueApp.config.globalProperties.kkFileViewUrl) {
|
|
76
|
-
const e3 = s2 + "/common/super-form/downloads?jwt=" + i2 + "&showName=" + encodeURI(a2) + "&serverPath=" + n2 + "&fullfilename=" + a2;
|
|
77
|
-
o.getKkFilePreviewUrl(e3).then((e4) => {
|
|
78
|
-
window.open(e4, a2);
|
|
79
|
-
});
|
|
80
|
-
} else
|
|
81
|
-
t2 = s2 + "/common/fs-upload/preview?jwt=" + i2, t2 = t2 + "&showName=" + encodeURI(a2) + "&serverPath=" + n2, window.open(t2, a2);
|
|
82
|
-
}
|
|
83
|
-
}, handleOnRemove(e2) {
|
|
84
|
-
if (this.fileContent.splice(e2, 1), this.fileSetObj.multiple) {
|
|
85
|
-
const e3 = [], t2 = [];
|
|
86
|
-
this.fileContent.forEach((l2) => {
|
|
87
|
-
l2.name && l2.serverName && (e3.push(l2.name), t2.push(l2.serverName));
|
|
88
|
-
}), this.setEntityValue(e3.join(","), t2.join(","));
|
|
89
|
-
} else
|
|
90
|
-
this.setEntityValue(null, null);
|
|
91
|
-
} }, emits: ["close", "update:value", "update:value"] }, r = { class: "el-upload__tip", style: { "margin-left": "12px" } }, p = { key: 0 }, c = { style: { "margin-left": "6.5px" } }, d = { style: { "line-height": "30px" } }, m = ["onClick"], u = { style: { "margin-left": "6.5px" } };
|
|
92
|
-
const h = n(s, [["render", function(e2, t2, l2, o2, a2, n2) {
|
|
93
|
-
const s2 = i.resolveComponent("el-button"), h2 = i.resolveComponent("el-input"), w = i.resolveComponent("el-upload"), f = i.resolveComponent("el-icon-paperclip"), g = i.resolveComponent("el-icon"), v = i.resolveComponent("el-icon-close"), N = i.resolveComponent("el-tooltip"), C = i.resolveComponent("el-tag"), b = i.resolveComponent("el-progress"), V = i.resolveComponent("el-row"), x = i.resolveComponent("el-col"), k = i.resolveComponent("el-dialog"), y = i.resolveComponent("el-image"), P = i.resolveComponent("el-table-column"), U = i.resolveComponent("el-icon-view"), F = i.resolveComponent("el-icon-delete"), S = i.resolveComponent("el-table"), I = i.resolveComponent("fs-preview");
|
|
94
|
-
return i.openBlock(), i.createElementBlock("div", null, [l2.disabled ? (i.openBlock(), i.createBlock(I, { key: 1, "file-list": a2.showFileList, label: l2.value }, null, 8, ["file-list", "label"])) : (i.openBlock(), i.createElementBlock(i.Fragment, { key: 0 }, [i.createVNode(h2, { ref: "item", disabled: l2.disabled, "model-value": l2.value, placeholder: e2.$t("imatrixUIMessage.fileUpload"), readonly: true }, { append: i.withCtx(() => [l2.disabled ? i.createCommentVNode("", true) : (i.openBlock(), i.createBlock(s2, { key: 0, icon: a2.ElIconUpload2, size: "default", onClick: n2.openAnnexUpload }, null, 8, ["icon", "onClick"]))]), _: 1 }, 8, ["disabled", "model-value", "placeholder"]), i.createVNode(k, { modelValue: a2.annexUploadFlag, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => a2.annexUploadFlag = e3), "append-to-body": true, "show-close": true, title: e2.$t("imatrixUIMessage.tips"), width: "40%" }, { default: i.withCtx(() => [i.createVNode(w, { id: "upload", "auto-upload": false, "on-change": n2.uploadFile, "show-file-list": false, action: "" }, { tip: i.withCtx(() => [i.createElementVNode("span", r, [i.createTextVNode(" 上传文件不能超过" + i.toDisplayString(l2.fileSetObj.limitFileSize) + "M ", 1), l2.fileSetObj.accept ? (i.openBlock(), i.createElementBlock("span", p, ",并且只接受" + i.toDisplayString(l2.fileSetObj.accept) + "类型文件", 1)) : i.createCommentVNode("", true)])]), default: i.withCtx(() => [i.createVNode(s2, { size: "default", type: "primary" }, { default: i.withCtx(() => [...t2[5] || (t2[5] = [i.createTextVNode(" 选择文件", -1)])]), _: 1 })]), _: 1 }, 8, ["on-change"]), t2[6] || (t2[6] = i.createElementVNode("br", null, null, -1)), (i.openBlock(true), i.createElementBlock(i.Fragment, null, i.renderList(a2.uploadingFile, (e3, t3) => (i.openBlock(), i.createBlock(V, { key: t3 }, { default: i.withCtx(() => [i.createVNode(C, { size: "small form-list-file" }, { default: i.withCtx(() => [i.createElementVNode("span", null, [i.createVNode(g, null, { default: i.withCtx(() => [i.createVNode(f)]), _: 1 }), i.createElementVNode("span", c, i.toDisplayString(e3.name), 1)]), i.createVNode(N, { content: "取消上传", effect: "light", placement: "right" }, { default: i.withCtx(() => [i.createVNode(g, { style: { "margin-left": "8px" }, onClick: (t4) => n2.cancelUpload(e3.serverName) }, { default: i.withCtx(() => [i.createVNode(v)]), _: 1 }, 8, ["onClick"])]), _: 2 }, 1024)]), _: 2 }, 1024), i.createVNode(b, { percentage: e3.uploadProgress }, null, 8, ["percentage"])]), _: 2 }, 1024))), 128)), i.createElementVNode("div", d, [i.createVNode(V, null, { default: i.withCtx(() => [i.createVNode(x, null, { default: i.withCtx(() => [(i.openBlock(true), i.createElementBlock(i.Fragment, null, i.renderList(a2.fileContent, (e3, t3) => (i.openBlock(), i.createBlock(C, { key: t3, size: "small form-list-file" }, { default: i.withCtx(() => [i.createElementVNode("span", { onClick: (t4) => n2.preview(e3.name, e3.serverName) }, [i.createVNode(g, null, { default: i.withCtx(() => [i.createVNode(f)]), _: 1 }), i.createElementVNode("span", u, i.toDisplayString(e3.name), 1)], 8, m), i.createVNode(N, { content: "移除已上传文件", effect: "light", placement: "right" }, { default: i.withCtx(() => [i.createVNode(g, { style: { "margin-left": "8px" }, onClick: (l3) => n2.handleOnRemove(t3, e3) }, { default: i.withCtx(() => [i.createVNode(v)]), _: 1 }, 8, ["onClick"])]), _: 2 }, 1024)]), _: 2 }, 1024))), 128))]), _: 1 })]), _: 1 })])]), _: 1 }, 8, ["modelValue", "title"]), i.createVNode(k, { modelValue: a2.showPreviewSingleImage, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => a2.showPreviewSingleImage = e3), "append-to-body": true, "show-close": true, title: e2.$t("imatrixUIPublicModel.previewImage"), onClose: t2[2] || (t2[2] = (t3) => e2.$emit("close")) }, { title: i.withCtx(() => [i.createElementVNode("span", null, i.toDisplayString(e2.$t("imatrixUIPublicModel.previewImage")), 1)]), default: i.withCtx(() => [i.createVNode(y, { "preview-src-list": [a2.previewImageInfo.src], src: a2.previewImageInfo.src }, null, 8, ["preview-src-list", "src"])]), _: 1 }, 8, ["modelValue", "title"]), i.createVNode(k, { modelValue: a2.showPreviewMulti, "onUpdate:modelValue": t2[3] || (t2[3] = (e3) => a2.showPreviewMulti = e3), "append-to-body": true, "show-close": true, title: e2.$t("imatrixUIPublicModel.preview"), width: "30%", onClose: t2[4] || (t2[4] = (t3) => e2.$emit("close")) }, { title: i.withCtx(() => [i.createElementVNode("span", null, i.toDisplayString(e2.$t("imatrixUIPublicModel.preview")), 1)]), default: i.withCtx(() => [i.createVNode(S, { data: a2.showFileList, "show-header": false }, { default: i.withCtx(() => [i.createVNode(P, { prop: "showName", width: "300" }), i.createVNode(P, { align: "right" }, { default: i.withCtx((t3) => [i.createVNode(N, { content: e2.$t("imatrixUIPublicModel.preview"), class: "item", effect: "dark", placement: "top" }, { default: i.withCtx(() => [i.createVNode(g, { style: { cursor: "pointer" }, onClick: (l3) => e2.previewSingle(t3.row) }, { default: i.withCtx(() => [i.createVNode(U)]), _: 1 }, 8, ["onClick"])]), _: 2 }, 1032, ["content"])]), _: 1 }), l2.disabled ? i.createCommentVNode("", true) : (i.openBlock(), i.createBlock(P, { key: 0 }, { default: i.withCtx((t3) => [i.createVNode(N, { content: e2.$t("imatrixUIPublicModel.delete"), class: "item", effect: "dark", placement: "top" }, { default: i.withCtx(() => [i.createVNode(g, { style: { cursor: "pointer" }, onClick: (l3) => e2.deleteRow(t3.$index) }, { default: i.withCtx(() => [i.createVNode(F)]), _: 1 }, 8, ["onClick"])]), _: 2 }, 1032, ["content"])]), _: 1 }))]), _: 1 }, 8, ["data"])]), _: 1 }, 8, ["modelValue", "title"])], 64))]);
|
|
95
|
-
}]]);
|
|
96
|
-
module.exports = h;
|
|
@@ -1,218 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const e = require("@element-plus/icons-vue"), t = require("../../src/utils/util.cjs"), i = require("../../department-user-tree/src/department-user-tree.vue.cjs"), n = require("../../department-tree/src/department-tree.vue.cjs"), o = require("vue");
|
|
3
|
-
require("./organization-input.vue2.cjs");
|
|
4
|
-
const r = require("../../_virtual/_plugin-vue_export-helper.cjs"), l = { components: { ElIconSearch: e.Search, ElIconDelete: e.Delete, DepartmentUserTree: i, DepartmentTree: n }, name: "OrganizationInput", model: { prop: "value", event: "input" }, props: { value: { type: String, default: "" }, multiple: { type: Boolean, default: false }, checkStrictly: { type: Boolean, default: false }, treeType: { type: String, default: "DeptUserTree" }, disabled: { type: Boolean, default: false }, fields: { type: Array, default: null }, models: { type: Object, default: null }, size: { type: String, default: "" }, tableName: { type: String, default: null }, isJoinTable: { type: Boolean, default: false }, departmentInfo: { type: Array, default: null }, separator: { type: String, default: "," }, openTree: { type: Boolean, default: true }, pageModels: { type: Object, default: null }, limitFilterColumn: { type: String, default: "code" } }, data: () => ({ showOrganizationTreeFlag: false, isAppendResult: false, showRemoveComponent: false, selectOrganizationInfo: null, searchField: null, selectOrganizationAllInfo: {} }), created() {
|
|
5
|
-
}, methods: { changeEvent(e2) {
|
|
6
|
-
this.$emit("change", e2);
|
|
7
|
-
}, showOrganizationTree() {
|
|
8
|
-
if (this.openTree) {
|
|
9
|
-
let e2 = this.multiple;
|
|
10
|
-
void 0 === e2 && (e2 = false), true === e2 && this.getSelectInfo(), this.$emit("focus"), this.showOrganizationTreeFlag = true, this.$emit("show-tree");
|
|
11
|
-
}
|
|
12
|
-
}, getPropName: (e2, i2, n2) => (e2 && e2.startsWith("${") && (e2 = e2.substring(e2.indexOf(".") + 1, e2.length - 1)), t.getPropNameWhenJoinTable(e2, i2, n2)), getPropType(e2) {
|
|
13
|
-
let t2 = "data";
|
|
14
|
-
return e2 && e2.startsWith("${") && (t2 = e2.substring(2, e2.indexOf("."))), t2;
|
|
15
|
-
}, emptyOrganizationResult() {
|
|
16
|
-
const e2 = this.fields;
|
|
17
|
-
e2 && e2.length > 0 && (e2.forEach((e3) => {
|
|
18
|
-
const t2 = this.getPropName(e3.model), i2 = this.getPropType(e3.model);
|
|
19
|
-
this.setValue(t2, null, i2);
|
|
20
|
-
}), this.selectOrganizationAllInfo = {}, this.selectOrganizationInfo = null, this.searchField = null);
|
|
21
|
-
}, closeOrganizationTree(e2) {
|
|
22
|
-
e2 && this.setOrganizationData(e2), this.showOrganizationTreeFlag = false;
|
|
23
|
-
}, setOrganizationData(e2, t2, i2) {
|
|
24
|
-
let n2 = this.multiple;
|
|
25
|
-
void 0 === n2 && (n2 = false);
|
|
26
|
-
const o2 = this.treeType, r2 = this.fields;
|
|
27
|
-
r2 && r2.length > 0 && r2.forEach((r3) => {
|
|
28
|
-
const l2 = r3.type, a2 = this.getOrgSelectData(l2, e2, this.isUserTree(o2), n2), s2 = this.getPropName(r3.model), p = this.getPropType(r3.model);
|
|
29
|
-
this.getOrgDataModel(s2, a2, n2, l2, t2, i2, p);
|
|
30
|
-
});
|
|
31
|
-
}, getOrgDataModel(e2, t2, i2, n2, o2, r2, l2) {
|
|
32
|
-
if (i2) {
|
|
33
|
-
const i3 = this.getModelValue(e2, l2);
|
|
34
|
-
this.selectOrganizationAllInfo[n2] = t2, this.setValue(e2, t2, l2), this.$emit("replace", e2, i3, t2);
|
|
35
|
-
} else
|
|
36
|
-
this.setValue(e2, t2, l2);
|
|
37
|
-
}, getModelValue(e2, t2) {
|
|
38
|
-
let i2 = this.models;
|
|
39
|
-
t2 && "page" === t2 && (i2 = this.pageModels);
|
|
40
|
-
let n2 = "";
|
|
41
|
-
if (false === this.isJoinTable && e2 && e2.indexOf(".") > 0) {
|
|
42
|
-
n2 = this.getParentObject(e2, i2)[e2.substring(e2.lastIndexOf(".") + 1)];
|
|
43
|
-
} else {
|
|
44
|
-
const o2 = this.getPropName(e2);
|
|
45
|
-
n2 = t2 && "page" === t2 ? i2 ? i2[o2] : null : i2[o2];
|
|
46
|
-
}
|
|
47
|
-
return n2;
|
|
48
|
-
}, isUserTree: (e2) => "DeptUserTree" === e2 || "WgUserTree" === e2, getOrgSelectData(e2, t2, i2, n2) {
|
|
49
|
-
if (true !== n2) {
|
|
50
|
-
if ("mainDeptName" === e2) {
|
|
51
|
-
let e3 = null;
|
|
52
|
-
if (i2) {
|
|
53
|
-
const i3 = t2.user;
|
|
54
|
-
i3 && (e3 = i3.mainDepartmentName);
|
|
55
|
-
}
|
|
56
|
-
return e3;
|
|
57
|
-
}
|
|
58
|
-
if ("mainDeptId" === e2) {
|
|
59
|
-
let e3 = null;
|
|
60
|
-
if (i2) {
|
|
61
|
-
const i3 = t2.user;
|
|
62
|
-
i3 && (e3 = i3.mainDepartmentId);
|
|
63
|
-
}
|
|
64
|
-
return e3;
|
|
65
|
-
}
|
|
66
|
-
if ("mainDeptCode" === e2 || "mainDeptName" === e2) {
|
|
67
|
-
const n3 = "mainDeptCode" === e2 ? "mainDepartmentCode" : "mainDepartmentName";
|
|
68
|
-
let o2 = null;
|
|
69
|
-
if (i2) {
|
|
70
|
-
const e3 = t2.user;
|
|
71
|
-
e3 && (o2 = e3[n3]);
|
|
72
|
-
}
|
|
73
|
-
return o2;
|
|
74
|
-
}
|
|
75
|
-
if ("subCompanyName" === e2) {
|
|
76
|
-
let e3 = null;
|
|
77
|
-
if (i2) {
|
|
78
|
-
const i3 = t2.user;
|
|
79
|
-
i3 && (e3 = i3.subCompanyName);
|
|
80
|
-
}
|
|
81
|
-
return e3;
|
|
82
|
-
}
|
|
83
|
-
if ("subCompanyId" === e2) {
|
|
84
|
-
let e3 = null;
|
|
85
|
-
if (i2) {
|
|
86
|
-
const i3 = t2.user;
|
|
87
|
-
i3 && (e3 = i3.subCompanyId);
|
|
88
|
-
}
|
|
89
|
-
return e3;
|
|
90
|
-
}
|
|
91
|
-
return t2[e2];
|
|
92
|
-
}
|
|
93
|
-
if ("id" === e2)
|
|
94
|
-
return i2 ? t2.userIds.join(this.separator) : t2.ids.join(this.separator);
|
|
95
|
-
if ("name" === e2)
|
|
96
|
-
return i2 ? t2.userNames.join(this.separator) : t2.names.join(this.separator);
|
|
97
|
-
if ("code" === e2) {
|
|
98
|
-
if (!i2)
|
|
99
|
-
return t2.codes.join(this.separator);
|
|
100
|
-
} else {
|
|
101
|
-
if ("loginName" === e2)
|
|
102
|
-
return t2.loginNames.join(this.separator);
|
|
103
|
-
if ("email" === e2)
|
|
104
|
-
return t2.emails.join(this.separator);
|
|
105
|
-
if ("telephone" === e2)
|
|
106
|
-
return t2.telephones.join(this.separator);
|
|
107
|
-
if ("mainDeptName" === e2) {
|
|
108
|
-
const e3 = [];
|
|
109
|
-
if (i2) {
|
|
110
|
-
const i3 = t2.users;
|
|
111
|
-
i3 && i3.forEach((t3) => {
|
|
112
|
-
e3.push(t3.mainDepartmentName);
|
|
113
|
-
});
|
|
114
|
-
}
|
|
115
|
-
return e3.join(this.separator);
|
|
116
|
-
}
|
|
117
|
-
if ("mainDeptId" === e2) {
|
|
118
|
-
const e3 = [];
|
|
119
|
-
if (i2) {
|
|
120
|
-
const i3 = t2.users;
|
|
121
|
-
i3 && i3.forEach((t3) => {
|
|
122
|
-
t3.mainDepartmentId && e3.push(t3.mainDepartmentId);
|
|
123
|
-
});
|
|
124
|
-
}
|
|
125
|
-
return e3.join(this.separator);
|
|
126
|
-
}
|
|
127
|
-
if ("mainDeptCode" === e2 || "mainDeptName" === e2) {
|
|
128
|
-
const n3 = [], o2 = "mainDeptCode" === e2 ? "mainDepartmentCode" : "mainDepartmentName";
|
|
129
|
-
if (i2) {
|
|
130
|
-
const e3 = t2.users;
|
|
131
|
-
e3 && e3.forEach((e4) => {
|
|
132
|
-
e4[o2] && n3.push(e4[o2]);
|
|
133
|
-
});
|
|
134
|
-
}
|
|
135
|
-
return n3.join(this.separator);
|
|
136
|
-
}
|
|
137
|
-
if ("subCompanyName" === e2) {
|
|
138
|
-
const e3 = [];
|
|
139
|
-
if (i2) {
|
|
140
|
-
const i3 = t2.users;
|
|
141
|
-
i3 && i3.forEach((t3) => {
|
|
142
|
-
t3.subCompanyName && e3.push(t3.subCompanyName);
|
|
143
|
-
});
|
|
144
|
-
}
|
|
145
|
-
return e3.join(this.separator);
|
|
146
|
-
}
|
|
147
|
-
if ("subCompanyId" === e2 || "subCompanyCode" === e2) {
|
|
148
|
-
const n3 = [];
|
|
149
|
-
if (i2) {
|
|
150
|
-
const i3 = t2.users;
|
|
151
|
-
i3 && i3.forEach((t3) => {
|
|
152
|
-
t3[e2] && n3.push(t3[e2]);
|
|
153
|
-
});
|
|
154
|
-
}
|
|
155
|
-
return n3.join(this.separator);
|
|
156
|
-
}
|
|
157
|
-
if ("divisionManager" === e2 || "divisionManagerName" === e2) {
|
|
158
|
-
let n3 = [];
|
|
159
|
-
return i2 && t2[e2] && t2[e2].length > 0 && (n3 = t2[e2]), n3 && n3.length > 0 ? n3.join(this.separator) : null;
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
}, showMyRemoveComponent() {
|
|
163
|
-
this.getSelectInfo(), this.selectOrganizationInfo && null !== this.selectOrganizationInfo && "" !== this.selectOrganizationInfo ? this.showRemoveComponent = true : this.$message({ showClose: true, type: "warning", message: this.$t("imatrixUIMessage.organizationTreeNoResultNotRemove") });
|
|
164
|
-
}, getSelectInfo() {
|
|
165
|
-
const e2 = ["id", "code", "loginName", "email", "telephone", "name"];
|
|
166
|
-
if (0 === Object.keys(this.selectOrganizationAllInfo).length)
|
|
167
|
-
for (let t2 = 0; t2 < e2.length; t2++) {
|
|
168
|
-
const i2 = e2[t2], n2 = this.fields.filter((e3) => e3.type === i2);
|
|
169
|
-
if (n2 && n2.length > 0) {
|
|
170
|
-
const e3 = n2[0];
|
|
171
|
-
if (e3) {
|
|
172
|
-
const t3 = this.getPropName(e3.model), n3 = this.getPropType(e3.model), o2 = this.getModelValue(t3, n3);
|
|
173
|
-
if (o2 && null !== o2 && "" !== o2) {
|
|
174
|
-
this.selectOrganizationInfo = o2, this.searchField = i2;
|
|
175
|
-
break;
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
else
|
|
181
|
-
for (let t2 = 0; t2 < e2.length; t2++) {
|
|
182
|
-
const i2 = e2[t2], n2 = this.selectOrganizationAllInfo[i2];
|
|
183
|
-
if (n2 && null !== n2 && "" !== n2) {
|
|
184
|
-
this.selectOrganizationInfo = n2, this.searchField = i2;
|
|
185
|
-
break;
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
}, setValue(e2, t2, i2) {
|
|
189
|
-
i2 || (i2 = this.getPropType(e2));
|
|
190
|
-
let n2 = this.models;
|
|
191
|
-
i2 && "page" === i2 && (n2 = this.pageModels), this.setEntityValue(e2, t2, n2);
|
|
192
|
-
}, setEntityValue(e2, i2, n2) {
|
|
193
|
-
if (n2) {
|
|
194
|
-
if (false === this.isJoinTable && e2 && e2.indexOf(".") > 0) {
|
|
195
|
-
const o2 = this.getParentObject(e2, n2);
|
|
196
|
-
o2 && t.setEntityFieldValue(o2, e2.substring(e2.lastIndexOf(".") + 1), i2);
|
|
197
|
-
} else {
|
|
198
|
-
const o2 = this.getPropName(e2);
|
|
199
|
-
t.setEntityFieldValue(n2, o2, i2);
|
|
200
|
-
}
|
|
201
|
-
this.$emit("setValue", e2, i2), null != i2 && "" !== i2 || this.$emit("clear", e2);
|
|
202
|
-
}
|
|
203
|
-
}, getParentObject(e2, t2) {
|
|
204
|
-
const i2 = e2.split(".");
|
|
205
|
-
if (1 === i2.length)
|
|
206
|
-
return t2;
|
|
207
|
-
{
|
|
208
|
-
let e3;
|
|
209
|
-
for (let n2 = 0; n2 < i2.length - 1; n2++)
|
|
210
|
-
e3 = 0 === n2 ? this.getParentModelProp(i2[n2], t2) : this.getParentModelProp(i2[n2], e3);
|
|
211
|
-
return e3;
|
|
212
|
-
}
|
|
213
|
-
}, getParentModelProp: (e2, t2) => (t2 || (t2 = {}), t2[e2] || (t2[e2] = {}), t2[e2]) }, emits: ["replace", "setValue", "clear", "focus", "update:value", "change"] }, a = { style: { width: "100%" }, class: "organization-input" };
|
|
214
|
-
const s = r(l, [["render", function(e2, t2, i2, n2, r2, l2) {
|
|
215
|
-
const s2 = o.resolveComponent("el-icon-search"), p = o.resolveComponent("el-icon"), c = o.resolveComponent("el-icon-delete"), u = o.resolveComponent("el-input"), m = o.resolveComponent("department-user-tree"), h = o.resolveComponent("department-tree"), d = o.resolveComponent("workgroup-tree"), f = o.resolveComponent("workgroup-user-tree");
|
|
216
|
-
return o.openBlock(), o.createElementBlock("span", a, [i2.disabled ? (o.openBlock(), o.createBlock(u, { key: 0, disabled: true, "model-value": i2.value, readonly: true, size: i2.size, type: "text", placeholder: e2.$t("imatrixUIMessage.pleaseSelect") }, { append: o.withCtx(() => [o.createVNode(p, { class: "el-input__icon" }, { suffix: o.withCtx(() => [o.createVNode(s2)]), _: 1 }), o.createVNode(p, { class: "el-input__icon" }, { suffix: o.withCtx(() => [o.createVNode(c)]), _: 1 })]), _: 1 }, 8, ["model-value", "size", "placeholder"])) : (o.openBlock(), o.createBlock(u, { key: 1, "model-value": i2.value, readonly: true, size: i2.size, type: "text", placeholder: e2.$t("imatrixUIMessage.pleaseSelect"), onClick: t2[2] || (t2[2] = (e3) => l2.showOrganizationTree(false)), onChange: l2.changeEvent }, { append: o.withCtx(() => [o.createVNode(p, { class: "el-input__icon", onClick: t2[0] || (t2[0] = (e3) => l2.showOrganizationTree(false)) }, { default: o.withCtx(() => [o.createVNode(s2)]), _: 1 }), o.createVNode(p, { class: "el-input__icon", onClick: t2[1] || (t2[1] = (e3) => l2.emptyOrganizationResult()) }, { default: o.withCtx(() => [o.createVNode(c)]), _: 1 })]), _: 1 }, 8, ["model-value", "size", "placeholder", "onChange"])), i2.treeType && "DeptUserTree" === i2.treeType && r2.showOrganizationTreeFlag ? (o.openBlock(), o.createBlock(m, { key: 2, "department-info": i2.departmentInfo, multiple: void 0 !== i2.multiple && i2.multiple, "search-field": r2.searchField, "select-user-info": r2.selectOrganizationInfo, separator: i2.separator, "limit-filter-column": i2.limitFilterColumn, onClose: l2.closeOrganizationTree }, null, 8, ["department-info", "multiple", "search-field", "select-user-info", "separator", "limit-filter-column", "onClose"])) : o.createCommentVNode("", true), i2.treeType && "DeptTree" === i2.treeType && r2.showOrganizationTreeFlag ? (o.openBlock(), o.createBlock(h, { key: 3, "check-strictly": void 0 !== i2.checkStrictly && i2.checkStrictly, multiple: void 0 !== i2.multiple && i2.multiple, "search-field": r2.searchField, "department-info": i2.departmentInfo, "select-department-info": r2.selectOrganizationInfo, separator: i2.separator, "limit-filter-column": i2.limitFilterColumn, width: "30%", onClose: l2.closeOrganizationTree }, null, 8, ["check-strictly", "multiple", "search-field", "department-info", "select-department-info", "separator", "limit-filter-column", "onClose"])) : o.createCommentVNode("", true), i2.treeType && "WgTree" === i2.treeType && r2.showOrganizationTreeFlag ? (o.openBlock(), o.createBlock(d, { key: 4, multiple: void 0 !== i2.multiple && i2.multiple, "branch-info": i2.departmentInfo, "search-field": r2.searchField, "select-workgroup-info": r2.selectOrganizationInfo, separator: i2.separator, "limit-filter-column": i2.limitFilterColumn, width: "30%", onClose: l2.closeOrganizationTree }, null, 8, ["multiple", "branch-info", "search-field", "select-workgroup-info", "separator", "limit-filter-column", "onClose"])) : o.createCommentVNode("", true), i2.treeType && "WgUserTree" === i2.treeType && r2.showOrganizationTreeFlag ? (o.openBlock(), o.createBlock(f, { key: 5, "branch-info": i2.departmentInfo, multiple: void 0 !== i2.multiple && i2.multiple, "search-field": r2.searchField, "select-user-info": r2.selectOrganizationInfo, separator: i2.separator, "limit-filter-column": i2.limitFilterColumn, width: "30%", onClose: l2.closeOrganizationTree }, null, 8, ["branch-info", "multiple", "search-field", "select-user-info", "separator", "limit-filter-column", "onClose"])) : o.createCommentVNode("", true)]);
|
|
217
|
-
}]]);
|
|
218
|
-
module.exports = s;
|
|
@@ -1,229 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const e = require("element-plus"), t = require("../src/utils/util.cjs"), n = require("../super-grid/src/store.cjs"), o = require("../super-grid/src/utils.cjs"), r = require("../super-nine-grid/src/store.cjs"), s = require("../utils/value-set.cjs"), a = require("../src/utils/common-util.cjs"), i = require("../src/utils/watermark.cjs");
|
|
3
|
-
function l(e2) {
|
|
4
|
-
let t2 = null, o2 = e2;
|
|
5
|
-
return e2 && null !== e2 && "" !== e2 || (o2 = n.get("_list_code")), t2 = n.get(o2), null == t2 && (e2 && null !== e2 && "" !== e2 || (o2 = r.get("_nine_list_code")), o2 && o2.indexOf("~") < 0 && (o2 += "~_nineGrid"), t2 = r.get(o2)), t2;
|
|
6
|
-
}
|
|
7
|
-
function c(e2) {
|
|
8
|
-
let t2 = {};
|
|
9
|
-
const n2 = l(e2);
|
|
10
|
-
if (null != n2) {
|
|
11
|
-
const e3 = Object.assign({}, n2.searchParam), r2 = { currentPage: 1, pageSize: 99999999, showTotal: false };
|
|
12
|
-
if (t2 = e3, e3.pagination = r2, n2.options.extraParam) {
|
|
13
|
-
let r3;
|
|
14
|
-
t2 = o.getExtraParam(e3, n2);
|
|
15
|
-
const s2 = n2.options.parentProp;
|
|
16
|
-
void 0 !== s2 && "" !== s2 && null !== s2 && (r3 = s2), r3 && e3 && e3.searchForm && e3.searchForm.length > 0 && (t2.listViewTreeSetting = null);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
return t2;
|
|
20
|
-
}
|
|
21
|
-
function u(t2, n2, o2) {
|
|
22
|
-
setTimeout(() => {
|
|
23
|
-
window.$vueApp.config.globalProperties.$http.post(window.$vueApp.config.globalProperties.baseURL + "/dsc/commons/get-file-uuid/" + t2, n2).then((r2) => {
|
|
24
|
-
if (r2)
|
|
25
|
-
if (!r2.code || "ok" !== r2.code && "error" !== r2.code)
|
|
26
|
-
u(t2, n2, o2);
|
|
27
|
-
else {
|
|
28
|
-
if ("ok" === r2.code)
|
|
29
|
-
return localStorage.setItem(t2, "ok"), w(window.$vueApp.config.globalProperties.baseAPI + "/component/super-grids/downloads?fileName=" + encodeURI(r2.fileName) + "&uuid=" + t2 + "&_t=" + (/* @__PURE__ */ new Date()).getTime(), o2);
|
|
30
|
-
localStorage.setItem(t2, "error"), e.ElMessage({ message: r2.message, type: "error", showClose: true });
|
|
31
|
-
}
|
|
32
|
-
else
|
|
33
|
-
localStorage.setItem(t2, "ok");
|
|
34
|
-
}).catch(() => {
|
|
35
|
-
localStorage.setItem(t2, "error");
|
|
36
|
-
});
|
|
37
|
-
}, 5e3);
|
|
38
|
-
}
|
|
39
|
-
function p(e2) {
|
|
40
|
-
return new Promise((t2, n2) => {
|
|
41
|
-
let o2 = e2.exportData.excelName;
|
|
42
|
-
o2 && null !== o2 && "" !== o2 ? o2 += ".xlsx" : o2 = "default.xlsx", window.$vueApp.config.globalProperties.$http.post(window.$vueApp.config.globalProperties.baseAPI + "/component/super-grids/exports", e2).then((e3) => w(window.$vueApp.config.globalProperties.baseAPI + "/component/super-grids/downloads?fileName=" + encodeURI(e3) + "&_t=" + (/* @__PURE__ */ new Date()).getTime(), o2)).then((e3) => {
|
|
43
|
-
t2(e3);
|
|
44
|
-
}).catch((e3) => {
|
|
45
|
-
n2(e3);
|
|
46
|
-
});
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
function g(e2) {
|
|
50
|
-
let t2 = [];
|
|
51
|
-
return e2.forEach((e3) => {
|
|
52
|
-
if (e3.children && e3.children.length > 0) {
|
|
53
|
-
const n2 = g(e3.children), o2 = Object.assign({}, e3);
|
|
54
|
-
n2 && n2.length > 0 && (o2.exportable = true, o2.children = n2, t2.push(o2));
|
|
55
|
-
} else
|
|
56
|
-
e3.exportable && true === e3.exportable && t2.push(e3);
|
|
57
|
-
}), t2;
|
|
58
|
-
}
|
|
59
|
-
function d(e2, t2, n2, o2) {
|
|
60
|
-
return t2 && null !== t2 && "" !== t2 || (t2 = n2), { exportColumns: o2, exportData: m(e2, t2) };
|
|
61
|
-
}
|
|
62
|
-
function m(e2, t2) {
|
|
63
|
-
return { excelName: t2, exportSheetData: [{ data: e2, sheetName: t2 }] };
|
|
64
|
-
}
|
|
65
|
-
function f(e2, t2) {
|
|
66
|
-
return null != t2 && void 0 !== t2[e2];
|
|
67
|
-
}
|
|
68
|
-
function w(e2, t2) {
|
|
69
|
-
return new Promise((n2, o2) => {
|
|
70
|
-
window.$vueApp.config.globalProperties.$http({ method: "GET", url: e2, responseType: "blob" }).then((e3) => {
|
|
71
|
-
const o3 = new Blob([e3]);
|
|
72
|
-
if (window.navigator.msSaveOrOpenBlob)
|
|
73
|
-
navigator.msSaveBlob(o3, t2);
|
|
74
|
-
else {
|
|
75
|
-
const e4 = document.createElement("a");
|
|
76
|
-
document.createEvent("HTMLEvents").initEvent("click", false, false), e4.href = URL.createObjectURL(o3), e4.download = t2, e4.style.display = "none", document.body.appendChild(e4), e4.click(), window.URL.revokeObjectURL(e4.href);
|
|
77
|
-
}
|
|
78
|
-
n2(true);
|
|
79
|
-
}).catch((e3) => {
|
|
80
|
-
o2(e3);
|
|
81
|
-
});
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
const h = { exportData: function(o2, m2, h2, x, b, C, P, I, k) {
|
|
85
|
-
return new Promise((v, y) => {
|
|
86
|
-
(function(o3, m3, h3, x2, b2, C2, P2, I2, k2) {
|
|
87
|
-
return new Promise((v2, y2) => {
|
|
88
|
-
if (n.get(h3 + "basicInfo")) {
|
|
89
|
-
const e2 = n.get(h3 + "basicInfo");
|
|
90
|
-
e2 && e2.i18nLable && (m3 = e2.i18nLable);
|
|
91
|
-
}
|
|
92
|
-
let E = true;
|
|
93
|
-
f("beforeExport", x2) && "function" == typeof x2.beforeExport && (E = x2.beforeExport.call(this)), E ? o3 && o3.hasOwnProperty("url") ? (function(o4, a2, i2) {
|
|
94
|
-
return new Promise((u2, m4) => {
|
|
95
|
-
const f2 = function(e2) {
|
|
96
|
-
if (null != e2 && "" !== e2)
|
|
97
|
-
return e2;
|
|
98
|
-
let t2 = e2;
|
|
99
|
-
e2 && null !== e2 && "" !== e2 || (t2 = n.get("_list_code"));
|
|
100
|
-
null != t2 && "" !== t2 || (t2 = r.get("_nine_list_code"), t2 && t2.indexOf("~") < 0 && (t2 += "~_nineGrid"));
|
|
101
|
-
t2 && t2.indexOf("~") > 0 && (t2 = t2.substring(0, t2.indexOf("~")));
|
|
102
|
-
return t2;
|
|
103
|
-
}(i2);
|
|
104
|
-
let w2 = c(i2);
|
|
105
|
-
const h4 = o4.url;
|
|
106
|
-
o4.hasOwnProperty("param") && (w2 = Object.assign(w2, o4.param)), window.$vueApp.config.globalProperties.$http.post(h4, w2).then((n2) => {
|
|
107
|
-
let o5;
|
|
108
|
-
if (n2 instanceof Array) {
|
|
109
|
-
const e2 = {};
|
|
110
|
-
e2._data = n2, o5 = JSON.stringify(e2);
|
|
111
|
-
} else
|
|
112
|
-
o5 = JSON.stringify(n2);
|
|
113
|
-
return function(n3, o6, r2) {
|
|
114
|
-
return new Promise((a3, i3) => {
|
|
115
|
-
const c2 = l(r2);
|
|
116
|
-
if (void 0 !== c2)
|
|
117
|
-
if (c2.columns) {
|
|
118
|
-
const s2 = g(c2.columns);
|
|
119
|
-
0 === s2.length ? (e.ElMessage({ message: t.getI18n().t("imatrixUIMessage.noExportColumnsConfigured"), type: "warning", showClose: true }), a3(false)) : p(d(n3, o6, r2, s2)).then((e2) => {
|
|
120
|
-
a3(e2);
|
|
121
|
-
}).catch((e2) => {
|
|
122
|
-
i3(e2);
|
|
123
|
-
});
|
|
124
|
-
} else
|
|
125
|
-
e.ElMessage({ message: t.getI18n().t("imatrixUIMessage.noExportColumnsConfigured"), type: "warning", showClose: true }), a3(false);
|
|
126
|
-
else
|
|
127
|
-
(function(n4, o7, r3, a4) {
|
|
128
|
-
return new Promise((i4, l2) => {
|
|
129
|
-
const c3 = {};
|
|
130
|
-
a4 && "" !== a4 && (c3.additionalParamMap = a4), window.$vueApp.config.globalProperties.$http.post(window.$vueApp.config.globalProperties.baseAPI + "/component/super-grids/" + r3 + "/export-columns", c3).then((a5) => {
|
|
131
|
-
s.packageEnumAndBeanColumnValueSets(a5, r3).then(() => {
|
|
132
|
-
0 === a5.length ? (e.ElMessage({ message: t.getI18n().t("imatrixUIMessage.noExportColumnsConfigured"), type: "warning", showClose: true }), i4(false)) : p(d(n4, o7, r3, a5)).then((e2) => {
|
|
133
|
-
i4(e2);
|
|
134
|
-
}).catch((e2) => {
|
|
135
|
-
l2(e2);
|
|
136
|
-
});
|
|
137
|
-
}).catch((e2) => {
|
|
138
|
-
l2(e2);
|
|
139
|
-
});
|
|
140
|
-
}).catch((e2) => {
|
|
141
|
-
l2(e2);
|
|
142
|
-
});
|
|
143
|
-
});
|
|
144
|
-
})(n3, o6, r2).then((e2) => {
|
|
145
|
-
a3(e2);
|
|
146
|
-
}).catch((e2) => {
|
|
147
|
-
i3(e2);
|
|
148
|
-
});
|
|
149
|
-
});
|
|
150
|
-
}(o5, a2, f2);
|
|
151
|
-
}).then((e2) => {
|
|
152
|
-
u2(e2);
|
|
153
|
-
}).catch((e2) => {
|
|
154
|
-
m4(e2);
|
|
155
|
-
});
|
|
156
|
-
});
|
|
157
|
-
}(o3, m3, h3).then((e2) => {
|
|
158
|
-
v2(e2);
|
|
159
|
-
}).catch((e2) => {
|
|
160
|
-
y2(e2);
|
|
161
|
-
}), x2.pageContext && (x2.pageContext.canClick = true)) : (o3 && o3.hasOwnProperty("data") && o3.data, function(n2, o4, r2, s2, p2, d2, m4, f2, h4) {
|
|
162
|
-
return new Promise(async (x3, b3) => {
|
|
163
|
-
const C3 = l(o4);
|
|
164
|
-
if (null == C3)
|
|
165
|
-
b3("导出失败");
|
|
166
|
-
else {
|
|
167
|
-
const l2 = c(o4);
|
|
168
|
-
if (l2.data = r2, C3.columns && (l2.exportColumns = g(C3.columns)), l2.exportData = { excelName: n2 }, n2 && null !== n2 && "" !== n2 ? n2 += ".xlsx" : n2 = "default.xlsx", !s2)
|
|
169
|
-
return void e.ElMessage({ message: t.getI18n().t("imatrixUIMessage.theButtonIsNotBoundToAResource"), type: "error", showClose: true });
|
|
170
|
-
l2.functionCode = s2, p2 && (l2.uuid = p2);
|
|
171
|
-
const P3 = function(e2) {
|
|
172
|
-
if (e2 && e2.basicInfo && e2.basicInfo.systemCode)
|
|
173
|
-
return e2.basicInfo.systemCode;
|
|
174
|
-
}(C3);
|
|
175
|
-
l2.systemCode = P3, localStorage.setItem(p2, "start"), l2.async = d2, l2.pageCode = m4, l2.isPermission = f2;
|
|
176
|
-
let I3 = false;
|
|
177
|
-
const k3 = await i.getWatermarkSetting();
|
|
178
|
-
k3 && k3.useRange && k3.useRange.indexOf("annex") >= 0 && (I3 = void 0 === h4.isShowWatermark || null === h4.isShowWatermark ? "true" : h4.isShowWatermark), l2.isShowWatermark = I3;
|
|
179
|
-
let v3 = h4.watermarkContent;
|
|
180
|
-
!v3 && k3 && (v3 = k3.content), v3 || (v3 = ""), v3 && (l2.watermarkContent = v3), h4 && h4.currentOperation && (l2.currentOperation = h4.currentOperation);
|
|
181
|
-
let y3 = h4 ? h4.backendUrl : null;
|
|
182
|
-
y3 || (y3 = window.$vueApp.config.globalProperties.baseURL), y3 = a.getRelativeBaseUrl(y3), window.$vueApp.config.globalProperties.$http.post(y3 + "/dsc/commons/export-list-data", l2).then(async (o5) => {
|
|
183
|
-
if (h4.pageContext && (h4.pageContext.canClick = true), d2) {
|
|
184
|
-
const n3 = t.getI18n().t("imatrixUIMessage.asyncExport"), o6 = function() {
|
|
185
|
-
let e2;
|
|
186
|
-
const t2 = window.$vueApp.config.globalProperties.baseAPI;
|
|
187
|
-
if (t2) {
|
|
188
|
-
const n4 = t2.split("/");
|
|
189
|
-
e2 = n4[0] + "//" + n4[2] + "/document-center/#/file-task/file-export-task/list";
|
|
190
|
-
}
|
|
191
|
-
return e2;
|
|
192
|
-
}();
|
|
193
|
-
let r3;
|
|
194
|
-
if (o6) {
|
|
195
|
-
r3 = "<p><span>" + n3 + "</span>";
|
|
196
|
-
r3 += `<a href="javascript:void(0);" style="color: #1800ff;font-weight: bold;text-decoration:underline" onclick="window.open('` + o6 + `')">` + t.getI18n().t("imatrixUIMessage.asyncExportJumpMsg") + "</a>", r3 += "</p>";
|
|
197
|
-
}
|
|
198
|
-
r3 ? e.ElMessage({ showClose: true, dangerouslyUseHTMLString: true, message: r3, type: "success", duration: 1e4 }) : e.ElMessage({ showClose: true, message: n3, type: "success", duration: 5e3 }), localStorage.setItem(p2, "ok");
|
|
199
|
-
} else {
|
|
200
|
-
if (o5.indexOf("~~") >= 0) {
|
|
201
|
-
let e2 = false;
|
|
202
|
-
const t2 = await i.getWatermarkSetting();
|
|
203
|
-
t2 && t2.useRange && t2.useRange.indexOf("annex") >= 0 && (e2 = void 0 === h4.isShowWatermark || null === h4.isShowWatermark ? "true" : h4.isShowWatermark);
|
|
204
|
-
let r3 = h4.watermarkContent;
|
|
205
|
-
return !r3 && t2 && (r3 = t2.content), r3 || (r3 = ""), localStorage.setItem(p2, "ok"), w(window.$vueApp.config.globalProperties.baseAPI + "/component/super-grids/downloads?fileName=" + encodeURI(o5) + "&isShowWatermark=" + e2 + "&watermark=" + encodeURI(r3) + "&_t=" + (/* @__PURE__ */ new Date()).getTime(), n2);
|
|
206
|
-
}
|
|
207
|
-
u(o5, l2, n2);
|
|
208
|
-
}
|
|
209
|
-
}).then((e2) => {
|
|
210
|
-
x3(e2);
|
|
211
|
-
}).catch((e2) => {
|
|
212
|
-
h4.pageContext && (h4.pageContext.canClick = true), localStorage.setItem(p2, "error"), b3(e2);
|
|
213
|
-
});
|
|
214
|
-
}
|
|
215
|
-
});
|
|
216
|
-
}(m3, h3, o3.data, b2, C2, P2, I2, k2, x2).then((e2) => {
|
|
217
|
-
x2.pageContext && (x2.pageContext.canClick = true), v2(e2);
|
|
218
|
-
}).catch((e2) => {
|
|
219
|
-
x2.pageContext && (x2.pageContext.canClick = true), y2(e2);
|
|
220
|
-
})) : (x2.pageContext && (x2.pageContext.canClick = true), v2(false));
|
|
221
|
-
});
|
|
222
|
-
})(o2, m2, h2, C, x, b, P, I, k).then((e2) => {
|
|
223
|
-
f("afterExport", C) && "function" == typeof C.afterExport && C.afterExport.call(this), v(e2);
|
|
224
|
-
}).catch((e2) => {
|
|
225
|
-
f("exportError", C) && "function" == typeof C.exportError && C.exportError.call(this), y(e2);
|
|
226
|
-
});
|
|
227
|
-
});
|
|
228
|
-
}, download: w };
|
|
229
|
-
module.exports = h;
|