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,109 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const e = require("vue"), t = require("@element-plus/icons-vue"), o = require("vue-i18n"), a = require("./type.cjs"), l = require("./util/history-message-util.cjs"), c = require("dayjs"), n = require("element-plus"), r = require("../../src/assets/chat-embed/robot.svg.cjs"), i = { class: "flex-avatar" }, s = ["src"], d = { class: "flex-function-icon" }, u = { class: "chat-embed__sidebar" }, m = { class: "sidebar-header" }, h = ["src"], p = { class: "sidebar-menu" }, f = { key: 0, class: "date-group" }, v = { key: 0, class: "date-group-item" }, k = { key: 1, class: "date-group-item" }, y = { key: 2, class: "date-group-item" }, g = { key: 3, class: "date-group-item" }, w = { key: 4, class: "date-group-item" }, N = ["onClick"], V = e.defineComponent({ __name: "sidebar-item", props: { aiModel: { type: String, default: null }, dialogFullScreen: { type: Boolean, default: null } }, emits: ["new-chat-session", "select-history-item", "update-ai-history"], setup(V2, { expose: C, emit: E }) {
|
|
3
|
-
const B = E, { t: A } = o.useI18n(), _ = V2;
|
|
4
|
-
let b = 1;
|
|
5
|
-
const x = e.ref(/* @__PURE__ */ new Map()), D = e.ref("history"), I = e.ref(""), M = e.ref(false), S = e.ref(true);
|
|
6
|
-
e.watch(() => _.aiModel, (e2, t2) => {
|
|
7
|
-
b = 1, D.value = "history", I.value = "", P();
|
|
8
|
-
}, { immediate: true });
|
|
9
|
-
const T = (e2) => {
|
|
10
|
-
b++, M.value || P();
|
|
11
|
-
};
|
|
12
|
-
function O() {
|
|
13
|
-
I.value = "", B("new-chat-session");
|
|
14
|
-
}
|
|
15
|
-
function L(e2) {
|
|
16
|
-
e2 !== D.value && (b = 1, D.value = e2, M.value = false, P());
|
|
17
|
-
}
|
|
18
|
-
function P() {
|
|
19
|
-
let e2 = "";
|
|
20
|
-
if (_.aiModel === a.AI_MODELS.INTERACTION)
|
|
21
|
-
return x.value = /* @__PURE__ */ new Map(), void O();
|
|
22
|
-
switch (_.aiModel) {
|
|
23
|
-
case a.AI_MODELS.RAGFLOW:
|
|
24
|
-
e2 = "RAGFLOW";
|
|
25
|
-
break;
|
|
26
|
-
case a.AI_MODELS.DATABASE:
|
|
27
|
-
e2 = "DATABASE";
|
|
28
|
-
break;
|
|
29
|
-
case a.AI_MODELS.DEEPSEEK:
|
|
30
|
-
e2 = "BAILIAN";
|
|
31
|
-
break;
|
|
32
|
-
case a.AI_MODELS.INTERACTION:
|
|
33
|
-
break;
|
|
34
|
-
case a.AI_MODELS.PPT_GENERATION:
|
|
35
|
-
e2 = "AIPPT";
|
|
36
|
-
}
|
|
37
|
-
let t2 = 0, o2 = 0;
|
|
38
|
-
"useful" === D.value ? t2 = 1 : "collected" === D.value && (o2 = 1), window.$vueApp.config.globalProperties.$http.post(window.$vueApp.config.globalProperties.baseAPI + `/mc/ai-history/list/${e2}/${t2}/${o2}`, { pagination: { currentPage: b, pageSize: 30, isShowTotal: false } }).then((e3) => {
|
|
39
|
-
if (0 === e3.data.length && b > 1)
|
|
40
|
-
return n.ElMessage.info("没有更多历史记录了"), void (M.value = true);
|
|
41
|
-
const t3 = function(e4) {
|
|
42
|
-
const t4 = /* @__PURE__ */ new Map(), o3 = /* @__PURE__ */ new Date(), a2 = new Date(o3.getFullYear(), o3.getMonth(), o3.getDate()).getTime(), l2 = a2 - 864e5, n2 = a2 - 6048e5, r2 = a2 - 2592e6;
|
|
43
|
-
return e4.forEach((e5) => {
|
|
44
|
-
const o4 = new Date(e5.modifiedTime).getTime();
|
|
45
|
-
if (o4 >= a2)
|
|
46
|
-
t4.has("today") || t4.set("today", []), t4.get("today").push(e5);
|
|
47
|
-
else if (o4 >= l2)
|
|
48
|
-
t4.has("yesterday") || t4.set("yesterday", []), t4.get("yesterday").push(e5);
|
|
49
|
-
else if (o4 >= n2)
|
|
50
|
-
t4.has("sevenDays") || t4.set("sevenDays", []), t4.get("sevenDays").push(e5);
|
|
51
|
-
else if (o4 >= r2)
|
|
52
|
-
t4.has("thirtyDays") || t4.set("thirtyDays", []), t4.get("thirtyDays").push(e5);
|
|
53
|
-
else {
|
|
54
|
-
const a3 = new Date(o4), l3 = c(`${a3.getFullYear()}-${a3.getMonth() + 1}`).format("YYYY-MM");
|
|
55
|
-
t4.has(l3) || t4.set(l3, []), t4.get(l3).push(e5);
|
|
56
|
-
}
|
|
57
|
-
}), t4;
|
|
58
|
-
}(e3.data);
|
|
59
|
-
1 === b ? (e3.data.length < 30 && (M.value = true), x.value = t3) : t3.forEach((e4, t4) => {
|
|
60
|
-
x.value.has(t4) ? x.value.get(t4).push(...e4) : x.value.set(t4, e4);
|
|
61
|
-
});
|
|
62
|
-
}).catch((e3) => {
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
return C({ getHistory: P, addCurrentToSessionHistory: function(e2, t2 = []) {
|
|
66
|
-
e2 && setTimeout(() => {
|
|
67
|
-
l.getBySessionId(e2).then((e3) => {
|
|
68
|
-
e3 && (I.value = e3.id, x.value.has("today") || (x.value = new Map([["today", []], ...x.value])), x.value.get("today").unshift(e3), t2.length > 0 ? B("select-history-item", e3, t2) : B("select-history-item", e3, []));
|
|
69
|
-
}).catch((e3) => {
|
|
70
|
-
});
|
|
71
|
-
}, 100);
|
|
72
|
-
} }), (o2, c2) => {
|
|
73
|
-
const V3 = e.resolveComponent("el-avatar"), C2 = e.resolveComponent("SuperIcon"), E2 = e.resolveComponent("el-tooltip"), b2 = e.resolveComponent("el-icon"), M2 = e.resolveComponent("el-dropdown-item"), P2 = e.resolveComponent("el-dropdown-menu"), F = e.resolveComponent("el-dropdown"), R = e.resolveComponent("el-scrollbar"), $ = e.resolveComponent("el-button");
|
|
74
|
-
return e.openBlock(), e.createElementBlock(e.Fragment, null, [e.withDirectives(e.createElementVNode("div", i, [e.createVNode(V3, { size: 40, fit: "cover" }, { default: e.withCtx(() => [e.createElementVNode("img", { src: e.unref(r), alt: "AI Avatar" }, null, 8, s)]), _: 1 }), e.createElementVNode("div", d, [e.createVNode(E2, { class: "box-item", effect: "dark", content: "打开侧边栏" }, { default: e.withCtx(() => [e.createVNode(C2, { class: "shousuo-icon", onClick: c2[0] || (c2[0] = (e2) => S.value = true), iconValue: "amb-icon-zhankaibianlan" })]), _: 1 }), e.createVNode(E2, { class: "box-item", effect: "dark", content: "新建会话" }, { default: e.withCtx(() => [e.createVNode(C2, { class: "shousuo-icon", iconValue: "amb-icon-xinjianhuihua", onClick: O })]), _: 1 })])], 512), [[e.vShow, !S.value]]), e.withDirectives(e.createElementVNode("div", u, [e.createElementVNode("div", m, [e.createVNode(V3, { class: "chat-embed__header_avatar", size: 40, fit: "cover" }, { default: e.withCtx(() => [e.createElementVNode("img", { src: e.unref(r), alt: "AI Avatar" }, null, 8, h)]), _: 1 }), e.createElementVNode("span", null, e.toDisplayString(e.unref(A)("chatEmbed.name")), 1), e.createVNode(E2, { class: "box-item", effect: "dark", content: "收起侧边栏" }, { default: e.withCtx(() => [S.value ? (e.openBlock(), e.createBlock(C2, { key: 0, onClick: c2[1] || (c2[1] = (e2) => S.value = false), class: "right-icon", iconValue: "amb-icon-shouqibianlan" })) : e.createCommentVNode("", true)]), _: 1 })]), e.createElementVNode("div", p, [e.createElementVNode("div", { class: e.normalizeClass(["menu-item", { "active-item": "collected" === D.value }]), onClick: c2[2] || (c2[2] = (e2) => L("collected")) }, [e.createVNode(C2, { iconValue: "amb-icon-shoucang" }), c2[5] || (c2[5] = e.createElementVNode("span", null, "我的收藏", -1)), "collected" === D.value ? (e.openBlock(), e.createBlock(b2, { key: 0, class: "dropdown-right" }, { default: e.withCtx(() => [e.createVNode(e.unref(t.ArrowDown))]), _: 1 })) : (e.openBlock(), e.createBlock(b2, { key: 1, class: "dropdown-right" }, { default: e.withCtx(() => [e.createVNode(e.unref(t.ArrowRight))]), _: 1 }))], 2), e.createElementVNode("div", { class: e.normalizeClass(["menu-item", { "active-item": "useful" === D.value }]), onClick: c2[3] || (c2[3] = (e2) => L("useful")) }, [e.createVNode(C2, { iconValue: "amb-icon-youyong" }), c2[6] || (c2[6] = e.createElementVNode("span", null, "查看有用", -1)), "useful" === D.value ? (e.openBlock(), e.createBlock(b2, { key: 0, class: "dropdown-right" }, { default: e.withCtx(() => [e.createVNode(e.unref(t.ArrowDown))]), _: 1 })) : (e.openBlock(), e.createBlock(b2, { key: 1, class: "dropdown-right" }, { default: e.withCtx(() => [e.createVNode(e.unref(t.ArrowRight))]), _: 1 }))], 2), e.createElementVNode("div", { class: e.normalizeClass(["menu-item", { "active-item": "history" === D.value }]), onClick: c2[4] || (c2[4] = (e2) => L("history")) }, [e.createVNode(C2, { iconValue: "amb-icon-lishihuihua" }), c2[7] || (c2[7] = e.createElementVNode("span", null, "历史记录", -1)), "history" === D.value ? (e.openBlock(), e.createBlock(b2, { key: 0, class: "dropdown-right" }, { default: e.withCtx(() => [e.createVNode(e.unref(t.ArrowDown))]), _: 1 })) : (e.openBlock(), e.createBlock(b2, { key: 1, class: "dropdown-right" }, { default: e.withCtx(() => [e.createVNode(e.unref(t.ArrowRight))]), _: 1 }))], 2)]), e.createVNode(R, { class: "scrollbar-container", onEndReached: T }, { default: e.withCtx(() => [(e.openBlock(true), e.createElementBlock(e.Fragment, null, e.renderList(x.value, ([o3, r2]) => (e.openBlock(), e.createElementBlock(e.Fragment, { key: o3 }, [(r2 == null ? void 0 : r2.length) > 0 ? (e.openBlock(), e.createElementBlock("div", f, ["today" === o3 ? (e.openBlock(), e.createElementBlock("div", v, "今天")) : "yesterday" === o3 ? (e.openBlock(), e.createElementBlock("div", k, "昨天")) : "sevenDays" === o3 ? (e.openBlock(), e.createElementBlock("div", y, "七天内")) : "thirtyDays" === o3 ? (e.openBlock(), e.createElementBlock("div", g, "三十天内")) : (e.openBlock(), e.createElementBlock("div", w, e.toDisplayString(o3), 1)), (e.openBlock(true), e.createElementBlock(e.Fragment, null, e.renderList(r2, (o4) => (e.openBlock(), e.createElementBlock("div", { class: e.normalizeClass(["history-item", { "active-item": I.value === o4.id }]) }, [o4.useful ? (e.openBlock(), e.createBlock(C2, { key: 0, iconValue: "amb-icon-youyong" })) : e.createCommentVNode("", true), o4.collected ? (e.openBlock(), e.createBlock(b2, { key: 1 }, { default: e.withCtx(() => [e.createVNode(e.unref(t.StarFilled))]), _: 1 })) : e.createCommentVNode("", true), e.createElementVNode("div", { class: "history-subject", onClick: (e2) => function(e3) {
|
|
75
|
-
I.value !== e3.id && (I.value = e3.id, window.$vueApp.config.globalProperties.$http.get(window.$vueApp.config.globalProperties.baseAPI + `/mc/ai-history/content/${e3.id}`).then((t2) => {
|
|
76
|
-
let o5 = [];
|
|
77
|
-
switch (_.aiModel) {
|
|
78
|
-
case a.AI_MODELS.RAGFLOW:
|
|
79
|
-
o5 = l.formatRagflowHistoryMessage(t2);
|
|
80
|
-
break;
|
|
81
|
-
case a.AI_MODELS.DATABASE:
|
|
82
|
-
o5 = l.formatDatabaseHistoryMessage(t2);
|
|
83
|
-
break;
|
|
84
|
-
case a.AI_MODELS.DEEPSEEK:
|
|
85
|
-
o5 = l.formatBailianHistoryMessage(t2);
|
|
86
|
-
break;
|
|
87
|
-
case a.AI_MODELS.INTERACTION:
|
|
88
|
-
break;
|
|
89
|
-
case a.AI_MODELS.PPT_GENERATION:
|
|
90
|
-
o5 = l.formatAiPptHistoryMessage(t2);
|
|
91
|
-
}
|
|
92
|
-
B("select-history-item", e3, o5);
|
|
93
|
-
}).catch((e4) => {
|
|
94
|
-
}));
|
|
95
|
-
}(o4) }, e.toDisplayString(o4.subject), 9, N), e.createVNode(F, { class: "dropdown-right", onCommand: (e2) => function(e3, t2) {
|
|
96
|
-
"collect" === e3 || "uncollect" === e3 ? l.collectById(t2.id).then(() => {
|
|
97
|
-
t2.collected = !t2.collected, B("update-ai-history", t2);
|
|
98
|
-
}) : "useful" === e3 || "unuseful" === e3 ? l.usefuleById(t2.id).then(() => {
|
|
99
|
-
t2.useful = !t2.useful, B("update-ai-history", t2);
|
|
100
|
-
}) : "delete" === e3 && l.deleteByIds([t2.id]).then(() => {
|
|
101
|
-
n.ElMessage.success("已删除该会话"), x.value.forEach((e4) => {
|
|
102
|
-
const o5 = e4.findIndex((e5) => e5.id === t2.id);
|
|
103
|
-
-1 !== o5 && e4.splice(o5, 1);
|
|
104
|
-
}), I.value === t2.id && O();
|
|
105
|
-
});
|
|
106
|
-
}(e2, o4), trigger: "click" }, { dropdown: e.withCtx(() => [e.createVNode(P2, null, { default: e.withCtx(() => [o4.collected ? e.createCommentVNode("", true) : (e.openBlock(), e.createBlock(M2, { key: 0, command: "collect" }, { default: e.withCtx(() => [e.createVNode(b2, null, { default: e.withCtx(() => [e.createVNode(e.unref(t.StarFilled))]), _: 1 }), c2[8] || (c2[8] = e.createTextVNode("收藏 ", -1))]), _: 1 })), o4.collected ? (e.openBlock(), e.createBlock(M2, { key: 1, command: "uncollect" }, { default: e.withCtx(() => [e.createVNode(b2, null, { default: e.withCtx(() => [e.createVNode(e.unref(t.Star))]), _: 1 }), c2[9] || (c2[9] = e.createTextVNode("取消收藏 ", -1))]), _: 1 })) : e.createCommentVNode("", true), o4.useful ? e.createCommentVNode("", true) : (e.openBlock(), e.createBlock(M2, { key: 2, command: "useful" }, { default: e.withCtx(() => [...c2[10] || (c2[10] = [e.createTextVNode("有用", -1)])]), _: 1 })), o4.useful ? (e.openBlock(), e.createBlock(M2, { key: 3, command: "unuseful" }, { default: e.withCtx(() => [...c2[11] || (c2[11] = [e.createTextVNode("取消有用", -1)])]), _: 1 })) : e.createCommentVNode("", true), e.createVNode(M2, { command: "delete" }, { default: e.withCtx(() => [...c2[12] || (c2[12] = [e.createTextVNode("删除", -1)])]), _: 1 })]), _: 2 }, 1024)]), default: e.withCtx(() => [e.createVNode(b2, { class: "more-filled" }, { default: e.withCtx(() => [e.createVNode(e.unref(t.MoreFilled))]), _: 1 })]), _: 2 }, 1032, ["onCommand"])], 2))), 256))])) : e.createCommentVNode("", true)], 64))), 128))]), _: 1 }), e.createVNode($, { type: "primary", class: "new-session-button", onClick: O }, { icon: e.withCtx(() => [e.createVNode(C2, { iconValue: "amb-icon-xinjianhuihua" })]), default: e.withCtx(() => [c2[13] || (c2[13] = e.createTextVNode(" 新建会话 ", -1))]), _: 1 })], 512), [[e.vShow, S.value]])], 64);
|
|
107
|
-
};
|
|
108
|
-
} });
|
|
109
|
-
module.exports = V;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
exports.AI_MODELS = { DEEPSEEK: "deepseek", RAGFLOW: "ragflow", DATABASE: "database", INTERACTION: "interaction", PPT_GENERATION: "ppt_generation" }, exports.MESSAGE_STATUS = { THINKING: "thinking", END: "end", ERROR: "error", FAILED: "failed", NONE: "none" };
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }), exports.extractFilenameFromUrl = function(t) {
|
|
3
|
-
if (!t)
|
|
4
|
-
return null;
|
|
5
|
-
try {
|
|
6
|
-
const n = new URL(t), e = n.searchParams.get("response-content-disposition") || n.searchParams.get("content-disposition") || "";
|
|
7
|
-
if (!e)
|
|
8
|
-
return null;
|
|
9
|
-
let r = e;
|
|
10
|
-
try {
|
|
11
|
-
r = decodeURIComponent(r);
|
|
12
|
-
} catch (t2) {
|
|
13
|
-
}
|
|
14
|
-
const i = r.match(/filename\*\s*=\s*([^'']*)''([^;]+)/i);
|
|
15
|
-
if (i && i[2])
|
|
16
|
-
try {
|
|
17
|
-
return decodeURIComponent(i[2].trim()).replace(/^"|"$/g, "");
|
|
18
|
-
} catch (t2) {
|
|
19
|
-
return i[2].trim().replace(/^"|"$/g, "");
|
|
20
|
-
}
|
|
21
|
-
const o = r.match(/filename\s*=\s*"([^"]+)"/i);
|
|
22
|
-
if (o && o[1])
|
|
23
|
-
try {
|
|
24
|
-
return decodeURIComponent(o[1]);
|
|
25
|
-
} catch (t2) {
|
|
26
|
-
return o[1];
|
|
27
|
-
}
|
|
28
|
-
const a = r.match(/filename\s*=\s*([^;]+)/i);
|
|
29
|
-
if (a && a[1]) {
|
|
30
|
-
const t2 = a[1].trim().replace(/^"|"$/g, "");
|
|
31
|
-
try {
|
|
32
|
-
return decodeURIComponent(t2);
|
|
33
|
-
} catch (n2) {
|
|
34
|
-
return t2;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
return null;
|
|
38
|
-
} catch (t2) {
|
|
39
|
-
return null;
|
|
40
|
-
}
|
|
41
|
-
}, exports.parseAnswerContent = function(t) {
|
|
42
|
-
if (!t)
|
|
43
|
-
return { thinkingContent: "", mainContent: "" };
|
|
44
|
-
if (t.startsWith("<think>")) {
|
|
45
|
-
const n = t.indexOf("</think>");
|
|
46
|
-
return { thinkingContent: t.substring(7, n), mainContent: t.substring(n + 8) };
|
|
47
|
-
}
|
|
48
|
-
return { thinkingContent: "", mainContent: t };
|
|
49
|
-
}, exports.replaceAiTipTags = function(t) {
|
|
50
|
-
return t.replace(/ID:(\d+)/g, '<amb-ai-tip tip-index="$1"></amb-ai-tip>').replace(/##(\d+)\$\$/g, '<amb-ai-tip tip-index="$1"></amb-ai-tip>');
|
|
51
|
-
};
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const e = require("../chat-embed-message.cjs"), t = require("../type.cjs"), s = require("./chat-embed-util.cjs"), o = require("./mcp-utils.cjs");
|
|
4
|
-
exports.collectById = function(e2) {
|
|
5
|
-
return window.$vueApp.config.globalProperties.$http.put(window.$vueApp.config.globalProperties.baseAPI + `/mc/ai-history/collect/${e2}`);
|
|
6
|
-
}, exports.collectBySessionId = function(e2) {
|
|
7
|
-
return window.$vueApp.config.globalProperties.$http.put(window.$vueApp.config.globalProperties.baseAPI + `/mc/ai-history/collect/session/${e2}`);
|
|
8
|
-
}, exports.deleteByIds = function(e2) {
|
|
9
|
-
return window.$vueApp.config.globalProperties.$http.delete(window.$vueApp.config.globalProperties.baseAPI + "/mc/ai-history", { data: e2 });
|
|
10
|
-
}, exports.formatAiPptHistoryMessage = function(o2) {
|
|
11
|
-
const n = [];
|
|
12
|
-
return o2 && o2.forEach((o3) => {
|
|
13
|
-
if ("USER" === o3.role) {
|
|
14
|
-
if (o3.submitParam) {
|
|
15
|
-
const t2 = e.createUserMessage(o3.submitParam);
|
|
16
|
-
n.push(t2);
|
|
17
|
-
}
|
|
18
|
-
} else if ("ASSISTANT" === o3.role) {
|
|
19
|
-
const r = e.createAiMessage({ question: "" }, true);
|
|
20
|
-
if (o3.result.fileUrl) {
|
|
21
|
-
const e2 = s.extractFilenameFromUrl(o3.result.fileUrl) || "点击下载";
|
|
22
|
-
r.content = `PPT已生成:[${e2}](${o3.result.fileUrl})`;
|
|
23
|
-
} else
|
|
24
|
-
r.content = "PPT生成失败,请稍后重试";
|
|
25
|
-
r.thinkingContent = "", r.thinkingStatus = t.MESSAGE_STATUS.END, r.showThinkingContent = false, r.messageType = "history", n.push(r);
|
|
26
|
-
}
|
|
27
|
-
}), n;
|
|
28
|
-
}, exports.formatBailianHistoryMessage = function(s2) {
|
|
29
|
-
const o2 = [];
|
|
30
|
-
return s2 && s2.forEach((s3) => {
|
|
31
|
-
if ("USER" === s3.role) {
|
|
32
|
-
if (s3.submitParam) {
|
|
33
|
-
const t2 = e.createUserMessage(s3.submitParam);
|
|
34
|
-
o2.push(t2);
|
|
35
|
-
}
|
|
36
|
-
} else if ("ASSISTANT" === s3.role) {
|
|
37
|
-
const n = e.createAiMessage({ question: "" }, true);
|
|
38
|
-
n.content = s3.result, n.thinkingContent = "", n.thinkingStatus = t.MESSAGE_STATUS.END, n.showThinkingContent = false, n.messageType = "history", o2.push(n);
|
|
39
|
-
}
|
|
40
|
-
}), o2;
|
|
41
|
-
}, exports.formatDatabaseHistoryMessage = function(s2) {
|
|
42
|
-
const n = [];
|
|
43
|
-
return s2 && s2.forEach((s3) => {
|
|
44
|
-
if ("USER" === s3.role) {
|
|
45
|
-
if (s3.submitParam) {
|
|
46
|
-
const t2 = e.createUserMessage(s3.submitParam);
|
|
47
|
-
n.push(t2);
|
|
48
|
-
}
|
|
49
|
-
} else if ("ASSISTANT" === s3.role) {
|
|
50
|
-
const r = e.createAiMessage({ question: "" }, true), { answerMessage: i } = o.handleMcpMessage(s3.result);
|
|
51
|
-
r.content = i, r.thinkingStatus = t.MESSAGE_STATUS.END, r.showThinkingContent = false, r.messageType = "history", n.push(r);
|
|
52
|
-
}
|
|
53
|
-
}), n;
|
|
54
|
-
}, exports.formatRagflowHistoryMessage = function(o2) {
|
|
55
|
-
const n = [];
|
|
56
|
-
return o2 && o2.forEach((o3) => {
|
|
57
|
-
var _a, _b;
|
|
58
|
-
if ("USER" === o3.role) {
|
|
59
|
-
if (o3.submitParam) {
|
|
60
|
-
const t2 = JSON.parse(o3.submitParam);
|
|
61
|
-
n.push(e.getMessageTemplate("user", t2.question, true, false));
|
|
62
|
-
}
|
|
63
|
-
} else if ("ASSISTANT" === o3.role) {
|
|
64
|
-
const r = JSON.parse(o3.result), i = e.createAiMessage({ question: "" }, true), { thinkingContent: a, mainContent: c } = s.parseAnswerContent(r.answer);
|
|
65
|
-
r.reference && (((_a = r.reference.doc_aggs) == null ? void 0 : _a.length) && (i.docAggs = r.reference.doc_aggs), ((_b = r.reference.chunks) == null ? void 0 : _b.length) && (i.referenceChunks = r.reference.chunks)), i.content = c, i.thinkingContent = a, i.thinkingStatus = t.MESSAGE_STATUS.END, i.showThinkingContent = true, i.content = s.replaceAiTipTags(i.content), i.messageType = "history", n.push(i);
|
|
66
|
-
}
|
|
67
|
-
}), n;
|
|
68
|
-
}, exports.getBySessionId = function(e2) {
|
|
69
|
-
return window.$vueApp.config.globalProperties.$http.get(window.$vueApp.config.globalProperties.baseAPI + `/mc/ai-history/session/${e2}`);
|
|
70
|
-
}, exports.usefuleById = function(e2) {
|
|
71
|
-
return window.$vueApp.config.globalProperties.$http.put(window.$vueApp.config.globalProperties.baseAPI + `/mc/ai-history/useful/${e2}`);
|
|
72
|
-
}, exports.usefuleBySessionId = function(e2) {
|
|
73
|
-
return window.$vueApp.config.globalProperties.$http.put(window.$vueApp.config.globalProperties.baseAPI + `/mc/ai-history/useful/session/${e2}`);
|
|
74
|
-
};
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const e = require("axios"), s = require("../../../src/utils/auth.cjs"), a = { sendMessageToMcp: (a2, t) => new Promise((o, n) => {
|
|
4
|
-
const i = { question: a2.question, messageId: t, systemCode: a2.systemCode };
|
|
5
|
-
e.defaults.headers.common.Authorization = s.getToken(), e.post(window.$vueApp.config.globalProperties.baseAPI + "/component/ai/mcp/chart", i).then((e2) => {
|
|
6
|
-
var _a, _b;
|
|
7
|
-
if (e2) {
|
|
8
|
-
const s2 = e2.data;
|
|
9
|
-
if (200 === s2.code) {
|
|
10
|
-
if (!s2.answer)
|
|
11
|
-
return void o({ errorMessage: "未能返回有效信息" });
|
|
12
|
-
((_b = (_a = s2.answer) == null ? void 0 : _a.sqlInfo) == null ? void 0 : _b.sql) && delete s2.answer.sqlInfo.sql;
|
|
13
|
-
const e3 = r(s2);
|
|
14
|
-
o(e3 || { answerMessage: "未能返回有效信息" });
|
|
15
|
-
} else if (500 === s2.code)
|
|
16
|
-
o({ errorMessage: s2.message });
|
|
17
|
-
else if (s2.message) {
|
|
18
|
-
const e3 = JSON.parse(s2.message);
|
|
19
|
-
o({ errorMessage: e3.message });
|
|
20
|
-
}
|
|
21
|
-
} else
|
|
22
|
-
o({ answerMessage: "未能返回有效信息" });
|
|
23
|
-
}).catch((e2) => {
|
|
24
|
-
var _a, _b;
|
|
25
|
-
((_b = (_a = e2.response) == null ? void 0 : _a.data) == null ? void 0 : _b.code) ? o({ errorMessage: e2.response.data.code }) : o({ errorMessage: e2.message });
|
|
26
|
-
});
|
|
27
|
-
}), getChildTableData: (e2) => new Promise((s2, a2) => {
|
|
28
|
-
window.$vueApp.config.globalProperties.$http.post(window.$vueApp.config.globalProperties.baseAPI + "/component/ai/mcp/getChildData", e2).then((e3) => {
|
|
29
|
-
s2(e3);
|
|
30
|
-
}).catch((e3) => {
|
|
31
|
-
var _a, _b;
|
|
32
|
-
((_b = (_a = e3.response) == null ? void 0 : _a.data) == null ? void 0 : _b.code) ? s2({ errorMessage: e3.response.data.code }) : s2({ errorMessage: e3.message });
|
|
33
|
-
});
|
|
34
|
-
}) };
|
|
35
|
-
function r(e2) {
|
|
36
|
-
var _a, _b, _c;
|
|
37
|
-
if ("markdown" == e2.type)
|
|
38
|
-
return { answerMessage: e2.answer };
|
|
39
|
-
if ("chartSettingList" === e2.type) {
|
|
40
|
-
if (((_a = e2.answer) == null ? void 0 : _a.length) > 0) {
|
|
41
|
-
const s2 = [];
|
|
42
|
-
return e2.answer.forEach((e3) => {
|
|
43
|
-
s2.push(`<amb-home-chart id='${e3.id}' chartUuid='${e3.uuid}' chartCode='${e3.chartCode}' systemCode='${e3.systemCode}' customUrl='${e3.customUrl}'/>`);
|
|
44
|
-
}), { answerMessage: s2.join("\n") };
|
|
45
|
-
}
|
|
46
|
-
return { errorMessage: "未能返回有效信息" };
|
|
47
|
-
}
|
|
48
|
-
return "sourceData" === e2.type ? { answerMessage: `<amb-interaction-data dataList='${JSON.stringify(e2.answer.dataList)}' dataTables='${JSON.stringify((_b = e2.answer.sqlInfo) == null ? void 0 : _b.dataTables)}' childTables='${JSON.stringify((_c = e2.answer.sqlInfo) == null ? void 0 : _c.childTables)}'/>` } : "chartData" === e2.type ? { answerMessage: `<amb-auto-chart params='${JSON.stringify(e2.bailianToolParams)}' answer='${JSON.stringify(e2.answer)}' />` } : void 0;
|
|
49
|
-
}
|
|
50
|
-
exports.default = a, exports.handleMcpMessage = r;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }), exports.downloadJsonFile = function(e, t) {
|
|
3
|
-
const o = JSON.stringify(e, null, 2), n = new Blob([o], { type: "application/json;charset=utf-8" }), c = URL.createObjectURL(n), r = document.createElement("a");
|
|
4
|
-
r.href = c, r.download = t, document.body.appendChild(r), r.click(), document.body.removeChild(r), URL.revokeObjectURL(c);
|
|
5
|
-
}, exports.generateFileName = function(e) {
|
|
6
|
-
const t = (/* @__PURE__ */ new Date()).toISOString().replace(/[:.]/g, "-").slice(0, 19);
|
|
7
|
-
return `${e.replace(/[^a-zA-Z0-9\u4e00-\u9fa5]/g, "_")}_${t}.json`;
|
|
8
|
-
};
|