agilebuilder-ui 1.1.65-tmp30 → 1.1.65-tmp32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/chat-embed/src/index.vue.mjs +1 -1
- package/es/chat-embed/src/index.vue2.mjs +104 -100
- package/es/chat-embed/src/voice/js/crypto-js.mjs +46 -50
- package/es/chat-embed/src/voice/voice.vue.mjs +8 -11
- package/es/date-picker-range/index.vue.mjs +1 -1
- package/es/date-picker-range/index.vue2.mjs +41 -33
- package/es/department-tree-inline/src/department-tree-service.mjs +0 -1
- package/es/department-user-tree-inline/src/department-user-multiple-tree-inline.vue.mjs +14 -11
- package/es/department-user-tree-inline/src/department-user-single-tree-inline.vue.mjs +6 -6
- package/es/department-user-tree-inline/src/department-user-tree-multi-service.mjs +19 -20
- package/es/department-user-tree-inline/src/department-user-tree-single-service.mjs +0 -1
- package/es/department-user-tree-inline/src/search-result.vue.mjs +4 -4
- package/es/department-user-tree-mobile/src/department-user-tree-inline-app.vue.mjs +2 -2
- package/es/dynamic-source-select/src/dynamic-source-select.vue.mjs +86 -85
- package/es/fs-preview/src/fs-preview.vue.mjs +73 -59
- package/es/fs-upload/src/fs-upload-multi.vue.mjs +3 -3
- package/es/fs-upload-list/src/fs-upload-list.vue.mjs +5 -6
- package/es/fs-upload-new/src/file-upload-mobile/file-upload-app.vue.mjs +15 -17
- package/es/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue.mjs +19 -19
- package/es/fs-upload-new/src/file-upload-mobile/file-upload-component.vue2.mjs +2 -2
- package/es/fs-upload-new/src/fs-preview-new.vue.mjs +1 -1
- package/es/fs-upload-new/src/fs-preview-new.vue2.mjs +50 -50
- package/es/i18n-setting/index.mjs +7 -0
- package/es/i18n-setting/src/i18n-setting-dialog.vue.mjs +23 -0
- package/es/i18n-setting/src/i18n-setting.mjs +14 -0
- package/es/i18n-setting/src/index.vue.mjs +47 -0
- package/es/index.mjs +46 -41
- package/es/multipart-upload/src/multipart-upload-form.vue.mjs +5 -5
- package/es/multipart-upload/src/multipart-upload-list.vue.mjs +6 -6
- package/es/organization-input/src/organization-input.vue.mjs +58 -58
- package/es/remove-department/src/remove-dept-service.mjs +4 -5
- package/es/remove-user/src/remove-user-service.mjs +0 -1
- package/es/remove-workgroup/src/remove-workgroup-service.mjs +0 -1
- package/es/rich-editor/index.vue.mjs +43 -84
- package/es/scan-code-input/src/scan-code-input.vue.mjs +1 -1
- package/es/scan-code-input-browser/src/scan-code-input.vue.mjs +20 -9
- package/es/src/api/sso-service.mjs +0 -1
- package/es/src/i18n/langs/cn.mjs +1 -1
- package/es/src/i18n/langs/en.mjs +1 -1
- package/es/src/permission.mjs +7 -10
- package/es/src/router/index.mjs +0 -1
- package/es/src/store/index.mjs +0 -1
- package/es/src/store/modules/app.mjs +0 -1
- package/es/src/utils/common-util.mjs +143 -143
- package/es/src/utils/i18n-util.mjs +32 -30
- package/es/src/utils/iconUtils.mjs +0 -1
- package/es/src/utils/jump-page-utils.mjs +1 -1
- package/es/src/utils/permission.mjs +25 -26
- package/es/src/utils/permissionAuth.mjs +0 -1
- package/es/src/utils/restful-interface-utils.mjs +5 -6
- package/es/src/utils/watermark.mjs +2 -7
- package/es/src/utils/workflow-util.mjs +6 -6
- package/es/src/views/dsc-component/Sidebar/Item.vue.mjs +1 -1
- package/es/src/views/dsc-component/Sidebar/Item.vue2.mjs +1 -1
- package/es/src/views/layout/components/Menubar/Item.vue.mjs +1 -1
- package/es/src/views/layout/components/Menubar/Item.vue2.mjs +8 -8
- package/es/src/views/layout/components/Menubar/SidebarItem.vue.mjs +11 -11
- package/es/style.css +1 -3103
- package/es/super-grid/src/apis.mjs +155 -151
- package/es/super-grid/src/components/mobile-table-card.mjs +14 -10
- package/es/super-grid/src/components/select-input.vue.mjs +66 -66
- package/es/super-grid/src/custom-formatter.mjs +5 -6
- package/es/super-grid/src/dynamic-input.vue.mjs +31 -39
- package/es/super-grid/src/formValidatorUtil.mjs +0 -1
- package/es/super-grid/src/normal-column-content.vue.mjs +1 -2
- package/es/super-grid/src/normal-column.vue.mjs +12 -10
- package/es/super-grid/src/row-operation.vue.mjs +3 -3
- package/es/super-grid/src/search-form-item.vue.mjs +18 -14
- package/es/super-grid/src/search-form-number.vue.mjs +7 -6
- package/es/super-grid/src/search-form-open.vue.mjs +3 -2
- package/es/super-grid/src/search-form-open.vue2.mjs +4 -0
- package/es/super-grid/src/search-form-ordinarySearch.vue.mjs +1 -1
- package/es/super-grid/src/super-grid.vue.mjs +254 -242
- package/es/super-grid/src/utils.mjs +6 -6
- package/es/super-grid/src/view-image-dialog.vue.mjs +5 -5
- package/es/super-nine-grid/src/super-nine-grid.vue.mjs +89 -83
- package/es/utils/utils.mjs +0 -1
- package/es/utils/value-set.mjs +0 -1
- package/es/workflow-history-list/src/workflow-history-list.vue.mjs +11 -10
- package/es/workgroup-tree-inline/src/workgroup-tree-service.mjs +0 -1
- package/es/workgroup-user-tree-inline/src/workgroup-tree-inline-service.mjs +0 -1
- package/es/workgroup-user-tree-mobile/src/workgroup-user-tree-inline-app.vue.mjs +2 -2
- package/package.json +6 -2
- package/src/styles/index.scss +4 -0
- package/src/styles/theme/dark-blue/select.scss +27 -1
- package/src/styles/theme/forest-green/select.scss +27 -1
- package/src/styles/theme/green/select.scss +27 -1
- package/src/styles/theme/ocean-blue/select.scss +27 -1
- package/src/styles/theme/tiffany-blue-mobile/select.scss +29 -2
- package/.eslintrc.cjs +0 -28
- package/.prettierrc.json +0 -12
- package/dist/favicon.svg +0 -29
- package/dist/index.full.min.js +0 -16659
- package/dist/style.css +0 -3104
- package/index.html +0 -19
- package/lib/IntervalSelection/index.cjs +0 -5
- package/lib/IntervalSelection/src/sectionDate.vue.cjs +0 -45
- package/lib/IntervalSelection/src/sectionDate.vue2.cjs +0 -2
- package/lib/_virtual/__vite-browser-external.cjs +0 -2
- package/lib/_virtual/_plugin-vue_export-helper.cjs +0 -7
- package/lib/breadcrumb/index.cjs +0 -5
- package/lib/breadcrumb/src/breadcrumb.vue.cjs +0 -37
- package/lib/breadcrumb/src/breadcrumb.vue2.cjs +0 -2
- package/lib/chat-embed/index.cjs +0 -5
- package/lib/chat-embed/src/chat-addition-data.vue.cjs +0 -5
- package/lib/chat-embed/src/chat-addition-data.vue2.cjs +0 -15
- package/lib/chat-embed/src/chat-addition-data.vue3.cjs +0 -2
- package/lib/chat-embed/src/chat-ai-answer-tip.vue.cjs +0 -5
- package/lib/chat-embed/src/chat-ai-answer-tip.vue2.cjs +0 -26
- package/lib/chat-embed/src/chat-ai-answer-tip.vue3.cjs +0 -2
- package/lib/chat-embed/src/chat-bubble-footer.vue.cjs +0 -5
- package/lib/chat-embed/src/chat-bubble-footer.vue2.cjs +0 -28
- package/lib/chat-embed/src/chat-bubble-footer.vue3.cjs +0 -2
- package/lib/chat-embed/src/chat-embed-message.cjs +0 -16
- package/lib/chat-embed/src/chat-sender.vue.cjs +0 -5
- package/lib/chat-embed/src/chat-sender.vue2.cjs +0 -145
- package/lib/chat-embed/src/chat-sender.vue3.cjs +0 -2
- package/lib/chat-embed/src/components/answer-auto-chart.vue.cjs +0 -5
- package/lib/chat-embed/src/components/answer-auto-chart.vue2.cjs +0 -50
- package/lib/chat-embed/src/components/answer-auto-chart.vue3.cjs +0 -2
- package/lib/chat-embed/src/components/answer-home-chart.vue.cjs +0 -5
- package/lib/chat-embed/src/components/answer-home-chart.vue2.cjs +0 -3
- package/lib/chat-embed/src/components/answer-home-chart.vue3.cjs +0 -2
- package/lib/chat-embed/src/components/answer-interaction-data.vue.cjs +0 -5
- package/lib/chat-embed/src/components/answer-interaction-data.vue2.cjs +0 -107
- package/lib/chat-embed/src/components/answer-interaction-data.vue3.cjs +0 -2
- package/lib/chat-embed/src/components/history-detail.vue.cjs +0 -5
- package/lib/chat-embed/src/components/history-detail.vue2.cjs +0 -50
- package/lib/chat-embed/src/components/history-detail.vue3.cjs +0 -2
- package/lib/chat-embed/src/header.vue.cjs +0 -5
- package/lib/chat-embed/src/header.vue2.cjs +0 -39
- package/lib/chat-embed/src/header.vue3.cjs +0 -2
- package/lib/chat-embed/src/index.vue.cjs +0 -5
- package/lib/chat-embed/src/index.vue2.cjs +0 -281
- package/lib/chat-embed/src/index.vue3.cjs +0 -2
- package/lib/chat-embed/src/recommendation-message.vue.cjs +0 -5
- package/lib/chat-embed/src/recommendation-message.vue2.cjs +0 -8
- package/lib/chat-embed/src/recommendation-message.vue3.cjs +0 -2
- package/lib/chat-embed/src/sidebar-item.vue.cjs +0 -5
- package/lib/chat-embed/src/sidebar-item.vue2.cjs +0 -109
- package/lib/chat-embed/src/sidebar-item.vue3.cjs +0 -2
- package/lib/chat-embed/src/type.cjs +0 -3
- package/lib/chat-embed/src/util/chat-embed-util.cjs +0 -51
- package/lib/chat-embed/src/util/history-message-util.cjs +0 -74
- package/lib/chat-embed/src/util/mcp-utils.cjs +0 -50
- package/lib/chat-embed/src/util/text-file-util.cjs +0 -8
- package/lib/chat-embed/src/voice/index.cjs +0 -5
- package/lib/chat-embed/src/voice/js/crypto-js.cjs +0 -1005
- package/lib/chat-embed/src/voice/js/processor/index.umd.cjs +0 -170
- package/lib/chat-embed/src/voice/js/timer.cjs +0 -8
- package/lib/chat-embed/src/voice/voice.vue.cjs +0 -96
- package/lib/date-picker-range/index.cjs +0 -5
- package/lib/date-picker-range/index.vue.cjs +0 -5
- package/lib/date-picker-range/index.vue2.cjs +0 -89
- package/lib/date-picker-range/index.vue3.cjs +0 -2
- package/lib/department-tree/index.cjs +0 -5
- package/lib/department-tree/src/department-tree.vue.cjs +0 -17
- package/lib/department-tree-inline/index.cjs +0 -5
- package/lib/department-tree-inline/src/department-multi-tree-inline.vue.cjs +0 -81
- package/lib/department-tree-inline/src/department-multi-tree-inline.vue2.cjs +0 -2
- package/lib/department-tree-inline/src/department-single-tree-inline.vue.cjs +0 -54
- package/lib/department-tree-inline/src/department-single-tree-inline.vue2.cjs +0 -2
- package/lib/department-tree-inline/src/department-tree-inline.vue.cjs +0 -12
- package/lib/department-tree-inline/src/department-tree-service.cjs +0 -106
- package/lib/department-tree-inline/src/search-result.vue.cjs +0 -36
- package/lib/department-tree-inline/src/search-result.vue2.cjs +0 -2
- package/lib/department-tree-mobile/index.cjs +0 -5
- package/lib/department-tree-mobile/src/department-tree-app.vue.cjs +0 -13
- package/lib/department-tree-mobile/src/department-tree-app.vue2.cjs +0 -2
- package/lib/department-tree-mobile/src/department-tree-app.vue3.cjs +0 -3
- package/lib/department-tree-mobile/src/department-tree-inline-app.vue.cjs +0 -110
- package/lib/department-tree-mobile/src/department-tree-inline-app.vue2.cjs +0 -3
- package/lib/department-tree-mobile/src/department-tree-service.cjs +0 -47
- package/lib/department-tree-mobile/src/dept-path.vue.cjs +0 -13
- package/lib/department-tree-mobile/src/dept-path.vue2.cjs +0 -3
- package/lib/department-tree-mobile/src/dept-result.vue.cjs +0 -14
- package/lib/department-tree-mobile/src/dept-result.vue2.cjs +0 -3
- package/lib/department-user-tree/index.cjs +0 -5
- package/lib/department-user-tree/src/department-user-multiple-tree.vue.cjs +0 -16
- package/lib/department-user-tree/src/department-user-multiple-tree.vue2.cjs +0 -2
- package/lib/department-user-tree/src/department-user-single-tree.vue.cjs +0 -14
- package/lib/department-user-tree/src/department-user-tree.vue.cjs +0 -21
- package/lib/department-user-tree-inline/index.cjs +0 -5
- package/lib/department-user-tree-inline/src/department-user-multiple-tree-inline.vue.cjs +0 -154
- package/lib/department-user-tree-inline/src/department-user-multiple-tree-inline.vue2.cjs +0 -2
- package/lib/department-user-tree-inline/src/department-user-single-tree-inline.vue.cjs +0 -57
- package/lib/department-user-tree-inline/src/department-user-single-tree-inline.vue2.cjs +0 -2
- package/lib/department-user-tree-inline/src/department-user-tree-inline.vue.cjs +0 -11
- package/lib/department-user-tree-inline/src/department-user-tree-multi-service.cjs +0 -78
- package/lib/department-user-tree-inline/src/department-user-tree-single-service.cjs +0 -51
- package/lib/department-user-tree-inline/src/group-user/group-input.vue.cjs +0 -34
- package/lib/department-user-tree-inline/src/group-user/group-list.vue.cjs +0 -22
- package/lib/department-user-tree-inline/src/group-user/group-user.vue.cjs +0 -10
- package/lib/department-user-tree-inline/src/group-user-multiple-tree.vue.cjs +0 -72
- package/lib/department-user-tree-inline/src/group-user-single-tree.vue.cjs +0 -28
- package/lib/department-user-tree-inline/src/group-user-tree-service.cjs +0 -33
- package/lib/department-user-tree-inline/src/search-result.vue.cjs +0 -38
- package/lib/department-user-tree-inline/src/search-result.vue2.cjs +0 -2
- package/lib/department-user-tree-mobile/index.cjs +0 -5
- package/lib/department-user-tree-mobile/src/department-user-tree-app.vue.cjs +0 -13
- package/lib/department-user-tree-mobile/src/department-user-tree-app.vue2.cjs +0 -2
- package/lib/department-user-tree-mobile/src/department-user-tree-app.vue3.cjs +0 -3
- package/lib/department-user-tree-mobile/src/department-user-tree-inline-app.vue.cjs +0 -124
- package/lib/department-user-tree-mobile/src/department-user-tree-inline-app.vue2.cjs +0 -3
- package/lib/department-user-tree-mobile/src/department-user-tree-service.cjs +0 -28
- package/lib/department-user-tree-mobile/src/dept-path.vue.cjs +0 -13
- package/lib/department-user-tree-mobile/src/dept-path.vue2.cjs +0 -3
- package/lib/department-user-tree-mobile/src/dept-result.vue.cjs +0 -14
- package/lib/department-user-tree-mobile/src/dept-result.vue2.cjs +0 -3
- package/lib/directives/prevent-reclick.cjs +0 -14
- package/lib/dynamic-source-select/index.cjs +0 -5
- package/lib/dynamic-source-select/src/dynamic-source-select-service.cjs +0 -30
- package/lib/dynamic-source-select/src/dynamic-source-select.vue.cjs +0 -266
- package/lib/dynamic-source-select/src/dynamic-source-select.vue2.cjs +0 -2
- package/lib/dynamic-source-select/src/dynamic-source-select.vue3.cjs +0 -2
- package/lib/dynamic-source-select/src/events.cjs +0 -28
- package/lib/empty-state/index.vue.cjs +0 -6
- package/lib/empty-state/index.vue2.cjs +0 -3
- package/lib/favicon.svg +0 -29
- package/lib/fs-preview/index.cjs +0 -5
- package/lib/fs-preview/src/fs-preview.vue.cjs +0 -119
- package/lib/fs-preview/src/fs-preview.vue2.cjs +0 -2
- package/lib/fs-upload/index.cjs +0 -5
- package/lib/fs-upload/src/fs-upload-multi.vue.cjs +0 -63
- package/lib/fs-upload/src/fs-upload-single.vue.cjs +0 -64
- package/lib/fs-upload/src/fs-upload.vue.cjs +0 -18
- package/lib/fs-upload/src/see-big-picture.vue.cjs +0 -9
- package/lib/fs-upload-list/index.cjs +0 -5
- package/lib/fs-upload-list/src/fs-upload-list.vue.cjs +0 -91
- package/lib/fs-upload-list/src/fs-upload-list.vue2.cjs +0 -2
- package/lib/fs-upload-new/index.cjs +0 -5
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-app.vue.cjs +0 -57
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-app.vue2.cjs +0 -3
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue.cjs +0 -170
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue2.cjs +0 -3
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-component.vue.cjs +0 -5
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-component.vue2.cjs +0 -32
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-component.vue3.cjs +0 -2
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-input.vue.cjs +0 -41
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-input.vue2.cjs +0 -3
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload.vue.cjs +0 -29
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload.vue2.cjs +0 -3
- package/lib/fs-upload-new/src/fs-button-upload.vue.cjs +0 -5
- package/lib/fs-upload-new/src/fs-button-upload.vue2.cjs +0 -55
- package/lib/fs-upload-new/src/fs-button-upload.vue3.cjs +0 -2
- package/lib/fs-upload-new/src/fs-drag-upload.vue.cjs +0 -5
- package/lib/fs-upload-new/src/fs-drag-upload.vue2.cjs +0 -55
- package/lib/fs-upload-new/src/fs-drag-upload.vue3.cjs +0 -2
- package/lib/fs-upload-new/src/fs-preview-new.vue.cjs +0 -5
- package/lib/fs-upload-new/src/fs-preview-new.vue2.cjs +0 -84
- package/lib/fs-upload-new/src/fs-preview-new.vue3.cjs +0 -2
- package/lib/fs-upload-new/src/fs-preview-new.vue4.cjs +0 -2
- package/lib/fs-upload-new/src/fs-upload-new.vue.cjs +0 -54
- package/lib/fs-upload-new/src/fs-upload-new.vue2.cjs +0 -3
- package/lib/hamburger/index.cjs +0 -5
- package/lib/hamburger/src/hamburger.vue.cjs +0 -11
- package/lib/hamburger/src/hamburger.vue2.cjs +0 -2
- package/lib/index.cjs +0 -41
- package/lib/json-view/json-view-dialog.vue.cjs +0 -16
- package/lib/json-view/json-view-dialog.vue2.cjs +0 -3
- package/lib/json-view/json-view.vue.cjs +0 -3
- package/lib/json-view/json-view.vue2.cjs +0 -32
- package/lib/multipart-upload/index.cjs +0 -5
- package/lib/multipart-upload/src/index.vue.cjs +0 -10
- package/lib/multipart-upload/src/multipart-upload-form.vue.cjs +0 -73
- package/lib/multipart-upload/src/multipart-upload-list.vue.cjs +0 -96
- package/lib/organization-input/index.cjs +0 -5
- package/lib/organization-input/src/organization-input.vue.cjs +0 -218
- package/lib/organization-input/src/organization-input.vue2.cjs +0 -2
- package/lib/plugins/export-data-new.cjs +0 -229
- package/lib/plugins/export-data.cjs +0 -173
- package/lib/plugins/index.cjs +0 -5
- package/lib/plugins/public-method.cjs +0 -13
- package/lib/remove-department/index.cjs +0 -5
- package/lib/remove-department/src/remove-department.vue.cjs +0 -27
- package/lib/remove-department/src/remove-dept-service.cjs +0 -12
- package/lib/remove-user/index.cjs +0 -5
- package/lib/remove-user/src/remove-user-service.cjs +0 -12
- package/lib/remove-user/src/remove-user.vue.cjs +0 -29
- package/lib/remove-workgroup/index.cjs +0 -5
- package/lib/remove-workgroup/src/remove-workgroup-service.cjs +0 -12
- package/lib/remove-workgroup/src/remove-workgroup.vue.cjs +0 -25
- package/lib/rich-editor/index.cjs +0 -5
- package/lib/rich-editor/index.vue.cjs +0 -67
- package/lib/rich-editor/tinymce/zh_CN.cjs +0 -2
- package/lib/rich-editor/viewer.vue.cjs +0 -24
- package/lib/row-form/index.cjs +0 -5
- package/lib/row-form/index.vue.cjs +0 -5
- package/lib/row-form/index.vue2.cjs +0 -56
- package/lib/row-form/index.vue3.cjs +0 -2
- package/lib/row-form/operation.vue.cjs +0 -28
- package/lib/row-form/operation.vue2.cjs +0 -3
- package/lib/scan-code-input/index.cjs +0 -5
- package/lib/scan-code-input/src/events.cjs +0 -13
- package/lib/scan-code-input/src/scan-code-input.vue.cjs +0 -26
- package/lib/scan-code-input-browser/index.cjs +0 -5
- package/lib/scan-code-input-browser/src/scan-code-input.vue.cjs +0 -34
- package/lib/secret-info/index.cjs +0 -5
- package/lib/secret-info/index.vue.cjs +0 -13
- package/lib/src/api/sso-service.cjs +0 -55
- package/lib/src/api/tab.cjs +0 -14
- package/lib/src/assets/401/401.gif.cjs +0 -2
- package/lib/src/assets/404/404-cloud.png.cjs +0 -2
- package/lib/src/assets/404/404.png.cjs +0 -2
- package/lib/src/assets/chat-embed/robot.gif.cjs +0 -2
- package/lib/src/assets/chat-embed/robot.svg.cjs +0 -2
- package/lib/src/assets/nonemessage.png.cjs +0 -2
- package/lib/src/components/Affix/index.vue.cjs +0 -5
- package/lib/src/components/Affix/index.vue2.cjs +0 -81
- package/lib/src/components/Affix/index.vue3.cjs +0 -2
- package/lib/src/components/Card/index.cjs +0 -46
- package/lib/src/components/Scrollbar/index.vue.cjs +0 -48
- package/lib/src/components/Scrollbar/index.vue2.cjs +0 -2
- package/lib/src/directives/permission/index.cjs +0 -5
- package/lib/src/directives/permission/permission.cjs +0 -9
- package/lib/src/i18n/i18n.cjs +0 -3
- package/lib/src/i18n/langs/cn.cjs +0 -2
- package/lib/src/i18n/langs/en.cjs +0 -2
- package/lib/src/mixins/resizeMixin.cjs +0 -20
- package/lib/src/permission.cjs +0 -76
- package/lib/src/router/index.cjs +0 -16
- package/lib/src/store/getters.cjs +0 -2
- package/lib/src/store/index.cjs +0 -16
- package/lib/src/store/modules/app.cjs +0 -40
- package/lib/src/store/modules/chat-ai-store.cjs +0 -33
- package/lib/src/store/modules/permission.cjs +0 -30
- package/lib/src/store/modules/system.cjs +0 -10
- package/lib/src/store/modules/tab-content.cjs +0 -18
- package/lib/src/store/modules/table.cjs +0 -17
- package/lib/src/store/modules/user.cjs +0 -133
- package/lib/src/utils/auth-api.cjs +0 -132
- package/lib/src/utils/auth.cjs +0 -86
- package/lib/src/utils/calculator/calculator-factory-wf.cjs +0 -166
- package/lib/src/utils/calculator/calculator-factory.cjs +0 -92
- package/lib/src/utils/calculator/calculator-util.cjs +0 -53
- package/lib/src/utils/chat-ai-util.cjs +0 -26
- package/lib/src/utils/common-util.cjs +0 -362
- package/lib/src/utils/eventBus.cjs +0 -3
- package/lib/src/utils/file-util.cjs +0 -22
- package/lib/src/utils/global-prop.cjs +0 -22
- package/lib/src/utils/guid.cjs +0 -7
- package/lib/src/utils/i18n-util.cjs +0 -62
- package/lib/src/utils/iconUtils.cjs +0 -19
- package/lib/src/utils/index.cjs +0 -32
- package/lib/src/utils/insert_css.cjs +0 -18
- package/lib/src/utils/json-util.cjs +0 -45
- package/lib/src/utils/jump-page-utils.cjs +0 -256
- package/lib/src/utils/local-storage.cjs +0 -18
- package/lib/src/utils/menu.cjs +0 -13
- package/lib/src/utils/permission.cjs +0 -41
- package/lib/src/utils/permissionAuth.cjs +0 -120
- package/lib/src/utils/range-selector.cjs +0 -101
- package/lib/src/utils/request.cjs +0 -131
- package/lib/src/utils/resize.cjs +0 -11
- package/lib/src/utils/restful-interface-utils.cjs +0 -15
- package/lib/src/utils/util.cjs +0 -341
- package/lib/src/utils/validate.cjs +0 -12
- package/lib/src/utils/voice-setting-cache.cjs +0 -199
- package/lib/src/utils/watermark-cache.cjs +0 -10
- package/lib/src/utils/watermark.cjs +0 -33
- package/lib/src/utils/workflow-util.cjs +0 -41
- package/lib/src/views/dsc-component/Sidebar/Item.vue.cjs +0 -5
- package/lib/src/views/dsc-component/Sidebar/Item.vue2.cjs +0 -9
- package/lib/src/views/dsc-component/Sidebar/Item.vue3.cjs +0 -2
- package/lib/src/views/dsc-component/Sidebar/Link.vue.cjs +0 -11
- package/lib/src/views/dsc-component/Sidebar/SidebarItem.vue.cjs +0 -46
- package/lib/src/views/dsc-component/Sidebar/SidebarItem.vue2.cjs +0 -2
- package/lib/src/views/dsc-component/Sidebar/index.vue.cjs +0 -103
- package/lib/src/views/dsc-component/tabs/tab-content.vue.cjs +0 -61
- package/lib/src/views/dsc-component/tabs/tab-content.vue2.cjs +0 -2
- package/lib/src/views/dsc-component/tabs/tab-content.vue3.cjs +0 -2
- package/lib/src/views/error-page/401.vue.cjs +0 -11
- package/lib/src/views/error-page/401.vue2.cjs +0 -2
- package/lib/src/views/error-page/404.vue.cjs +0 -8
- package/lib/src/views/error-page/404.vue2.cjs +0 -2
- package/lib/src/views/layout/EmptyLayout.vue.cjs +0 -7
- package/lib/src/views/layout/Layout.vue.cjs +0 -21
- package/lib/src/views/layout/Layout.vue2.cjs +0 -2
- package/lib/src/views/layout/NewLayout.vue.cjs +0 -7
- package/lib/src/views/layout/components/AppMain.vue.cjs +0 -11
- package/lib/src/views/layout/components/AppMain.vue2.cjs +0 -2
- package/lib/src/views/layout/components/Breadcrumb/index.vue.cjs +0 -56
- package/lib/src/views/layout/components/Breadcrumb/index.vue2.cjs +0 -2
- package/lib/src/views/layout/components/Menubar/Item.vue.cjs +0 -5
- package/lib/src/views/layout/components/Menubar/Item.vue2.cjs +0 -13
- package/lib/src/views/layout/components/Menubar/Item.vue3.cjs +0 -2
- package/lib/src/views/layout/components/Menubar/Link.vue.cjs +0 -11
- package/lib/src/views/layout/components/Menubar/SidebarItem.vue.cjs +0 -47
- package/lib/src/views/layout/components/Menubar/SidebarItem.vue2.cjs +0 -2
- package/lib/src/views/layout/components/Menubar/index.vue.cjs +0 -79
- package/lib/src/views/layout/components/Sidebar/Item.vue.cjs +0 -7
- package/lib/src/views/layout/components/Sidebar/Item.vue2.cjs +0 -3
- package/lib/src/views/layout/components/Sidebar/Link.vue.cjs +0 -9
- package/lib/src/views/layout/components/Sidebar/SidebarItem.vue.cjs +0 -16
- package/lib/src/views/layout/components/Sidebar/SidebarItem.vue2.cjs +0 -2
- package/lib/src/views/layout/components/Sidebar/index.vue.cjs +0 -51
- package/lib/src/views/layout/components/iframe-page.vue.cjs +0 -12
- package/lib/src/views/layout/components/iframe-page.vue2.cjs +0 -2
- package/lib/src/views/layout/components/tabs/tab-content.vue.cjs +0 -60
- package/lib/src/views/layout/components/tabs/tab-content.vue2.cjs +0 -2
- package/lib/src/views/layout/components/tabs/tab-content.vue3.cjs +0 -2
- package/lib/src/views/layout/mixin/ResizeHandler.cjs +0 -14
- package/lib/src/views/layout/tab-content-iframe-index.vue.cjs +0 -12
- package/lib/src/views/layout/tab-content-iframe-index.vue2.cjs +0 -2
- package/lib/src/views/layout/tab-content-index.vue.cjs +0 -22
- package/lib/src/views/layout/tab-content-index.vue2.cjs +0 -2
- package/lib/src/views/login/authredirect.vue.cjs +0 -6
- package/lib/src/views/redirect/index.vue.cjs +0 -17
- package/lib/src/views/super-icon/index.cjs +0 -5
- package/lib/src/views/super-icon/src/index.vue.cjs +0 -5
- package/lib/src/views/super-icon/src/index.vue2.cjs +0 -10
- package/lib/src/views/super-icon/src/index.vue3.cjs +0 -2
- package/lib/src/views/svg-icon/src/svg-icon.vue.cjs +0 -2
- package/lib/src/views/svg-icon/src/svg-icon.vue2.cjs +0 -12
- package/lib/src/views/wf-history/tache-subprocess-history.vue.cjs +0 -12
- package/lib/src/views/wf-history/tache-subprocess-history.vue2.cjs +0 -2
- package/lib/style.css +0 -3103
- package/lib/super-grid/index.cjs +0 -5
- package/lib/super-grid/src/apis.cjs +0 -477
- package/lib/super-grid/src/columns-config.vue.cjs +0 -76
- package/lib/super-grid/src/components/grid-icon.vue.cjs +0 -39
- package/lib/super-grid/src/components/grid-radio-input.vue.cjs +0 -22
- package/lib/super-grid/src/components/grid-radio-input.vue2.cjs +0 -3
- package/lib/super-grid/src/components/mobile-table-card.cjs +0 -99
- package/lib/super-grid/src/components/select-input.vue.cjs +0 -141
- package/lib/super-grid/src/components/select-input.vue2.cjs +0 -3
- package/lib/super-grid/src/custom-formatter.cjs +0 -163
- package/lib/super-grid/src/dynamic-input.vue.cjs +0 -465
- package/lib/super-grid/src/eventBus.cjs +0 -3
- package/lib/super-grid/src/events.cjs +0 -35
- package/lib/super-grid/src/formValidatorUtil.cjs +0 -106
- package/lib/super-grid/src/formatter.cjs +0 -69
- package/lib/super-grid/src/group-column.vue.cjs +0 -19
- package/lib/super-grid/src/header-context-menu.vue.cjs +0 -12
- package/lib/super-grid/src/header-context-menu.vue2.cjs +0 -2
- package/lib/super-grid/src/index-column.vue.cjs +0 -19
- package/lib/super-grid/src/normal-column-content.vue.cjs +0 -303
- package/lib/super-grid/src/normal-column-content.vue2.cjs +0 -2
- package/lib/super-grid/src/normal-column.vue.cjs +0 -90
- package/lib/super-grid/src/normal-column.vue2.cjs +0 -2
- package/lib/super-grid/src/public-methods.cjs +0 -20
- package/lib/super-grid/src/row-detail.vue.cjs +0 -11
- package/lib/super-grid/src/row-operation.vue.cjs +0 -82
- package/lib/super-grid/src/row-operation.vue2.cjs +0 -2
- package/lib/super-grid/src/scan-util.cjs +0 -98
- package/lib/super-grid/src/search-button.vue.cjs +0 -20
- package/lib/super-grid/src/search-condition-input.vue.cjs +0 -13
- package/lib/super-grid/src/search-condition-list.vue.cjs +0 -17
- package/lib/super-grid/src/search-form-advancedQuery.vue.cjs +0 -106
- package/lib/super-grid/src/search-form-advancedQuery.vue2.cjs +0 -2
- package/lib/super-grid/src/search-form-dialog.vue.cjs +0 -23
- package/lib/super-grid/src/search-form-item.vue.cjs +0 -120
- package/lib/super-grid/src/search-form-item.vue2.cjs +0 -2
- package/lib/super-grid/src/search-form-mobile.vue.cjs +0 -32
- package/lib/super-grid/src/search-form-mobile.vue2.cjs +0 -2
- package/lib/super-grid/src/search-form-number.vue.cjs +0 -21
- package/lib/super-grid/src/search-form-open.vue.cjs +0 -46
- package/lib/super-grid/src/search-form-ordinarySearch.vue.cjs +0 -33
- package/lib/super-grid/src/search-form-ordinarySearch.vue2.cjs +0 -2
- package/lib/super-grid/src/search-form.vue.cjs +0 -194
- package/lib/super-grid/src/search-form.vue2.cjs +0 -2
- package/lib/super-grid/src/search-methods.cjs +0 -163
- package/lib/super-grid/src/selection-column.vue.cjs +0 -9
- package/lib/super-grid/src/store.cjs +0 -3
- package/lib/super-grid/src/super-grid-service.cjs +0 -253
- package/lib/super-grid/src/super-grid.vue.cjs +0 -1083
- package/lib/super-grid/src/super-grid.vue2.cjs +0 -2
- package/lib/super-grid/src/utils.cjs +0 -373
- package/lib/super-grid/src/view-image-dialog.vue.cjs +0 -60
- package/lib/super-icon/index.cjs +0 -5
- package/lib/super-icon/src/index.vue.cjs +0 -5
- package/lib/super-icon/src/index.vue2.cjs +0 -10
- package/lib/super-icon/src/index.vue3.cjs +0 -2
- package/lib/super-nine-grid/index.cjs +0 -5
- package/lib/super-nine-grid/src/apis.cjs +0 -33
- package/lib/super-nine-grid/src/custom-formatter.cjs +0 -33
- package/lib/super-nine-grid/src/formatter.cjs +0 -36
- package/lib/super-nine-grid/src/search-form-number.vue.cjs +0 -9
- package/lib/super-nine-grid/src/search-form.vue.cjs +0 -84
- package/lib/super-nine-grid/src/search-form.vue2.cjs +0 -2
- package/lib/super-nine-grid/src/search-methods.cjs +0 -47
- package/lib/super-nine-grid/src/store.cjs +0 -3
- package/lib/super-nine-grid/src/super-grid-service.cjs +0 -35
- package/lib/super-nine-grid/src/super-nine-grid.vue.cjs +0 -215
- package/lib/super-nine-grid/src/super-nine-grid.vue2.cjs +0 -2
- package/lib/super-nine-grid/src/utils.cjs +0 -36
- package/lib/svg-icon/index.cjs +0 -5
- package/lib/svg-icon/src/svg-icon.vue.cjs +0 -12
- package/lib/svg-icon/src/svg-icon.vue2.cjs +0 -2
- package/lib/utils/gogocodeTransfer.cjs +0 -28
- package/lib/utils/memory-cache-utils.cjs +0 -28
- package/lib/utils/organization.cjs +0 -55
- package/lib/utils/utils.cjs +0 -85
- package/lib/utils/value-set.cjs +0 -92
- package/lib/valid-code/index.cjs +0 -5
- package/lib/valid-code/src/valid-code.vue.cjs +0 -20
- package/lib/valid-code/src/valid-code.vue2.cjs +0 -2
- package/lib/workflow-button/index.cjs +0 -5
- package/lib/workflow-button/src/workflow-button.vue.cjs +0 -80
- package/lib/workflow-history-list/index.cjs +0 -5
- package/lib/workflow-history-list/src/api.cjs +0 -5
- package/lib/workflow-history-list/src/workflow-history-list.vue.cjs +0 -83
- package/lib/workflow-history-list/src/workflow-history-list.vue2.cjs +0 -2
- package/lib/workgroup-tree/index.cjs +0 -5
- package/lib/workgroup-tree/src/workgroup-tree.vue.cjs +0 -17
- package/lib/workgroup-tree-inline/index.cjs +0 -5
- package/lib/workgroup-tree-inline/src/search-result.vue.cjs +0 -35
- package/lib/workgroup-tree-inline/src/search-result.vue2.cjs +0 -2
- package/lib/workgroup-tree-inline/src/workgroup-tree-inline.vue.cjs +0 -119
- package/lib/workgroup-tree-inline/src/workgroup-tree-inline.vue2.cjs +0 -2
- package/lib/workgroup-tree-inline/src/workgroup-tree-service.cjs +0 -33
- package/lib/workgroup-tree-mobile/index.cjs +0 -5
- package/lib/workgroup-tree-mobile/src/dept-result.vue.cjs +0 -14
- package/lib/workgroup-tree-mobile/src/dept-result.vue2.cjs +0 -3
- package/lib/workgroup-tree-mobile/src/workgroup-tree-app.vue.cjs +0 -13
- package/lib/workgroup-tree-mobile/src/workgroup-tree-app.vue2.cjs +0 -2
- package/lib/workgroup-tree-mobile/src/workgroup-tree-app.vue3.cjs +0 -3
- package/lib/workgroup-tree-mobile/src/workgroup-tree-inline-app.vue.cjs +0 -99
- package/lib/workgroup-tree-mobile/src/workgroup-tree-inline-app.vue2.cjs +0 -3
- package/lib/workgroup-tree-mobile/src/workgroup-tree-service.cjs +0 -25
- package/lib/workgroup-user-tree/index.cjs +0 -5
- package/lib/workgroup-user-tree/src/workgroup-user-tree.vue.cjs +0 -17
- package/lib/workgroup-user-tree-inline/index.cjs +0 -5
- package/lib/workgroup-user-tree-inline/src/search-result.vue.cjs +0 -35
- package/lib/workgroup-user-tree-inline/src/search-result.vue2.cjs +0 -2
- package/lib/workgroup-user-tree-inline/src/workgroup-tree-inline-service.cjs +0 -71
- package/lib/workgroup-user-tree-inline/src/workgroup-user-tree-inline.vue.cjs +0 -163
- package/lib/workgroup-user-tree-inline/src/workgroup-user-tree-inline.vue2.cjs +0 -2
- package/lib/workgroup-user-tree-mobile/src/dept-path.vue.cjs +0 -13
- package/lib/workgroup-user-tree-mobile/src/dept-path.vue2.cjs +0 -3
- package/lib/workgroup-user-tree-mobile/src/dept-result.vue.cjs +0 -14
- package/lib/workgroup-user-tree-mobile/src/dept-result.vue2.cjs +0 -3
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue.cjs +0 -13
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue2.cjs +0 -2
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue3.cjs +0 -3
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-inline-app.vue.cjs +0 -124
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-inline-app.vue2.cjs +0 -3
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-service.cjs +0 -20
- package/lib/year-range-picker/index.cjs +0 -5
- package/lib/year-range-picker/src/year-range-picker.vue.cjs +0 -11
- package/src/api/sso-service.js +0 -222
- package/src/api/tab.js +0 -36
- package/src/assets/401/401.gif +0 -0
- package/src/assets/404/404-cloud.png +0 -0
- package/src/assets/404/404.png +0 -0
- package/src/assets/chat-embed/background.png +0 -0
- package/src/assets/chat-embed/robot.gif +0 -0
- package/src/assets/chat-embed/robot.svg +0 -32
- package/src/assets/cloud.png +0 -0
- package/src/assets/nonemessage.png +0 -0
- package/src/assets/tab-selectWhite.png +0 -0
- package/src/components/Affix/index.vue +0 -272
- package/src/components/Card/index.jsx +0 -227
- package/src/components/Scrollbar/index.vue +0 -224
- package/src/directives/permission/index.js +0 -14
- package/src/directives/permission/permission.js +0 -27
- package/src/i18n/i18n.js +0 -16
- package/src/i18n/langs/cn.js +0 -344
- package/src/i18n/langs/en.js +0 -344
- package/src/index.js +0 -22
- package/src/mixins/resizeMixin.js +0 -49
- package/src/permission.js +0 -252
- package/src/plugins.js +0 -18
- package/src/router/index.js +0 -92
- package/src/store/getters.js +0 -26
- package/src/store/index.js +0 -23
- package/src/store/modules/app.js +0 -96
- package/src/store/modules/chat-ai-store.ts +0 -85
- package/src/store/modules/permission.js +0 -143
- package/src/store/modules/system.js +0 -35
- package/src/store/modules/tab-content.js +0 -42
- package/src/store/modules/table.js +0 -76
- package/src/store/modules/user.js +0 -448
- package/src/utils/auth-api.js +0 -370
- package/src/utils/auth.js +0 -194
- package/src/utils/calculator/calculator-factory-wf.js +0 -465
- package/src/utils/calculator/calculator-factory.js +0 -133
- package/src/utils/calculator/calculator-util.js +0 -184
- package/src/utils/chat-ai-util.ts +0 -41
- package/src/utils/common-util.js +0 -1019
- package/src/utils/dingtalk-util.ts +0 -43
- package/src/utils/eventBus.js +0 -10
- package/src/utils/file-util.ts +0 -42
- package/src/utils/global-prop.ts +0 -44
- package/src/utils/guid.js +0 -13
- package/src/utils/i18n-util.js +0 -145
- package/src/utils/iconUtils.js +0 -37
- package/src/utils/iframe-communicator.js +0 -234
- package/src/utils/index.js +0 -102
- package/src/utils/insert_css.js +0 -47
- package/src/utils/json-util.ts +0 -85
- package/src/utils/jump-page-utils.js +0 -829
- package/src/utils/local-storage.js +0 -33
- package/src/utils/menu.js +0 -19
- package/src/utils/permission.js +0 -126
- package/src/utils/permissionAuth.js +0 -311
- package/src/utils/range-selector.js +0 -204
- package/src/utils/request.js +0 -407
- package/src/utils/resize.js +0 -19
- package/src/utils/restful-interface-utils.js +0 -57
- package/src/utils/util.js +0 -1000
- package/src/utils/validate.js +0 -34
- package/src/utils/voice-setting-cache.js +0 -497
- package/src/utils/watermark-cache.js +0 -13
- package/src/utils/watermark.js +0 -119
- package/src/utils/workflow-util.js +0 -107
- package/src/views/404.vue +0 -248
- package/src/views/dsc-component/Sidebar/Item.vue +0 -95
- package/src/views/dsc-component/Sidebar/Link.vue +0 -38
- package/src/views/dsc-component/Sidebar/SidebarItem.vue +0 -245
- package/src/views/dsc-component/Sidebar/index.vue +0 -258
- package/src/views/dsc-component/tabs/tab-content.vue +0 -230
- package/src/views/error-page/401.vue +0 -106
- package/src/views/error-page/404.vue +0 -248
- package/src/views/layout/EmptyLayout.vue +0 -3
- package/src/views/layout/Layout.vue +0 -85
- package/src/views/layout/NewLayout.vue +0 -18
- package/src/views/layout/components/AppMain.vue +0 -46
- package/src/views/layout/components/Breadcrumb/index.vue +0 -158
- package/src/views/layout/components/Menubar/Item.vue +0 -125
- package/src/views/layout/components/Menubar/Link.vue +0 -38
- package/src/views/layout/components/Menubar/SidebarItem.vue +0 -333
- package/src/views/layout/components/Menubar/index.vue +0 -250
- package/src/views/layout/components/Sidebar/Item.vue +0 -33
- package/src/views/layout/components/Sidebar/Link.vue +0 -38
- package/src/views/layout/components/Sidebar/SidebarItem.vue +0 -179
- package/src/views/layout/components/Sidebar/index.vue +0 -141
- package/src/views/layout/components/iframe-page.vue +0 -38
- package/src/views/layout/components/index.js +0 -4
- package/src/views/layout/components/tabs/tab-content.vue +0 -273
- package/src/views/layout/mixin/ResizeHandler.js +0 -41
- package/src/views/layout/tab-content-iframe-index.vue +0 -38
- package/src/views/layout/tab-content-index.vue +0 -92
- package/src/views/login/authredirect.vue +0 -10
- package/src/views/login/index.vue +0 -296
- package/src/views/login/update-password.vue +0 -246
- package/src/views/redirect/index.vue +0 -14
- package/src/views/super-icon/index.js +0 -6
- package/src/views/super-icon/src/index.vue +0 -52
- package/src/views/svg-icon/index.js +0 -6
- package/src/views/svg-icon/src/svg-icon.vue +0 -43
- package/src/views/wf-history/tache-subprocess-history.vue +0 -45
- package/vite.config.js +0 -103
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const e = require("vue"), a = require("element-plus"), l = require("echarts/core"), t = require("vue-echarts"), o = require("echarts/renderers"), r = require("echarts/charts"), c = require("@element-plus/icons-vue"), n = require("echarts/components"), i = require("../util/mcp-utils.cjs"), u = { style: { "max-height": "700px" } }, d = { style: { "align-items": "center" } }, s = { class: "dialog-footer" }, p = e.defineComponent({ __name: "answer-interaction-data", props: { chartProps: { type: Object, default: {} } }, setup(p2) {
|
|
3
|
-
l.use([o.CanvasRenderer, r.LineChart, r.BarChart, r.PieChart, r.RadarChart, n.GridComponent, n.LegendComponent, n.TitleComponent, n.TooltipComponent, n.ToolboxComponent, n.DataZoomComponent]);
|
|
4
|
-
const m = p2, h = e.ref(null), v = e.ref("table"), f = e.ref(false), b = e.ref({ chartType: "barLine", series: [{ type: "bar", yAxis: "", calculation: "count" }] }), x = e.ref([]), y = {}, k = {}, V = e.ref(false), C = e.ref(""), N = e.ref(), g = e.ref([]), w = e.ref(false), B = e.ref([]), _ = e.ref({}), E = e.ref({}), A = e.ref();
|
|
5
|
-
if (m.chartProps) {
|
|
6
|
-
let e2 = null;
|
|
7
|
-
if (m.chartProps.datalist ? e2 = JSON.parse(m.chartProps.datalist) : m.chartProps["data-list"] && (e2 = JSON.parse(m.chartProps["data-list"])), e2 && (x.value = e2, x.value.length > 0)) {
|
|
8
|
-
const e3 = x.value[0];
|
|
9
|
-
B.value = [...Object.keys(e3)].filter((e4) => "id" !== e4 && "ID" !== e4);
|
|
10
|
-
}
|
|
11
|
-
m.chartProps.datatables ? E.value = JSON.parse(m.chartProps.datatables) : m.chartProps["data-tables"] && (E.value = JSON.parse(m.chartProps["data-tables"])), m.chartProps.childtables && (A.value = JSON.parse(m.chartProps.childtables));
|
|
12
|
-
}
|
|
13
|
-
function T(e2) {
|
|
14
|
-
"pie" === e2 && b.value.series.length > 1 && (b.value.series = [b.value.series[0]]);
|
|
15
|
-
}
|
|
16
|
-
function D() {
|
|
17
|
-
!function() {
|
|
18
|
-
if (!b.value.xAxis)
|
|
19
|
-
return;
|
|
20
|
-
const e2 = b.value.series, a2 = [], l2 = [], t2 = {};
|
|
21
|
-
e2.forEach((e3) => {
|
|
22
|
-
l2.push({ name: e3.yAxis, type: e3.type, data: [] });
|
|
23
|
-
}), x.value.forEach((l3) => {
|
|
24
|
-
const o2 = l3[b.value.xAxis];
|
|
25
|
-
a2.includes(o2) || a2.push(o2);
|
|
26
|
-
let r2 = {};
|
|
27
|
-
t2[o2] && Object.keys(t2[o2]).length > 0 && (r2 = t2[o2]), e2.forEach((e3) => {
|
|
28
|
-
const a3 = l3[e3.yAxis];
|
|
29
|
-
r2[e3.yAxis] || (r2[e3.yAxis] = []), r2[e3.yAxis].push(a3);
|
|
30
|
-
}), t2[o2] = r2;
|
|
31
|
-
}), a2.forEach((a3) => {
|
|
32
|
-
e2.forEach((e3, o2) => {
|
|
33
|
-
let r2 = 0;
|
|
34
|
-
const c2 = t2[a3][e3.yAxis];
|
|
35
|
-
switch (c2.forEach((e4, a4) => {
|
|
36
|
-
isNaN(Number(e4)) && (c2[a4] = 0);
|
|
37
|
-
}), e3.calculation) {
|
|
38
|
-
case "count":
|
|
39
|
-
r2 = c2.length;
|
|
40
|
-
break;
|
|
41
|
-
case "sum":
|
|
42
|
-
r2 = c2.reduce((e4, a4) => e4 + Number(a4), 0);
|
|
43
|
-
break;
|
|
44
|
-
case "average":
|
|
45
|
-
r2 = c2.length > 0 ? Number((c2.reduce((e4, a4) => e4 + Number(a4), 0) / c2.length).toFixed(2)) : 0;
|
|
46
|
-
break;
|
|
47
|
-
case "max":
|
|
48
|
-
r2 = Math.max(...c2.map((e4) => Number(e4)));
|
|
49
|
-
break;
|
|
50
|
-
case "min":
|
|
51
|
-
r2 = Math.min(...c2.map((e4) => Number(e4)));
|
|
52
|
-
break;
|
|
53
|
-
default:
|
|
54
|
-
r2 = 0;
|
|
55
|
-
}
|
|
56
|
-
l2[o2].data.push(r2);
|
|
57
|
-
});
|
|
58
|
-
}), f.value = true, _.value = function(e3, a3) {
|
|
59
|
-
if ("pie" === b.value.chartType)
|
|
60
|
-
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: e3.map((e4, l3) => ({ name: e4, value: a3[0].data[l3] })), emphasis: { itemStyle: { shadowBlur: 10, shadowOffsetX: 0, shadowColor: "rgba(0, 0, 0, 0.5)" } } }] };
|
|
61
|
-
if ("radar" === b.value.chartType) {
|
|
62
|
-
const l3 = [];
|
|
63
|
-
return a3.forEach((e4, a4) => {
|
|
64
|
-
l3.push({ value: e4.data, name: e4.name });
|
|
65
|
-
}), { tooltip: { trigger: "item" }, legend: { type: "scroll", orient: "vertical", right: 10, top: "center" }, toolbox: { show: true, feature: { saveAsImage: { title: "保存为图片" } } }, radar: { indicator: e3.map((e4, l4) => ({ name: e4, max: 1.2 * Math.max(...a3[0].data) })) }, series: [{ name: b.value.xAxis, type: "radar", data: l3 }] };
|
|
66
|
-
}
|
|
67
|
-
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: e3 }, yAxis: { type: "value" }, series: a3 };
|
|
68
|
-
}(a2, l2), _.value, h.value && h.value.setOption(_, true);
|
|
69
|
-
}();
|
|
70
|
-
}
|
|
71
|
-
function P(e2) {
|
|
72
|
-
N.value = [], g.value = [], C.value = "", e2();
|
|
73
|
-
}
|
|
74
|
-
return (l2, o2) => {
|
|
75
|
-
const r2 = e.resolveComponent("el-radio-button"), n2 = e.resolveComponent("el-radio-group"), p3 = e.resolveComponent("el-form-item"), m2 = e.resolveComponent("el-option"), I = e.resolveComponent("el-select"), O = e.resolveComponent("el-button"), L = e.resolveComponent("el-col"), S = e.resolveComponent("Plus"), U = e.resolveComponent("el-icon"), q = e.resolveComponent("Delete"), z = e.resolveComponent("el-form"), F = e.resolveComponent("el-table-column"), j = e.resolveComponent("el-link"), J = e.resolveComponent("el-table"), M = e.resolveComponent("el-dialog"), R = e.resolveDirective("loading");
|
|
76
|
-
return e.openBlock(), e.createElementBlock("div", u, [e.createVNode(z, { style: { "max-height": "200px", "overflow-y": "auto" }, size: "small", inline: true, model: b.value, "label-width": "60" }, { default: e.withCtx(() => [e.createVNode(L, null, { default: e.withCtx(() => [e.createVNode(p3, { label: "展示方式" }, { default: e.withCtx(() => [e.createVNode(n2, { modelValue: v.value, "onUpdate:modelValue": o2[0] || (o2[0] = (e2) => v.value = e2), size: "small" }, { default: e.withCtx(() => [e.createVNode(r2, { label: "表格", value: "table" }), e.createVNode(r2, { label: "图表", value: "chart" })]), _: 1 }, 8, ["modelValue"])]), _: 1 }), "chart" === v.value ? (e.openBlock(), e.createBlock(p3, { key: 0, label: "图表类型" }, { default: e.withCtx(() => [e.createVNode(I, { style: { width: "100px" }, modelValue: b.value.chartType, "onUpdate:modelValue": o2[1] || (o2[1] = (e2) => b.value.chartType = e2), placeholder: "选择图标类型", onChange: T, clearable: "" }, { default: e.withCtx(() => [e.createVNode(m2, { label: "柱折图", value: "barLine" }), e.createVNode(m2, { label: "饼状图", value: "pie" }), e.createVNode(m2, { label: "雷达图", value: "radar" })]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : e.createCommentVNode("", true), "chart" === v.value ? (e.openBlock(), e.createBlock(p3, { key: 1, label: "维度" }, { default: e.withCtx(() => [e.createVNode(I, { style: { width: "150px" }, modelValue: b.value.xAxis, "onUpdate:modelValue": o2[2] || (o2[2] = (e2) => b.value.xAxis = e2), placeholder: "选择图标类型", clearable: "" }, { default: e.withCtx(() => [(e.openBlock(true), e.createElementBlock(e.Fragment, null, e.renderList(B.value, (a2) => (e.openBlock(), e.createBlock(m2, { key: a2, label: a2, value: a2 }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue"])]), _: 1 })) : e.createCommentVNode("", true), "chart" === v.value ? (e.openBlock(), e.createBlock(p3, { key: 2 }, { default: e.withCtx(() => [e.createVNode(O, { type: "primary", onClick: D }, { default: e.withCtx(() => [...o2[5] || (o2[5] = [e.createTextVNode("生成图表", -1)])]), _: 1 })]), _: 1 })) : e.createCommentVNode("", true)]), _: 1 }), "chart" === v.value ? (e.openBlock(true), e.createElementBlock(e.Fragment, { key: 0 }, e.renderList(b.value.series, (l3, t2) => (e.openBlock(), e.createElementBlock("div", { key: t2 }, ["barLine" === b.value.chartType ? (e.openBlock(), e.createBlock(p3, { key: 0, label: "类型" }, { default: e.withCtx(() => [e.createVNode(I, { style: { width: "100px" }, modelValue: l3.type, "onUpdate:modelValue": (e2) => l3.type = e2, placeholder: "选择显示类型", clearable: "" }, { default: e.withCtx(() => [e.createVNode(m2, { label: "柱形", value: "bar" }), e.createVNode(m2, { label: "折线", value: "line" })]), _: 1 }, 8, ["modelValue", "onUpdate:modelValue"])]), _: 2 }, 1024)) : e.createCommentVNode("", true), e.createVNode(p3, { label: "数据项" }, { default: e.withCtx(() => [e.createVNode(I, { style: { width: "150px" }, modelValue: l3.yAxis, "onUpdate:modelValue": (e2) => l3.yAxis = e2, placeholder: "选择数据项", clearable: "" }, { default: e.withCtx(() => [(e.openBlock(true), e.createElementBlock(e.Fragment, null, e.renderList(B.value, (a2) => (e.openBlock(), e.createBlock(m2, { key: a2, label: a2, value: a2 }, null, 8, ["label", "value"]))), 128))]), _: 1 }, 8, ["modelValue", "onUpdate:modelValue"])]), _: 2 }, 1024), e.createVNode(p3, { label: "计算方式" }, { default: e.withCtx(() => [e.createVNode(I, { style: { width: "100px" }, modelValue: l3.calculation, "onUpdate:modelValue": (e2) => l3.calculation = e2, placeholder: "选择计算方式", clearable: "" }, { default: e.withCtx(() => [e.createVNode(m2, { label: "计数", value: "count" }), e.createVNode(m2, { label: "求和", value: "sum" }), e.createVNode(m2, { label: "平均值", value: "average" }), e.createVNode(m2, { label: "最大值", value: "max" }), e.createVNode(m2, { label: "最小值", value: "min" })]), _: 1 }, 8, ["modelValue", "onUpdate:modelValue"])]), _: 2 }, 1024), "pie" !== b.value.chartType ? (e.openBlock(), e.createBlock(p3, { key: 1 }, { default: e.withCtx(() => [e.createVNode(U, { size: "14", style: { color: "#5893ef", cursor: "pointer", "font-weight": "bold", "margin-right": "8px" }, onClick: (e2) => {
|
|
77
|
-
b.value.series.push({ type: "bar", yAxis: "", calculation: "count" });
|
|
78
|
-
} }, { default: e.withCtx(() => [e.createVNode(S)]), _: 1 }, 8, ["onClick"]), e.createVNode(U, { size: "14", style: { color: "#5893ef", cursor: "pointer" }, onClick: (e2) => function(e3) {
|
|
79
|
-
b.value.series.length > 1 ? b.value.series.splice(e3, 1) : a.ElMessage.warning("至少保留一个系列");
|
|
80
|
-
}(t2) }, { default: e.withCtx(() => [e.createVNode(q)]), _: 1 }, 8, ["onClick"])]), _: 2 }, 1024)) : e.createCommentVNode("", true)]))), 128)) : e.createCommentVNode("", true)]), _: 1 }, 8, ["model"]), "table" === v.value ? (e.openBlock(), e.createBlock(J, { key: 0, size: "small", data: x.value, fit: "", border: true, resizable: true, style: { width: "100%" }, "max-height": "500px" }, { default: e.withCtx(() => [A.value && A.value.length > 0 ? (e.openBlock(), e.createElementBlock(e.Fragment, { key: 0 }, [e.createVNode(F, { type: "index", width: "50", label: "序号" }), e.withDirectives(e.createVNode(F, { align: "center", fit: "", label: "关联数据", width: "180" }, { default: e.withCtx((a2) => [(e.openBlock(true), e.createElementBlock(e.Fragment, null, e.renderList(A.value, (l3) => (e.openBlock(), e.createElementBlock("div", null, [e.createElementVNode("div", d, [e.createVNode(j, { onClick: (e2) => function(e3, a3, l4) {
|
|
81
|
-
var _a;
|
|
82
|
-
if (w.value = true, N.value = [], g.value = [], (_a = y[a3.ID]) == null ? void 0 : _a[l4.id]) {
|
|
83
|
-
const e4 = /* @__PURE__ */ new Set();
|
|
84
|
-
return y[a3.ID][l4.id].forEach((a4) => {
|
|
85
|
-
Object.keys(a4).forEach((a5) => {
|
|
86
|
-
e4.add(a5);
|
|
87
|
-
});
|
|
88
|
-
}), g.value = k[l4.id], C.value = l4.alias, w.value = false, N.value = y[a3.ID][l4.id], void (V.value = true);
|
|
89
|
-
}
|
|
90
|
-
i.default.getChildTableData({ parentData: a3, childTables: [l4], dataTable: E.value[0] }).then((e4) => {
|
|
91
|
-
if (y[a3.ID] || (y[a3.ID] = {}), e4[l4.alias]) {
|
|
92
|
-
const t2 = /* @__PURE__ */ new Set();
|
|
93
|
-
e4[l4.alias].forEach((e5) => {
|
|
94
|
-
Object.keys(e5).forEach((e6) => {
|
|
95
|
-
t2.add(e6);
|
|
96
|
-
});
|
|
97
|
-
}), g.value = Array.from(t2).map((e5) => ({ prop: e5, label: e5 })).filter((e5) => "id" !== e5.prop && "ID" !== e5.prop), k[l4.id] = g.value;
|
|
98
|
-
const o3 = e4[l4.alias];
|
|
99
|
-
y[a3.ID][l4.id] = o3, w.value = false, N.value = o3, C.value = l4.alias, V.value = true;
|
|
100
|
-
}
|
|
101
|
-
}).catch(() => {
|
|
102
|
-
V.value = true, w.value = false;
|
|
103
|
-
});
|
|
104
|
-
}(a2.$index, a2.row, l3), type: "primary" }, { default: e.withCtx(() => [e.createTextVNode(e.toDisplayString(l3.alias), 1)]), _: 2 }, 1032, ["onClick"]), o2[6] || (o2[6] = e.createTextVNode(" ", -1)), e.createVNode(U, { style: { color: "#409eff" } }, { default: e.withCtx(() => [e.createVNode(e.unref(c.InfoFilled))]), _: 1 })])]))), 256))]), _: 1 }, 512), [[e.vShow, A.value && A.value.length > 0]])], 64)) : e.createCommentVNode("", true), (e.openBlock(true), e.createElementBlock(e.Fragment, null, e.renderList(B.value, (a2) => (e.openBlock(), e.createBlock(F, { key: a2, prop: a2, label: a2 }, null, 8, ["prop", "label"]))), 128))]), _: 1 }, 8, ["data"])) : "chart" === v.value && f.value ? (e.openBlock(), e.createBlock(e.unref(t), { key: 1, ref_key: "chartRef", ref: h, style: { height: "400px" }, option: _.value, autoresize: "" }, null, 8, ["option"])) : e.createCommentVNode("", true), e.createVNode(M, { modelValue: V.value, "onUpdate:modelValue": o2[4] || (o2[4] = (e2) => V.value = e2), "destroy-on-close": true, title: C.value, "before-close": P }, { footer: e.withCtx(() => [e.createElementVNode("div", s, [e.createVNode(O, { onClick: o2[3] || (o2[3] = (e2) => V.value = false) }, { default: e.withCtx(() => [...o2[7] || (o2[7] = [e.createTextVNode("关闭", -1)])]), _: 1 })])]), default: e.withCtx(() => [e.withDirectives((e.openBlock(), e.createBlock(J, { data: N.value, size: "small", style: { width: "100%" } }, { default: e.withCtx(() => [e.createVNode(F, { type: "index", width: "50", label: "序号" }), (e.openBlock(true), e.createElementBlock(e.Fragment, null, e.renderList(g.value, (a2) => (e.openBlock(), e.createBlock(F, { key: a2.prop, prop: a2.prop, label: a2.label }, null, 8, ["prop", "label"]))), 128))]), _: 1 }, 8, ["data"])), [[R, w.value]])]), _: 1 }, 8, ["modelValue", "title"])]);
|
|
105
|
-
};
|
|
106
|
-
} });
|
|
107
|
-
module.exports = p;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const e = require("vue"), t = require("element-plus"), o = require("vue-i18n"), n = require("../util/history-message-util.cjs"), l = { style: { overflow: "hidden" } }, i = { class: "operation-area", style: { display: "flex" } }, s = { class: "dialog-footer" }, r = e.defineComponent({ __name: "history-detail", emits: ["new-chat-session"], setup(r2, { expose: a, emit: u }) {
|
|
3
|
-
const c = u, { t: d } = o.useI18n(), m = e.ref(false), p = window.$vueApp.config.globalProperties.baseAPI, f = e.ref([]), h = e.ref();
|
|
4
|
-
function v() {
|
|
5
|
-
m.value = false, c("new-chat-session");
|
|
6
|
-
}
|
|
7
|
-
function g(e2, t2) {
|
|
8
|
-
f.value = e2;
|
|
9
|
-
}
|
|
10
|
-
function w() {
|
|
11
|
-
return 0.55 * window.innerHeight;
|
|
12
|
-
}
|
|
13
|
-
function y() {
|
|
14
|
-
f.value && 0 !== f.value.length ? t.ElMessageBox.confirm(d("imatrixUIMessage.whetherToConfirmDeletion"), d("imatrixUIMessage.tips"), { confirmButtonText: d("publicModel.sure"), cancelButtonText: d("publicModel.cancel"), type: "warning" }).then(() => {
|
|
15
|
-
var _a;
|
|
16
|
-
const e2 = f.value.map((e3) => e3.id || e3.ID);
|
|
17
|
-
(_a = n.deleteByIds(e2)) == null ? void 0 : _a.then((e3) => {
|
|
18
|
-
t.ElMessage({ showClose: true, type: "success", message: d("superGrid.deleteSuccessful") }), h.value.refresh(), f.value = [];
|
|
19
|
-
});
|
|
20
|
-
}) : t.ElMessage({ showClose: true, type: "warning", message: "请选择记录" });
|
|
21
|
-
}
|
|
22
|
-
function x(e2, t2, o2, n2, l2) {
|
|
23
|
-
return { template: '<div style="text-align:center;"><span>' + o2.iconFileName + "</span></div>", data: function() {
|
|
24
|
-
return { val: "test" };
|
|
25
|
-
}, methods: {} };
|
|
26
|
-
}
|
|
27
|
-
function C(e2, o2, l2, i2, s2) {
|
|
28
|
-
return { template: '<el-button v-if="' + !l2.$editing + `" v-permission="'bs.aiVoiceCommand.delete'" text @click.stop="deleteHistory">` + d("publicModel.delete") + "</el-button>", data: function() {
|
|
29
|
-
return {};
|
|
30
|
-
}, methods: { selectIconFile() {
|
|
31
|
-
}, saveRow: function() {
|
|
32
|
-
}, restoreRow: function() {
|
|
33
|
-
h.value.restoreRow(s2);
|
|
34
|
-
}, editCommand: function() {
|
|
35
|
-
}, deleteHistory: function() {
|
|
36
|
-
t.ElMessageBox.confirm(d("message.whetherToConfirmDeletion"), d("message.tips"), { confirmButtonText: d("publicModel.sure"), cancelButtonText: d("publicModel.cancel"), type: "warning" }).then(() => {
|
|
37
|
-
n.deleteByIds([l2.id || l2.ID]).then(() => {
|
|
38
|
-
t.ElMessage.success("已删除该会话"), h.value.refresh();
|
|
39
|
-
});
|
|
40
|
-
});
|
|
41
|
-
} } };
|
|
42
|
-
}
|
|
43
|
-
return a({ showHistoryDetail: function() {
|
|
44
|
-
m.value = true;
|
|
45
|
-
} }), (t2, o2) => {
|
|
46
|
-
const n2 = e.resolveComponent("el-button"), r3 = e.resolveComponent("super-grid"), a2 = e.resolveComponent("el-dialog");
|
|
47
|
-
return e.openBlock(), e.createBlock(a2, { modelValue: m.value, "onUpdate:modelValue": o2[1] || (o2[1] = (e2) => m.value = e2), "destroy-on-close": "", title: "历史记录", width: "80%", top: "3vh", "close-on-click-modal": false, onClose: v }, { footer: e.withCtx(() => [e.createElementVNode("div", s, [e.createVNode(n2, { type: "primary", onClick: o2[0] || (o2[0] = (e2) => m.value = false) }, { default: e.withCtx(() => [...o2[3] || (o2[3] = [e.createTextVNode(" 关闭 ", -1)])]), _: 1 })])]), default: e.withCtx(() => [e.createElementVNode("div", l, [e.createElementVNode("div", i, [e.createVNode(n2, { type: "danger", onClick: y }, { default: e.withCtx(() => [...o2[2] || (o2[2] = [e.createTextVNode("删除", -1)])]), _: 1 })]), e.createVNode(r3, { ref_key: "gridRef", ref: h, "custom-formatter": { operation: C, preview: x }, options: { resizeHeight: w, lineEditOptions: {}, statementDto: {}, renderRow: {}, search: { labelWidth: "100px", fieldNum: 2 } }, url: e.unref(p) + "/mc/ai-history/list-all", code: "MC_AI_HISTORY", onSelect: g, onSelectAll: g }, null, 8, ["custom-formatter", "options", "url"])])]), _: 1 }, 8, ["modelValue"]);
|
|
48
|
-
};
|
|
49
|
-
} });
|
|
50
|
-
module.exports = r;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const e = require("vue"), o = require("vue-i18n"), t = require("./components/history-detail.vue.cjs"), c = require("./util/history-message-util.cjs"), a = require("element-plus"), n = require("@element-plus/icons-vue"), l = { ref: "chatHeaderRef", class: "chat-embed__header_container" }, s = { key: 0, class: "session-subject" }, i = { class: "chat-embed__header_tool_icon" }, r = { class: "header-icon" }, d = { class: "header-icon" }, u = e.defineComponent({ __name: "header", props: { dialogFullScreen: { type: Boolean, default: false }, aiModel: { type: String, default: null }, chatSessionId: { type: Object, default: null }, aiHistory: { type: Object, default: null } }, emits: ["showChatDialog", "expandDialog", "new-chat-session", "collected-session"], setup(u2, { emit: f }) {
|
|
3
|
-
const { t: m } = o.useI18n(), h = u2, k = f, p = e.ref(null);
|
|
4
|
-
function y() {
|
|
5
|
-
k("expandDialog");
|
|
6
|
-
}
|
|
7
|
-
function V() {
|
|
8
|
-
k("showChatDialog");
|
|
9
|
-
}
|
|
10
|
-
function C() {
|
|
11
|
-
k("new-chat-session");
|
|
12
|
-
}
|
|
13
|
-
function b() {
|
|
14
|
-
h.chatSessionId && h.aiModel && h.chatSessionId[h.aiModel] && c.collectBySessionId(h.chatSessionId[h.aiModel]).then(() => {
|
|
15
|
-
h.aiHistory.collected = !h.aiHistory.collected, h.aiHistory.collected ? a.ElMessage.success("已收藏该会话") : a.ElMessage.success("已取消收藏该会话"), k("collected-session");
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
function S() {
|
|
19
|
-
h.chatSessionId && h.aiModel && h.chatSessionId[h.aiModel] && c.usefuleBySessionId(h.chatSessionId[h.aiModel]).then(() => {
|
|
20
|
-
h.aiHistory.useful = !h.aiHistory.useful, h.aiHistory.useful ? a.ElMessage.success("已标记该会话有用") : a.ElMessage.success("已取消标记该会话有用");
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
function g() {
|
|
24
|
-
var _a;
|
|
25
|
-
(_a = p.value) == null ? void 0 : _a.showHistoryDetail();
|
|
26
|
-
}
|
|
27
|
-
return (o2, c2) => {
|
|
28
|
-
var _a, _b, _c;
|
|
29
|
-
const a2 = e.resolveComponent("SuperIcon"), f2 = e.resolveComponent("el-tooltip"), h2 = e.resolveComponent("el-icon");
|
|
30
|
-
return e.openBlock(), e.createElementBlock("div", l, [u2.dialogFullScreen ? (e.openBlock(), e.createElementBlock("span", s, e.toDisplayString((_a = u2.aiHistory) == null ? void 0 : _a.subject), 1)) : e.createCommentVNode("", true), e.createElementVNode("div", i, [e.createVNode(f2, { class: "box-item", effect: "dark", content: "查看所有历史会话" }, { default: e.withCtx(() => [e.createElementVNode("span", { class: "header-icon", onClick: g }, [e.createVNode(a2, { iconValue: "amb-icon-yulan" })])]), _: 1 }), u2.chatSessionId[u2.aiModel] ? (e.openBlock(), e.createBlock(f2, { key: 0, class: "box-item", effect: "dark", content: ((_b = u2.aiHistory) == null ? void 0 : _b.useful) ? "取消标记为有用" : "标记为有用" }, { default: e.withCtx(() => {
|
|
31
|
-
var _a2;
|
|
32
|
-
return [e.createElementVNode("span", { class: "header-icon", onClick: S }, [((_a2 = u2.aiHistory) == null ? void 0 : _a2.useful) ? (e.openBlock(), e.createBlock(h2, { key: 0 }, { default: e.withCtx(() => [e.createVNode(e.unref(n.FolderRemove))]), _: 1 })) : (e.openBlock(), e.createBlock(a2, { key: 1, iconValue: "amb-icon-youyong" }))])];
|
|
33
|
-
}), _: 1 }, 8, ["content"])) : e.createCommentVNode("", true), u2.chatSessionId[u2.aiModel] ? (e.openBlock(), e.createBlock(f2, { key: 1, class: "box-item", effect: "dark", content: ((_c = u2.aiHistory) == null ? void 0 : _c.collected) ? "取消收藏" : "收藏会话" }, { default: e.withCtx(() => {
|
|
34
|
-
var _a2;
|
|
35
|
-
return [e.createElementVNode("span", { class: "header-icon", onClick: b }, [((_a2 = u2.aiHistory) == null ? void 0 : _a2.collected) ? (e.openBlock(), e.createBlock(h2, { key: 0 }, { default: e.withCtx(() => [e.createVNode(e.unref(n.StarFilled))]), _: 1 })) : (e.openBlock(), e.createBlock(a2, { key: 1, iconValue: "amb-icon-shoucang" }))])];
|
|
36
|
-
}), _: 1 }, 8, ["content"])) : e.createCommentVNode("", true), e.createVNode(f2, { class: "box-item", effect: "dark", content: u2.dialogFullScreen ? e.unref(m)("chatEmbed.minimize") : e.unref(m)("chatEmbed.fullscreen") }, { default: e.withCtx(() => [e.createElementVNode("span", r, [e.createVNode(a2, { iconValue: u2.dialogFullScreen ? "amb-icon-fangda" : "amb-icon-suoxiao", onClick: y }, null, 8, ["iconValue"])])]), _: 1 }, 8, ["content"]), e.createVNode(f2, { class: "box-item", effect: "dark", content: e.unref(m)("chatEmbed.close") }, { default: e.withCtx(() => [e.createElementVNode("span", d, [e.createVNode(a2, { onClick: V, iconValue: "amb-icon-guanbi" })])]), _: 1 }, 8, ["content"])]), e.createVNode(t, { ref_key: "historyDetailRef", ref: p, onNewChatSession: C }, null, 512)], 512);
|
|
37
|
-
};
|
|
38
|
-
} });
|
|
39
|
-
module.exports = u;
|
|
@@ -1,281 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const e = require("vue"), t = require("vue-i18n"), a = require("vue-element-plus-x"), n = require("@vueuse/core"), o = require("../../src/utils/auth.cjs"), l = require("./chat-embed-message.cjs"), r = require("./type.cjs"), i = require("./recommendation-message.vue.cjs"), u = require("./chat-addition-data.vue.cjs"), s = require("./chat-bubble-footer.vue.cjs"), c = require("./chat-ai-answer-tip.vue.cjs"), d = require("./header.vue.cjs"), v = require("./chat-sender.vue.cjs");
|
|
3
|
-
require("codemirror"), require("@codemirror/lang-json"), require("@codemirror/state");
|
|
4
|
-
const m = require("../../json-view/json-view-dialog.vue.cjs"), h = require("./components/answer-home-chart.vue.cjs"), f = require("./components/answer-interaction-data.vue.cjs"), g = require("./components/answer-auto-chart.vue.cjs"), p = require("../../src/assets/chat-embed/robot.gif.cjs"), y = require("./sidebar-item.vue.cjs"), k = require("uuid"), w = require("./util/text-file-util.cjs"), S = require("./util/chat-embed-util.cjs"), b = require("./util/mcp-utils.cjs"), E = require("vue-router"), A = { key: 0 }, C = ["src"], N = { class: "chat-content" }, T = { style: { display: "flex", "flex-direction": "row" } }, x = { class: "chat-embed__main_content" }, M = ["href", "title"], q = ["href", "target"], _ = { style: { "font-size": "10px", color: "#999", "text-align": "right" } }, V = { key: 1, style: { "margin-top": "5px", width: "100%" } }, D = ["onClick"], B = { style: { display: "none" } }, P = e.defineComponent({ __name: "index", setup(P2) {
|
|
5
|
-
var _a, _b, _c;
|
|
6
|
-
const I = function() {
|
|
7
|
-
try {
|
|
8
|
-
const e2 = E.useRoute();
|
|
9
|
-
return e2.query.customSystem ? String(e2.query.customSystem) : null;
|
|
10
|
-
} catch (e2) {
|
|
11
|
-
return console.error("获取customSystem参数失败"), null;
|
|
12
|
-
}
|
|
13
|
-
}();
|
|
14
|
-
const j = e.ref(((_c = (_b = (_a = window.$vueApp) == null ? void 0 : _a.config) == null ? void 0 : _b.globalProperties) == null ? void 0 : _c.enableAiChat) || false), { startStream: O, cancel: U, data: L, error: F, isLoading: R } = a.useXStream(), { t: $ } = t.useI18n(), H = e.ref(), z = e.ref(true), J = e.ref([]), G = e.ref({}), W = e.ref(false), K = e.ref(r.AI_MODELS.RAGFLOW), X = e.ref({}), Q = {}, Y = e.ref(true), Z = e.ref(null), ee = e.ref(false), te = e.ref(false), ae = e.ref(0), ne = e.ref(""), oe = e.ref("500px"), le = e.ref(250), re = e.ref("https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png"), ie = e.ref(false), ue = e.ref({}), se = e.ref(), ce = e.ref(), de = e.ref(), ve = e.ref(), me = e.ref(), he = e.ref(false);
|
|
15
|
-
let fe = null;
|
|
16
|
-
const ge = e.ref(null), pe = document.documentElement.clientWidth - 100, ye = document.documentElement.clientHeight - 100, { x: ke, y: we, style: Se } = n.useDraggable(H, { initialValue: { x: pe, y: ye }, preventDefault: true, onStart() {
|
|
17
|
-
z.value = true;
|
|
18
|
-
}, onMove(e2) {
|
|
19
|
-
z.value = false, function(e3) {
|
|
20
|
-
var _a2, _b2;
|
|
21
|
-
const t2 = window.innerWidth - (((_a2 = H.value) == null ? void 0 : _a2.offsetWidth) || 0), a2 = window.innerHeight - (((_b2 = H.value) == null ? void 0 : _b2.offsetHeight) || 0);
|
|
22
|
-
e3.x = Math.max(0, Math.min(e3.x, t2)), e3.y = Math.max(0, Math.min(e3.y, a2));
|
|
23
|
-
}(e2);
|
|
24
|
-
}, onEnd() {
|
|
25
|
-
be(), setTimeout(() => z.value = true, 50);
|
|
26
|
-
} });
|
|
27
|
-
function be() {
|
|
28
|
-
if (!H.value)
|
|
29
|
-
return;
|
|
30
|
-
const e2 = window.innerWidth - H.value.offsetWidth, t2 = window.innerHeight - H.value.offsetHeight;
|
|
31
|
-
ke.value > e2 && (ke.value = e2), we.value > t2 && (we.value = t2);
|
|
32
|
-
}
|
|
33
|
-
function Ee(e2) {
|
|
34
|
-
var _a2;
|
|
35
|
-
Y.value = true, K.value = e2, J.value = [], Q[e2] && 0 !== Q[e2].length ? (J.value = Q[e2], (_a2 = se.value) == null ? void 0 : _a2.scrollToBottom()) : J.value.push(l.defaultMessage);
|
|
36
|
-
}
|
|
37
|
-
function Ae(e2 = $("chatEmbed.requestFailed")) {
|
|
38
|
-
J.value.push(l.getMessageTemplate("ai", e2, false, false)), W.value = false;
|
|
39
|
-
}
|
|
40
|
-
function Ce() {
|
|
41
|
-
z.value && (ee.value = !ee.value, _e(), me.value.getHistory());
|
|
42
|
-
}
|
|
43
|
-
function Ne(e2) {
|
|
44
|
-
return X.value[e2] || (X.value[e2] = k.v4().replace(/-/g, "")), X.value[e2];
|
|
45
|
-
}
|
|
46
|
-
Ee(K.value), e.watch(oe, (e2) => {
|
|
47
|
-
document.documentElement.style.setProperty("--el-bubble-list-max-height", e2);
|
|
48
|
-
}), e.onMounted(() => {
|
|
49
|
-
if (window.addEventListener("resize", be), ce.value) {
|
|
50
|
-
const e2 = new ResizeObserver(() => {
|
|
51
|
-
_e();
|
|
52
|
-
});
|
|
53
|
-
e2.observe(ce.value.$el || ce.value), ce.value._resizeObserver = e2;
|
|
54
|
-
}
|
|
55
|
-
}), e.onBeforeUnmount(() => {
|
|
56
|
-
var _a2;
|
|
57
|
-
((_a2 = ce.value) == null ? void 0 : _a2._resizeObserver) && ce.value._resizeObserver.disconnect();
|
|
58
|
-
}), e.onUnmounted(() => {
|
|
59
|
-
window.removeEventListener("resize", be), function() {
|
|
60
|
-
fe && (fe.abort(), fe = null);
|
|
61
|
-
U(), he.value = false, W.value = false;
|
|
62
|
-
}();
|
|
63
|
-
});
|
|
64
|
-
const Te = e.computed(() => {
|
|
65
|
-
var _a2, _b2, _c2;
|
|
66
|
-
if (!he.value || !L.value.length)
|
|
67
|
-
return "";
|
|
68
|
-
const e2 = L.value[L.value.length - 1];
|
|
69
|
-
try {
|
|
70
|
-
const t2 = JSON.parse(e2.data);
|
|
71
|
-
if (t2.isChunk)
|
|
72
|
-
true === t2.data && G.value.content ? (G.value.thinkingStatus = r.MESSAGE_STATUS.END, G.value.showThinkingContent = true, G.value = {}, W.value = false) : xe(t2);
|
|
73
|
-
else {
|
|
74
|
-
if (!((_a2 = t2.data) == null ? void 0 : _a2.id) && true !== t2.data)
|
|
75
|
-
return W.value = false, G.value && (G.value.thinkingStatus = r.MESSAGE_STATUS.END), "";
|
|
76
|
-
if (t2.data.reference && (((_b2 = t2.data.reference.doc_aggs) == null ? void 0 : _b2.length) && (G.value.docAggs = t2.data.reference.doc_aggs), ((_c2 = t2.data.reference.chunks) == null ? void 0 : _c2.length) && (G.value.referenceChunks = t2.data.reference.chunks)), true === t2.data)
|
|
77
|
-
return function() {
|
|
78
|
-
if (W.value = false, !G.value)
|
|
79
|
-
return;
|
|
80
|
-
G.value.content = S.replaceAiTipTags(G.value.content), $e();
|
|
81
|
-
}(t2.data.answer), "";
|
|
82
|
-
xe(t2);
|
|
83
|
-
}
|
|
84
|
-
} catch (e3) {
|
|
85
|
-
console.error("解析数据时出错:", e3), W.value = false;
|
|
86
|
-
}
|
|
87
|
-
return "";
|
|
88
|
-
});
|
|
89
|
-
function xe(e2) {
|
|
90
|
-
const t2 = e2.data.answer;
|
|
91
|
-
if (!t2 || !G.value)
|
|
92
|
-
return;
|
|
93
|
-
const { thinkingContent: a2, mainContent: n2 } = S.parseAnswerContent(t2);
|
|
94
|
-
a2 && (G.value.thinkingContent = a2), n2 && (e2.isChunk ? G.value.content += n2 : G.value.content = n2);
|
|
95
|
-
}
|
|
96
|
-
function Me() {
|
|
97
|
-
if (W.value = false, fe && (fe.abort(), fe = null), he.value && (U(), he.value = false, J.value.length > 0)) {
|
|
98
|
-
const e2 = J.value[J.value.length - 1];
|
|
99
|
-
e2 && "ai" === e2.role && (e2.thinkingStatus = r.MESSAGE_STATUS.END, e2.content || (e2.content = "回答已取消"));
|
|
100
|
-
}
|
|
101
|
-
G.value && Object.keys(G.value).length > 0 && (G.value.thinkingStatus = r.MESSAGE_STATUS.END, G.value = {});
|
|
102
|
-
}
|
|
103
|
-
function qe() {
|
|
104
|
-
te.value = !te.value, _e();
|
|
105
|
-
}
|
|
106
|
-
function _e() {
|
|
107
|
-
let t2 = 100;
|
|
108
|
-
te.value && (t2 = 100), e.nextTick(() => {
|
|
109
|
-
var _a2;
|
|
110
|
-
te.value ? (de.value.style.height = `calc(${t2}vh)`, de.value.style.width = "calc(100vw)", ne.value = "calc(100vw - var(--chat-padding) * 2) * 0.8") : (de.value.style.height = `calc(${t2}vh - var(--chat-padding) * 2)`, de.value.style.width = 460 + le.value + "px", ne.value = 0.8 * (460 + le.value) + "px");
|
|
111
|
-
const e2 = ((_a2 = ce.value) == null ? void 0 : _a2.offsetHeight) || 80, a2 = window.innerHeight * t2 / 100 - 56 - e2 - 72;
|
|
112
|
-
oe.value = a2 + "px";
|
|
113
|
-
});
|
|
114
|
-
}
|
|
115
|
-
function Ve(e2) {
|
|
116
|
-
switch (W.value && Me(), e2.systemCode = I, he.value = false, e2.aiModel) {
|
|
117
|
-
case r.AI_MODELS.RAGFLOW:
|
|
118
|
-
!function(e3) {
|
|
119
|
-
if (!e3)
|
|
120
|
-
return;
|
|
121
|
-
L.value = [], J.value.push(l.getMessageTemplate("user", e3, true, false)), W.value = true, X.value[K.value] ? Le(e3) : async function(e4) {
|
|
122
|
-
try {
|
|
123
|
-
const t2 = await window.$vueApp.config.globalProperties.$http.post(window.$vueApp.config.globalProperties.baseAPI + "/mc/rag-flow/converse-with-chat", { question: e4 });
|
|
124
|
-
X.value[K.value] = t2.session_id, Le(e4);
|
|
125
|
-
} catch (e5) {
|
|
126
|
-
console.error("Failed to create session:", e5), Ae();
|
|
127
|
-
}
|
|
128
|
-
}(e3);
|
|
129
|
-
}(e2.question);
|
|
130
|
-
break;
|
|
131
|
-
case r.AI_MODELS.DATABASE:
|
|
132
|
-
!function(e3) {
|
|
133
|
-
if (W.value = true, !e3.question)
|
|
134
|
-
return;
|
|
135
|
-
const t2 = l.createUserMessage(e3);
|
|
136
|
-
J.value.push(t2), G.value = l.createAiMessage(e3, true), J.value.push(G.value);
|
|
137
|
-
try {
|
|
138
|
-
b.default.sendMessageToMcp(e3, Ne(K.value)).then(({ answerMessage: e4, errorMessage: t3 }) => {
|
|
139
|
-
W.value = false, t3 ? He(t3, true) : e4 && He(e4);
|
|
140
|
-
}).catch((e4) => {
|
|
141
|
-
W.value = false, console.error("MCP error:", e4), He("未能返回有效信息", true);
|
|
142
|
-
});
|
|
143
|
-
} catch (e4) {
|
|
144
|
-
W.value = false, console.error("MCP error:", e4), He("未能返回有效信息", true);
|
|
145
|
-
}
|
|
146
|
-
}(e2);
|
|
147
|
-
break;
|
|
148
|
-
case r.AI_MODELS.DEEPSEEK:
|
|
149
|
-
Ue(e2);
|
|
150
|
-
break;
|
|
151
|
-
case r.AI_MODELS.INTERACTION:
|
|
152
|
-
!function(e3) {
|
|
153
|
-
if (!e3.question)
|
|
154
|
-
return;
|
|
155
|
-
try {
|
|
156
|
-
const t2 = l.createUserMessage(e3);
|
|
157
|
-
J.value.push(t2), ge.value.parseCommand();
|
|
158
|
-
} catch (e4) {
|
|
159
|
-
console.error("systemInteraction error:", e4), Ae();
|
|
160
|
-
}
|
|
161
|
-
}(e2);
|
|
162
|
-
break;
|
|
163
|
-
case r.AI_MODELS.PPT_GENERATION:
|
|
164
|
-
!function(e3) {
|
|
165
|
-
if (!e3.question)
|
|
166
|
-
return;
|
|
167
|
-
const t2 = l.createUserMessage(e3);
|
|
168
|
-
J.value.push(t2), he.value = true, W.value = true, G.value = l.createAiMessage(e3, true), J.value.push(G.value);
|
|
169
|
-
const a2 = Ne(K.value);
|
|
170
|
-
window.$vueApp.config.globalProperties.$http.post(window.$vueApp.config.globalProperties.baseAPI + "/component/aippt/createPpt", { menuName: e3.menuName, menuCode: e3.menuCode, question: e3.question, additionalDataLabel: e3.additionalDataLabel, additionalData: JSON.stringify(e3.additionalData), fileId: e3.fileId, fileInfos: e3.fileInfos, systemCode: I, messageId: a2 }).then((e4) => {
|
|
171
|
-
if (e4.fileUrl) {
|
|
172
|
-
const t3 = S.extractFilenameFromUrl(e4.fileUrl) || "点击下载";
|
|
173
|
-
G.value.content = `PPT已生成:[${t3}](${e4.fileUrl})`;
|
|
174
|
-
} else
|
|
175
|
-
G.value.content = "PPT生成失败,请稍后重试";
|
|
176
|
-
$e(), W.value = false, window.open(e4.fileUrl, "_blank");
|
|
177
|
-
}).finally(() => {
|
|
178
|
-
W.value = false;
|
|
179
|
-
});
|
|
180
|
-
}(e2);
|
|
181
|
-
break;
|
|
182
|
-
default:
|
|
183
|
-
e2.aiModel;
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
function De(e2) {
|
|
187
|
-
Ue({ question: e2.question, additionalData: e2.additionalData, additionalDataLabel: e2.additionalDataLabel, menuName: e2.menuName, menuCode: e2.menuCode, aiModel: K.value });
|
|
188
|
-
}
|
|
189
|
-
function Be(e2) {
|
|
190
|
-
if (e2.content) {
|
|
191
|
-
Ue({ question: e2.content, aiModel: K.value });
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
function Pe() {
|
|
195
|
-
var _a2;
|
|
196
|
-
(_a2 = ge.value) == null ? void 0 : _a2.newChatSession(), J.value = [], K.value === r.AI_MODELS.DEEPSEEK && async function() {
|
|
197
|
-
if (X.value[K.value])
|
|
198
|
-
try {
|
|
199
|
-
await window.$vueApp.config.globalProperties.$http.post(window.$vueApp.config.globalProperties.baseAPI + "/component/ai/multiple-fuck/clear/" + X.value[K.value]);
|
|
200
|
-
} catch (e2) {
|
|
201
|
-
console.error("Failed to clear session:", e2), Ae();
|
|
202
|
-
}
|
|
203
|
-
}(), Z.value = null, X.value[K.value] = null, W.value = false, Q[K.value] = [], Ee(K.value);
|
|
204
|
-
}
|
|
205
|
-
function Ie(e2) {
|
|
206
|
-
Q[K.value] = JSON.parse(JSON.stringify(J.value)), Ee(e2);
|
|
207
|
-
}
|
|
208
|
-
function je(e2) {
|
|
209
|
-
ue.value = e2, ie.value = true;
|
|
210
|
-
}
|
|
211
|
-
function Oe(e2, t2) {
|
|
212
|
-
try {
|
|
213
|
-
w.downloadJsonFile(e2, w.generateFileName(t2 || "data"));
|
|
214
|
-
} catch (e3) {
|
|
215
|
-
console.error("下载失败:", e3);
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
async function Ue(e2) {
|
|
219
|
-
if (e2.question)
|
|
220
|
-
try {
|
|
221
|
-
const t2 = l.createUserMessage(e2);
|
|
222
|
-
J.value.push(t2), he.value = true, W.value = true;
|
|
223
|
-
const a2 = Ne(K.value);
|
|
224
|
-
G.value = l.createAiMessage(e2, true), J.value.push(G.value), fe = new AbortController();
|
|
225
|
-
const n2 = o.getToken(), r2 = await fetch(window.$vueApp.config.globalProperties.baseAPI + "/component/ai/multiple-fuck", { method: "POST", headers: { "Content-Type": "application/json", authorization: n2 || "" }, body: JSON.stringify({ question: e2.question, messageId: a2, data: JSON.stringify(e2.additionalData), fileId: e2.fileId, systemCode: I }), signal: fe.signal });
|
|
226
|
-
if (!r2.body)
|
|
227
|
-
throw new Error("No response body");
|
|
228
|
-
await O({ readableStream: r2.body });
|
|
229
|
-
} catch (e3) {
|
|
230
|
-
console.error("DeepSeek error:", e3), Ae();
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
async function Le(e2) {
|
|
234
|
-
try {
|
|
235
|
-
he.value = true, G.value = l.createAiMessage({ question: e2 }, true), G.value.messageType = "realtime", J.value.push(G.value), fe = new AbortController();
|
|
236
|
-
const t2 = o.getToken(), a2 = await fetch(window.$vueApp.config.globalProperties.baseAPI + "/mc/rag-flow/converse-with-chat-stream", { method: "POST", headers: { "Content-Type": "text/event-stream", authorization: t2 }, body: JSON.stringify({ question: e2, stream: true, systemCode: I, session_id: X.value[K.value] }), signal: fe.signal });
|
|
237
|
-
if (!a2.body)
|
|
238
|
-
throw new Error("No response body");
|
|
239
|
-
await O({ readableStream: a2.body });
|
|
240
|
-
} catch (e3) {
|
|
241
|
-
if ("AbortError" === (e3 == null ? void 0 : e3.name))
|
|
242
|
-
return;
|
|
243
|
-
console.error("SSE error:", e3), W.value = false;
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
function Fe(e2) {
|
|
247
|
-
const t2 = e2.doc_name.split(".").pop();
|
|
248
|
-
window.open(`http://101.43.172.105/document/${e2.doc_id}?ext=${t2}&prefix=document`);
|
|
249
|
-
}
|
|
250
|
-
function Re(e2) {
|
|
251
|
-
W.value = true, Ne(K.value);
|
|
252
|
-
const t2 = { question: e2.content, aiModel: K.value };
|
|
253
|
-
if (G.value = l.createAiMessage(t2, false), J.value.push(G.value), G.value.thinkingStatus = r.MESSAGE_STATUS.NONE, e2.url) {
|
|
254
|
-
const t3 = e2.command ? e2.command : e2.content;
|
|
255
|
-
G.value.link = e2.url, G.value.linkTitle = t3, G.value.content = e2.content;
|
|
256
|
-
} else
|
|
257
|
-
G.value.content = e2.content;
|
|
258
|
-
G.value = {}, W.value = false;
|
|
259
|
-
}
|
|
260
|
-
function $e(e2 = false) {
|
|
261
|
-
G.value.thinkingStatus = r.MESSAGE_STATUS.END, G.value.showThinkingContent = true, G.value.messageType = "history", G.value = {}, Y.value && me.value.addCurrentToSessionHistory(X.value[K.value], J.value), e2 || (Y.value = false);
|
|
262
|
-
}
|
|
263
|
-
function He(e2, t2 = false) {
|
|
264
|
-
G.value.content = e2, t2 && (G.value.thinkingStatus = r.MESSAGE_STATUS.ERROR), $e(t2);
|
|
265
|
-
}
|
|
266
|
-
function ze(t2, a2) {
|
|
267
|
-
Y.value = false, Z.value = t2, X.value[K.value] = t2.sessionId, a2.length > 0 && (J.value = []), e.nextTick(() => {
|
|
268
|
-
J.value = a2, e.nextTick(() => {
|
|
269
|
-
var _a2;
|
|
270
|
-
(_a2 = se.value) == null ? void 0 : _a2.scrollToBottom();
|
|
271
|
-
});
|
|
272
|
-
});
|
|
273
|
-
}
|
|
274
|
-
return (t2, n2) => j.value ? (e.openBlock(), e.createElementBlock("div", A, [e.createElementVNode("div", { ref_key: "chatIcon", ref: H, style: e.normalizeStyle([e.unref(Se), { position: "fixed", cursor: "pointer", "z-index": "100" }]) }, [e.createElementVNode("img", { src: e.unref(p), alt: "AI Avatar", onClick: Ce, style: { width: "50px", height: "50px" } }, null, 8, C)], 4), e.createVNode(e.Transition, { name: "slide-up" }, { default: e.withCtx(() => [e.withDirectives(e.createElementVNode("div", { ref_key: "chatContainerRef", ref: de, class: e.normalizeClass(["chat-container", te.value ? "full-screen" : "small-window"]), style: { display: "flex", flexDirection: "row" } }, [e.createVNode(y, { ref_key: "sidebarItemRef", ref: me, style: e.normalizeStyle({ width: le.value + "px" }), onSelectHistoryItem: ze, onNewChatSession: Pe, onUpdateAiHistory: n2[0] || (n2[0] = (e2) => {
|
|
275
|
-
Z.value.value = e2;
|
|
276
|
-
}), dialogFullScreen: te.value, aiModel: K.value }, null, 8, ["style", "dialogFullScreen", "aiModel"]), e.createElementVNode("div", N, [e.createVNode(d, { aiAvatar: re.value, aiModel: K.value, chatSessionId: X.value, dialogFullScreen: te.value, aiHistory: Z.value, onExpandDialog: qe, onShowChatDialog: Ce, onNewChatSession: Pe }, null, 8, ["aiAvatar", "aiModel", "chatSessionId", "dialogFullScreen", "aiHistory"]), e.createElementVNode("div", T, [(e.openBlock(), e.createElementBlock("div", { ref_key: "talkMainRef", ref: ve, class: "chat-embed__main", key: ae.value }, [e.createElementVNode("div", x, [e.createVNode(e.unref(a.BubbleList), { ref_key: "bubbleListRef", ref: se, list: J.value, "max-height": oe.value, "is-fog": true }, { avatar: e.withCtx(({ item: e2 }) => [...n2[2] || (n2[2] = [])]), content: e.withCtx(({ item: t3 }) => {
|
|
277
|
-
var _a2;
|
|
278
|
-
return [t3.isRecommend || null === t3.thinkingContent ? e.createCommentVNode("", true) : (e.openBlock(), e.createElementBlock(e.Fragment, { key: 0 }, ["failed" !== t3.messageStatus ? (e.openBlock(), e.createBlock(e.unref(a.Thinking), { key: 0, "button-width": "180px", style: { "margin-bottom": "5px" }, modelValue: t3.showThinkingContent, "onUpdate:modelValue": (e2) => t3.showThinkingContent = e2, status: t3.thinkingStatus, "auto-collapse": "", content: t3.thinkingContent, typing: { interval: 20 }, duration: ".3s" }, null, 8, ["modelValue", "onUpdate:modelValue", "status", "content"])) : e.createCommentVNode("", true)], 64)), t3.link ? (e.openBlock(), e.createElementBlock("a", { key: 1, href: t3.link, title: t3.linkTitle, target: "blank" }, e.toDisplayString(t3.content), 9, M)) : t3.content ? (e.openBlock(), e.createElementBlock(e.Fragment, { key: 2 }, [e.createElementVNode("div", { class: e.normalizeClass(["ai" === t3.role ? "content-container" : "content-borderless-container", "chat-content-font"]) }, ["ai" !== t3.role || t3.isRecommend ? "user" === t3.role ? (e.openBlock(), e.createElementBlock(e.Fragment, { key: 1 }, [e.createTextVNode(e.toDisplayString(t3.content) + " ", 1), ((_a2 = t3.additionalData) == null ? void 0 : _a2.length) > 0 && t3.additionalDataLabel ? (e.openBlock(), e.createBlock(u, { key: 0, item: t3, onViewJson: je, onDownloadJson: Oe }, null, 8, ["item"])) : e.createCommentVNode("", true)], 64)) : (e.openBlock(), e.createElementBlock(e.Fragment, { key: 2 }, [e.createTextVNode(e.toDisplayString(t3.content), 1)], 64)) : (e.openBlock(), e.createElementBlock(e.Fragment, { key: 0 }, [t3.messageType && "history" !== t3.messageType ? (e.openBlock(), e.createBlock(e.unref(a.Typewriter), { key: 1, allowHtml: "", content: t3.content, typing: true, "is-markdown": true, "is-fog": "" }, null, 8, ["content"])) : (e.openBlock(), e.createBlock(e.unref(a.XMarkdown), { key: 0, markdown: t3.content, allowHtml: true, content: t3.content, typing: { interval: 10 }, "is-markdown": true }, { "amb-ai-tip": e.withCtx(({ ...a2 }) => [e.createVNode(c, { item: t3, itemProps: a2, onClickDocAgg: Fe }, null, 8, ["item", "itemProps"])]), "amb-alink": e.withCtx(({ ...t4 }) => [e.createElementVNode("a", { href: t4.href, target: t4.target }, e.toDisplayString(t4.text), 9, q)]), "amb-home-chart": e.withCtx(({ ...t4 }) => [e.createVNode(h, { chartProps: t4, class: "chat-chart-container" }, null, 8, ["chartProps"])]), "amb-interaction-data": e.withCtx(({ ...t4 }) => [e.createVNode(f, { chartProps: t4, class: "chat-chart-container" }, null, 8, ["chartProps"])]), "amb-auto-chart": e.withCtx(({ ...t4 }) => [e.createVNode(g, { chartProps: t4, class: "chat-chart-container" }, null, 8, ["chartProps"])]), _: 2 }, 1032, ["markdown", "content"]))], 64)), e.createElementVNode("div", _, [e.createElementVNode("span", null, e.toDisplayString(t3.sendTime), 1)])], 2), t3.recommendations && t3.recommendations.length > 0 ? (e.openBlock(), e.createBlock(i, { key: 0, item: t3, onClickRecommendation: Be }, null, 8, ["item"])) : e.createCommentVNode("", true), t3.docAggs && t3.docAggs.length > 0 ? (e.openBlock(), e.createElementBlock("div", V, [n2[3] || (n2[3] = e.createElementVNode("div", { class: "content-container-header" }, "引用文件", -1)), (e.openBlock(true), e.createElementBlock(e.Fragment, null, e.renderList(t3.docAggs, (t4, a2) => (e.openBlock(), e.createElementBlock("div", { onClick: (e2) => Fe(t4), class: "doc-agg-item" }, e.toDisplayString(t4.doc_name), 9, D))), 256))])) : e.createCommentVNode("", true)], 64)) : e.createCommentVNode("", true)];
|
|
279
|
-
}), footer: e.withCtx(({ item: t3 }) => [e.createVNode(s, { item: t3, onRegenerate: De }, null, 8, ["item"])]), _: 1 }, 8, ["list", "max-height"]), e.createElementVNode("div", B, e.toDisplayString(Te.value), 1)]), e.createElementVNode("div", { ref_key: "talkInputRef", ref: ce, class: "chat-embed__input_container" }, [e.createVNode(v, { loading: W.value, ref_key: "chatSenderRef", ref: ge, onSubmitQuestion: Ve, onCommandAnswer: Re, onHandleCancel: Me, onViewJson: je, onChangeAiModel: Ie }, null, 8, ["loading"])], 512)]))])])], 2), [[e.vShow, ee.value]])]), _: 1 }), e.createVNode(e.unref(m), { modelValue: ie.value, "onUpdate:modelValue": n2[1] || (n2[1] = (e2) => ie.value = e2), "json-object": ue.value, "append-to-body": true, title: "预览数据" }, null, 8, ["modelValue", "json-object"])])) : e.createCommentVNode("", true);
|
|
280
|
-
} });
|
|
281
|
-
module.exports = P;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const e = require("vue"), t = require("vue-element-plus-x"), n = ["onClick"], o = e.defineComponent({ __name: "recommendation-message", props: { item: { type: Object, required: true } }, emits: ["clickRecommendation"], setup(o2, { emit: c }) {
|
|
3
|
-
const r = c;
|
|
4
|
-
return (c2, i) => (e.openBlock(true), e.createElementBlock(e.Fragment, null, e.renderList(o2.item.recommendations, (o3, c3) => (e.openBlock(), e.createBlock(e.unref(t.Bubble), { class: "chat-embed__recommendation", "no-style": true, variant: "borderless" }, e.createSlots({ content: e.withCtx(() => [e.createElementVNode("div", { class: "content-borderless-container", onClick: (e2) => ((e3) => {
|
|
5
|
-
r("clickRecommendation", e3);
|
|
6
|
-
})(o3) }, e.toDisplayString(o3.content), 9, n)]), _: 2 }, [0 === c3 ? { name: "header", fn: e.withCtx(() => [i[0] || (i[0] = e.createElementVNode("div", { class: "content-container-header" }, "推荐内容", -1))]), key: "0" } : void 0]), 1024))), 256));
|
|
7
|
-
} });
|
|
8
|
-
module.exports = o;
|