agilebuilder-ui 1.1.65-tmp14 → 1.1.65-tmp15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/IntervalSelection/index.js +7 -5
- package/lib/IntervalSelection/src/sectionDate.vue.js +21 -17
- package/lib/IntervalSelection/src/sectionDate.vue2.js +4 -2
- package/lib/_virtual/__vite-browser-external.js +4 -2
- package/lib/_virtual/_plugin-vue_export-helper.js +8 -6
- package/lib/breadcrumb/index.js +5 -3
- package/lib/breadcrumb/src/breadcrumb.vue.js +19 -28
- package/lib/breadcrumb/src/breadcrumb.vue2.js +4 -2
- package/lib/chat-embed/index.js +5 -3
- package/lib/chat-embed/src/chat-addition-data.vue.js +7 -5
- package/lib/chat-embed/src/chat-addition-data.vue2.js +13 -11
- package/lib/chat-embed/src/chat-addition-data.vue3.js +4 -2
- package/lib/chat-embed/src/chat-ai-answer-tip.vue.js +7 -5
- package/lib/chat-embed/src/chat-ai-answer-tip.vue2.js +20 -17
- package/lib/chat-embed/src/chat-ai-answer-tip.vue3.js +4 -2
- package/lib/chat-embed/src/chat-bubble-footer.vue.js +7 -5
- package/lib/chat-embed/src/chat-bubble-footer.vue2.js +22 -17
- package/lib/chat-embed/src/chat-bubble-footer.vue3.js +4 -2
- package/lib/chat-embed/src/chat-embed-message.js +20 -14
- package/lib/chat-embed/src/chat-sender.vue.js +7 -5
- package/lib/chat-embed/src/chat-sender.vue2.js +123 -110
- package/lib/chat-embed/src/chat-sender.vue3.js +4 -2
- package/lib/chat-embed/src/components/answer-auto-chart.vue.js +7 -5
- package/lib/chat-embed/src/components/answer-auto-chart.vue2.js +50 -42
- package/lib/chat-embed/src/components/answer-auto-chart.vue3.js +4 -2
- package/lib/chat-embed/src/components/answer-home-chart.vue.js +7 -5
- package/lib/chat-embed/src/components/answer-home-chart.vue2.js +6 -3
- package/lib/chat-embed/src/components/answer-home-chart.vue3.js +4 -2
- package/lib/chat-embed/src/components/answer-interaction-data.vue.js +7 -5
- package/lib/chat-embed/src/components/answer-interaction-data.vue2.js +84 -74
- package/lib/chat-embed/src/components/answer-interaction-data.vue3.js +4 -2
- package/lib/chat-embed/src/components/history-detail.vue.js +7 -5
- package/lib/chat-embed/src/components/history-detail.vue2.js +32 -27
- package/lib/chat-embed/src/components/history-detail.vue3.js +4 -2
- package/lib/chat-embed/src/header.vue.js +7 -5
- package/lib/chat-embed/src/header.vue2.js +32 -25
- package/lib/chat-embed/src/header.vue3.js +4 -2
- package/lib/chat-embed/src/index.vue.js +7 -5
- package/lib/chat-embed/src/index.vue2.js +211 -185
- package/lib/chat-embed/src/index.vue3.js +4 -2
- package/lib/chat-embed/src/recommendation-message.vue.js +7 -5
- package/lib/chat-embed/src/recommendation-message.vue2.js +8 -5
- package/lib/chat-embed/src/recommendation-message.vue3.js +4 -2
- package/lib/chat-embed/src/sidebar-item.vue.js +7 -5
- package/lib/chat-embed/src/sidebar-item.vue2.js +93 -84
- package/lib/chat-embed/src/sidebar-item.vue3.js +4 -2
- package/lib/chat-embed/src/type.js +5 -3
- package/lib/chat-embed/src/util/chat-embed-util.js +41 -35
- package/lib/chat-embed/src/util/history-message-util.js +85 -63
- package/lib/chat-embed/src/util/mcp-utils.js +8 -5
- package/lib/chat-embed/src/util/text-file-util.js +11 -7
- package/lib/chat-embed/src/voice/index.js +7 -5
- package/lib/chat-embed/src/voice/js/crypto-js.js +995 -987
- package/lib/chat-embed/src/voice/js/processor/index.umd.js +169 -161
- package/lib/chat-embed/src/voice/js/timer.js +10 -7
- package/lib/chat-embed/src/voice/voice.vue.js +70 -61
- package/lib/date-picker-range/index.js +7 -5
- package/lib/date-picker-range/index.vue.js +7 -5
- package/lib/date-picker-range/index.vue2.js +63 -59
- package/lib/date-picker-range/index.vue3.js +4 -2
- package/lib/department-tree/index.js +5 -3
- package/lib/department-tree/src/department-tree.vue.js +17 -11
- package/lib/department-tree-inline/index.js +5 -3
- package/lib/department-tree-inline/src/department-multi-tree-inline.vue.js +27 -17
- package/lib/department-tree-inline/src/department-multi-tree-inline.vue2.js +4 -2
- package/lib/department-tree-inline/src/department-single-tree-inline.vue.js +27 -17
- package/lib/department-tree-inline/src/department-single-tree-inline.vue2.js +4 -2
- package/lib/department-tree-inline/src/department-tree-inline.vue.js +13 -8
- package/lib/department-tree-inline/src/department-tree-service.js +10 -8
- package/lib/department-tree-inline/src/search-result.vue.js +23 -19
- package/lib/department-tree-inline/src/search-result.vue2.js +4 -2
- package/lib/department-tree-mobile/index.js +7 -4
- package/lib/department-tree-mobile/src/department-tree-app.vue.js +12 -9
- package/lib/department-tree-mobile/src/department-tree-app.vue2.js +4 -2
- package/lib/department-tree-mobile/src/department-tree-app.vue3.js +5 -3
- package/lib/department-tree-mobile/src/department-tree-inline-app.vue.js +91 -80
- package/lib/department-tree-mobile/src/department-tree-inline-app.vue2.js +4 -3
- package/lib/department-tree-mobile/src/department-tree-service.js +42 -32
- package/lib/department-tree-mobile/src/dept-path.vue.js +11 -10
- package/lib/department-tree-mobile/src/dept-path.vue2.js +4 -3
- package/lib/department-tree-mobile/src/dept-result.vue.js +14 -11
- package/lib/department-tree-mobile/src/dept-result.vue2.js +4 -3
- package/lib/department-user-tree/index.js +5 -3
- package/lib/department-user-tree/src/department-user-multiple-tree.vue.js +14 -10
- package/lib/department-user-tree/src/department-user-multiple-tree.vue2.js +4 -2
- package/lib/department-user-tree/src/department-user-single-tree.vue.js +14 -9
- package/lib/department-user-tree/src/department-user-tree.vue.js +20 -14
- package/lib/department-user-tree-inline/index.js +5 -3
- package/lib/department-user-tree-inline/src/department-user-multiple-tree-inline.vue.js +28 -17
- package/lib/department-user-tree-inline/src/department-user-multiple-tree-inline.vue2.js +4 -2
- package/lib/department-user-tree-inline/src/department-user-single-tree-inline.vue.js +33 -21
- package/lib/department-user-tree-inline/src/department-user-single-tree-inline.vue2.js +4 -2
- package/lib/department-user-tree-inline/src/department-user-tree-inline.vue.js +13 -8
- package/lib/department-user-tree-inline/src/department-user-tree-multi-service.js +9 -6
- package/lib/department-user-tree-inline/src/department-user-tree-single-service.js +11 -8
- package/lib/department-user-tree-inline/src/group-user/group-input.vue.js +12 -7
- package/lib/department-user-tree-inline/src/group-user/group-list.vue.js +12 -7
- package/lib/department-user-tree-inline/src/group-user/group-user.vue.js +14 -8
- package/lib/department-user-tree-inline/src/group-user-multiple-tree.vue.js +20 -14
- package/lib/department-user-tree-inline/src/group-user-single-tree.vue.js +23 -17
- package/lib/department-user-tree-inline/src/group-user-tree-service.js +3 -2
- package/lib/department-user-tree-inline/src/search-result.vue.js +15 -12
- package/lib/department-user-tree-inline/src/search-result.vue2.js +4 -2
- package/lib/department-user-tree-mobile/index.js +7 -4
- package/lib/department-user-tree-mobile/src/department-user-tree-app.vue.js +12 -9
- package/lib/department-user-tree-mobile/src/department-user-tree-app.vue2.js +4 -2
- package/lib/department-user-tree-mobile/src/department-user-tree-app.vue3.js +5 -3
- package/lib/department-user-tree-mobile/src/department-user-tree-inline-app.vue.js +104 -93
- package/lib/department-user-tree-mobile/src/department-user-tree-inline-app.vue2.js +4 -3
- package/lib/department-user-tree-mobile/src/department-user-tree-service.js +30 -20
- package/lib/department-user-tree-mobile/src/dept-path.vue.js +11 -10
- package/lib/department-user-tree-mobile/src/dept-path.vue2.js +4 -3
- package/lib/department-user-tree-mobile/src/dept-result.vue.js +15 -11
- package/lib/department-user-tree-mobile/src/dept-result.vue2.js +4 -3
- package/lib/directives/prevent-reclick.js +3 -2
- package/lib/dynamic-source-select/index.js +7 -5
- package/lib/dynamic-source-select/src/dynamic-source-select-service.js +15 -13
- package/lib/dynamic-source-select/src/dynamic-source-select.vue.js +183 -173
- package/lib/dynamic-source-select/src/dynamic-source-select.vue2.js +4 -2
- package/lib/dynamic-source-select/src/dynamic-source-select.vue3.js +4 -2
- package/lib/dynamic-source-select/src/events.js +3 -2
- package/lib/empty-state/index.vue.js +8 -5
- package/lib/empty-state/index.vue2.js +4 -3
- package/lib/fs-preview/index.js +7 -5
- package/lib/fs-preview/src/fs-preview.vue.js +72 -63
- package/lib/fs-preview/src/fs-preview.vue2.js +4 -2
- package/lib/fs-upload/index.js +7 -5
- package/lib/fs-upload/src/fs-upload-multi.vue.js +32 -24
- package/lib/fs-upload/src/fs-upload-single.vue.js +39 -30
- package/lib/fs-upload/src/fs-upload.vue.js +16 -10
- package/lib/fs-upload/src/see-big-picture.vue.js +11 -8
- package/lib/fs-upload-list/index.js +7 -5
- package/lib/fs-upload-list/src/fs-upload-list.vue.js +40 -33
- package/lib/fs-upload-list/src/fs-upload-list.vue2.js +4 -2
- package/lib/fs-upload-new/index.js +7 -5
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-app.vue.js +38 -34
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-app.vue2.js +4 -3
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue.js +109 -101
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue2.js +4 -3
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-component.vue.js +7 -5
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-component.vue2.js +33 -26
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-component.vue3.js +4 -2
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-input.vue.js +31 -27
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-input.vue2.js +4 -3
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload.vue.js +24 -18
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload.vue2.js +4 -3
- package/lib/fs-upload-new/src/fs-button-upload.vue.js +7 -5
- package/lib/fs-upload-new/src/fs-button-upload.vue2.js +43 -36
- package/lib/fs-upload-new/src/fs-button-upload.vue3.js +4 -2
- package/lib/fs-upload-new/src/fs-drag-upload.vue.js +7 -5
- package/lib/fs-upload-new/src/fs-drag-upload.vue2.js +45 -37
- package/lib/fs-upload-new/src/fs-drag-upload.vue3.js +4 -2
- package/lib/fs-upload-new/src/fs-preview-new.vue.js +8 -5
- package/lib/fs-upload-new/src/fs-preview-new.vue2.js +70 -61
- package/lib/fs-upload-new/src/fs-preview-new.vue3.js +4 -2
- package/lib/fs-upload-new/src/fs-preview-new.vue4.js +4 -2
- package/lib/fs-upload-new/src/fs-upload-new.vue.js +47 -37
- package/lib/fs-upload-new/src/fs-upload-new.vue2.js +4 -3
- package/lib/hamburger/index.js +5 -3
- package/lib/hamburger/src/hamburger.vue.js +14 -10
- package/lib/hamburger/src/hamburger.vue2.js +4 -2
- package/lib/index.js +382 -40
- package/lib/json-view/json-view-dialog.vue.js +15 -12
- package/lib/json-view/json-view-dialog.vue2.js +4 -3
- package/lib/json-view/json-view.vue.js +4 -3
- package/lib/json-view/json-view.vue2.js +31 -27
- package/lib/multipart-upload/index.js +7 -5
- package/lib/multipart-upload/src/index.vue.js +11 -7
- package/lib/multipart-upload/src/multipart-upload-form.vue.js +49 -40
- package/lib/multipart-upload/src/multipart-upload-list.vue.js +67 -59
- package/lib/organization-input/index.js +7 -5
- package/lib/organization-input/src/organization-input.vue.js +37 -31
- package/lib/organization-input/src/organization-input.vue2.js +4 -2
- package/lib/plugins/export-data-new.js +104 -96
- package/lib/plugins/export-data.js +51 -45
- package/lib/plugins/index.js +8 -4
- package/lib/plugins/public-method.js +3 -2
- package/lib/remove-department/index.js +5 -3
- package/lib/remove-department/src/remove-department.vue.js +19 -13
- package/lib/remove-department/src/remove-dept-service.js +10 -9
- package/lib/remove-user/index.js +7 -5
- package/lib/remove-user/src/remove-user-service.js +4 -3
- package/lib/remove-user/src/remove-user.vue.js +22 -16
- package/lib/remove-workgroup/index.js +7 -5
- package/lib/remove-workgroup/src/remove-workgroup-service.js +4 -3
- package/lib/remove-workgroup/src/remove-workgroup.vue.js +18 -12
- package/lib/rich-editor/index.js +7 -5
- package/lib/rich-editor/index.vue.js +76 -28
- package/lib/rich-editor/tinymce/zh_CN.js +2 -2
- package/lib/rich-editor/viewer.vue.js +10 -7
- package/lib/row-form/index.js +7 -5
- package/lib/row-form/index.vue.js +7 -5
- package/lib/row-form/index.vue2.js +47 -41
- package/lib/row-form/index.vue3.js +4 -2
- package/lib/row-form/operation.vue.js +26 -22
- package/lib/row-form/operation.vue2.js +4 -3
- package/lib/scan-code-input/index.js +7 -5
- package/lib/scan-code-input/src/events.js +13 -11
- package/lib/scan-code-input/src/scan-code-input.vue.js +15 -9
- package/lib/scan-code-input-browser/index.js +7 -5
- package/lib/scan-code-input-browser/src/scan-code-input.vue.js +21 -16
- package/lib/secret-info/index.js +7 -5
- package/lib/secret-info/index.vue.js +9 -6
- package/lib/src/api/sso-service.js +36 -34
- package/lib/src/api/tab.js +9 -8
- package/lib/src/assets/401/401.gif.js +4 -2
- package/lib/src/assets/404/404-cloud.png.js +4 -2
- package/lib/src/assets/404/404.png.js +4 -2
- package/lib/src/assets/chat-embed/robot.gif.js +4 -2
- package/lib/src/assets/chat-embed/robot.svg.js +4 -2
- package/lib/src/assets/nonemessage.png.js +4 -2
- package/lib/src/components/Affix/index.vue.js +7 -5
- package/lib/src/components/Affix/index.vue2.js +58 -56
- package/lib/src/components/Affix/index.vue3.js +4 -2
- package/lib/src/components/Card/index.js +38 -33
- package/lib/src/components/Scrollbar/index.vue.js +37 -33
- package/lib/src/components/Scrollbar/index.vue2.js +4 -2
- package/lib/src/directives/permission/index.js +5 -3
- package/lib/src/directives/permission/permission.js +9 -7
- package/lib/src/i18n/i18n.js +7 -3
- package/lib/src/i18n/langs/cn.js +4 -2
- package/lib/src/i18n/langs/en.js +4 -2
- package/lib/src/mixins/resizeMixin.js +3 -2
- package/lib/src/permission.js +46 -43
- package/lib/src/router/index.js +9 -16
- package/lib/src/store/getters.js +4 -2
- package/lib/src/store/index.js +13 -16
- package/lib/src/store/modules/app.js +4 -3
- package/lib/src/store/modules/chat-ai-store.js +22 -19
- package/lib/src/store/modules/permission.js +11 -10
- package/lib/src/store/modules/system.js +9 -7
- package/lib/src/store/modules/tab-content.js +15 -13
- package/lib/src/store/modules/table.js +3 -2
- package/lib/src/store/modules/user.js +95 -89
- package/lib/src/utils/auth-api.js +5 -3
- package/lib/src/utils/auth.js +139 -69
- package/lib/src/utils/calculator/calculator-factory-wf.js +49 -48
- package/lib/src/utils/calculator/calculator-factory.js +58 -57
- package/lib/src/utils/calculator/calculator-util.js +32 -29
- package/lib/src/utils/chat-ai-util.js +25 -17
- package/lib/src/utils/common-util.js +356 -271
- package/lib/src/utils/eventBus.js +6 -3
- package/lib/src/utils/file-util.js +16 -15
- package/lib/src/utils/global-prop.js +37 -21
- package/lib/src/utils/guid.js +8 -5
- package/lib/src/utils/i18n-util.js +24 -16
- package/lib/src/utils/iconUtils.js +23 -16
- package/lib/src/utils/index.js +40 -26
- package/lib/src/utils/insert_css.js +7 -8
- package/lib/src/utils/json-util.js +27 -25
- package/lib/src/utils/jump-page-utils.js +180 -172
- package/lib/src/utils/local-storage.js +3 -2
- package/lib/src/utils/menu.js +11 -10
- package/lib/src/utils/permission.js +26 -22
- package/lib/src/utils/permissionAuth.js +136 -102
- package/lib/src/utils/range-selector.js +45 -41
- package/lib/src/utils/request.js +86 -77
- package/lib/src/utils/resize.js +5 -5
- package/lib/src/utils/restful-interface-utils.js +15 -12
- package/lib/src/utils/util.js +26 -6
- package/lib/src/utils/validate.js +20 -10
- package/lib/src/utils/voice-setting-cache.js +153 -140
- package/lib/src/utils/watermark-cache.js +14 -9
- package/lib/src/utils/watermark.js +30 -23
- package/lib/src/utils/workflow-util.js +26 -25
- package/lib/src/views/dsc-component/Sidebar/Item.vue.js +7 -5
- package/lib/src/views/dsc-component/Sidebar/Item.vue2.js +11 -8
- package/lib/src/views/dsc-component/Sidebar/Item.vue3.js +4 -2
- package/lib/src/views/dsc-component/Sidebar/Link.vue.js +12 -9
- package/lib/src/views/dsc-component/Sidebar/SidebarItem.vue.js +26 -19
- package/lib/src/views/dsc-component/Sidebar/SidebarItem.vue2.js +4 -2
- package/lib/src/views/dsc-component/Sidebar/index.vue.js +20 -12
- package/lib/src/views/dsc-component/tabs/tab-content.vue.js +26 -21
- package/lib/src/views/dsc-component/tabs/tab-content.vue2.js +4 -2
- package/lib/src/views/dsc-component/tabs/tab-content.vue3.js +4 -2
- package/lib/src/views/error-page/401.vue.js +13 -9
- package/lib/src/views/error-page/401.vue2.js +4 -2
- package/lib/src/views/error-page/404.vue.js +11 -7
- package/lib/src/views/error-page/404.vue2.js +4 -2
- package/lib/src/views/layout/EmptyLayout.vue.js +8 -6
- package/lib/src/views/layout/Layout.vue.js +19 -12
- package/lib/src/views/layout/Layout.vue2.js +4 -2
- package/lib/src/views/layout/NewLayout.vue.js +10 -6
- package/lib/src/views/layout/components/AppMain.vue.js +11 -9
- package/lib/src/views/layout/components/AppMain.vue2.js +4 -2
- package/lib/src/views/layout/components/Breadcrumb/index.vue.js +37 -44
- package/lib/src/views/layout/components/Breadcrumb/index.vue2.js +4 -2
- package/lib/src/views/layout/components/Menubar/Item.vue.js +7 -5
- package/lib/src/views/layout/components/Menubar/Item.vue2.js +14 -12
- package/lib/src/views/layout/components/Menubar/Item.vue3.js +4 -2
- package/lib/src/views/layout/components/Menubar/Link.vue.js +12 -9
- package/lib/src/views/layout/components/Menubar/SidebarItem.vue.js +24 -15
- package/lib/src/views/layout/components/Menubar/SidebarItem.vue2.js +4 -2
- package/lib/src/views/layout/components/Menubar/index.vue.js +30 -19
- package/lib/src/views/layout/components/Sidebar/Item.vue.js +8 -6
- package/lib/src/views/layout/components/Sidebar/Item.vue2.js +4 -3
- package/lib/src/views/layout/components/Sidebar/Link.vue.js +11 -8
- package/lib/src/views/layout/components/Sidebar/SidebarItem.vue.js +17 -11
- package/lib/src/views/layout/components/Sidebar/SidebarItem.vue2.js +4 -2
- package/lib/src/views/layout/components/Sidebar/index.vue.js +25 -18
- package/lib/src/views/layout/components/iframe-page.vue.js +10 -8
- package/lib/src/views/layout/components/iframe-page.vue2.js +4 -2
- package/lib/src/views/layout/components/tabs/tab-content.vue.js +14 -10
- package/lib/src/views/layout/components/tabs/tab-content.vue2.js +4 -2
- package/lib/src/views/layout/components/tabs/tab-content.vue3.js +4 -2
- package/lib/src/views/layout/mixin/ResizeHandler.js +5 -3
- package/lib/src/views/layout/tab-content-iframe-index.vue.js +10 -8
- package/lib/src/views/layout/tab-content-iframe-index.vue2.js +4 -2
- package/lib/src/views/layout/tab-content-index.vue.js +18 -12
- package/lib/src/views/layout/tab-content-index.vue2.js +4 -2
- package/lib/src/views/login/authredirect.vue.js +3 -2
- package/lib/src/views/redirect/index.vue.js +8 -17
- package/lib/src/views/svg-icon/src/svg-icon.vue.js +4 -2
- package/lib/src/views/wf-history/tache-subprocess-history.vue.js +13 -11
- package/lib/src/views/wf-history/tache-subprocess-history.vue2.js +4 -2
- package/lib/style.css +769 -769
- package/lib/super-grid/index.js +7 -5
- package/lib/super-grid/src/apis.js +231 -221
- package/lib/super-grid/src/columns-config.vue.js +22 -16
- package/lib/super-grid/src/components/grid-icon.vue.js +34 -26
- package/lib/super-grid/src/components/grid-radio-input.vue.js +18 -15
- package/lib/super-grid/src/components/grid-radio-input.vue2.js +4 -3
- package/lib/super-grid/src/components/mobile-table-card.js +83 -73
- package/lib/super-grid/src/components/select-input.vue.js +106 -98
- package/lib/super-grid/src/components/select-input.vue2.js +4 -3
- package/lib/super-grid/src/custom-formatter.js +74 -69
- package/lib/super-grid/src/dynamic-input.vue.js +159 -142
- package/lib/super-grid/src/eventBus.js +6 -3
- package/lib/super-grid/src/events.js +36 -34
- package/lib/super-grid/src/formValidatorUtil.js +65 -62
- package/lib/super-grid/src/formatter.js +41 -36
- package/lib/super-grid/src/group-column.vue.js +13 -8
- package/lib/super-grid/src/header-context-menu.vue.js +13 -10
- package/lib/super-grid/src/header-context-menu.vue2.js +4 -2
- package/lib/super-grid/src/index-column.vue.js +10 -7
- package/lib/super-grid/src/normal-column-content.vue.js +205 -186
- package/lib/super-grid/src/normal-column-content.vue2.js +4 -2
- package/lib/super-grid/src/normal-column.vue.js +55 -40
- package/lib/super-grid/src/normal-column.vue2.js +4 -2
- package/lib/super-grid/src/public-methods.js +14 -12
- package/lib/super-grid/src/row-detail.vue.js +10 -7
- package/lib/super-grid/src/row-operation.vue.js +26 -19
- package/lib/super-grid/src/row-operation.vue2.js +4 -2
- package/lib/super-grid/src/scan-util.js +26 -24
- package/lib/super-grid/src/search-button.vue.js +17 -12
- package/lib/super-grid/src/search-condition-input.vue.js +12 -8
- package/lib/super-grid/src/search-condition-list.vue.js +13 -10
- package/lib/super-grid/src/search-form-advancedQuery.vue.js +23 -13
- package/lib/super-grid/src/search-form-advancedQuery.vue2.js +4 -2
- package/lib/super-grid/src/search-form-dialog.vue.js +13 -9
- package/lib/super-grid/src/search-form-item.vue.js +24 -16
- package/lib/super-grid/src/search-form-item.vue2.js +4 -2
- package/lib/super-grid/src/search-form-mobile.vue.js +22 -13
- package/lib/super-grid/src/search-form-mobile.vue2.js +4 -2
- package/lib/super-grid/src/search-form-number.vue.js +14 -9
- package/lib/super-grid/src/search-form-open.vue.js +13 -7
- package/lib/super-grid/src/search-form-ordinarySearch.vue.js +19 -11
- package/lib/super-grid/src/search-form-ordinarySearch.vue2.js +4 -2
- package/lib/super-grid/src/search-form.vue.js +77 -65
- package/lib/super-grid/src/search-form.vue2.js +4 -2
- package/lib/super-grid/src/search-methods.js +3 -2
- package/lib/super-grid/src/selection-column.vue.js +9 -7
- package/lib/super-grid/src/store.js +4 -3
- package/lib/super-grid/src/super-grid-service.js +128 -121
- package/lib/super-grid/src/super-grid.vue.js +217 -186
- package/lib/super-grid/src/super-grid.vue2.js +4 -2
- package/lib/super-grid/src/utils.js +322 -265
- package/lib/super-grid/src/view-image-dialog.vue.js +33 -26
- package/lib/super-icon/index.js +7 -5
- package/lib/super-icon/src/index.vue.js +7 -5
- package/lib/super-icon/src/index.vue2.js +11 -8
- package/lib/super-icon/src/index.vue3.js +4 -2
- package/lib/super-nine-grid/index.js +7 -5
- package/lib/super-nine-grid/src/apis.js +8 -5
- package/lib/super-nine-grid/src/custom-formatter.js +7 -5
- package/lib/super-nine-grid/src/formatter.js +29 -28
- package/lib/super-nine-grid/src/search-form-number.vue.js +12 -8
- package/lib/super-nine-grid/src/search-form.vue.js +40 -33
- package/lib/super-nine-grid/src/search-form.vue2.js +4 -2
- package/lib/super-nine-grid/src/search-methods.js +3 -2
- package/lib/super-nine-grid/src/store.js +4 -3
- package/lib/super-nine-grid/src/super-grid-service.js +9 -5
- package/lib/super-nine-grid/src/super-nine-grid.vue.js +105 -95
- package/lib/super-nine-grid/src/super-nine-grid.vue2.js +4 -2
- package/lib/super-nine-grid/src/utils.js +27 -31
- package/lib/svg-icon/index.js +7 -5
- package/lib/svg-icon/src/svg-icon.vue.js +10 -8
- package/lib/svg-icon/src/svg-icon.vue2.js +4 -2
- package/lib/utils/gogocodeTransfer.js +28 -23
- package/lib/utils/memory-cache-utils.js +5 -3
- package/lib/utils/organization.js +53 -40
- package/lib/utils/utils.js +29 -27
- package/lib/utils/value-set.js +70 -68
- package/lib/valid-code/index.js +7 -5
- package/lib/valid-code/src/valid-code.vue.js +13 -10
- package/lib/valid-code/src/valid-code.vue2.js +4 -2
- package/lib/workflow-button/index.js +5 -3
- package/lib/workflow-button/src/workflow-button.vue.js +39 -34
- package/lib/workflow-history-list/index.js +7 -5
- package/lib/workflow-history-list/src/api.js +3 -2
- package/lib/workflow-history-list/src/workflow-history-list.vue.js +65 -59
- package/lib/workflow-history-list/src/workflow-history-list.vue2.js +4 -2
- package/lib/workgroup-tree/index.js +7 -5
- package/lib/workgroup-tree/src/workgroup-tree.vue.js +17 -11
- package/lib/workgroup-tree-inline/index.js +5 -3
- package/lib/workgroup-tree-inline/src/search-result.vue.js +25 -21
- package/lib/workgroup-tree-inline/src/search-result.vue2.js +4 -2
- package/lib/workgroup-tree-inline/src/workgroup-tree-inline.vue.js +52 -43
- package/lib/workgroup-tree-inline/src/workgroup-tree-inline.vue2.js +4 -2
- package/lib/workgroup-tree-inline/src/workgroup-tree-service.js +7 -5
- package/lib/workgroup-tree-mobile/index.js +8 -5
- package/lib/workgroup-tree-mobile/src/dept-result.vue.js +14 -11
- package/lib/workgroup-tree-mobile/src/dept-result.vue2.js +4 -3
- package/lib/workgroup-tree-mobile/src/workgroup-tree-app.vue.js +12 -9
- package/lib/workgroup-tree-mobile/src/workgroup-tree-app.vue2.js +4 -2
- package/lib/workgroup-tree-mobile/src/workgroup-tree-app.vue3.js +5 -3
- package/lib/workgroup-tree-mobile/src/workgroup-tree-inline-app.vue.js +86 -76
- package/lib/workgroup-tree-mobile/src/workgroup-tree-inline-app.vue2.js +4 -3
- package/lib/workgroup-tree-mobile/src/workgroup-tree-service.js +28 -20
- package/lib/workgroup-user-tree/index.js +7 -5
- package/lib/workgroup-user-tree/src/workgroup-user-tree.vue.js +17 -11
- package/lib/workgroup-user-tree-inline/index.js +5 -3
- package/lib/workgroup-user-tree-inline/src/search-result.vue.js +25 -21
- package/lib/workgroup-user-tree-inline/src/search-result.vue2.js +4 -2
- package/lib/workgroup-user-tree-inline/src/workgroup-tree-inline-service.js +11 -9
- package/lib/workgroup-user-tree-inline/src/workgroup-user-tree-inline.vue.js +43 -34
- package/lib/workgroup-user-tree-inline/src/workgroup-user-tree-inline.vue2.js +4 -2
- package/lib/workgroup-user-tree-mobile/src/dept-path.vue.js +11 -10
- package/lib/workgroup-user-tree-mobile/src/dept-path.vue2.js +4 -3
- package/lib/workgroup-user-tree-mobile/src/dept-result.vue.js +15 -11
- package/lib/workgroup-user-tree-mobile/src/dept-result.vue2.js +4 -3
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue.js +12 -9
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue2.js +4 -2
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue3.js +5 -3
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-inline-app.vue.js +104 -93
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-inline-app.vue2.js +4 -3
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-service.js +25 -16
- package/lib/year-range-picker/index.js +5 -3
- package/lib/year-range-picker/src/year-range-picker.vue.js +12 -9
- package/package.json +4 -5
- package/vite.config.js +10 -10
- package/es/IntervalSelection/index.js +0 -7
- package/es/IntervalSelection/src/sectionDate.vue.js +0 -49
- package/es/IntervalSelection/src/sectionDate.vue2.js +0 -4
- package/es/_virtual/__vite-browser-external.js +0 -4
- package/es/_virtual/_plugin-vue_export-helper.js +0 -9
- package/es/breadcrumb/index.js +0 -7
- package/es/breadcrumb/src/breadcrumb.vue.js +0 -28
- package/es/breadcrumb/src/breadcrumb.vue2.js +0 -4
- package/es/chat-embed/index.js +0 -7
- package/es/chat-embed/src/chat-addition-data.vue.js +0 -7
- package/es/chat-embed/src/chat-addition-data.vue2.js +0 -14
- package/es/chat-embed/src/chat-addition-data.vue3.js +0 -4
- package/es/chat-embed/src/chat-ai-answer-tip.vue.js +0 -7
- package/es/chat-embed/src/chat-ai-answer-tip.vue2.js +0 -29
- package/es/chat-embed/src/chat-ai-answer-tip.vue3.js +0 -4
- package/es/chat-embed/src/chat-bubble-footer.vue.js +0 -7
- package/es/chat-embed/src/chat-bubble-footer.vue2.js +0 -33
- package/es/chat-embed/src/chat-bubble-footer.vue3.js +0 -4
- package/es/chat-embed/src/chat-embed-message.js +0 -22
- package/es/chat-embed/src/chat-sender.vue.js +0 -7
- package/es/chat-embed/src/chat-sender.vue2.js +0 -160
- package/es/chat-embed/src/chat-sender.vue3.js +0 -4
- package/es/chat-embed/src/components/answer-auto-chart.vue.js +0 -7
- package/es/chat-embed/src/components/answer-auto-chart.vue2.js +0 -59
- package/es/chat-embed/src/components/answer-auto-chart.vue3.js +0 -4
- package/es/chat-embed/src/components/answer-home-chart.vue.js +0 -7
- package/es/chat-embed/src/components/answer-home-chart.vue2.js +0 -6
- package/es/chat-embed/src/components/answer-home-chart.vue3.js +0 -4
- package/es/chat-embed/src/components/answer-interaction-data.vue.js +0 -7
- package/es/chat-embed/src/components/answer-interaction-data.vue2.js +0 -118
- package/es/chat-embed/src/components/answer-interaction-data.vue3.js +0 -4
- package/es/chat-embed/src/components/history-detail.vue.js +0 -7
- package/es/chat-embed/src/components/history-detail.vue2.js +0 -55
- package/es/chat-embed/src/components/history-detail.vue3.js +0 -4
- package/es/chat-embed/src/header.vue.js +0 -7
- package/es/chat-embed/src/header.vue2.js +0 -46
- package/es/chat-embed/src/header.vue3.js +0 -4
- package/es/chat-embed/src/index.vue.js +0 -7
- package/es/chat-embed/src/index.vue2.js +0 -307
- package/es/chat-embed/src/index.vue3.js +0 -4
- package/es/chat-embed/src/recommendation-message.vue.js +0 -7
- package/es/chat-embed/src/recommendation-message.vue2.js +0 -8
- package/es/chat-embed/src/recommendation-message.vue3.js +0 -4
- package/es/chat-embed/src/sidebar-item.vue.js +0 -7
- package/es/chat-embed/src/sidebar-item.vue2.js +0 -118
- package/es/chat-embed/src/sidebar-item.vue3.js +0 -4
- package/es/chat-embed/src/type.js +0 -5
- package/es/chat-embed/src/util/chat-embed-util.js +0 -57
- package/es/chat-embed/src/util/history-message-util.js +0 -96
- package/es/chat-embed/src/util/mcp-utils.js +0 -53
- package/es/chat-embed/src/util/text-file-util.js +0 -12
- package/es/chat-embed/src/voice/index.js +0 -7
- package/es/chat-embed/src/voice/js/crypto-js.js +0 -1013
- package/es/chat-embed/src/voice/js/processor/index.umd.js +0 -178
- package/es/chat-embed/src/voice/js/timer.js +0 -11
- package/es/chat-embed/src/voice/voice.vue.js +0 -104
- package/es/date-picker-range/index.js +0 -7
- package/es/date-picker-range/index.vue.js +0 -7
- package/es/date-picker-range/index.vue2.js +0 -93
- package/es/date-picker-range/index.vue3.js +0 -4
- package/es/department-tree/index.js +0 -7
- package/es/department-tree/src/department-tree.vue.js +0 -23
- package/es/department-tree-inline/index.js +0 -7
- package/es/department-tree-inline/src/department-multi-tree-inline.vue.js +0 -91
- package/es/department-tree-inline/src/department-multi-tree-inline.vue2.js +0 -4
- package/es/department-tree-inline/src/department-single-tree-inline.vue.js +0 -64
- package/es/department-tree-inline/src/department-single-tree-inline.vue2.js +0 -4
- package/es/department-tree-inline/src/department-tree-inline.vue.js +0 -17
- package/es/department-tree-inline/src/department-tree-service.js +0 -108
- package/es/department-tree-inline/src/search-result.vue.js +0 -40
- package/es/department-tree-inline/src/search-result.vue2.js +0 -4
- package/es/department-tree-mobile/index.js +0 -8
- package/es/department-tree-mobile/src/department-tree-app.vue.js +0 -15
- package/es/department-tree-mobile/src/department-tree-app.vue2.js +0 -4
- package/es/department-tree-mobile/src/department-tree-app.vue3.js +0 -5
- package/es/department-tree-mobile/src/department-tree-inline-app.vue.js +0 -121
- package/es/department-tree-mobile/src/department-tree-inline-app.vue2.js +0 -4
- package/es/department-tree-mobile/src/department-tree-service.js +0 -55
- package/es/department-tree-mobile/src/dept-path.vue.js +0 -14
- package/es/department-tree-mobile/src/dept-path.vue2.js +0 -4
- package/es/department-tree-mobile/src/dept-result.vue.js +0 -16
- package/es/department-tree-mobile/src/dept-result.vue2.js +0 -4
- package/es/department-user-tree/index.js +0 -7
- package/es/department-user-tree/src/department-user-multiple-tree.vue.js +0 -20
- package/es/department-user-tree/src/department-user-multiple-tree.vue2.js +0 -4
- package/es/department-user-tree/src/department-user-single-tree.vue.js +0 -19
- package/es/department-user-tree/src/department-user-tree.vue.js +0 -27
- package/es/department-user-tree-inline/index.js +0 -7
- package/es/department-user-tree-inline/src/department-user-multiple-tree-inline.vue.js +0 -165
- package/es/department-user-tree-inline/src/department-user-multiple-tree-inline.vue2.js +0 -4
- package/es/department-user-tree-inline/src/department-user-single-tree-inline.vue.js +0 -69
- package/es/department-user-tree-inline/src/department-user-single-tree-inline.vue2.js +0 -4
- package/es/department-user-tree-inline/src/department-user-tree-inline.vue.js +0 -16
- package/es/department-user-tree-inline/src/department-user-tree-multi-service.js +0 -81
- package/es/department-user-tree-inline/src/department-user-tree-single-service.js +0 -54
- package/es/department-user-tree-inline/src/group-user/group-input.vue.js +0 -39
- package/es/department-user-tree-inline/src/group-user/group-list.vue.js +0 -27
- package/es/department-user-tree-inline/src/group-user/group-user.vue.js +0 -16
- package/es/department-user-tree-inline/src/group-user-multiple-tree.vue.js +0 -78
- package/es/department-user-tree-inline/src/group-user-single-tree.vue.js +0 -34
- package/es/department-user-tree-inline/src/group-user-tree-service.js +0 -34
- package/es/department-user-tree-inline/src/search-result.vue.js +0 -41
- package/es/department-user-tree-inline/src/search-result.vue2.js +0 -4
- package/es/department-user-tree-mobile/index.js +0 -8
- package/es/department-user-tree-mobile/src/department-user-tree-app.vue.js +0 -15
- package/es/department-user-tree-mobile/src/department-user-tree-app.vue2.js +0 -4
- package/es/department-user-tree-mobile/src/department-user-tree-app.vue3.js +0 -5
- package/es/department-user-tree-mobile/src/department-user-tree-inline-app.vue.js +0 -135
- package/es/department-user-tree-mobile/src/department-user-tree-inline-app.vue2.js +0 -4
- package/es/department-user-tree-mobile/src/department-user-tree-service.js +0 -38
- package/es/department-user-tree-mobile/src/dept-path.vue.js +0 -14
- package/es/department-user-tree-mobile/src/dept-path.vue2.js +0 -4
- package/es/department-user-tree-mobile/src/dept-result.vue.js +0 -17
- package/es/department-user-tree-mobile/src/dept-result.vue2.js +0 -4
- package/es/directives/prevent-reclick.js +0 -15
- package/es/dynamic-source-select/index.js +0 -7
- package/es/dynamic-source-select/src/dynamic-source-select-service.js +0 -32
- package/es/dynamic-source-select/src/dynamic-source-select.vue.js +0 -276
- package/es/dynamic-source-select/src/dynamic-source-select.vue2.js +0 -4
- package/es/dynamic-source-select/src/dynamic-source-select.vue3.js +0 -4
- package/es/dynamic-source-select/src/events.js +0 -29
- package/es/empty-state/index.vue.js +0 -9
- package/es/empty-state/index.vue2.js +0 -4
- package/es/favicon.svg +0 -29
- package/es/fs-preview/index.js +0 -7
- package/es/fs-preview/src/fs-preview.vue.js +0 -120
- package/es/fs-preview/src/fs-preview.vue2.js +0 -4
- package/es/fs-upload/index.js +0 -7
- package/es/fs-upload/src/fs-upload-multi.vue.js +0 -71
- package/es/fs-upload/src/fs-upload-single.vue.js +0 -73
- package/es/fs-upload/src/fs-upload.vue.js +0 -24
- package/es/fs-upload/src/see-big-picture.vue.js +0 -12
- package/es/fs-upload-list/index.js +0 -7
- package/es/fs-upload-list/src/fs-upload-list.vue.js +0 -98
- package/es/fs-upload-list/src/fs-upload-list.vue2.js +0 -4
- package/es/fs-upload-new/index.js +0 -7
- package/es/fs-upload-new/src/file-upload-mobile/file-upload-app.vue.js +0 -61
- package/es/fs-upload-new/src/file-upload-mobile/file-upload-app.vue2.js +0 -4
- package/es/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue.js +0 -178
- package/es/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue2.js +0 -4
- package/es/fs-upload-new/src/file-upload-mobile/file-upload-component.vue.js +0 -7
- package/es/fs-upload-new/src/file-upload-mobile/file-upload-component.vue2.js +0 -39
- package/es/fs-upload-new/src/file-upload-mobile/file-upload-component.vue3.js +0 -4
- package/es/fs-upload-new/src/file-upload-mobile/file-upload-input.vue.js +0 -45
- package/es/fs-upload-new/src/file-upload-mobile/file-upload-input.vue2.js +0 -4
- package/es/fs-upload-new/src/file-upload-mobile/file-upload.vue.js +0 -35
- package/es/fs-upload-new/src/file-upload-mobile/file-upload.vue2.js +0 -4
- package/es/fs-upload-new/src/fs-button-upload.vue.js +0 -7
- package/es/fs-upload-new/src/fs-button-upload.vue2.js +0 -62
- package/es/fs-upload-new/src/fs-button-upload.vue3.js +0 -4
- package/es/fs-upload-new/src/fs-drag-upload.vue.js +0 -7
- package/es/fs-upload-new/src/fs-drag-upload.vue2.js +0 -63
- package/es/fs-upload-new/src/fs-drag-upload.vue3.js +0 -4
- package/es/fs-upload-new/src/fs-preview-new.vue.js +0 -8
- package/es/fs-upload-new/src/fs-preview-new.vue2.js +0 -93
- package/es/fs-upload-new/src/fs-preview-new.vue3.js +0 -4
- package/es/fs-upload-new/src/fs-preview-new.vue4.js +0 -4
- package/es/fs-upload-new/src/fs-upload-new.vue.js +0 -64
- package/es/fs-upload-new/src/fs-upload-new.vue2.js +0 -4
- package/es/hamburger/index.js +0 -7
- package/es/hamburger/src/hamburger.vue.js +0 -15
- package/es/hamburger/src/hamburger.vue2.js +0 -4
- package/es/index.js +0 -383
- package/es/json-view/json-view-dialog.vue.js +0 -19
- package/es/json-view/json-view-dialog.vue2.js +0 -4
- package/es/json-view/json-view.vue.js +0 -4
- package/es/json-view/json-view.vue2.js +0 -36
- package/es/multipart-upload/index.js +0 -7
- package/es/multipart-upload/src/index.vue.js +0 -14
- package/es/multipart-upload/src/multipart-upload-form.vue.js +0 -82
- package/es/multipart-upload/src/multipart-upload-list.vue.js +0 -104
- package/es/organization-input/index.js +0 -7
- package/es/organization-input/src/organization-input.vue.js +0 -224
- package/es/organization-input/src/organization-input.vue2.js +0 -4
- package/es/plugins/export-data-new.js +0 -237
- package/es/plugins/export-data.js +0 -179
- package/es/plugins/index.js +0 -9
- package/es/plugins/public-method.js +0 -14
- package/es/remove-department/index.js +0 -7
- package/es/remove-department/src/remove-department.vue.js +0 -33
- package/es/remove-department/src/remove-dept-service.js +0 -13
- package/es/remove-user/index.js +0 -7
- package/es/remove-user/src/remove-user-service.js +0 -13
- package/es/remove-user/src/remove-user.vue.js +0 -35
- package/es/remove-workgroup/index.js +0 -7
- package/es/remove-workgroup/src/remove-workgroup-service.js +0 -13
- package/es/remove-workgroup/src/remove-workgroup.vue.js +0 -31
- package/es/rich-editor/index.js +0 -7
- package/es/rich-editor/index.vue.js +0 -115
- package/es/rich-editor/tinymce/zh_CN.js +0 -2
- package/es/rich-editor/viewer.vue.js +0 -27
- package/es/row-form/index.js +0 -7
- package/es/row-form/index.vue.js +0 -7
- package/es/row-form/index.vue2.js +0 -62
- package/es/row-form/index.vue3.js +0 -4
- package/es/row-form/operation.vue.js +0 -32
- package/es/row-form/operation.vue2.js +0 -4
- package/es/scan-code-input/index.js +0 -7
- package/es/scan-code-input/src/events.js +0 -15
- package/es/scan-code-input/src/scan-code-input.vue.js +0 -32
- package/es/scan-code-input-browser/index.js +0 -7
- package/es/scan-code-input-browser/src/scan-code-input.vue.js +0 -39
- package/es/secret-info/index.js +0 -7
- package/es/secret-info/index.vue.js +0 -16
- package/es/src/api/sso-service.js +0 -57
- package/es/src/api/tab.js +0 -15
- package/es/src/assets/401/401.gif.js +0 -4
- package/es/src/assets/404/404-cloud.png.js +0 -4
- package/es/src/assets/404/404.png.js +0 -4
- package/es/src/assets/chat-embed/robot.gif.js +0 -4
- package/es/src/assets/chat-embed/robot.svg.js +0 -4
- package/es/src/assets/nonemessage.png.js +0 -4
- package/es/src/components/Affix/index.vue.js +0 -7
- package/es/src/components/Affix/index.vue2.js +0 -83
- package/es/src/components/Affix/index.vue3.js +0 -4
- package/es/src/components/Card/index.js +0 -48
- package/es/src/components/Scrollbar/index.vue.js +0 -52
- package/es/src/components/Scrollbar/index.vue2.js +0 -4
- package/es/src/directives/permission/index.js +0 -7
- package/es/src/directives/permission/permission.js +0 -11
- package/es/src/i18n/i18n.js +0 -7
- package/es/src/i18n/langs/cn.js +0 -4
- package/es/src/i18n/langs/en.js +0 -4
- package/es/src/mixins/resizeMixin.js +0 -21
- package/es/src/permission.js +0 -79
- package/es/src/router/index.js +0 -9
- package/es/src/store/getters.js +0 -4
- package/es/src/store/index.js +0 -13
- package/es/src/store/modules/app.js +0 -41
- package/es/src/store/modules/chat-ai-store.js +0 -36
- package/es/src/store/modules/permission.js +0 -31
- package/es/src/store/modules/system.js +0 -12
- package/es/src/store/modules/tab-content.js +0 -20
- package/es/src/store/modules/table.js +0 -18
- package/es/src/store/modules/user.js +0 -139
- package/es/src/utils/auth-api.js +0 -134
- package/es/src/utils/auth.js +0 -156
- package/es/src/utils/calculator/calculator-factory-wf.js +0 -167
- package/es/src/utils/calculator/calculator-factory.js +0 -93
- package/es/src/utils/calculator/calculator-util.js +0 -56
- package/es/src/utils/chat-ai-util.js +0 -34
- package/es/src/utils/common-util.js +0 -440
- package/es/src/utils/eventBus.js +0 -6
- package/es/src/utils/file-util.js +0 -23
- package/es/src/utils/global-prop.js +0 -38
- package/es/src/utils/guid.js +0 -10
- package/es/src/utils/i18n-util.js +0 -70
- package/es/src/utils/iconUtils.js +0 -26
- package/es/src/utils/index.js +0 -46
- package/es/src/utils/insert_css.js +0 -17
- package/es/src/utils/json-util.js +0 -47
- package/es/src/utils/jump-page-utils.js +0 -264
- package/es/src/utils/local-storage.js +0 -19
- package/es/src/utils/menu.js +0 -14
- package/es/src/utils/permission.js +0 -45
- package/es/src/utils/permissionAuth.js +0 -154
- package/es/src/utils/range-selector.js +0 -105
- package/es/src/utils/request.js +0 -140
- package/es/src/utils/resize.js +0 -11
- package/es/src/utils/restful-interface-utils.js +0 -18
- package/es/src/utils/util.js +0 -361
- package/es/src/utils/validate.js +0 -22
- package/es/src/utils/voice-setting-cache.js +0 -212
- package/es/src/utils/watermark-cache.js +0 -15
- package/es/src/utils/watermark.js +0 -40
- package/es/src/utils/workflow-util.js +0 -42
- package/es/src/views/dsc-component/Sidebar/Item.vue.js +0 -7
- package/es/src/views/dsc-component/Sidebar/Item.vue2.js +0 -12
- package/es/src/views/dsc-component/Sidebar/Item.vue3.js +0 -4
- package/es/src/views/dsc-component/Sidebar/Link.vue.js +0 -14
- package/es/src/views/dsc-component/Sidebar/SidebarItem.vue.js +0 -53
- package/es/src/views/dsc-component/Sidebar/SidebarItem.vue2.js +0 -4
- package/es/src/views/dsc-component/Sidebar/index.vue.js +0 -111
- package/es/src/views/dsc-component/tabs/tab-content.vue.js +0 -66
- package/es/src/views/dsc-component/tabs/tab-content.vue2.js +0 -4
- package/es/src/views/dsc-component/tabs/tab-content.vue3.js +0 -4
- package/es/src/views/error-page/401.vue.js +0 -15
- package/es/src/views/error-page/401.vue2.js +0 -4
- package/es/src/views/error-page/404.vue.js +0 -12
- package/es/src/views/error-page/404.vue2.js +0 -4
- package/es/src/views/layout/EmptyLayout.vue.js +0 -9
- package/es/src/views/layout/Layout.vue.js +0 -28
- package/es/src/views/layout/Layout.vue2.js +0 -4
- package/es/src/views/layout/NewLayout.vue.js +0 -11
- package/es/src/views/layout/components/AppMain.vue.js +0 -13
- package/es/src/views/layout/components/AppMain.vue2.js +0 -4
- package/es/src/views/layout/components/Breadcrumb/index.vue.js +0 -49
- package/es/src/views/layout/components/Breadcrumb/index.vue2.js +0 -4
- package/es/src/views/layout/components/Menubar/Item.vue.js +0 -7
- package/es/src/views/layout/components/Menubar/Item.vue2.js +0 -15
- package/es/src/views/layout/components/Menubar/Item.vue3.js +0 -4
- package/es/src/views/layout/components/Menubar/Link.vue.js +0 -14
- package/es/src/views/layout/components/Menubar/SidebarItem.vue.js +0 -56
- package/es/src/views/layout/components/Menubar/SidebarItem.vue2.js +0 -4
- package/es/src/views/layout/components/Menubar/index.vue.js +0 -90
- package/es/src/views/layout/components/Sidebar/Item.vue.js +0 -9
- package/es/src/views/layout/components/Sidebar/Item.vue2.js +0 -4
- package/es/src/views/layout/components/Sidebar/Link.vue.js +0 -12
- package/es/src/views/layout/components/Sidebar/SidebarItem.vue.js +0 -22
- package/es/src/views/layout/components/Sidebar/SidebarItem.vue2.js +0 -4
- package/es/src/views/layout/components/Sidebar/index.vue.js +0 -58
- package/es/src/views/layout/components/iframe-page.vue.js +0 -14
- package/es/src/views/layout/components/iframe-page.vue2.js +0 -4
- package/es/src/views/layout/components/tabs/tab-content.vue.js +0 -64
- package/es/src/views/layout/components/tabs/tab-content.vue2.js +0 -4
- package/es/src/views/layout/components/tabs/tab-content.vue3.js +0 -4
- package/es/src/views/layout/mixin/ResizeHandler.js +0 -16
- package/es/src/views/layout/tab-content-iframe-index.vue.js +0 -14
- package/es/src/views/layout/tab-content-iframe-index.vue2.js +0 -4
- package/es/src/views/layout/tab-content-index.vue.js +0 -28
- package/es/src/views/layout/tab-content-index.vue2.js +0 -4
- package/es/src/views/login/authredirect.vue.js +0 -7
- package/es/src/views/redirect/index.vue.js +0 -8
- package/es/src/views/svg-icon/src/svg-icon.vue.js +0 -4
- package/es/src/views/wf-history/tache-subprocess-history.vue.js +0 -14
- package/es/src/views/wf-history/tache-subprocess-history.vue2.js +0 -4
- package/es/style.css +0 -3077
- package/es/super-grid/index.js +0 -7
- package/es/super-grid/src/apis.js +0 -458
- package/es/super-grid/src/columns-config.vue.js +0 -82
- package/es/super-grid/src/components/grid-icon.vue.js +0 -47
- package/es/super-grid/src/components/grid-radio-input.vue.js +0 -25
- package/es/super-grid/src/components/grid-radio-input.vue2.js +0 -4
- package/es/super-grid/src/components/mobile-table-card.js +0 -109
- package/es/super-grid/src/components/select-input.vue.js +0 -149
- package/es/super-grid/src/components/select-input.vue2.js +0 -4
- package/es/super-grid/src/custom-formatter.js +0 -168
- package/es/super-grid/src/dynamic-input.vue.js +0 -482
- package/es/super-grid/src/eventBus.js +0 -6
- package/es/super-grid/src/events.js +0 -37
- package/es/super-grid/src/formValidatorUtil.js +0 -109
- package/es/super-grid/src/formatter.js +0 -74
- package/es/super-grid/src/group-column.vue.js +0 -24
- package/es/super-grid/src/header-context-menu.vue.js +0 -15
- package/es/super-grid/src/header-context-menu.vue2.js +0 -4
- package/es/super-grid/src/index-column.vue.js +0 -22
- package/es/super-grid/src/normal-column-content.vue.js +0 -319
- package/es/super-grid/src/normal-column-content.vue2.js +0 -4
- package/es/super-grid/src/normal-column.vue.js +0 -106
- package/es/super-grid/src/normal-column.vue2.js +0 -4
- package/es/super-grid/src/public-methods.js +0 -22
- package/es/super-grid/src/row-detail.vue.js +0 -14
- package/es/super-grid/src/row-operation.vue.js +0 -89
- package/es/super-grid/src/row-operation.vue2.js +0 -4
- package/es/super-grid/src/scan-util.js +0 -100
- package/es/super-grid/src/search-button.vue.js +0 -23
- package/es/super-grid/src/search-condition-input.vue.js +0 -17
- package/es/super-grid/src/search-condition-list.vue.js +0 -20
- package/es/super-grid/src/search-form-advancedQuery.vue.js +0 -116
- package/es/super-grid/src/search-form-advancedQuery.vue2.js +0 -4
- package/es/super-grid/src/search-form-dialog.vue.js +0 -16
- package/es/super-grid/src/search-form-item.vue.js +0 -128
- package/es/super-grid/src/search-form-item.vue2.js +0 -4
- package/es/super-grid/src/search-form-mobile.vue.js +0 -41
- package/es/super-grid/src/search-form-mobile.vue2.js +0 -4
- package/es/super-grid/src/search-form-number.vue.js +0 -26
- package/es/super-grid/src/search-form-open.vue.js +0 -50
- package/es/super-grid/src/search-form-ordinarySearch.vue.js +0 -39
- package/es/super-grid/src/search-form-ordinarySearch.vue2.js +0 -4
- package/es/super-grid/src/search-form.vue.js +0 -201
- package/es/super-grid/src/search-form.vue2.js +0 -4
- package/es/super-grid/src/search-methods.js +0 -164
- package/es/super-grid/src/selection-column.vue.js +0 -11
- package/es/super-grid/src/store.js +0 -4
- package/es/super-grid/src/super-grid-service.js +0 -260
- package/es/super-grid/src/super-grid.vue.js +0 -1052
- package/es/super-grid/src/super-grid.vue2.js +0 -4
- package/es/super-grid/src/utils.js +0 -355
- package/es/super-grid/src/view-image-dialog.vue.js +0 -67
- package/es/super-icon/index.js +0 -7
- package/es/super-icon/src/index.vue.js +0 -7
- package/es/super-icon/src/index.vue2.js +0 -13
- package/es/super-icon/src/index.vue3.js +0 -4
- package/es/super-nine-grid/index.js +0 -7
- package/es/super-nine-grid/src/apis.js +0 -36
- package/es/super-nine-grid/src/custom-formatter.js +0 -35
- package/es/super-nine-grid/src/formatter.js +0 -37
- package/es/super-nine-grid/src/search-form-number.vue.js +0 -13
- package/es/super-nine-grid/src/search-form.vue.js +0 -91
- package/es/super-nine-grid/src/search-form.vue2.js +0 -4
- package/es/super-nine-grid/src/search-methods.js +0 -48
- package/es/super-nine-grid/src/store.js +0 -4
- package/es/super-nine-grid/src/super-grid-service.js +0 -39
- package/es/super-nine-grid/src/super-nine-grid.vue.js +0 -225
- package/es/super-nine-grid/src/super-nine-grid.vue2.js +0 -4
- package/es/super-nine-grid/src/utils.js +0 -32
- package/es/svg-icon/index.js +0 -7
- package/es/svg-icon/src/svg-icon.vue.js +0 -14
- package/es/svg-icon/src/svg-icon.vue2.js +0 -4
- package/es/utils/gogocodeTransfer.js +0 -33
- package/es/utils/memory-cache-utils.js +0 -30
- package/es/utils/organization.js +0 -57
- package/es/utils/utils.js +0 -87
- package/es/utils/value-set.js +0 -94
- package/es/valid-code/index.js +0 -7
- package/es/valid-code/src/valid-code.vue.js +0 -23
- package/es/valid-code/src/valid-code.vue2.js +0 -4
- package/es/workflow-button/index.js +0 -7
- package/es/workflow-button/src/workflow-button.vue.js +0 -85
- package/es/workflow-history-list/index.js +0 -7
- package/es/workflow-history-list/src/api.js +0 -6
- package/es/workflow-history-list/src/workflow-history-list.vue.js +0 -89
- package/es/workflow-history-list/src/workflow-history-list.vue2.js +0 -4
- package/es/workgroup-tree/index.js +0 -7
- package/es/workgroup-tree/src/workgroup-tree.vue.js +0 -23
- package/es/workgroup-tree-inline/index.js +0 -7
- package/es/workgroup-tree-inline/src/search-result.vue.js +0 -39
- package/es/workgroup-tree-inline/src/search-result.vue2.js +0 -4
- package/es/workgroup-tree-inline/src/workgroup-tree-inline.vue.js +0 -128
- package/es/workgroup-tree-inline/src/workgroup-tree-inline.vue2.js +0 -4
- package/es/workgroup-tree-inline/src/workgroup-tree-service.js +0 -35
- package/es/workgroup-tree-mobile/index.js +0 -8
- package/es/workgroup-tree-mobile/src/dept-result.vue.js +0 -16
- package/es/workgroup-tree-mobile/src/dept-result.vue2.js +0 -4
- package/es/workgroup-tree-mobile/src/workgroup-tree-app.vue.js +0 -15
- package/es/workgroup-tree-mobile/src/workgroup-tree-app.vue2.js +0 -4
- package/es/workgroup-tree-mobile/src/workgroup-tree-app.vue3.js +0 -5
- package/es/workgroup-tree-mobile/src/workgroup-tree-inline-app.vue.js +0 -109
- package/es/workgroup-tree-mobile/src/workgroup-tree-inline-app.vue2.js +0 -4
- package/es/workgroup-tree-mobile/src/workgroup-tree-service.js +0 -33
- package/es/workgroup-user-tree/index.js +0 -7
- package/es/workgroup-user-tree/src/workgroup-user-tree.vue.js +0 -23
- package/es/workgroup-user-tree-inline/index.js +0 -7
- package/es/workgroup-user-tree-inline/src/search-result.vue.js +0 -39
- package/es/workgroup-user-tree-inline/src/search-result.vue2.js +0 -4
- package/es/workgroup-user-tree-inline/src/workgroup-tree-inline-service.js +0 -73
- package/es/workgroup-user-tree-inline/src/workgroup-user-tree-inline.vue.js +0 -172
- package/es/workgroup-user-tree-inline/src/workgroup-user-tree-inline.vue2.js +0 -4
- package/es/workgroup-user-tree-mobile/src/dept-path.vue.js +0 -14
- package/es/workgroup-user-tree-mobile/src/dept-path.vue2.js +0 -4
- package/es/workgroup-user-tree-mobile/src/dept-result.vue.js +0 -17
- package/es/workgroup-user-tree-mobile/src/dept-result.vue2.js +0 -4
- package/es/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue.js +0 -15
- package/es/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue2.js +0 -4
- package/es/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue3.js +0 -5
- package/es/workgroup-user-tree-mobile/src/workgroup-user-tree-inline-app.vue.js +0 -135
- package/es/workgroup-user-tree-mobile/src/workgroup-user-tree-inline-app.vue2.js +0 -4
- package/es/workgroup-user-tree-mobile/src/workgroup-user-tree-service.js +0 -29
- package/es/year-range-picker/index.js +0 -7
- package/es/year-range-picker/src/year-range-picker.vue.js +0 -14
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { defineComponent as e, ref as n, resolveComponent as t, openBlock as r, createBlock as c, withCtx as i, createVNode as o, createElementBlock as u, unref as s, createCommentVNode as l, Fragment as a, renderList as m, toDisplayString as p } from "vue";
|
|
2
|
-
import { XMarkdown as f } from "vue-element-plus-x";
|
|
3
|
-
const d = { key: 0, style: { "max-height": "80vh", overflow: "auto" } }, h = ["onClick"], k = e({ __name: "chat-ai-answer-tip", props: { item: { type: Object, required: true }, itemProps: { type: Object, required: true } }, emits: ["click-doc-agg"], setup(e2, { emit: k2 }) {
|
|
4
|
-
const g = n(false);
|
|
5
|
-
function C() {
|
|
6
|
-
g.value = true;
|
|
7
|
-
}
|
|
8
|
-
function v(e3, n2) {
|
|
9
|
-
if (!e3.referenceChunks || 0 === e3.referenceChunks.length)
|
|
10
|
-
return "无相关提示信息";
|
|
11
|
-
const t2 = parseInt(n2);
|
|
12
|
-
return isNaN(t2) || t2 < 0 || t2 >= e3.referenceChunks.length ? "提示信息索引无效" : e3.referenceChunks[t2].content || "无相关提示信息";
|
|
13
|
-
}
|
|
14
|
-
function _(e3, n2) {
|
|
15
|
-
if (!e3.referenceChunks || 0 === e3.referenceChunks.length)
|
|
16
|
-
return "无相关提示信息";
|
|
17
|
-
const t2 = parseInt(n2);
|
|
18
|
-
return isNaN(t2) || t2 < 0 || t2 >= e3.referenceChunks.length ? "提示信息索引无效" : e3.referenceChunks[t2] ? [{ doc_name: e3.referenceChunks[t2].document_name, doc_id: e3.referenceChunks[t2].document_id }] : [];
|
|
19
|
-
}
|
|
20
|
-
return (n2, y) => {
|
|
21
|
-
const x = t("Opportunity"), w = t("el-icon"), N = t("el-popover");
|
|
22
|
-
return r(), c(N, { placement: "right", trigger: "click", width: "100vh" }, { reference: i(() => [o(w, { onClick: C }, { default: i(() => [o(x)]), _: 1 })]), default: i(() => [g.value ? (r(), u("div", d, [o(s(f), { allowHtml: true, markdown: v(e2.item, e2.itemProps["tip-index"]) }, null, 8, ["markdown"])])) : l("", true), g.value ? (r(true), u(a, { key: 1 }, m(_(e2.item, e2.itemProps["tip-index"]), (e3, n3) => (r(), u("div", { style: { margin: "5px 10px" }, key: n3, onClick: (n4) => function(e4) {
|
|
23
|
-
k2("click-doc-agg", e4);
|
|
24
|
-
}(e3), class: "doc-agg-item" }, p(e3.doc_name), 9, h))), 128)) : l("", true)]), _: 1 });
|
|
25
|
-
};
|
|
26
|
-
} });
|
|
27
|
-
export {
|
|
28
|
-
k as default
|
|
29
|
-
};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { defineComponent as e, resolveComponent as t, openBlock as o, createElementBlock as c, createElementVNode as n, createVNode as i, withCtx as r, unref as a, createCommentVNode as s } from "vue";
|
|
2
|
-
import { Refresh as m, DocumentCopy as l } from "@element-plus/icons-vue";
|
|
3
|
-
import { ElMessage as p } from "element-plus";
|
|
4
|
-
import { useI18n as u } from "vue-i18n";
|
|
5
|
-
const d = { key: 0, class: "footer-wrapper" }, f = { class: "footer-container" }, b = e({ __name: "chat-bubble-footer", props: { item: { type: Object, required: true } }, emits: ["regenerate"], setup(e2, { emit: b2 }) {
|
|
6
|
-
const { t: y } = u();
|
|
7
|
-
return (u2, v) => {
|
|
8
|
-
const g = t("el-button"), h = t("el-tooltip");
|
|
9
|
-
return "ai" !== e2.item.role || e2.item.isRecommend || "thinking" === e2.item.thinkingStatus ? s("", true) : (o(), c("div", d, [n("div", f, [i(h, { class: "box-item", effect: "dark", content: u2.$t("chatEmbed.regenerate") }, { default: r(() => [i(g, { type: "info", icon: a(m), size: "small", circle: "", onClick: v[0] || (v[0] = (t2) => {
|
|
10
|
-
return o2 = e2.item, void b2("regenerate", o2);
|
|
11
|
-
var o2;
|
|
12
|
-
}) }, null, 8, ["icon"])]), _: 1 }, 8, ["content"]), i(h, { class: "box-item", effect: "dark", content: u2.$t("chatEmbed.copy") }, { default: r(() => [i(g, { type: "info", color: "#626aef", icon: a(l), size: "small", circle: "", onClick: v[1] || (v[1] = (t2) => function(e3) {
|
|
13
|
-
if (e3.content)
|
|
14
|
-
if (navigator.clipboard && "function" == typeof navigator.clipboard.writeText)
|
|
15
|
-
navigator.clipboard.writeText(e3.content).then(() => {
|
|
16
|
-
p({ message: y("chatEmbed.copySuccess"), type: "success" });
|
|
17
|
-
});
|
|
18
|
-
else {
|
|
19
|
-
const t3 = document.createElement("textarea");
|
|
20
|
-
t3.value = e3.content, document.body.appendChild(t3), t3.select();
|
|
21
|
-
try {
|
|
22
|
-
document.execCommand("copy"), p({ message: y("chatEmbed.copySuccess"), type: "success" });
|
|
23
|
-
} catch (e4) {
|
|
24
|
-
p({ message: "复制失败", type: "error" });
|
|
25
|
-
}
|
|
26
|
-
document.body.removeChild(t3);
|
|
27
|
-
}
|
|
28
|
-
}(e2.item)) }, null, 8, ["icon"])]), _: 1 }, 8, ["content"])])]));
|
|
29
|
-
};
|
|
30
|
-
} });
|
|
31
|
-
export {
|
|
32
|
-
b as default
|
|
33
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import n from "dayjs";
|
|
2
|
-
import { MESSAGE_STATUS as a } from "./type.js";
|
|
3
|
-
function t(t2, e2, i2, o2) {
|
|
4
|
-
const s = "ai" === t2 ? "ai" : "user", d = "ai" === s ? "start" : "end", m = { isRecommend: i2, key: (/* @__PURE__ */ new Date()).getTime(), role: s, placement: d, content: e2, showThinkingContent: false, loading: false, shape: "corner", variant: "ai" === s ? "filled" : "outlined", isMarkdown: false, typing: "ai" === s, avatar: "ai" === s ? "https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png" : "../../src/assets/chat-embed/avatar.png", noStyle: "ai" === s, statusValue: "end", recommendations: [], avatarSize: "24px", sendTime: n(/* @__PURE__ */ new Date()).format("YYYY-MM-DD HH:mm:ss") };
|
|
5
|
-
return "ai" === s && (m.maxWidth = "calc(100% - 60px)", o2 ? (m.thinkingContent = "", m.thinkingStatus = a.THINKING, m.showThinkingContent = true) : (m.thinkingContent = null, m.thinkingStatus = a.NONE, m.showThinkingContent = false)), m;
|
|
6
|
-
}
|
|
7
|
-
const e = t("ai", "😊 您好,我是平台小助手,您可以向我提出关于平台使用问题", true, false);
|
|
8
|
-
function i(n2) {
|
|
9
|
-
var _a;
|
|
10
|
-
const a2 = t("user", n2.question, true, false);
|
|
11
|
-
return ((_a = n2.additionalData) == null ? void 0 : _a.length) && Object.assign(a2, { additionalData: n2.additionalData, additionalDataLabel: n2.additionalDataLabel, menuName: n2.menuName, menuCode: n2.menuCode }), a2;
|
|
12
|
-
}
|
|
13
|
-
function o(n2, a2) {
|
|
14
|
-
const e2 = t("ai", "", false, a2);
|
|
15
|
-
return Object.assign(e2, { question: n2.question, menuName: n2.menuName, menuCode: n2.menuCode, askAdditionalData: n2.additionalData });
|
|
16
|
-
}
|
|
17
|
-
export {
|
|
18
|
-
o as createAiMessage,
|
|
19
|
-
i as createUserMessage,
|
|
20
|
-
e as defaultMessage,
|
|
21
|
-
t as getMessageTemplate
|
|
22
|
-
};
|
|
@@ -1,160 +0,0 @@
|
|
|
1
|
-
import { defineComponent as e, ref as a, onMounted as l, watch as t, resolveComponent as n, resolveDirective as o, openBlock as i, createElementBlock as u, Fragment as s, createBlock as r, withCtx as c, createElementVNode as d, createVNode as m, createTextVNode as p, toDisplayString as f, createCommentVNode as v, unref as g, renderList as h, withDirectives as w, pushScopeId as b, popScopeId as y } from "vue";
|
|
2
|
-
import x from "../../src/store/modules/chat-ai-store.js";
|
|
3
|
-
import { Sender as E, Attachments as A, FilesCard as _ } from "vue-element-plus-x";
|
|
4
|
-
import { generateFileName as R, downloadJsonFile as I } from "./util/text-file-util.js";
|
|
5
|
-
import { getActivePinia as k, createPinia as P, setActivePinia as j } from "pinia";
|
|
6
|
-
import { useI18n as S } from "vue-i18n";
|
|
7
|
-
import { ElMessage as T } from "element-plus";
|
|
8
|
-
import C from "./voice/voice.vue.js";
|
|
9
|
-
import { AI_MODELS as D } from "./type.js";
|
|
10
|
-
import { getVoiceSetting as N, parseVoiceMsg as V } from "../../src/utils/voice-setting-cache.js";
|
|
11
|
-
import { getRelativeBaseUrl as O, isValidDate as M } from "../../src/utils/common-util.js";
|
|
12
|
-
import { getToken as F } from "../../src/utils/auth.js";
|
|
13
|
-
const $ = { class: "sender-additional-data-tag" }, q = { style: { display: "flex", "align-items": "center", "flex-wrap": "wrap" } }, z = { style: { display: "flex", "align-items": "center", gap: "16px" } }, G = ((e2) => (b("data-v-0b0c189e"), e2 = e2(), y(), e2))(() => d("div", { class: "ai-generate-tip" }, "内容由AI生成,仅供参考", -1)), K = e({ __name: "chat-sender", props: { loading: { type: Boolean, default: false } }, emits: ["submit-question", "handle-cancel", "view-json", "change-ai-model", "voice-answer", "command-answer"], setup(e2, { expose: b2, emit: y2 }) {
|
|
14
|
-
S();
|
|
15
|
-
const K2 = [{ label: "流程体系类", value: D.RAGFLOW }, { label: "QMS数据库类", value: D.DATABASE }, { label: "DeepSeek问答", value: D.DEEPSEEK }, { label: "系统交互", value: D.INTERACTION }, { label: "生成PPT", value: D.PPT_GENERATION }];
|
|
16
|
-
let L = null;
|
|
17
|
-
const H = a(false), W = a(""), B = a([]), U = a(""), Q = a("ragflow"), X = a(), J = a(), Y = a(window.$vueApp.config.globalProperties.baseAPI + "/component/ai/upload-file/bailian"), Z = a([]), ee = a(false), ae = a(false);
|
|
18
|
-
function le() {
|
|
19
|
-
try {
|
|
20
|
-
window.parent && window.parent !== window && (window.parent.ChatAiStore = L), window.top && window.top !== window && (window.top.ChatAiStore = L), window.ChatAiStore = L;
|
|
21
|
-
} catch (e3) {
|
|
22
|
-
console.error("Failed to initialize ChatAiStore:", e3);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
let te, ne;
|
|
26
|
-
l(() => {
|
|
27
|
-
!function() {
|
|
28
|
-
try {
|
|
29
|
-
let e3 = k();
|
|
30
|
-
e3 || (e3 = P(), j(e3), window.$vueApp && window.$vueApp.use(e3)), L = x();
|
|
31
|
-
} catch (e3) {
|
|
32
|
-
console.error("Failed to initialize Pinia or ChatAiStore:", e3);
|
|
33
|
-
}
|
|
34
|
-
}(), le();
|
|
35
|
-
}), t(() => Z.value.length, (e3) => {
|
|
36
|
-
e3 > 0 ? X.value.openHeader() : X.value.closeHeader();
|
|
37
|
-
}), l(() => {
|
|
38
|
-
le();
|
|
39
|
-
});
|
|
40
|
-
let oe = {}, ie = {};
|
|
41
|
-
function ue(e3) {
|
|
42
|
-
let a2 = e3;
|
|
43
|
-
null == e3 ? (U.value, a2 = U.value.trim()) : a2 = e3.trim(), te = a2;
|
|
44
|
-
let l2 = { aiModel: Q.value, question: a2 };
|
|
45
|
-
if (Q.value === D.DEEPSEEK || Q.value === D.PPT_GENERATION) {
|
|
46
|
-
const e4 = L.getActiveMenu();
|
|
47
|
-
let t2 = "";
|
|
48
|
-
Z.value.length > 0 && (t2 = Z.value.map((e5) => e5.id).join(","));
|
|
49
|
-
let n2 = [];
|
|
50
|
-
Z.value.length > 0 && (n2 = Z.value.map((e5) => ({ fileId: e5.id, name: e5.name }))), Z.value = [], l2 = { aiModel: Q.value, question: a2, fileId: t2, fileInfos: n2, additionalData: B.value, additionalDataLabel: W.value, menuName: (e4 == null ? void 0 : e4.menuName) || "" };
|
|
51
|
-
}
|
|
52
|
-
y2("submit-question", l2), U.value = "", ce();
|
|
53
|
-
}
|
|
54
|
-
function se() {
|
|
55
|
-
y2("handle-cancel");
|
|
56
|
-
}
|
|
57
|
-
function re() {
|
|
58
|
-
var _a;
|
|
59
|
-
const e3 = L.getActiveMenu(), a2 = L.getActiveMenuPageInfo();
|
|
60
|
-
if ("list" === a2.pageType) {
|
|
61
|
-
const l2 = a2.listRefs[0].ref.getAiChatListData();
|
|
62
|
-
l2 && l2.length > 0 && (B.value = l2), ((_a = B.value) == null ? void 0 : _a.length) > 0 && (W.value = `已附加【${e3.menuName}】表格数据 (${B.value.length} 条记录)`, H.value = true);
|
|
63
|
-
} else if ("form" === a2.pageType) {
|
|
64
|
-
const l2 = a2.exposeProxy.getFormFormatData();
|
|
65
|
-
a2.subTableRefs && Object.keys(a2.subTableRefs).length > 0 && Object.keys(a2.subTableRefs).forEach((e4) => {
|
|
66
|
-
const t2 = a2.subTableRefs[e4].ref, n2 = t2.getAiChatListData();
|
|
67
|
-
let o2 = e4;
|
|
68
|
-
t2.options.title && (o2 = t2.options.title), l2[o2] = n2;
|
|
69
|
-
}), l2 && (B.value = [l2], W.value = `已附加【${e3.menuName}】表单数据`, H.value = true);
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
function ce() {
|
|
73
|
-
B.value = [], W.value = "", H.value = false;
|
|
74
|
-
}
|
|
75
|
-
function de() {
|
|
76
|
-
y2("view-json", B.value);
|
|
77
|
-
}
|
|
78
|
-
function me() {
|
|
79
|
-
try {
|
|
80
|
-
const e3 = L.getActiveMenu(), a2 = R((e3 == null ? void 0 : e3.menuName) || "data");
|
|
81
|
-
I(B.value, a2);
|
|
82
|
-
} catch (e3) {
|
|
83
|
-
console.error("下载失败:", e3);
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
function pe(e3) {
|
|
87
|
-
if (e3 === D.DATABASE)
|
|
88
|
-
return T({ message: "QMS数据库类模型正在开发中,敬请期待!", type: "warning" }), void (Q.value = D.RAGFLOW);
|
|
89
|
-
e3 === D.DEEPSEEK && Z.value.length > 0 ? X.value.openHeader() : X.value.closeHeader(), e3 === D.DEEPSEEK || e3 === D.PPT_GENERATION ? (ee.value = true, ae.value = true) : (ee.value = false, ae.value = false, ce()), y2("change-ai-model", e3);
|
|
90
|
-
}
|
|
91
|
-
function fe(e3) {
|
|
92
|
-
Z.value.push({ id: e3.uid, uid: e3.uid, name: e3.name, percent: 0, status: "uploading", showDelIcon: true, maxWidth: "150px" });
|
|
93
|
-
}
|
|
94
|
-
function ve(e3, a2, l2) {
|
|
95
|
-
const t2 = Z.value.findIndex((e4) => e4.id === a2.uid);
|
|
96
|
-
-1 !== t2 && (Z.value[t2].percent = e3.percent);
|
|
97
|
-
}
|
|
98
|
-
function ge(e3, a2, l2) {
|
|
99
|
-
if (e3) {
|
|
100
|
-
const l3 = Z.value.findIndex((e4) => e4.id === a2.uid);
|
|
101
|
-
-1 !== l3 && (Z.value[l3].status = "done", e3.forEach((e4) => {
|
|
102
|
-
e4.name === Z.value[l3].name && (Z.value[l3].id = e4.fileId, Z.value[l3].uid = e4.fileId);
|
|
103
|
-
}));
|
|
104
|
-
} else
|
|
105
|
-
T({ message: (e3 == null ? void 0 : e3.message) || "文件上传失败", type: "error" });
|
|
106
|
-
}
|
|
107
|
-
function he(e3) {
|
|
108
|
-
const a2 = Z.value.findIndex((a3) => a3.id === e3.uid);
|
|
109
|
-
-1 !== a2 && Z.value.splice(a2, 1);
|
|
110
|
-
}
|
|
111
|
-
function we(e3, a2, l2) {
|
|
112
|
-
let t2 = false;
|
|
113
|
-
if (a2 && a2.indexOf("~") >= 0) {
|
|
114
|
-
const e4 = a2.split("~");
|
|
115
|
-
let n2;
|
|
116
|
-
if (t2 = M(e4[0]), t2 && (t2 = M(e4[1])), 3 === e4.length && (n2 = e4[2]), e4.length, t2 && n2 && n2.indexOf(",") > 0) {
|
|
117
|
-
const a3 = n2.split(","), t3 = a3[0], o2 = a3[1];
|
|
118
|
-
l2 = be(t3, e4[0], l2), l2 = be(o2, e4[1], l2);
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
return t2 || (l2 = be(e3, a2, l2)), l2;
|
|
122
|
-
}
|
|
123
|
-
function be(e3, a2, l2) {
|
|
124
|
-
if (null == e3 || e3 + "" == "")
|
|
125
|
-
return l2;
|
|
126
|
-
if (null == a2 || a2 + "" == "")
|
|
127
|
-
return l2;
|
|
128
|
-
const t2 = "ai__" + e3;
|
|
129
|
-
return l2 = l2.indexOf("?") > 0 ? l2 + "&" + t2 + "=" + a2 : l2 + "?" + t2 + "=" + a2;
|
|
130
|
-
}
|
|
131
|
-
return b2({ parseCommand: function() {
|
|
132
|
-
N().then((e3) => {
|
|
133
|
-
V(te, e3, ne, oe, ie).then((e4) => {
|
|
134
|
-
if ("ok" === e4.status) {
|
|
135
|
-
ne || (ne = e4.settingItem), oe = e4.paramInfo;
|
|
136
|
-
let a2 = e4.url;
|
|
137
|
-
if (a2) {
|
|
138
|
-
if (ie)
|
|
139
|
-
for (let e5 in ie) {
|
|
140
|
-
const l3 = ie[e5];
|
|
141
|
-
"_jump_param" !== l3 && (a2 = we(e5, l3, a2));
|
|
142
|
-
}
|
|
143
|
-
const l2 = ne ? ne.command : "";
|
|
144
|
-
ne = void 0, ie = {}, oe = {}, y2("command-answer", { content: e4.commandResult ? e4.commandResult : e4.paramResult, url: a2, paramsValue: ie, command: l2 }), window.open(O(a2));
|
|
145
|
-
} else
|
|
146
|
-
y2("command-answer", { content: e4.commandResult ? e4.commandResult : e4.paramResult });
|
|
147
|
-
} else
|
|
148
|
-
y2("command-answer", { content: e4.commandResult ? e4.commandResult : e4.paramResult });
|
|
149
|
-
});
|
|
150
|
-
});
|
|
151
|
-
}, newChatSession: function() {
|
|
152
|
-
Q.value === D.DEEPSEEK && (Z.value = []), U.value = "";
|
|
153
|
-
} }), (a2, l2) => {
|
|
154
|
-
const t2 = n("Paperclip"), b3 = n("el-icon"), y3 = n("super-icon"), x2 = n("el-tooltip"), R2 = n("el-tag"), I2 = n("el-option"), k2 = n("el-select"), P2 = n("SuperIcon"), j2 = n("el-upload"), S2 = n("el-divider"), T2 = n("el-button"), D2 = o("loading");
|
|
155
|
-
return i(), u(s, null, [H.value ? (i(), r(R2, { key: 0, type: "primary" }, { default: c(() => [d("div", $, [m(b3, null, { default: c(() => [m(t2)]), _: 1 }), p(" " + f(W.value) + " ", 1), m(x2, { content: "预览" }, { default: c(() => [m(y3, { iconValue: "amb-color-icon-yulan", style: { cursor: "pointer" }, onClick: de })]), _: 1 }), m(x2, { content: "下载" }, { default: c(() => [m(y3, { iconValue: "amb-color-icon-xiazai", style: { cursor: "pointer" }, onClick: me })]), _: 1 }), m(x2, { content: "移除" }, { default: c(() => [m(y3, { iconValue: "amb-color-icon-shanchu", style: { cursor: "pointer" }, onClick: ce })]), _: 1 })])]), _: 1 })) : v("", true), m(g(E), { modelValue: U.value, "onUpdate:modelValue": l2[2] || (l2[2] = (e3) => U.value = e3), variant: "updown", "auto-size": { minRows: 2, maxRows: 5 }, clearable: "", ref_key: "senderRef", ref: X, submitType: "enter", loading: e2.loading, "allow-speech": "", onSubmit: l2[3] || (l2[3] = (e3) => ue()), placeholder: "请您描述问题" }, { header: c(() => [m(g(A), { items: Z.value, drag: "", overflow: "scrollX", "hide-upload": true }, { "file-list": c((e3) => [(i(true), u(s, null, h(e3.items, (e4) => (i(), r(g(_), { key: e4.id, maxWidth: "150px", style: { margin: "10px 5px" }, name: e4.name, percent: e4.percent, uid: e4.id, status: e4.status, "show-del-icon": "", "img-variant": "square", onDelete: he }, null, 8, ["name", "percent", "uid", "status"]))), 128))]), _: 1 }, 8, ["items"])]), prefix: c(() => [d("div", q, [m(k2, { style: { width: "146px", height: "32px" }, plain: "", modelValue: Q.value, "onUpdate:modelValue": l2[0] || (l2[0] = (e3) => Q.value = e3), onChange: pe }, { default: c(() => [(i(), u(s, null, h(K2, (e3) => m(I2, { key: e3.value, label: e3.label, value: e3.value }, null, 8, ["label", "value"])), 64))]), _: 1 }, 8, ["modelValue"])])]), "action-list": c(() => [d("div", z, [ee.value ? (i(), r(x2, { key: 0, content: "上传附件" }, { default: c(() => [m(j2, { ref_key: "uploadRef", ref: J, action: Y.value, multiple: true, headers: { Authorization: g(F)() }, accept: ".txt,.docx,.pdf,.xlsx,.epub,.mobi,.md,.csv,.json,.bmp,.png,.jpg,.jpeg,.gif,.pdf", "show-file-list": false, "on-progress": ve, "on-success": ge, "before-upload": fe }, { default: c(() => [m(P2, { iconValue: "amb-icon-fujianshangchuan" })]), _: 1 }, 8, ["action", "headers"])]), _: 1 })) : v("", true), ae.value ? (i(), r(x2, { key: 1, content: "附加页面数据" }, { default: c(() => [m(P2, { onClick: re, iconValue: "amb-icon-fujiabiaogeshu", class: "send-icon" })]), _: 1 })) : v("", true), m(x2, { content: "语音" }, { default: c(() => [m(C, { onUserMessage: ue, class: "send-icon" })]), _: 1 }), m(S2, { direction: "vertical" }), e2.loading ? (i(), r(x2, { key: 2, content: "取消" }, { default: c(() => [w((i(), r(T2, { type: "primary", style: { "border-radius": "10px" }, plain: "", round: "", onClick: se }, { default: c(() => [p(" 取消 ")]), _: 1 })), [[D2, e2.loading]])]), _: 1 })) : (i(), r(T2, { key: 3, style: { "border-radius": "10px" }, disabled: !U.value || !U.value.trim(), plain: "", circle: "", round: "", onClick: l2[1] || (l2[1] = (e3) => ue()) }, { default: c(() => [m(P2, { iconValue: "amb-icon-fasong2" })]), _: 1 }, 8, ["disabled"]))])]), _: 1 }, 8, ["modelValue", "loading"]), G], 64);
|
|
156
|
-
};
|
|
157
|
-
} });
|
|
158
|
-
export {
|
|
159
|
-
K as default
|
|
160
|
-
};
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, openBlock as r, createElementBlock as a, toDisplayString as o, createBlock as s, unref as i } from "vue";
|
|
2
|
-
import { ElMessage as n } from "element-plus";
|
|
3
|
-
import { use as l } from "echarts/core";
|
|
4
|
-
import p from "vue-echarts";
|
|
5
|
-
import { CanvasRenderer as c } from "echarts/renderers";
|
|
6
|
-
import { LineChart as u, BarChart as m, PieChart as h, RadarChart as x } from "echarts/charts";
|
|
7
|
-
import { GridComponent as y, LegendComponent as f, TitleComponent as d, TooltipComponent as v, ToolboxComponent as A, DataZoomComponent as g } from "echarts/components";
|
|
8
|
-
const O = { style: { "max-height": "700px" } }, w = { key: 0, style: { "text-align": "center", color: "#999", "margin-top": "20px" } }, b = e({ __name: "answer-auto-chart", props: { chartProps: { type: Object, default: {} } }, setup(e2) {
|
|
9
|
-
const b2 = e2;
|
|
10
|
-
l([c, u, m, h, x, y, f, d, v, A, g]);
|
|
11
|
-
const I = t(null), L = t({}), N = t(false), P = t("");
|
|
12
|
-
let S = {};
|
|
13
|
-
b2.chartProps.params && (S = JSON.parse(b2.chartProps.params));
|
|
14
|
-
let k = [], _ = {};
|
|
15
|
-
var F;
|
|
16
|
-
return b2.chartProps.answer && (_ = JSON.parse(b2.chartProps.answer), _.dataList && (k = _.dataList)), (k == null ? void 0 : k.length) > 0 && S ? (L.value = function(e3, t2) {
|
|
17
|
-
const r2 = e3.chartType || "bar";
|
|
18
|
-
return -1 !== r2.indexOf("bar") || -1 !== r2.indexOf("line") ? function(e4, t3) {
|
|
19
|
-
var _a, _b;
|
|
20
|
-
const r3 = e4.xAxis;
|
|
21
|
-
let a2 = e4.series || [], o2 = e4.yAxis || [];
|
|
22
|
-
e4.chartOption && (e4.chartOption.yAxis && (o2 = e4.chartOption.yAxis), e4.chartOption.series && (a2 = e4.chartOption.series));
|
|
23
|
-
const s2 = t3.map((e5) => {
|
|
24
|
-
const t4 = e5[r3];
|
|
25
|
-
return null != t4 ? t4 : "未知";
|
|
26
|
-
});
|
|
27
|
-
let i2 = "bar";
|
|
28
|
-
-1 !== ((_a = e4.chartType) == null ? void 0 : _a.indexOf("line")) && (i2 = "line");
|
|
29
|
-
const n2 = a2.map((r4) => {
|
|
30
|
-
var _a2;
|
|
31
|
-
const a3 = r4.name, o3 = r4.type || i2, s3 = t3.map((e5) => e5[a3] || 0), n3 = { name: a3, type: o3, data: s3 };
|
|
32
|
-
return r4.format ? n3.tooltip = { valueFormatter: function(e5) {
|
|
33
|
-
return r4.format.replace("{value}", e5);
|
|
34
|
-
} } : ((_a2 = r4.tooltip) == null ? void 0 : _a2.formatter) && (n3.tooltip = { valueFormatter: function(e5) {
|
|
35
|
-
return r4.tooltip.formatter.replace("{value}", e5);
|
|
36
|
-
} }), "yAxisIndex" in r4 && (e4.yAxis && Array.isArray(e4.yAxis) && r4.yAxisIndex > e4.yAxis.length - 1 ? r4.yAxisIndex = 0 : n3.yAxisIndex = r4.yAxisIndex), n3;
|
|
37
|
-
}), l2 = [];
|
|
38
|
-
o2 && Array.isArray(o2) ? o2.forEach((e5) => {
|
|
39
|
-
const t4 = { type: e5.type || "value" };
|
|
40
|
-
e5.axisLabel && (t4.axisLabel = e5.axisLabel), e5.name && (t4.name = e5.name), l2.push(t4);
|
|
41
|
-
}) : l2.push({ type: "value" });
|
|
42
|
-
let p2 = e4.chartName || "图表";
|
|
43
|
-
e4.chartOption && (p2 = ((_b = e4.chartOption.title) == null ? void 0 : _b.text) || p2);
|
|
44
|
-
const c2 = { title: { text: p2, left: "center" }, toolbox: { show: true, feature: { saveAsImage: { title: "保存为图片" } } }, tooltip: { trigger: "axis" }, legend: { data: a2.map((e5) => e5.name), left: "right", textStyle: { width: 180, overflow: "truncate" }, type: "scroll", orient: "vertical", top: "center", tooltip: { show: true } }, xAxis: { type: "category", data: s2 }, yAxis: l2, series: n2 };
|
|
45
|
-
s2.length > 10 && (c2.dataZoom = [{ type: "slider", start: 0, end: 100 }, { type: "inside", start: 0, end: 100 }]);
|
|
46
|
-
return c2;
|
|
47
|
-
}(e3, t2) : "pie" === r2 ? function(e4, t3) {
|
|
48
|
-
var _a;
|
|
49
|
-
const r3 = e4.xAxis, a2 = ((_a = e4.series[0]) == null ? void 0 : _a.name) || "";
|
|
50
|
-
if (!a2)
|
|
51
|
-
return n.error("饼图必须指定数值轴"), P.value = "饼图必须指定数值轴", null;
|
|
52
|
-
const o2 = t3.map((e5) => ({ name: e5[r3] || "未知", value: e5[a2] || 0 })), s2 = { title: { text: e4.chartName || "饼图", left: "center" }, toolbox: { trigger: "item", show: true, feature: { saveAsImage: { title: "保存为图片" } } }, legend: { left: "right", textStyle: { width: 180, overflow: "truncate" }, type: "scroll", orient: "vertical", top: "10%", tooltip: { show: true } }, series: [{ name: e4.chartName || "饼图", type: "pie", radius: "70%", data: o2, emphasis: { itemStyle: { shadowBlur: 10, shadowOffsetX: 0, shadowColor: "rgba(0, 0, 0, 0.5)" } } }] };
|
|
53
|
-
return s2;
|
|
54
|
-
}(e3, t2) : (n.error("不支持的图表类型"), P.value = "不支持的图表类型", null);
|
|
55
|
-
}(S, k), L.value ? (F = L.value, I.value && I.value.setOption(F, true)) : N.value = true) : k && 0 !== k.length || (n.error("未能获取到可用数据展示图表"), P.value = "未能获取到可用数据展示图表", N.value = true), (e3, t2) => (r(), a("div", O, [N.value ? (r(), a("div", w, o(P.value), 1)) : (r(), s(i(p), { key: 1, ref_key: "chartRef", ref: I, style: { height: "400px" }, option: L.value, autoresize: "" }, null, 8, ["option"]))]));
|
|
56
|
-
} });
|
|
57
|
-
export {
|
|
58
|
-
b as default
|
|
59
|
-
};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { defineComponent as r, openBlock as t, createElementBlock as h, createCommentVNode as e } from "vue";
|
|
2
|
-
import { useI18n as a } from "vue-i18n";
|
|
3
|
-
const c = { style: { height: "300px", width: "100%" } }, s = ["src"], o = ["src"], i = r({ __name: "answer-home-chart", props: { chartProps: { type: Object, default: {} } }, setup: (r2) => (a(), (a2, i2) => (t(), h("div", c, [r2.chartProps.chartuuid ? (t(), h("iframe", { key: 0, height: "100%", width: "100%", class: "home-chart-iframe", src: "http://localhost:9601/dsc/#/dsc-home-chart/page?chartUuid=" + r2.chartProps.chartuuid + "&homeChartSettingUserId=" + r2.chartProps.id }, null, 8, s)) : r2.chartProps.customurl ? (t(), h("iframe", { key: 1, height: "100%", width: "100%", class: "home-chart-iframe", src: r2.chartProps.customurl }, null, 8, o)) : e("", true)]))) });
|
|
4
|
-
export {
|
|
5
|
-
i as default
|
|
6
|
-
};
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
import { defineComponent as e, ref as a, resolveComponent as l, resolveDirective as t, openBlock as r, createElementBlock as u, createVNode as o, withCtx as i, createBlock as s, createCommentVNode as n, Fragment as d, renderList as c, createTextVNode as p, withDirectives as v, createElementVNode as h, toDisplayString as m, unref as f, vShow as b } from "vue";
|
|
2
|
-
import { ElMessage as y } from "element-plus";
|
|
3
|
-
import { use as x } from "echarts/core";
|
|
4
|
-
import g from "vue-echarts";
|
|
5
|
-
import { CanvasRenderer as k } from "echarts/renderers";
|
|
6
|
-
import { LineChart as _, BarChart as w, PieChart as V, RadarChart as A } from "echarts/charts";
|
|
7
|
-
import { InfoFilled as N } from "@element-plus/icons-vue";
|
|
8
|
-
import { GridComponent as O, LegendComponent as P, TitleComponent as I, TooltipComponent as C, ToolboxComponent as D, DataZoomComponent as E } from "echarts/components";
|
|
9
|
-
import T from "../util/mcp-utils.js";
|
|
10
|
-
const U = { style: { "max-height": "700px" } }, z = { style: { "align-items": "center" } }, S = { class: "dialog-footer" }, j = e({ __name: "answer-interaction-data", props: { chartProps: { type: Object, default: {} } }, setup(e2) {
|
|
11
|
-
const j2 = e2;
|
|
12
|
-
x([k, _, w, V, A, O, P, I, C, D, E]);
|
|
13
|
-
const J = a(null), L = a("table"), M = a(false), B = a({ chartType: "barLine", series: [{ type: "bar", yAxis: "", calculation: "count" }] }), F = a([]), R = {}, X = {}, Z = a(false), $ = a(""), q = a(), G = a([]), H = a(false), K = a([]), Q = a({}), W = a({}), Y = a();
|
|
14
|
-
if (j2.chartProps) {
|
|
15
|
-
let e3 = null;
|
|
16
|
-
if (j2.chartProps.datalist ? e3 = JSON.parse(j2.chartProps.datalist) : j2.chartProps["data-list"] && (e3 = JSON.parse(j2.chartProps["data-list"])), e3 && (F.value = e3, F.value.length > 0)) {
|
|
17
|
-
const e4 = F.value[0];
|
|
18
|
-
K.value = [...Object.keys(e4)].filter((e5) => "id" !== e5 && "ID" !== e5);
|
|
19
|
-
}
|
|
20
|
-
j2.chartProps.datatables ? W.value = JSON.parse(j2.chartProps.datatables) : j2.chartProps["data-tables"] && (W.value = JSON.parse(j2.chartProps["data-tables"])), j2.chartProps.childtables && (Y.value = JSON.parse(j2.chartProps.childtables));
|
|
21
|
-
}
|
|
22
|
-
function ee(e3) {
|
|
23
|
-
"pie" === e3 && B.value.series.length > 1 && (B.value.series = [B.value.series[0]]);
|
|
24
|
-
}
|
|
25
|
-
function ae() {
|
|
26
|
-
!function() {
|
|
27
|
-
if (!B.value.xAxis)
|
|
28
|
-
return;
|
|
29
|
-
const e3 = B.value.series, a2 = [], l2 = [], t2 = {};
|
|
30
|
-
e3.forEach((e4) => {
|
|
31
|
-
l2.push({ name: e4.yAxis, type: e4.type, data: [] });
|
|
32
|
-
}), F.value.forEach((l3) => {
|
|
33
|
-
const r2 = l3[B.value.xAxis];
|
|
34
|
-
a2.includes(r2) || a2.push(r2);
|
|
35
|
-
let u2 = {};
|
|
36
|
-
t2[r2] && Object.keys(t2[r2]).length > 0 && (u2 = t2[r2]), e3.forEach((e4) => {
|
|
37
|
-
const a3 = l3[e4.yAxis];
|
|
38
|
-
u2[e4.yAxis] || (u2[e4.yAxis] = []), u2[e4.yAxis].push(a3);
|
|
39
|
-
}), t2[r2] = u2;
|
|
40
|
-
}), a2.forEach((a3) => {
|
|
41
|
-
e3.forEach((e4, r2) => {
|
|
42
|
-
let u2 = 0;
|
|
43
|
-
const o2 = t2[a3][e4.yAxis];
|
|
44
|
-
switch (o2.forEach((e5, a4) => {
|
|
45
|
-
isNaN(Number(e5)) && (o2[a4] = 0);
|
|
46
|
-
}), e4.calculation) {
|
|
47
|
-
case "count":
|
|
48
|
-
u2 = o2.length;
|
|
49
|
-
break;
|
|
50
|
-
case "sum":
|
|
51
|
-
u2 = o2.reduce((e5, a4) => e5 + Number(a4), 0);
|
|
52
|
-
break;
|
|
53
|
-
case "average":
|
|
54
|
-
u2 = o2.length > 0 ? Number((o2.reduce((e5, a4) => e5 + Number(a4), 0) / o2.length).toFixed(2)) : 0;
|
|
55
|
-
break;
|
|
56
|
-
case "max":
|
|
57
|
-
u2 = Math.max(...o2.map((e5) => Number(e5)));
|
|
58
|
-
break;
|
|
59
|
-
case "min":
|
|
60
|
-
u2 = Math.min(...o2.map((e5) => Number(e5)));
|
|
61
|
-
break;
|
|
62
|
-
default:
|
|
63
|
-
u2 = 0;
|
|
64
|
-
}
|
|
65
|
-
l2[r2].data.push(u2);
|
|
66
|
-
});
|
|
67
|
-
}), M.value = true, Q.value = function(e4, a3) {
|
|
68
|
-
if ("pie" === B.value.chartType)
|
|
69
|
-
return { tooltip: { trigger: "item" }, legend: { type: "scroll", orient: "vertical", right: 10, top: "center" }, toolbox: { show: true, feature: { saveAsImage: { title: "保存为图片" } } }, series: [{ name: B.value.xAxis, type: "pie", radius: "90%", data: e4.map((e5, l3) => ({ name: e5, value: a3[0].data[l3] })), emphasis: { itemStyle: { shadowBlur: 10, shadowOffsetX: 0, shadowColor: "rgba(0, 0, 0, 0.5)" } } }] };
|
|
70
|
-
if ("radar" === B.value.chartType) {
|
|
71
|
-
const l3 = [];
|
|
72
|
-
return a3.forEach((e5, a4) => {
|
|
73
|
-
l3.push({ value: e5.data, name: e5.name });
|
|
74
|
-
}), { tooltip: { trigger: "item" }, legend: { type: "scroll", orient: "vertical", right: 10, top: "center" }, toolbox: { show: true, feature: { saveAsImage: { title: "保存为图片" } } }, radar: { indicator: e4.map((e5, l4) => ({ name: e5, max: 1.2 * Math.max(...a3[0].data) })) }, series: [{ name: B.value.xAxis, type: "radar", data: l3 }] };
|
|
75
|
-
}
|
|
76
|
-
return { tooltip: { trigger: "axis" }, toolbox: { show: true, feature: { dataZoom: { title: { zoom: "区域缩放", back: "缩放还原" }, yAxisIndex: "none" }, dataView: { readOnly: false, title: "数据视图", lang: ["数据视图", "关闭", "刷新"] }, magicType: { title: { line: "切换为折线图", bar: "切换为柱状图" }, type: ["line", "bar"] }, restore: { title: "还原" }, saveAsImage: { title: "保存为图片" } } }, legend: { type: "scroll", orient: "vertical", right: 10, top: "center" }, xAxis: { type: "category", data: e4 }, yAxis: { type: "value" }, series: a3 };
|
|
77
|
-
}(a2, l2), Q.value, J.value && J.value.setOption(Q, true);
|
|
78
|
-
}();
|
|
79
|
-
}
|
|
80
|
-
function le(e3) {
|
|
81
|
-
q.value = [], G.value = [], $.value = "", e3();
|
|
82
|
-
}
|
|
83
|
-
return (e3, a2) => {
|
|
84
|
-
const x2 = l("el-radio-button"), k2 = l("el-radio-group"), _2 = l("el-form-item"), w2 = l("el-option"), V2 = l("el-select"), A2 = l("el-button"), O2 = l("el-col"), P2 = l("Plus"), I2 = l("el-icon"), C2 = l("Delete"), D2 = l("el-form"), E2 = l("el-table-column"), j3 = l("el-link"), te = l("el-table"), re = l("el-dialog"), ue = t("loading");
|
|
85
|
-
return r(), u("div", U, [o(D2, { style: { "max-height": "200px", "overflow-y": "auto" }, size: "small", inline: true, model: B.value, "label-width": "60" }, { default: i(() => [o(O2, null, { default: i(() => [o(_2, { label: "展示方式" }, { default: i(() => [o(k2, { modelValue: L.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e4) => L.value = e4), size: "small" }, { default: i(() => [o(x2, { label: "表格", value: "table" }), o(x2, { label: "图表", value: "chart" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), "chart" === L.value ? (r(), s(_2, { key: 0, label: "图表类型" }, { default: i(() => [o(V2, { style: { width: "100px" }, modelValue: B.value.chartType, "onUpdate:modelValue": a2[1] || (a2[1] = (e4) => B.value.chartType = e4), placeholder: "选择图标类型", onChange: ee, clearable: "" }, { default: i(() => [o(w2, { label: "柱折图", value: "barLine" }), o(w2, { label: "饼状图", value: "pie" }), o(w2, { label: "雷达图", value: "radar" })]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : n("", true), "chart" === L.value ? (r(), s(_2, { key: 1, label: "维度" }, { default: i(() => [o(V2, { style: { width: "150px" }, modelValue: B.value.xAxis, "onUpdate:modelValue": a2[2] || (a2[2] = (e4) => B.value.xAxis = e4), placeholder: "选择图标类型", clearable: "" }, { default: i(() => [(r(true), u(d, null, c(K.value, (e4) => (r(), s(w2, { key: e4, label: e4, value: e4 }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : n("", true), "chart" === L.value ? (r(), s(_2, { key: 2 }, { default: i(() => [o(A2, { type: "primary", onClick: ae }, { default: i(() => [p("生成图表")]), _: 1 })]), _: 1 })) : n("", true)]), _: 1 }), "chart" === L.value ? (r(true), u(d, { key: 0 }, c(B.value.series, (e4, a3) => (r(), u("div", { key: a3 }, ["barLine" === B.value.chartType ? (r(), s(_2, { key: 0, label: "类型" }, { default: i(() => [o(V2, { style: { width: "100px" }, modelValue: e4.type, "onUpdate:modelValue": (a4) => e4.type = a4, placeholder: "选择显示类型", clearable: "" }, { default: i(() => [o(w2, { label: "柱形", value: "bar" }), o(w2, { label: "折线", value: "line" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 2 }, 1024)) : n("", true), o(_2, { label: "数据项" }, { default: i(() => [o(V2, { style: { width: "150px" }, modelValue: e4.yAxis, "onUpdate:modelValue": (a4) => e4.yAxis = a4, placeholder: "选择数据项", clearable: "" }, { default: i(() => [(r(true), u(d, null, c(K.value, (e5) => (r(), s(w2, { key: e5, label: e5, value: e5 }, null, 8, ["label", "value"]))), 128))]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 2 }, 1024), o(_2, { label: "计算方式" }, { default: i(() => [o(V2, { style: { width: "100px" }, modelValue: e4.calculation, "onUpdate:modelValue": (a4) => e4.calculation = a4, placeholder: "选择计算方式", clearable: "" }, { default: i(() => [o(w2, { label: "计数", value: "count" }), o(w2, { label: "求和", value: "sum" }), o(w2, { label: "平均值", value: "average" }), o(w2, { label: "最大值", value: "max" }), o(w2, { label: "最小值", value: "min" })]), _: 2 }, 1032, ["modelValue", "onUpdate:modelValue"])]), _: 2 }, 1024), "pie" !== B.value.chartType ? (r(), s(_2, { key: 1 }, { default: i(() => [o(I2, { size: "14", style: { color: "#5893ef", cursor: "pointer", "font-weight": "bold", "margin-right": "8px" }, onClick: (e5) => {
|
|
86
|
-
B.value.series.push({ type: "bar", yAxis: "", calculation: "count" });
|
|
87
|
-
} }, { default: i(() => [o(P2)]), _: 2 }, 1032, ["onClick"]), o(I2, { size: "14", style: { color: "#5893ef", cursor: "pointer" }, onClick: (e5) => function(e6) {
|
|
88
|
-
B.value.series.length > 1 ? B.value.series.splice(e6, 1) : y.warning("至少保留一个系列");
|
|
89
|
-
}(a3) }, { default: i(() => [o(C2)]), _: 2 }, 1032, ["onClick"])]), _: 2 }, 1024)) : n("", true)]))), 128)) : n("", true)]), _: 1 }, 8, ["model"]), "table" === L.value ? (r(), s(te, { key: 0, size: "small", data: F.value, fit: "", border: true, resizable: true, style: { width: "100%" }, "max-height": "500px" }, { default: i(() => [Y.value && Y.value.length > 0 ? (r(), u(d, { key: 0 }, [o(E2, { type: "index", width: "50", label: "序号" }), v(o(E2, { align: "center", fit: "", label: "关联数据", width: "180" }, { default: i((e4) => [(r(true), u(d, null, c(Y.value, (a3) => (r(), u("div", null, [h("div", z, [o(j3, { onClick: (l2) => function(e5, a4, l3) {
|
|
90
|
-
var _a;
|
|
91
|
-
if (H.value = true, q.value = [], G.value = [], (_a = R[a4.ID]) == null ? void 0 : _a[l3.id]) {
|
|
92
|
-
const e6 = /* @__PURE__ */ new Set();
|
|
93
|
-
return R[a4.ID][l3.id].forEach((a5) => {
|
|
94
|
-
Object.keys(a5).forEach((a6) => {
|
|
95
|
-
e6.add(a6);
|
|
96
|
-
});
|
|
97
|
-
}), G.value = X[l3.id], $.value = l3.alias, H.value = false, q.value = R[a4.ID][l3.id], void (Z.value = true);
|
|
98
|
-
}
|
|
99
|
-
T.getChildTableData({ parentData: a4, childTables: [l3], dataTable: W.value[0] }).then((e6) => {
|
|
100
|
-
if (R[a4.ID] || (R[a4.ID] = {}), e6[l3.alias]) {
|
|
101
|
-
const t2 = /* @__PURE__ */ new Set();
|
|
102
|
-
e6[l3.alias].forEach((e7) => {
|
|
103
|
-
Object.keys(e7).forEach((e8) => {
|
|
104
|
-
t2.add(e8);
|
|
105
|
-
});
|
|
106
|
-
}), G.value = Array.from(t2).map((e7) => ({ prop: e7, label: e7 })).filter((e7) => "id" !== e7.prop && "ID" !== e7.prop), X[l3.id] = G.value;
|
|
107
|
-
const r2 = e6[l3.alias];
|
|
108
|
-
R[a4.ID][l3.id] = r2, H.value = false, q.value = r2, $.value = l3.alias, Z.value = true;
|
|
109
|
-
}
|
|
110
|
-
}).catch(() => {
|
|
111
|
-
Z.value = true, H.value = false;
|
|
112
|
-
});
|
|
113
|
-
}(e4.$index, e4.row, a3), type: "primary" }, { default: i(() => [p(m(a3.alias), 1)]), _: 2 }, 1032, ["onClick"]), p(" "), o(I2, { style: { color: "#409eff" } }, { default: i(() => [o(f(N))]), _: 1 })])]))), 256))]), _: 1 }, 512), [[b, Y.value && Y.value.length > 0]])], 64)) : n("", true), (r(true), u(d, null, c(K.value, (e4) => (r(), s(E2, { key: e4, prop: e4, label: e4 }, null, 8, ["prop", "label"]))), 128))]), _: 1 }, 8, ["data"])) : "chart" === L.value && M.value ? (r(), s(f(g), { key: 1, ref_key: "chartRef", ref: J, style: { height: "400px" }, option: Q.value, autoresize: "" }, null, 8, ["option"])) : n("", true), o(re, { modelValue: Z.value, "onUpdate:modelValue": a2[4] || (a2[4] = (e4) => Z.value = e4), "destroy-on-close": true, title: $.value, "before-close": le }, { footer: i(() => [h("div", S, [o(A2, { onClick: a2[3] || (a2[3] = (e4) => Z.value = false) }, { default: i(() => [p("关闭")]), _: 1 })])]), default: i(() => [v((r(), s(te, { data: q.value, size: "small", style: { width: "100%" } }, { default: i(() => [o(E2, { type: "index", width: "50", label: "序号" }), (r(true), u(d, null, c(G.value, (e4) => (r(), s(E2, { key: e4.prop, prop: e4.prop, label: e4.label }, null, 8, ["prop", "label"]))), 128))]), _: 1 }, 8, ["data"])), [[ue, H.value]])]), _: 1 }, 8, ["modelValue", "title"])]);
|
|
114
|
-
};
|
|
115
|
-
} });
|
|
116
|
-
export {
|
|
117
|
-
j as default
|
|
118
|
-
};
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { defineComponent as e, ref as t, resolveComponent as o, openBlock as n, createBlock as i, withCtx as l, createElementVNode as s, createVNode as r, createTextVNode as a, unref as u } from "vue";
|
|
2
|
-
import { ElMessage as c, ElMessageBox as d } from "element-plus";
|
|
3
|
-
import { useI18n as m } from "vue-i18n";
|
|
4
|
-
import { deleteByIds as p } from "../util/history-message-util.js";
|
|
5
|
-
const f = { style: { overflow: "hidden" } }, h = { class: "operation-area", style: { display: "flex" } }, v = { class: "dialog-footer" }, g = e({ __name: "history-detail", emits: ["new-chat-session"], setup(e2, { expose: g2, emit: w }) {
|
|
6
|
-
const { t: y } = m(), b = t(false), x = window.$vueApp.config.globalProperties.baseAPI, C = t([]), I = t();
|
|
7
|
-
function M() {
|
|
8
|
-
b.value = false, w("new-chat-session");
|
|
9
|
-
}
|
|
10
|
-
function _(e3, t2) {
|
|
11
|
-
C.value = e3;
|
|
12
|
-
}
|
|
13
|
-
function T() {
|
|
14
|
-
return 0.55 * window.innerHeight;
|
|
15
|
-
}
|
|
16
|
-
function D() {
|
|
17
|
-
C.value && 0 !== C.value.length ? d.confirm(y("imatrixUIMessage.whetherToConfirmDeletion"), y("imatrixUIMessage.tips"), { confirmButtonText: y("publicModel.sure"), cancelButtonText: y("publicModel.cancel"), type: "warning" }).then(() => {
|
|
18
|
-
var _a;
|
|
19
|
-
const e3 = C.value.map((e4) => e4.id || e4.ID);
|
|
20
|
-
(_a = p(e3)) == null ? void 0 : _a.then((e4) => {
|
|
21
|
-
c({ showClose: true, type: "success", message: y("superGrid.deleteSuccessful") }), I.value.refresh(), C.value = [];
|
|
22
|
-
});
|
|
23
|
-
}) : c({ showClose: true, type: "warning", message: "请选择记录" });
|
|
24
|
-
}
|
|
25
|
-
function H(e3, t2, o2, n2, i2) {
|
|
26
|
-
return { template: '<div style="text-align:center;"><span>' + o2.iconFileName + "</span></div>", data: function() {
|
|
27
|
-
return { val: "test" };
|
|
28
|
-
}, methods: {} };
|
|
29
|
-
}
|
|
30
|
-
function R(e3, t2, o2, n2, i2) {
|
|
31
|
-
return { template: '<el-button v-if="' + !o2.$editing + `" v-permission="'bs.aiVoiceCommand.delete'" text @click.stop="deleteHistory">` + y("publicModel.delete") + "</el-button>", data: function() {
|
|
32
|
-
return {};
|
|
33
|
-
}, methods: { selectIconFile() {
|
|
34
|
-
}, saveRow: function() {
|
|
35
|
-
}, restoreRow: function() {
|
|
36
|
-
I.value.restoreRow(i2);
|
|
37
|
-
}, editCommand: function() {
|
|
38
|
-
}, deleteHistory: function() {
|
|
39
|
-
d.confirm(y("message.whetherToConfirmDeletion"), y("message.tips"), { confirmButtonText: y("publicModel.sure"), cancelButtonText: y("publicModel.cancel"), type: "warning" }).then(() => {
|
|
40
|
-
p([o2.id || o2.ID]).then(() => {
|
|
41
|
-
c.success("已删除该会话"), I.value.refresh();
|
|
42
|
-
});
|
|
43
|
-
});
|
|
44
|
-
} } };
|
|
45
|
-
}
|
|
46
|
-
return g2({ showHistoryDetail: function() {
|
|
47
|
-
b.value = true;
|
|
48
|
-
} }), (e3, t2) => {
|
|
49
|
-
const c2 = o("el-button"), d2 = o("super-grid"), m2 = o("el-dialog");
|
|
50
|
-
return n(), i(m2, { modelValue: b.value, "onUpdate:modelValue": t2[1] || (t2[1] = (e4) => b.value = e4), "destroy-on-close": "", title: "历史记录", width: "80%", top: "3vh", "close-on-click-modal": false, onClose: M }, { footer: l(() => [s("div", v, [r(c2, { type: "primary", onClick: t2[0] || (t2[0] = (e4) => b.value = false) }, { default: l(() => [a(" 关闭 ")]), _: 1 })])]), default: l(() => [s("div", f, [s("div", h, [r(c2, { type: "danger", onClick: D }, { default: l(() => [a("删除")]), _: 1 })]), r(d2, { ref_key: "gridRef", ref: I, "custom-formatter": { operation: R, preview: H }, options: { resizeHeight: T, lineEditOptions: {}, statementDto: {}, renderRow: {}, search: { labelWidth: "100px", fieldNum: 2 } }, url: u(x) + "/mc/ai-history/list-all", code: "MC_AI_HISTORY", onSelect: _, onSelectAll: _ }, null, 8, ["custom-formatter", "options", "url"])])]), _: 1 }, 8, ["modelValue"]);
|
|
51
|
-
};
|
|
52
|
-
} });
|
|
53
|
-
export {
|
|
54
|
-
g as default
|
|
55
|
-
};
|