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
package/index.html
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8">
|
|
5
|
-
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
|
6
|
-
<meta name="renderer" content="webkit">
|
|
7
|
-
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
|
8
|
-
<meta http-equiv="Expires" content="0">
|
|
9
|
-
<meta http-equiv="Pragma" content="no-cache">
|
|
10
|
-
<meta http-equiv="Cache-control" content="no-cache">
|
|
11
|
-
<meta http-equiv="Cache" content="no-cache">
|
|
12
|
-
<link rel="icon" type="image/svg+xml" href="favicon.svg" />
|
|
13
|
-
<title>质量管理系统</title>
|
|
14
|
-
</head>
|
|
15
|
-
<body>
|
|
16
|
-
<div id="app"></div>
|
|
17
|
-
<script type="module" src="/src/main.js"></script>
|
|
18
|
-
</body>
|
|
19
|
-
</html>
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const e = require("../../utils/gogocodeTransfer.cjs"), t = require("../../src/utils/range-selector.cjs"), a = require("vue");
|
|
3
|
-
require("./sectionDate.vue2.cjs");
|
|
4
|
-
const l = require("../../_virtual/_plugin-vue_export-helper.cjs"), i = { key: 0, class: "select" }, o = { key: 1, class: "select" }, n = { key: 2, class: "select" }, s = { key: 3, style: { width: "100%", height: "100%" } };
|
|
5
|
-
const r = l({ name: "SectionDate", components: {}, props: { colFieldSetting: { type: Object, default: null } }, data: () => ({ modelValue: {}, startDate: "", endDate: "", weekStareDate: "", weekDate: "", monthStareDate: "", monthDate: "", datStareDate: [], yearStartDate: "", yearDate: "", ScopeStartDate: "", ScopeEndDate: "", pickerOptions: { disabledDate: (e2) => e2.getFullYear() < 2e3 }, fordateParams: "" }), watch: { datStareDate: { handler(e2) {
|
|
6
|
-
this.startDate = this.formatTimefn(this.colFieldSetting.options.format, e2[0]), this.endDate = this.formatTimefn(this.colFieldSetting.options.format, e2[1]);
|
|
7
|
-
}, immediate: false, deep: true } }, created() {
|
|
8
|
-
this.setTimeScope();
|
|
9
|
-
}, methods: { formatTimefn: (e2, a2) => t.formatTimefn(e2, a2), getFirstDayOfSeason: (e2) => t.getFirstDayOfSeason(e2), getWeekOfSeason: (e2) => t.getWeekOfSeason(e2), setTimeScope() {
|
|
10
|
-
const e2 = this.colFieldSetting.options;
|
|
11
|
-
let a2 = e2.defaultValueSetting ? e2.defaultValueSetting.paramValue : null;
|
|
12
|
-
null != a2 && "" !== a2 || (a2 = e2.defaultValue);
|
|
13
|
-
const l2 = t.getDateRangeSelectorDefaultValue(e2.stareScopeTimeType, e2.format, a2);
|
|
14
|
-
if (l2) {
|
|
15
|
-
const t2 = l2.startTimeTemp, a3 = l2.endTimeTemp, i2 = l2.startDate, o2 = l2.endDate;
|
|
16
|
-
"year" === e2.showType && t2 && a3 ? (this.yearStartDate = t2, this.yearDate = a3) : "quarterScope" === e2.showType && t2 && a3 ? (this.ScopeStartDate = t2, this.ScopeEndDate = a3) : "week" === e2.showType && t2 && a3 ? (this.weekStareDate = t2, this.weekDate = a3) : "monthrange" === e2.showType && t2 && a3 ? (this.monthStareDate = t2, this.monthDate = a3) : "daterange" === e2.showType && t2 && a3 && (this.datStareDate = [t2, a3]), this.startDate = i2, this.endDate = o2;
|
|
17
|
-
}
|
|
18
|
-
this.changeForm();
|
|
19
|
-
}, getTimeTamp: (e2) => new Date(e2).getTime(), onChangeStatYear() {
|
|
20
|
-
this.startDate = this.formatTimefn(this.colFieldSetting.options.format, new Date(this.yearStartDate).getTime()), this.changeForm();
|
|
21
|
-
}, onChangeEndYear() {
|
|
22
|
-
const e2 = new Date(this.yearDate).getFullYear();
|
|
23
|
-
this.forTimeParams = e2 % 4 == 0 && e2 % 100 != 0 || e2 % 400 == 0 ? new Date(this.yearDate).getTime() + 31536e6 : new Date(this.yearDate).getTime() + 314496e5, this.endDate = this.formatTimefn(this.colFieldSetting.options.format, this.forTimeParams), this.startDate = this.formatTimefn(this.colFieldSetting.options.format, new Date(this.yearStartDate).getTime()), this.changeForm();
|
|
24
|
-
}, weekChange() {
|
|
25
|
-
this.forTimeParams = new Date(this.weekDate).getTime() + 432e6, this.endDate = this.formatTimefn(this.colFieldSetting.options.format, this.forTimeParams), this.changeForm();
|
|
26
|
-
}, weekStatChange() {
|
|
27
|
-
const e2 = new Date(this.weekStareDate) - 864e5;
|
|
28
|
-
this.startDate = this.formatTimefn(this.colFieldSetting.options.format, new Date(e2).getTime()), this.changeForm();
|
|
29
|
-
}, changeForm() {
|
|
30
|
-
const t2 = [this.startDate, this.endDate];
|
|
31
|
-
e.$emit(this, "SectionDateTransfer", t2);
|
|
32
|
-
}, quarterStatrt(e2) {
|
|
33
|
-
this.startDate = this.formatTimefn(this.colFieldSetting.options.format, new Date(e2).getTime()), this.changeForm();
|
|
34
|
-
}, quarterEnd(e2) {
|
|
35
|
-
this.endDate = this.formatTimefn(this.colFieldSetting.options.format, new Date(e2).getTime()), this.changeForm();
|
|
36
|
-
}, monthChange() {
|
|
37
|
-
const e2 = new Date(this.monthDate).getFullYear(), t2 = new Date(this.monthDate).getMonth() + 1, a2 = [1, 3, 5, 7, 8, 10, 12];
|
|
38
|
-
"" !== this.monthStareDate && null !== this.monthStareDate && void 0 !== this.monthStareDate && (this.startDate = this.formatTimefn(this.colFieldSetting.options.format, this.monthStareDate)), e2 % 4 == 0 && e2 % 100 != 0 || e2 % 400 == 0 ? 2 === t2 ? this.forTimeParams = new Date(this.monthDate).getTime() + 24192e5 : -1 !== a2.indexOf(t2) ? this.forTimeParams = new Date(this.monthDate).getTime() + 2592e6 : this.forTimeParams = new Date(this.monthDate).getTime() + 25056e5 : 2 === t2 ? this.forTimeParams = new Date(this.monthDate).getTime() + 23328e5 : -1 !== a2.indexOf(t2) ? this.forTimeParams = new Date(this.monthDate).getTime() + 2592e6 : this.forTimeParams = new Date(this.monthDate).getTime() + 25056e5, this.endDate = this.formatTimefn(this.colFieldSetting.options.format, this.forTimeParams), this.changeForm();
|
|
39
|
-
}, monthStatChange() {
|
|
40
|
-
this.startDate = this.formatTimefn(this.colFieldSetting.options.format, this.monthStareDate), this.changeForm();
|
|
41
|
-
} }, emits: ["SectionDateTransfer"] }, [["render", function(e2, t2, l2, r2, d, c) {
|
|
42
|
-
const h = a.resolveComponent("el-date-picker");
|
|
43
|
-
return a.openBlock(), a.createElementBlock("div", null, ["year" === l2.colFieldSetting.options.showType ? (a.openBlock(), a.createElementBlock("div", i, [a.createVNode(h, { shortcuts: d.pickerOptions && d.pickerOptions.shortcuts, "disabled-date": d.pickerOptions && d.pickerOptions.disabledDate, "cell-class-name": d.pickerOptions && d.pickerOptions.cellClassName, modelValue: d.yearStartDate, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => d.yearStartDate = e3), type: "year", placeholder: l2.colFieldSetting.options.startPlaceholder, disabled: l2.colFieldSetting.options.disabled, clearable: l2.colFieldSetting.options.clearable, size: l2.colFieldSetting.options.size ? l2.colFieldSetting.options.size : "small", onChange: c.onChangeStatYear }, null, 8, ["shortcuts", "disabled-date", "cell-class-name", "modelValue", "placeholder", "disabled", "clearable", "size", "onChange"]), t2[7] || (t2[7] = a.createElementVNode("div", { class: "intervalCenter" }, "-", -1)), a.createVNode(h, { shortcuts: d.pickerOptions && d.pickerOptions.shortcuts, "disabled-date": d.pickerOptions && d.pickerOptions.disabledDate, "cell-class-name": d.pickerOptions && d.pickerOptions.cellClassName, modelValue: d.yearDate, "onUpdate:modelValue": t2[1] || (t2[1] = (e3) => d.yearDate = e3), type: "year", placeholder: l2.colFieldSetting.options.endPlaceholder, disabled: l2.colFieldSetting.options.disabled, clearable: l2.colFieldSetting.options.clearable, size: l2.colFieldSetting.options.size ? l2.colFieldSetting.options.size : "small", onChange: c.onChangeEndYear }, null, 8, ["shortcuts", "disabled-date", "cell-class-name", "modelValue", "placeholder", "disabled", "clearable", "size", "onChange"])])) : "week" === l2.colFieldSetting.options.showType ? (a.openBlock(), a.createElementBlock("div", o, [a.createVNode(h, { shortcuts: { firstDayOfWeek: 1 } && { firstDayOfWeek: 1 }.shortcuts, "disabled-date": { firstDayOfWeek: 1 } && { firstDayOfWeek: 1 }.disabledDate, "cell-class-name": { firstDayOfWeek: 1 } && { firstDayOfWeek: 1 }.cellClassName, modelValue: d.weekStareDate, "onUpdate:modelValue": t2[2] || (t2[2] = (e3) => d.weekStareDate = e3), type: l2.colFieldSetting.options.showType, "is-range": l2.colFieldSetting.options.range, placeholder: l2.colFieldSetting.options.placeholder, "start-placeholder": l2.colFieldSetting.options.startPlaceholder, "end-placeholder": l2.colFieldSetting.options.endPlaceholder, readonly: l2.colFieldSetting.options.readonly, disabled: l2.colFieldSetting.options.disabled, editable: l2.colFieldSetting.options.editable, size: l2.colFieldSetting.options.size ? l2.colFieldSetting.options.size : "small", clearable: l2.colFieldSetting.options.clearable, format: "YYYY" + e2.$t("IntervalSelection.auxiliary") + "WW" + e2.$t("IntervalSelection.week"), onChange: c.weekStatChange }, null, 8, ["shortcuts", "disabled-date", "cell-class-name", "modelValue", "type", "is-range", "placeholder", "start-placeholder", "end-placeholder", "readonly", "disabled", "editable", "size", "clearable", "format", "onChange"]), t2[8] || (t2[8] = a.createElementVNode("div", { class: "intervalCenter" }, "-", -1)), a.createVNode(h, { shortcuts: { firstDayOfWeek: 1 } && { firstDayOfWeek: 1 }.shortcuts, "disabled-date": { firstDayOfWeek: 1 } && { firstDayOfWeek: 1 }.disabledDate, "cell-class-name": { firstDayOfWeek: 1 } && { firstDayOfWeek: 1 }.cellClassName, modelValue: d.weekDate, "onUpdate:modelValue": t2[3] || (t2[3] = (e3) => d.weekDate = e3), type: l2.colFieldSetting.options.showType, "is-range": l2.colFieldSetting.options.range, placeholder: l2.colFieldSetting.options.placeholder, "start-placeholder": l2.colFieldSetting.options.startPlaceholder, "end-placeholder": l2.colFieldSetting.options.endPlaceholder, readonly: l2.colFieldSetting.options.readonly, disabled: l2.colFieldSetting.options.disabled, editable: l2.colFieldSetting.options.editable, size: l2.colFieldSetting.options.size ? l2.colFieldSetting.options.size : "small", clearable: l2.colFieldSetting.options.clearable, format: "YYYY" + e2.$t("IntervalSelection.auxiliary") + "WW" + e2.$t("IntervalSelection.week"), onChange: c.weekChange }, null, 8, ["shortcuts", "disabled-date", "cell-class-name", "modelValue", "type", "is-range", "placeholder", "start-placeholder", "end-placeholder", "readonly", "disabled", "editable", "size", "clearable", "format", "onChange"])])) : "monthrange" === l2.colFieldSetting.options.showType ? (a.openBlock(), a.createElementBlock("div", n, [a.createVNode(h, { modelValue: d.monthStareDate, "onUpdate:modelValue": t2[4] || (t2[4] = (e3) => d.monthStareDate = e3), type: "month", "is-range": l2.colFieldSetting.options.range, placeholder: l2.colFieldSetting.options.placeholder, "start-placeholder": l2.colFieldSetting.options.startPlaceholder, "end-placeholder": l2.colFieldSetting.options.endPlaceholder, readonly: l2.colFieldSetting.options.readonly, disabled: l2.colFieldSetting.options.disabled, editable: l2.colFieldSetting.options.editable, clearable: l2.colFieldSetting.options.clearable, size: l2.colFieldSetting.options.size ? l2.colFieldSetting.options.size : "small", "value-format": "x", onChange: c.monthStatChange }, null, 8, ["modelValue", "is-range", "placeholder", "start-placeholder", "end-placeholder", "readonly", "disabled", "editable", "clearable", "size", "onChange"]), t2[9] || (t2[9] = a.createElementVNode("div", { class: "intervalCenter" }, "-", -1)), a.createVNode(h, { modelValue: d.monthDate, "onUpdate:modelValue": t2[5] || (t2[5] = (e3) => d.monthDate = e3), type: "month", "is-range": l2.colFieldSetting.options.range, placeholder: l2.colFieldSetting.options.placeholder, "start-placeholder": l2.colFieldSetting.options.startPlaceholder, "end-placeholder": l2.colFieldSetting.options.endPlaceholder, readonly: l2.colFieldSetting.options.readonly, disabled: l2.colFieldSetting.options.disabled, editable: l2.colFieldSetting.options.editable, clearable: l2.colFieldSetting.options.clearable, size: l2.colFieldSetting.options.size ? l2.colFieldSetting.options.size : "small", onChange: c.monthChange }, null, 8, ["modelValue", "is-range", "placeholder", "start-placeholder", "end-placeholder", "readonly", "disabled", "editable", "clearable", "size", "onChange"])])) : (a.openBlock(), a.createElementBlock("div", s, [a.createVNode(h, { modelValue: d.datStareDate, "onUpdate:modelValue": t2[6] || (t2[6] = (e3) => d.datStareDate = e3), type: l2.colFieldSetting.options.showType, "is-range": l2.colFieldSetting.options.range, placeholder: l2.colFieldSetting.options.placeholder, "start-placeholder": l2.colFieldSetting.options.startPlaceholder, "end-placeholder": l2.colFieldSetting.options.endPlaceholder, readonly: l2.colFieldSetting.options.readonly, disabled: l2.colFieldSetting.options.disabled, size: l2.colFieldSetting.options.size ? l2.colFieldSetting.options.size : "small", editable: l2.colFieldSetting.options.editable, clearable: l2.colFieldSetting.options.clearable, "value-format": "x", style: { width: "100%" }, onChange: c.changeForm }, null, 8, ["modelValue", "type", "is-range", "placeholder", "start-placeholder", "end-placeholder", "readonly", "disabled", "size", "editable", "clearable", "onChange"])]))]);
|
|
44
|
-
}], ["__scopeId", "data-v-52983a24"]]);
|
|
45
|
-
module.exports = r;
|
package/lib/breadcrumb/index.cjs
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const e = require("path-to-regexp"), t = require("vue");
|
|
3
|
-
require("./breadcrumb.vue2.cjs");
|
|
4
|
-
const r = require("../../_virtual/_plugin-vue_export-helper.cjs");
|
|
5
|
-
function a(e2) {
|
|
6
|
-
const t2 = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
7
|
-
if (e2) {
|
|
8
|
-
for (const r2 in e2)
|
|
9
|
-
if ("default" !== r2) {
|
|
10
|
-
const a2 = Object.getOwnPropertyDescriptor(e2, r2);
|
|
11
|
-
Object.defineProperty(t2, r2, a2.get ? a2 : { enumerable: true, get: () => e2[r2] });
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
return t2.default = e2, Object.freeze(t2);
|
|
15
|
-
}
|
|
16
|
-
const o = a(e), l = { key: 0, class: "no-redirect" };
|
|
17
|
-
const c = r({ name: "Breadcrumb", data: () => ({ levelList: null }), computed: { levelListWithTitle() {
|
|
18
|
-
return this.levelList.filter((e2) => void 0 !== e2.meta.title && null !== e2.meta.title);
|
|
19
|
-
} }, watch: { $route() {
|
|
20
|
-
this.getBreadcrumb();
|
|
21
|
-
} }, created() {
|
|
22
|
-
this.getBreadcrumb();
|
|
23
|
-
}, methods: { getBreadcrumb() {
|
|
24
|
-
const { params: e2 } = this.$route;
|
|
25
|
-
let t2 = this.$route.matched.filter((t3) => {
|
|
26
|
-
if (t3.name) {
|
|
27
|
-
var r3 = o.compile(t3.path);
|
|
28
|
-
return t3.path = r3(e2), true;
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
const r2 = t2[0];
|
|
32
|
-
r2 && "Dashboard" !== r2.name && (t2 = [{ path: "/dashboard", meta: { title: "Dashboard" } }].concat(t2)), this.levelList = t2;
|
|
33
|
-
} } }, [["render", function(e2, r2, a2, o2, c2, n) {
|
|
34
|
-
const i = t.resolveComponent("router-link"), s = t.resolveComponent("el-breadcrumb-item"), u = t.resolveComponent("el-breadcrumb");
|
|
35
|
-
return t.openBlock(), t.createBlock(u, { class: "app-breadcrumb", separator: "/" }, { default: t.withCtx(() => [t.createVNode(t.TransitionGroup, { tag: "span", name: "breadcrumb" }, { default: t.withCtx(() => [(t.openBlock(true), t.createElementBlock(t.Fragment, null, t.renderList(n.levelListWithTitle, (e3, r3) => (t.openBlock(), t.createBlock(s, { key: e3.path }, { default: t.withCtx(() => ["noredirect" === e3.redirect || r3 == c2.levelList.length - 1 ? (t.openBlock(), t.createElementBlock("span", l, t.toDisplayString(e3.meta.title), 1)) : (t.openBlock(), t.createBlock(i, { key: 1, to: e3.redirect || e3.path }, { default: t.withCtx(() => [t.createTextVNode(t.toDisplayString(e3.meta.title), 1)]), _: 2 }, 1032, ["to"]))]), _: 2 }, 1024))), 128))]), _: 1 })]), _: 1 });
|
|
36
|
-
}], ["__scopeId", "data-v-ff9ae7e4"]]);
|
|
37
|
-
module.exports = c;
|
package/lib/chat-embed/index.cjs
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const e = require("vue"), t = { class: "additional-data-tag" }, o = { class: "additional-data-button" }, a = e.defineComponent({ __name: "chat-addition-data", props: { item: { type: Object, required: true } }, emits: ["view-json", "download-json"], setup(a2, { emit: n }) {
|
|
3
|
-
const r = n;
|
|
4
|
-
return (n2, l) => {
|
|
5
|
-
const d = e.resolveComponent("el-divider"), i = e.resolveComponent("Paperclip"), s = e.resolveComponent("el-icon"), c = e.resolveComponent("el-tag"), m = e.resolveComponent("View"), p = e.resolveComponent("el-button"), u = e.resolveComponent("Download");
|
|
6
|
-
return e.openBlock(), e.createElementBlock(e.Fragment, null, [e.createVNode(d, { "border-style": "dashed" }), e.createVNode(c, { type: "primary", style: { width: "100%" } }, { default: e.withCtx(() => [e.createElementVNode("div", t, [e.createVNode(s, null, { default: e.withCtx(() => [e.createVNode(i)]), _: 1 }), e.createTextVNode(" " + e.toDisplayString(a2.item.additionalDataLabel), 1)])]), _: 1 }), e.createElementVNode("div", o, [e.createVNode(p, { plain: "", size: "small", onClick: l[0] || (l[0] = (e2) => {
|
|
7
|
-
var t2;
|
|
8
|
-
(t2 = a2.item.additionalData) && ("string" == typeof t2 ? r("view-json", JSON.parse(t2)) : Array.isArray(t2) && r("view-json", t2));
|
|
9
|
-
}) }, { default: e.withCtx(() => [e.createVNode(s, null, { default: e.withCtx(() => [e.createVNode(m)]), _: 1 }), l[2] || (l[2] = e.createTextVNode()), l[3] || (l[3] = e.createElementVNode("span", null, "预览数据", -1))]), _: 1 }), e.createVNode(p, { plain: "", size: "small", onClick: l[1] || (l[1] = (e2) => {
|
|
10
|
-
return t2 = a2.item.additionalData, o2 = a2.item.menuName, void (t2 && ("string" == typeof t2 ? r("download-json", JSON.parse(t2), o2) : Array.isArray(t2) && r("download-json", t2, o2)));
|
|
11
|
-
var t2, o2;
|
|
12
|
-
}) }, { default: e.withCtx(() => [e.createVNode(s, null, { default: e.withCtx(() => [e.createVNode(u)]), _: 1 }), l[4] || (l[4] = e.createTextVNode(" 下载数据 ", -1))]), _: 1 })])], 64);
|
|
13
|
-
};
|
|
14
|
-
} });
|
|
15
|
-
module.exports = a;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const e = require("vue"), n = require("vue-element-plus-x"), t = { key: 0, style: { "max-height": "80vh", overflow: "auto" } }, r = ["onClick"], o = e.defineComponent({ __name: "chat-ai-answer-tip", props: { item: { type: Object, required: true }, itemProps: { type: Object, required: true } }, emits: ["click-doc-agg"], setup(o2, { emit: c }) {
|
|
3
|
-
const i = c, l = e.ref(false);
|
|
4
|
-
function u() {
|
|
5
|
-
l.value = true;
|
|
6
|
-
}
|
|
7
|
-
function a(e2, n2) {
|
|
8
|
-
if (!e2.referenceChunks || 0 === e2.referenceChunks.length)
|
|
9
|
-
return "无相关提示信息";
|
|
10
|
-
const t2 = parseInt(n2);
|
|
11
|
-
return isNaN(t2) || t2 < 0 || t2 >= e2.referenceChunks.length ? "提示信息索引无效" : e2.referenceChunks[t2].content || "无相关提示信息";
|
|
12
|
-
}
|
|
13
|
-
function s(e2, n2) {
|
|
14
|
-
if (!e2.referenceChunks || 0 === e2.referenceChunks.length)
|
|
15
|
-
return "无相关提示信息";
|
|
16
|
-
const t2 = parseInt(n2);
|
|
17
|
-
return isNaN(t2) || t2 < 0 || t2 >= e2.referenceChunks.length ? "提示信息索引无效" : e2.referenceChunks[t2] ? [{ doc_name: e2.referenceChunks[t2].document_name, doc_id: e2.referenceChunks[t2].document_id }] : [];
|
|
18
|
-
}
|
|
19
|
-
return (c2, m) => {
|
|
20
|
-
const p = e.resolveComponent("Opportunity"), d = e.resolveComponent("el-icon"), k = e.resolveComponent("el-popover");
|
|
21
|
-
return e.openBlock(), e.createBlock(k, { placement: "right", trigger: "click", width: "100vh" }, { reference: e.withCtx(() => [e.createVNode(d, { onClick: u }, { default: e.withCtx(() => [e.createVNode(p)]), _: 1 })]), default: e.withCtx(() => [l.value ? (e.openBlock(), e.createElementBlock("div", t, [e.createVNode(e.unref(n.XMarkdown), { allowHtml: true, markdown: a(o2.item, o2.itemProps["tip-index"]) }, null, 8, ["markdown"])])) : e.createCommentVNode("", true), l.value ? (e.openBlock(true), e.createElementBlock(e.Fragment, { key: 1 }, e.renderList(s(o2.item, o2.itemProps["tip-index"]), (n2, t2) => (e.openBlock(), e.createElementBlock("div", { style: { margin: "5px 10px" }, key: t2, onClick: (e2) => function(e3) {
|
|
22
|
-
i("click-doc-agg", e3);
|
|
23
|
-
}(n2), class: "doc-agg-item" }, e.toDisplayString(n2.doc_name), 9, r))), 128)) : e.createCommentVNode("", true)]), _: 1 });
|
|
24
|
-
};
|
|
25
|
-
} });
|
|
26
|
-
module.exports = o;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const e = require("vue"), t = require("@element-plus/icons-vue"), o = require("element-plus"), n = require("vue-i18n"), c = { key: 0, class: "footer-wrapper" }, r = { class: "footer-container" }, i = e.defineComponent({ __name: "chat-bubble-footer", props: { item: { type: Object, required: true } }, emits: ["regenerate"], setup(i2, { emit: s }) {
|
|
3
|
-
const { t: a } = n.useI18n(), l = s;
|
|
4
|
-
return (n2, s2) => {
|
|
5
|
-
const m = e.resolveComponent("el-button"), u = e.resolveComponent("el-tooltip");
|
|
6
|
-
return "ai" !== i2.item.role || i2.item.isRecommend || "thinking" === i2.item.thinkingStatus ? e.createCommentVNode("", true) : (e.openBlock(), e.createElementBlock("div", c, [e.createElementVNode("div", r, [e.createVNode(u, { class: "box-item", effect: "dark", content: n2.$t("chatEmbed.regenerate") }, { default: e.withCtx(() => [e.createVNode(m, { type: "info", icon: e.unref(t.Refresh), size: "small", circle: "", onClick: s2[0] || (s2[0] = (e2) => {
|
|
7
|
-
return t2 = i2.item, void l("regenerate", t2);
|
|
8
|
-
var t2;
|
|
9
|
-
}) }, null, 8, ["icon"])]), _: 1 }, 8, ["content"]), e.createVNode(u, { class: "box-item", effect: "dark", content: n2.$t("chatEmbed.copy") }, { default: e.withCtx(() => [e.createVNode(m, { type: "info", color: "#626aef", icon: e.unref(t.DocumentCopy), size: "small", circle: "", onClick: s2[1] || (s2[1] = (e2) => function(e3) {
|
|
10
|
-
if (e3.content)
|
|
11
|
-
if (navigator.clipboard && "function" == typeof navigator.clipboard.writeText)
|
|
12
|
-
navigator.clipboard.writeText(e3.content).then(() => {
|
|
13
|
-
o.ElMessage({ message: a("chatEmbed.copySuccess"), type: "success" });
|
|
14
|
-
});
|
|
15
|
-
else {
|
|
16
|
-
const t2 = document.createElement("textarea");
|
|
17
|
-
t2.value = e3.content, document.body.appendChild(t2), t2.select();
|
|
18
|
-
try {
|
|
19
|
-
document.execCommand("copy"), o.ElMessage({ message: a("chatEmbed.copySuccess"), type: "success" });
|
|
20
|
-
} catch (e4) {
|
|
21
|
-
o.ElMessage({ message: "复制失败", type: "error" });
|
|
22
|
-
}
|
|
23
|
-
document.body.removeChild(t2);
|
|
24
|
-
}
|
|
25
|
-
}(i2.item)) }, null, 8, ["icon"])]), _: 1 }, 8, ["content"])])]));
|
|
26
|
-
};
|
|
27
|
-
} });
|
|
28
|
-
module.exports = i;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const e = require("dayjs"), t = require("./type.cjs");
|
|
4
|
-
function a(a2, n2, i, s) {
|
|
5
|
-
const o = "ai" === a2 ? "ai" : "user", r = "ai" === o ? "start" : "end", d = { isRecommend: i, key: (/* @__PURE__ */ new Date()).getTime(), role: o, placement: r, content: n2, showThinkingContent: false, loading: false, shape: "corner", variant: "ai" === o ? "filled" : "outlined", isMarkdown: false, typing: "ai" === o, avatar: "ai" === o ? "https://cube.elemecdn.com/0/88/03b0d39583f48206768a7534e55bcpng.png" : "../../src/assets/chat-embed/avatar.png", noStyle: "ai" === o, statusValue: "end", recommendations: [], avatarSize: "24px", sendTime: e(/* @__PURE__ */ new Date()).format("YYYY-MM-DD HH:mm:ss") };
|
|
6
|
-
return "ai" === o && (d.maxWidth = "calc(100% - 60px)", s ? (d.thinkingContent = "", d.thinkingStatus = t.MESSAGE_STATUS.THINKING, d.showThinkingContent = true) : (d.thinkingContent = null, d.thinkingStatus = t.MESSAGE_STATUS.NONE, d.showThinkingContent = false)), d;
|
|
7
|
-
}
|
|
8
|
-
const n = a("ai", "😊 您好,我是平台小助手,您可以向我提出关于平台使用问题", true, false);
|
|
9
|
-
exports.createAiMessage = function(e2, t2) {
|
|
10
|
-
const n2 = a("ai", "", false, t2);
|
|
11
|
-
return Object.assign(n2, { question: e2.question, menuName: e2.menuName, menuCode: e2.menuCode, askAdditionalData: e2.additionalData });
|
|
12
|
-
}, exports.createUserMessage = function(e2) {
|
|
13
|
-
var _a;
|
|
14
|
-
const t2 = a("user", e2.question, true, false);
|
|
15
|
-
return ((_a = e2.additionalData) == null ? void 0 : _a.length) && Object.assign(t2, { additionalData: e2.additionalData, additionalDataLabel: e2.additionalDataLabel, menuName: e2.menuName, menuCode: e2.menuCode }), t2;
|
|
16
|
-
}, exports.defaultMessage = n, exports.getMessageTemplate = a;
|
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const e = require("vue"), t = require("../../src/store/modules/chat-ai-store.cjs"), a = require("vue-element-plus-x"), n = require("./util/text-file-util.cjs"), l = require("pinia"), o = require("vue-i18n"), i = require("element-plus"), r = require("./voice/voice.vue.cjs"), u = require("./type.cjs"), c = require("../../src/utils/voice-setting-cache.cjs"), s = require("../../src/utils/common-util.cjs"), d = require("../../src/utils/auth.cjs"), m = { class: "sender-additional-data-tag" }, p = { style: { display: "flex", "align-items": "center", "flex-wrap": "wrap" } }, v = { style: { display: "flex", "align-items": "center", gap: "16px" } }, f = e.defineComponent({ __name: "chat-sender", props: { loading: { type: Boolean, default: false } }, emits: ["submit-question", "handle-cancel", "view-json", "change-ai-model", "voice-answer", "command-answer"], setup(f2, { expose: h, emit: g }) {
|
|
3
|
-
o.useI18n();
|
|
4
|
-
const w = [{ label: "流程体系类", value: u.AI_MODELS.RAGFLOW }, { label: "QMS数据库类", value: u.AI_MODELS.DATABASE }, { label: "DeepSeek问答", value: u.AI_MODELS.DEEPSEEK }, { label: "系统交互", value: u.AI_MODELS.INTERACTION }, { label: "生成PPT", value: u.AI_MODELS.PPT_GENERATION }];
|
|
5
|
-
let x = null;
|
|
6
|
-
const C = g, E = e.ref(false), V = e.ref(""), b = e.ref([]), N = e.ref(""), k = e.ref("ragflow"), A = e.ref(), y = e.ref(), _ = e.ref(window.$vueApp.config.globalProperties.baseAPI + "/component/ai/upload-file/bailian"), I = e.ref([]), D = e.ref(false), S = e.ref(false);
|
|
7
|
-
function R() {
|
|
8
|
-
try {
|
|
9
|
-
window.parent && window.parent !== window && (window.parent.ChatAiStore = x), window.top && window.top !== window && (window.top.ChatAiStore = x), window.ChatAiStore = x;
|
|
10
|
-
} catch (e2) {
|
|
11
|
-
console.error("Failed to initialize ChatAiStore:", e2);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
let B, M;
|
|
15
|
-
e.onMounted(() => {
|
|
16
|
-
!function() {
|
|
17
|
-
try {
|
|
18
|
-
let e2 = l.getActivePinia();
|
|
19
|
-
e2 || (e2 = l.createPinia(), l.setActivePinia(e2), window.$vueApp && window.$vueApp.use(e2)), x = t();
|
|
20
|
-
} catch (e2) {
|
|
21
|
-
console.error("Failed to initialize Pinia or ChatAiStore:", e2);
|
|
22
|
-
}
|
|
23
|
-
}(), R();
|
|
24
|
-
}), e.watch(() => I.value.length, (e2) => {
|
|
25
|
-
e2 > 0 ? A.value.openHeader() : A.value.closeHeader();
|
|
26
|
-
}), e.onMounted(() => {
|
|
27
|
-
R();
|
|
28
|
-
});
|
|
29
|
-
let P = {}, O = {};
|
|
30
|
-
function T(e2) {
|
|
31
|
-
let t2 = e2;
|
|
32
|
-
null == e2 ? (N.value, t2 = N.value.trim()) : t2 = e2.trim(), B = t2;
|
|
33
|
-
let a2 = { aiModel: k.value, question: t2 };
|
|
34
|
-
if (k.value === u.AI_MODELS.DEEPSEEK || k.value === u.AI_MODELS.PPT_GENERATION) {
|
|
35
|
-
const e3 = x.getActiveMenu();
|
|
36
|
-
let n2 = "";
|
|
37
|
-
I.value.length > 0 && (n2 = I.value.map((e4) => e4.id).join(","));
|
|
38
|
-
let l2 = [];
|
|
39
|
-
I.value.length > 0 && (l2 = I.value.map((e4) => ({ fileId: e4.id, name: e4.name }))), I.value = [], a2 = { aiModel: k.value, question: t2, fileId: n2, fileInfos: l2, additionalData: b.value, additionalDataLabel: V.value, menuName: (e3 == null ? void 0 : e3.menuName) || "" };
|
|
40
|
-
}
|
|
41
|
-
C("submit-question", a2), N.value = "", L();
|
|
42
|
-
}
|
|
43
|
-
function j() {
|
|
44
|
-
C("handle-cancel");
|
|
45
|
-
}
|
|
46
|
-
function q() {
|
|
47
|
-
var _a;
|
|
48
|
-
const e2 = x.getActiveMenu(), t2 = x.getActiveMenuPageInfo();
|
|
49
|
-
if ("list" === t2.pageType) {
|
|
50
|
-
const a2 = t2.listRefs[0].ref.getAiChatListData();
|
|
51
|
-
a2 && a2.length > 0 && (b.value = a2), ((_a = b.value) == null ? void 0 : _a.length) > 0 && (V.value = `已附加【${e2.menuName}】表格数据 (${b.value.length} 条记录)`, E.value = true);
|
|
52
|
-
} else if ("form" === t2.pageType) {
|
|
53
|
-
const a2 = t2.exposeProxy.getFormFormatData();
|
|
54
|
-
t2.subTableRefs && Object.keys(t2.subTableRefs).length > 0 && Object.keys(t2.subTableRefs).forEach((e3) => {
|
|
55
|
-
const n2 = t2.subTableRefs[e3].ref, l2 = n2.getAiChatListData();
|
|
56
|
-
let o2 = e3;
|
|
57
|
-
n2.options.title && (o2 = n2.options.title), a2[o2] = l2;
|
|
58
|
-
}), a2 && (b.value = [a2], V.value = `已附加【${e2.menuName}】表单数据`, E.value = true);
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
function L() {
|
|
62
|
-
b.value = [], V.value = "", E.value = false;
|
|
63
|
-
}
|
|
64
|
-
function F() {
|
|
65
|
-
C("view-json", b.value);
|
|
66
|
-
}
|
|
67
|
-
function $() {
|
|
68
|
-
try {
|
|
69
|
-
const e2 = x.getActiveMenu(), t2 = n.generateFileName((e2 == null ? void 0 : e2.menuName) || "data");
|
|
70
|
-
n.downloadJsonFile(b.value, t2);
|
|
71
|
-
} catch (e2) {
|
|
72
|
-
console.error("下载失败:", e2);
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
function z(e2) {
|
|
76
|
-
e2 === u.AI_MODELS.DEEPSEEK && I.value.length > 0 ? A.value.openHeader() : A.value.closeHeader(), e2 === u.AI_MODELS.DEEPSEEK || e2 === u.AI_MODELS.PPT_GENERATION ? (D.value = true, S.value = true) : (D.value = false, S.value = false, L()), C("change-ai-model", e2);
|
|
77
|
-
}
|
|
78
|
-
function K(e2) {
|
|
79
|
-
I.value.push({ id: e2.uid, uid: e2.uid, name: e2.name, percent: 0, status: "uploading", showDelIcon: true, maxWidth: "150px" });
|
|
80
|
-
}
|
|
81
|
-
function G(e2, t2, a2) {
|
|
82
|
-
const n2 = I.value.findIndex((e3) => e3.id === t2.uid);
|
|
83
|
-
-1 !== n2 && (I.value[n2].percent = e2.percent);
|
|
84
|
-
}
|
|
85
|
-
function H(e2, t2, a2) {
|
|
86
|
-
if (e2) {
|
|
87
|
-
const a3 = I.value.findIndex((e3) => e3.id === t2.uid);
|
|
88
|
-
-1 !== a3 && (I.value[a3].status = "done", e2.forEach((e3) => {
|
|
89
|
-
e3.name === I.value[a3].name && (I.value[a3].id = e3.fileId, I.value[a3].uid = e3.fileId);
|
|
90
|
-
}));
|
|
91
|
-
} else
|
|
92
|
-
i.ElMessage({ message: (e2 == null ? void 0 : e2.message) || "文件上传失败", type: "error" });
|
|
93
|
-
}
|
|
94
|
-
function U(e2) {
|
|
95
|
-
const t2 = I.value.findIndex((t3) => t3.id === e2.uid);
|
|
96
|
-
-1 !== t2 && I.value.splice(t2, 1);
|
|
97
|
-
}
|
|
98
|
-
function W(e2, t2, a2) {
|
|
99
|
-
let n2 = false;
|
|
100
|
-
if (t2 && t2.indexOf("~") >= 0) {
|
|
101
|
-
const e3 = t2.split("~");
|
|
102
|
-
let l2;
|
|
103
|
-
if (n2 = s.isValidDate(e3[0]), n2 && (n2 = s.isValidDate(e3[1])), 3 === e3.length && (l2 = e3[2]), e3.length, n2 && l2 && l2.indexOf(",") > 0) {
|
|
104
|
-
const t3 = l2.split(","), n3 = t3[0], o2 = t3[1];
|
|
105
|
-
a2 = J(n3, e3[0], a2), a2 = J(o2, e3[1], a2);
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
return n2 || (a2 = J(e2, t2, a2)), a2;
|
|
109
|
-
}
|
|
110
|
-
function J(e2, t2, a2) {
|
|
111
|
-
if (null == e2 || e2 + "" == "")
|
|
112
|
-
return a2;
|
|
113
|
-
if (null == t2 || t2 + "" == "")
|
|
114
|
-
return a2;
|
|
115
|
-
const n2 = "ai__" + e2;
|
|
116
|
-
return a2 = a2.indexOf("?") > 0 ? a2 + "&" + n2 + "=" + t2 : a2 + "?" + n2 + "=" + t2;
|
|
117
|
-
}
|
|
118
|
-
return h({ parseCommand: function() {
|
|
119
|
-
c.getVoiceSetting().then((e2) => {
|
|
120
|
-
c.parseVoiceMsg(B, e2, M, P, O).then((e3) => {
|
|
121
|
-
if ("ok" === e3.status) {
|
|
122
|
-
M || (M = e3.settingItem), P = e3.paramInfo;
|
|
123
|
-
let t2 = e3.url;
|
|
124
|
-
if (t2) {
|
|
125
|
-
if (O)
|
|
126
|
-
for (let e4 in O) {
|
|
127
|
-
const a3 = O[e4];
|
|
128
|
-
"_jump_param" !== a3 && (t2 = W(e4, a3, t2));
|
|
129
|
-
}
|
|
130
|
-
const a2 = M ? M.command : "";
|
|
131
|
-
M = void 0, O = {}, P = {}, C("command-answer", { content: e3.commandResult ? e3.commandResult : e3.paramResult, url: t2, paramsValue: O, command: a2 }), window.open(s.getRelativeBaseUrl(t2));
|
|
132
|
-
} else
|
|
133
|
-
C("command-answer", { content: e3.commandResult ? e3.commandResult : e3.paramResult });
|
|
134
|
-
} else
|
|
135
|
-
C("command-answer", { content: e3.commandResult ? e3.commandResult : e3.paramResult });
|
|
136
|
-
});
|
|
137
|
-
});
|
|
138
|
-
}, newChatSession: function() {
|
|
139
|
-
k.value === u.AI_MODELS.DEEPSEEK && (I.value = []), N.value = "";
|
|
140
|
-
} }), (t2, n2) => {
|
|
141
|
-
const l2 = e.resolveComponent("Paperclip"), o2 = e.resolveComponent("el-icon"), i2 = e.resolveComponent("super-icon"), u2 = e.resolveComponent("el-tooltip"), c2 = e.resolveComponent("el-tag"), s2 = e.resolveComponent("el-option"), h2 = e.resolveComponent("el-select"), g2 = e.resolveComponent("SuperIcon"), x2 = e.resolveComponent("el-upload"), C2 = e.resolveComponent("el-divider"), b2 = e.resolveComponent("el-button"), R2 = e.resolveDirective("loading");
|
|
142
|
-
return e.openBlock(), e.createElementBlock(e.Fragment, null, [E.value ? (e.openBlock(), e.createBlock(c2, { key: 0, type: "primary" }, { default: e.withCtx(() => [e.createElementVNode("div", m, [e.createVNode(o2, null, { default: e.withCtx(() => [e.createVNode(l2)]), _: 1 }), e.createTextVNode(" " + e.toDisplayString(V.value) + " ", 1), e.createVNode(u2, { content: "预览" }, { default: e.withCtx(() => [e.createVNode(i2, { iconValue: "amb-color-icon-yulan", style: { cursor: "pointer" }, onClick: F })]), _: 1 }), e.createVNode(u2, { content: "下载" }, { default: e.withCtx(() => [e.createVNode(i2, { iconValue: "amb-color-icon-xiazai", style: { cursor: "pointer" }, onClick: $ })]), _: 1 }), e.createVNode(u2, { content: "移除" }, { default: e.withCtx(() => [e.createVNode(i2, { iconValue: "amb-color-icon-shanchu", style: { cursor: "pointer" }, onClick: L })]), _: 1 })])]), _: 1 })) : e.createCommentVNode("", true), e.createVNode(e.unref(a.Sender), { modelValue: N.value, "onUpdate:modelValue": n2[2] || (n2[2] = (e2) => N.value = e2), variant: "updown", "auto-size": { minRows: 2, maxRows: 5 }, clearable: "", ref_key: "senderRef", ref: A, submitType: "enter", loading: f2.loading, "allow-speech": "", onSubmit: n2[3] || (n2[3] = (e2) => T()), placeholder: "请您描述问题" }, { header: e.withCtx(() => [e.createVNode(e.unref(a.Attachments), { items: I.value, drag: "", overflow: "scrollX", "hide-upload": true }, { "file-list": e.withCtx((t3) => [(e.openBlock(true), e.createElementBlock(e.Fragment, null, e.renderList(t3.items, (t4) => (e.openBlock(), e.createBlock(e.unref(a.FilesCard), { key: t4.id, maxWidth: "150px", style: { margin: "10px 5px" }, name: t4.name, percent: t4.percent, uid: t4.id, status: t4.status, "show-del-icon": "", "img-variant": "square", onDelete: U }, null, 8, ["name", "percent", "uid", "status"]))), 128))]), _: 1 }, 8, ["items"])]), prefix: e.withCtx(() => [e.createElementVNode("div", p, [e.createVNode(h2, { style: { width: "146px", height: "32px" }, plain: "", modelValue: k.value, "onUpdate:modelValue": n2[0] || (n2[0] = (e2) => k.value = e2), onChange: z }, { default: e.withCtx(() => [(e.openBlock(), e.createElementBlock(e.Fragment, null, e.renderList(w, (t3) => e.createVNode(s2, { key: t3.value, label: t3.label, value: t3.value }, null, 8, ["label", "value"])), 64))]), _: 1 }, 8, ["modelValue"])])]), "action-list": e.withCtx(() => [e.createElementVNode("div", v, [D.value ? (e.openBlock(), e.createBlock(u2, { key: 0, content: "上传附件" }, { default: e.withCtx(() => [e.createVNode(x2, { ref_key: "uploadRef", ref: y, action: _.value, multiple: true, headers: { Authorization: e.unref(d.getToken)() }, accept: ".txt,.docx,.pdf,.xlsx,.epub,.mobi,.md,.csv,.json,.bmp,.png,.jpg,.jpeg,.gif,.pdf", "show-file-list": false, "on-progress": G, "on-success": H, "before-upload": K }, { default: e.withCtx(() => [e.createVNode(g2, { iconValue: "amb-icon-fujianshangchuan" })]), _: 1 }, 8, ["action", "headers"])]), _: 1 })) : e.createCommentVNode("", true), S.value ? (e.openBlock(), e.createBlock(u2, { key: 1, content: "附加页面数据" }, { default: e.withCtx(() => [e.createVNode(g2, { onClick: q, iconValue: "amb-icon-fujiabiaogeshu", class: "send-icon" })]), _: 1 })) : e.createCommentVNode("", true), e.createVNode(u2, { content: "语音" }, { default: e.withCtx(() => [e.createVNode(r, { onUserMessage: T, class: "send-icon" })]), _: 1 }), e.createVNode(C2, { direction: "vertical" }), f2.loading ? (e.openBlock(), e.createBlock(u2, { key: 2, content: "取消" }, { default: e.withCtx(() => [e.withDirectives((e.openBlock(), e.createBlock(b2, { type: "primary", style: { "border-radius": "10px" }, plain: "", round: "", onClick: j }, { default: e.withCtx(() => [...n2[4] || (n2[4] = [e.createTextVNode(" 取消 ", -1)])]), _: 1 })), [[R2, f2.loading]])]), _: 1 })) : (e.openBlock(), e.createBlock(b2, { key: 3, style: { "border-radius": "10px" }, disabled: !N.value || !N.value.trim(), plain: "", circle: "", round: "", onClick: n2[1] || (n2[1] = (e2) => T()) }, { default: e.withCtx(() => [e.createVNode(g2, { iconValue: "amb-icon-fasong2" })]), _: 1 }, 8, ["disabled"]))])]), _: 1 }, 8, ["modelValue", "loading"]), n2[5] || (n2[5] = e.createElementVNode("div", { class: "ai-generate-tip" }, "内容由AI生成,仅供参考", -1))], 64);
|
|
143
|
-
};
|
|
144
|
-
} });
|
|
145
|
-
module.exports = f;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const e = require("vue"), t = require("element-plus"), r = require("echarts/core"), a = require("vue-echarts"), o = require("echarts/renderers"), n = require("echarts/charts"), s = require("echarts/components"), i = { style: { "max-height": "700px" } }, l = { key: 0, style: { "text-align": "center", color: "#999", "margin-top": "20px" } }, p = e.defineComponent({ __name: "answer-auto-chart", props: { chartProps: { type: Object, default: {} } }, setup(p2) {
|
|
3
|
-
r.use([o.CanvasRenderer, n.LineChart, n.BarChart, n.PieChart, n.RadarChart, s.GridComponent, s.LegendComponent, s.TitleComponent, s.TooltipComponent, s.ToolboxComponent, s.DataZoomComponent]);
|
|
4
|
-
const c = p2, u = e.ref(null), h = e.ref({}), m = e.ref(false), x = e.ref("");
|
|
5
|
-
let y = {};
|
|
6
|
-
c.chartProps.params && (y = JSON.parse(c.chartProps.params));
|
|
7
|
-
let d = [], f = {};
|
|
8
|
-
var v;
|
|
9
|
-
return c.chartProps.answer && (f = JSON.parse(c.chartProps.answer), f.dataList && (d = f.dataList)), (d == null ? void 0 : d.length) > 0 && y ? (h.value = function(e2, r2) {
|
|
10
|
-
const a2 = e2.chartType || "bar";
|
|
11
|
-
return -1 !== a2.indexOf("bar") || -1 !== a2.indexOf("line") ? function(e3, t2) {
|
|
12
|
-
var _a, _b;
|
|
13
|
-
const r3 = e3.xAxis;
|
|
14
|
-
let a3 = e3.series || [], o2 = e3.yAxis || [];
|
|
15
|
-
e3.chartOption && (e3.chartOption.yAxis && (o2 = e3.chartOption.yAxis), e3.chartOption.series && (a3 = e3.chartOption.series));
|
|
16
|
-
const n2 = t2.map((e4) => {
|
|
17
|
-
const t3 = e4[r3];
|
|
18
|
-
return null != t3 ? t3 : "未知";
|
|
19
|
-
});
|
|
20
|
-
let s2 = "bar";
|
|
21
|
-
-1 !== ((_a = e3.chartType) == null ? void 0 : _a.indexOf("line")) && (s2 = "line");
|
|
22
|
-
const i2 = a3.map((r4) => {
|
|
23
|
-
var _a2;
|
|
24
|
-
const a4 = r4.name, o3 = r4.type || s2, n3 = t2.map((e4) => e4[a4] || 0), i3 = { name: a4, type: o3, data: n3 };
|
|
25
|
-
return r4.format ? i3.tooltip = { valueFormatter: function(e4) {
|
|
26
|
-
return r4.format.replace("{value}", e4);
|
|
27
|
-
} } : ((_a2 = r4.tooltip) == null ? void 0 : _a2.formatter) && (i3.tooltip = { valueFormatter: function(e4) {
|
|
28
|
-
return r4.tooltip.formatter.replace("{value}", e4);
|
|
29
|
-
} }), "yAxisIndex" in r4 && (e3.yAxis && Array.isArray(e3.yAxis) && r4.yAxisIndex > e3.yAxis.length - 1 ? r4.yAxisIndex = 0 : i3.yAxisIndex = r4.yAxisIndex), i3;
|
|
30
|
-
}), l2 = [];
|
|
31
|
-
o2 && Array.isArray(o2) ? o2.forEach((e4) => {
|
|
32
|
-
const t3 = { type: e4.type || "value" };
|
|
33
|
-
e4.axisLabel && (t3.axisLabel = e4.axisLabel), e4.name && (t3.name = e4.name), l2.push(t3);
|
|
34
|
-
}) : l2.push({ type: "value" });
|
|
35
|
-
let p3 = e3.chartName || "图表";
|
|
36
|
-
e3.chartOption && (p3 = ((_b = e3.chartOption.title) == null ? void 0 : _b.text) || p3);
|
|
37
|
-
const c2 = { title: { text: p3, left: "center" }, toolbox: { show: true, feature: { saveAsImage: { title: "保存为图片" } } }, tooltip: { trigger: "axis" }, legend: { data: a3.map((e4) => e4.name), left: "right", textStyle: { width: 180, overflow: "truncate" }, type: "scroll", orient: "vertical", top: "center", tooltip: { show: true } }, xAxis: { type: "category", data: n2 }, yAxis: l2, series: i2 };
|
|
38
|
-
n2.length > 10 && (c2.dataZoom = [{ type: "slider", start: 0, end: 100 }, { type: "inside", start: 0, end: 100 }]);
|
|
39
|
-
return c2;
|
|
40
|
-
}(e2, r2) : "pie" === a2 ? function(e3, r3) {
|
|
41
|
-
var _a;
|
|
42
|
-
const a3 = e3.xAxis, o2 = ((_a = e3.series[0]) == null ? void 0 : _a.name) || "";
|
|
43
|
-
if (!o2)
|
|
44
|
-
return t.ElMessage.error("饼图必须指定数值轴"), x.value = "饼图必须指定数值轴", null;
|
|
45
|
-
const n2 = r3.map((e4) => ({ name: e4[a3] || "未知", value: e4[o2] || 0 })), s2 = { title: { text: e3.chartName || "饼图", left: "center" }, toolbox: { trigger: "item", show: true, feature: { saveAsImage: { title: "保存为图片" } } }, legend: { left: "right", textStyle: { width: 180, overflow: "truncate" }, type: "scroll", orient: "vertical", top: "10%", tooltip: { show: true } }, series: [{ name: e3.chartName || "饼图", type: "pie", radius: "70%", data: n2, emphasis: { itemStyle: { shadowBlur: 10, shadowOffsetX: 0, shadowColor: "rgba(0, 0, 0, 0.5)" } } }] };
|
|
46
|
-
return s2;
|
|
47
|
-
}(e2, r2) : (t.ElMessage.error("不支持的图表类型"), x.value = "不支持的图表类型", null);
|
|
48
|
-
}(y, d), h.value ? (v = h.value, u.value && u.value.setOption(v, true)) : m.value = true) : d && 0 !== d.length || (t.ElMessage.error("未能获取到可用数据展示图表"), x.value = "未能获取到可用数据展示图表", m.value = true), (t2, r2) => (e.openBlock(), e.createElementBlock("div", i, [m.value ? (e.openBlock(), e.createElementBlock("div", l, e.toDisplayString(x.value), 1)) : (e.openBlock(), e.createBlock(e.unref(a), { key: 1, ref_key: "chartRef", ref: u, style: { height: "400px" }, option: h.value, autoresize: "" }, null, 8, ["option"]))]));
|
|
49
|
-
} });
|
|
50
|
-
module.exports = p;
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const e = require("vue"), t = require("vue-i18n"), r = { style: { height: "300px", width: "100%" } }, c = ["src"], o = ["src"], h = e.defineComponent({ __name: "answer-home-chart", props: { chartProps: { type: Object, default: {} } }, setup: (h2) => (t.useI18n(), (t2, a) => (e.openBlock(), e.createElementBlock("div", r, [h2.chartProps.chartuuid ? (e.openBlock(), e.createElementBlock("iframe", { key: 0, height: "100%", width: "100%", class: "home-chart-iframe", src: "http://localhost:9601/dsc/#/dsc-home-chart/page?chartUuid=" + h2.chartProps.chartuuid + "&homeChartSettingUserId=" + h2.chartProps.id }, null, 8, c)) : h2.chartProps.customurl ? (e.openBlock(), e.createElementBlock("iframe", { key: 1, height: "100%", width: "100%", class: "home-chart-iframe", src: h2.chartProps.customurl }, null, 8, o)) : e.createCommentVNode("", true)]))) });
|
|
3
|
-
module.exports = h;
|