agilebuilder-ui 1.1.65-tmp15 → 1.1.65-tmp17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/IntervalSelection/index.js +5 -7
- package/lib/IntervalSelection/src/sectionDate.vue.js +17 -21
- package/lib/IntervalSelection/src/sectionDate.vue2.js +2 -4
- package/lib/_virtual/__vite-browser-external.js +2 -4
- package/lib/_virtual/_plugin-vue_export-helper.js +6 -8
- package/lib/breadcrumb/index.js +3 -5
- package/lib/breadcrumb/src/breadcrumb.vue.js +28 -19
- package/lib/breadcrumb/src/breadcrumb.vue2.js +2 -4
- package/lib/chat-embed/index.js +3 -5
- package/lib/chat-embed/src/chat-addition-data.vue.js +5 -7
- package/lib/chat-embed/src/chat-addition-data.vue2.js +11 -13
- package/lib/chat-embed/src/chat-addition-data.vue3.js +2 -4
- package/lib/chat-embed/src/chat-ai-answer-tip.vue.js +5 -7
- package/lib/chat-embed/src/chat-ai-answer-tip.vue2.js +17 -20
- package/lib/chat-embed/src/chat-ai-answer-tip.vue3.js +2 -4
- package/lib/chat-embed/src/chat-bubble-footer.vue.js +5 -7
- package/lib/chat-embed/src/chat-bubble-footer.vue2.js +17 -22
- package/lib/chat-embed/src/chat-bubble-footer.vue3.js +2 -4
- package/lib/chat-embed/src/chat-embed-message.js +14 -20
- package/lib/chat-embed/src/chat-sender.vue.js +5 -7
- package/lib/chat-embed/src/chat-sender.vue2.js +110 -123
- package/lib/chat-embed/src/chat-sender.vue3.js +2 -4
- package/lib/chat-embed/src/components/answer-auto-chart.vue.js +5 -7
- package/lib/chat-embed/src/components/answer-auto-chart.vue2.js +42 -50
- package/lib/chat-embed/src/components/answer-auto-chart.vue3.js +2 -4
- package/lib/chat-embed/src/components/answer-home-chart.vue.js +5 -7
- package/lib/chat-embed/src/components/answer-home-chart.vue2.js +3 -6
- package/lib/chat-embed/src/components/answer-home-chart.vue3.js +2 -4
- package/lib/chat-embed/src/components/answer-interaction-data.vue.js +5 -7
- package/lib/chat-embed/src/components/answer-interaction-data.vue2.js +74 -84
- package/lib/chat-embed/src/components/answer-interaction-data.vue3.js +2 -4
- package/lib/chat-embed/src/components/history-detail.vue.js +5 -7
- package/lib/chat-embed/src/components/history-detail.vue2.js +27 -32
- package/lib/chat-embed/src/components/history-detail.vue3.js +2 -4
- package/lib/chat-embed/src/header.vue.js +5 -7
- package/lib/chat-embed/src/header.vue2.js +25 -32
- package/lib/chat-embed/src/header.vue3.js +2 -4
- package/lib/chat-embed/src/index.vue.js +5 -7
- package/lib/chat-embed/src/index.vue2.js +185 -211
- package/lib/chat-embed/src/index.vue3.js +2 -4
- package/lib/chat-embed/src/recommendation-message.vue.js +5 -7
- package/lib/chat-embed/src/recommendation-message.vue2.js +5 -8
- package/lib/chat-embed/src/recommendation-message.vue3.js +2 -4
- package/lib/chat-embed/src/sidebar-item.vue.js +5 -7
- package/lib/chat-embed/src/sidebar-item.vue2.js +84 -93
- package/lib/chat-embed/src/sidebar-item.vue3.js +2 -4
- package/lib/chat-embed/src/type.js +3 -5
- package/lib/chat-embed/src/util/chat-embed-util.js +35 -41
- package/lib/chat-embed/src/util/history-message-util.js +63 -85
- package/lib/chat-embed/src/util/mcp-utils.js +5 -8
- package/lib/chat-embed/src/util/text-file-util.js +7 -11
- package/lib/chat-embed/src/voice/index.js +5 -7
- package/lib/chat-embed/src/voice/js/crypto-js.js +987 -995
- package/lib/chat-embed/src/voice/js/processor/index.umd.js +161 -169
- package/lib/chat-embed/src/voice/js/timer.js +7 -10
- package/lib/chat-embed/src/voice/voice.vue.js +61 -70
- package/lib/date-picker-range/index.js +5 -7
- package/lib/date-picker-range/index.vue.js +5 -7
- package/lib/date-picker-range/index.vue2.js +59 -63
- package/lib/date-picker-range/index.vue3.js +2 -4
- package/lib/department-tree/index.js +3 -5
- package/lib/department-tree/src/department-tree.vue.js +11 -17
- package/lib/department-tree-inline/index.js +3 -5
- package/lib/department-tree-inline/src/department-multi-tree-inline.vue.js +17 -27
- package/lib/department-tree-inline/src/department-multi-tree-inline.vue2.js +2 -4
- package/lib/department-tree-inline/src/department-single-tree-inline.vue.js +17 -27
- package/lib/department-tree-inline/src/department-single-tree-inline.vue2.js +2 -4
- package/lib/department-tree-inline/src/department-tree-inline.vue.js +8 -13
- package/lib/department-tree-inline/src/department-tree-service.js +8 -10
- package/lib/department-tree-inline/src/search-result.vue.js +19 -23
- package/lib/department-tree-inline/src/search-result.vue2.js +2 -4
- package/lib/department-tree-mobile/index.js +4 -7
- package/lib/department-tree-mobile/src/department-tree-app.vue.js +9 -12
- package/lib/department-tree-mobile/src/department-tree-app.vue2.js +2 -4
- package/lib/department-tree-mobile/src/department-tree-app.vue3.js +3 -5
- package/lib/department-tree-mobile/src/department-tree-inline-app.vue.js +80 -91
- package/lib/department-tree-mobile/src/department-tree-inline-app.vue2.js +3 -4
- package/lib/department-tree-mobile/src/department-tree-service.js +32 -42
- package/lib/department-tree-mobile/src/dept-path.vue.js +10 -11
- package/lib/department-tree-mobile/src/dept-path.vue2.js +3 -4
- package/lib/department-tree-mobile/src/dept-result.vue.js +11 -14
- package/lib/department-tree-mobile/src/dept-result.vue2.js +3 -4
- package/lib/department-user-tree/index.js +3 -5
- package/lib/department-user-tree/src/department-user-multiple-tree.vue.js +10 -14
- package/lib/department-user-tree/src/department-user-multiple-tree.vue2.js +2 -4
- package/lib/department-user-tree/src/department-user-single-tree.vue.js +9 -14
- package/lib/department-user-tree/src/department-user-tree.vue.js +14 -20
- package/lib/department-user-tree-inline/index.js +3 -5
- package/lib/department-user-tree-inline/src/department-user-multiple-tree-inline.vue.js +17 -28
- package/lib/department-user-tree-inline/src/department-user-multiple-tree-inline.vue2.js +2 -4
- package/lib/department-user-tree-inline/src/department-user-single-tree-inline.vue.js +21 -33
- package/lib/department-user-tree-inline/src/department-user-single-tree-inline.vue2.js +2 -4
- package/lib/department-user-tree-inline/src/department-user-tree-inline.vue.js +8 -13
- package/lib/department-user-tree-inline/src/department-user-tree-multi-service.js +6 -9
- package/lib/department-user-tree-inline/src/department-user-tree-single-service.js +8 -11
- package/lib/department-user-tree-inline/src/group-user/group-input.vue.js +7 -12
- package/lib/department-user-tree-inline/src/group-user/group-list.vue.js +7 -12
- package/lib/department-user-tree-inline/src/group-user/group-user.vue.js +8 -14
- package/lib/department-user-tree-inline/src/group-user-multiple-tree.vue.js +14 -20
- package/lib/department-user-tree-inline/src/group-user-single-tree.vue.js +17 -23
- package/lib/department-user-tree-inline/src/group-user-tree-service.js +2 -3
- package/lib/department-user-tree-inline/src/search-result.vue.js +12 -15
- package/lib/department-user-tree-inline/src/search-result.vue2.js +2 -4
- package/lib/department-user-tree-mobile/index.js +4 -7
- package/lib/department-user-tree-mobile/src/department-user-tree-app.vue.js +9 -12
- package/lib/department-user-tree-mobile/src/department-user-tree-app.vue2.js +2 -4
- package/lib/department-user-tree-mobile/src/department-user-tree-app.vue3.js +3 -5
- package/lib/department-user-tree-mobile/src/department-user-tree-inline-app.vue.js +93 -104
- package/lib/department-user-tree-mobile/src/department-user-tree-inline-app.vue2.js +3 -4
- package/lib/department-user-tree-mobile/src/department-user-tree-service.js +20 -30
- package/lib/department-user-tree-mobile/src/dept-path.vue.js +10 -11
- package/lib/department-user-tree-mobile/src/dept-path.vue2.js +3 -4
- package/lib/department-user-tree-mobile/src/dept-result.vue.js +11 -15
- package/lib/department-user-tree-mobile/src/dept-result.vue2.js +3 -4
- package/lib/directives/prevent-reclick.js +2 -3
- package/lib/dynamic-source-select/index.js +5 -7
- package/lib/dynamic-source-select/src/dynamic-source-select-service.js +13 -15
- package/lib/dynamic-source-select/src/dynamic-source-select.vue.js +173 -183
- package/lib/dynamic-source-select/src/dynamic-source-select.vue2.js +2 -4
- package/lib/dynamic-source-select/src/dynamic-source-select.vue3.js +2 -4
- package/lib/dynamic-source-select/src/events.js +2 -3
- package/lib/empty-state/index.vue.js +5 -8
- package/lib/empty-state/index.vue2.js +3 -4
- package/lib/fs-preview/index.js +5 -7
- package/lib/fs-preview/src/fs-preview.vue.js +63 -72
- package/lib/fs-preview/src/fs-preview.vue2.js +2 -4
- package/lib/fs-upload/index.js +5 -7
- package/lib/fs-upload/src/fs-upload-multi.vue.js +24 -32
- package/lib/fs-upload/src/fs-upload-single.vue.js +30 -39
- package/lib/fs-upload/src/fs-upload.vue.js +10 -16
- package/lib/fs-upload/src/see-big-picture.vue.js +8 -11
- package/lib/fs-upload-list/index.js +5 -7
- package/lib/fs-upload-list/src/fs-upload-list.vue.js +33 -40
- package/lib/fs-upload-list/src/fs-upload-list.vue2.js +2 -4
- package/lib/fs-upload-new/index.js +5 -7
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-app.vue.js +34 -38
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-app.vue2.js +3 -4
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue.js +101 -109
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue2.js +3 -4
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-component.vue.js +5 -7
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-component.vue2.js +26 -33
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-component.vue3.js +2 -4
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-input.vue.js +27 -31
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-input.vue2.js +3 -4
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload.vue.js +18 -24
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload.vue2.js +3 -4
- package/lib/fs-upload-new/src/fs-button-upload.vue.js +5 -7
- package/lib/fs-upload-new/src/fs-button-upload.vue2.js +36 -43
- package/lib/fs-upload-new/src/fs-button-upload.vue3.js +2 -4
- package/lib/fs-upload-new/src/fs-drag-upload.vue.js +5 -7
- package/lib/fs-upload-new/src/fs-drag-upload.vue2.js +37 -45
- package/lib/fs-upload-new/src/fs-drag-upload.vue3.js +2 -4
- package/lib/fs-upload-new/src/fs-preview-new.vue.js +5 -8
- package/lib/fs-upload-new/src/fs-preview-new.vue2.js +61 -70
- package/lib/fs-upload-new/src/fs-preview-new.vue3.js +2 -4
- package/lib/fs-upload-new/src/fs-preview-new.vue4.js +2 -4
- package/lib/fs-upload-new/src/fs-upload-new.vue.js +37 -47
- package/lib/fs-upload-new/src/fs-upload-new.vue2.js +3 -4
- package/lib/hamburger/index.js +3 -5
- package/lib/hamburger/src/hamburger.vue.js +10 -14
- package/lib/hamburger/src/hamburger.vue2.js +2 -4
- package/lib/index.js +40 -382
- package/lib/json-view/json-view-dialog.vue.js +12 -15
- package/lib/json-view/json-view-dialog.vue2.js +3 -4
- package/lib/json-view/json-view.vue.js +3 -4
- package/lib/json-view/json-view.vue2.js +27 -31
- package/lib/multipart-upload/index.js +5 -7
- package/lib/multipart-upload/src/index.vue.js +7 -11
- package/lib/multipart-upload/src/multipart-upload-form.vue.js +40 -49
- package/lib/multipart-upload/src/multipart-upload-list.vue.js +59 -67
- package/lib/organization-input/index.js +5 -7
- package/lib/organization-input/src/organization-input.vue.js +31 -37
- package/lib/organization-input/src/organization-input.vue2.js +2 -4
- package/lib/plugins/export-data-new.js +96 -104
- package/lib/plugins/export-data.js +45 -51
- package/lib/plugins/index.js +4 -8
- package/lib/plugins/public-method.js +2 -3
- package/lib/remove-department/index.js +3 -5
- package/lib/remove-department/src/remove-department.vue.js +13 -19
- package/lib/remove-department/src/remove-dept-service.js +9 -10
- package/lib/remove-user/index.js +5 -7
- package/lib/remove-user/src/remove-user-service.js +3 -4
- package/lib/remove-user/src/remove-user.vue.js +16 -22
- package/lib/remove-workgroup/index.js +5 -7
- package/lib/remove-workgroup/src/remove-workgroup-service.js +3 -4
- package/lib/remove-workgroup/src/remove-workgroup.vue.js +12 -18
- package/lib/rich-editor/index.js +5 -7
- package/lib/rich-editor/index.vue.js +28 -76
- package/lib/rich-editor/tinymce/zh_CN.js +2 -2
- package/lib/rich-editor/viewer.vue.js +7 -10
- package/lib/row-form/index.js +5 -7
- package/lib/row-form/index.vue.js +5 -7
- package/lib/row-form/index.vue2.js +41 -47
- package/lib/row-form/index.vue3.js +2 -4
- package/lib/row-form/operation.vue.js +22 -26
- package/lib/row-form/operation.vue2.js +3 -4
- package/lib/scan-code-input/index.js +5 -7
- package/lib/scan-code-input/src/events.js +11 -13
- package/lib/scan-code-input/src/scan-code-input.vue.js +9 -15
- package/lib/scan-code-input-browser/index.js +5 -7
- package/lib/scan-code-input-browser/src/scan-code-input.vue.js +16 -21
- package/lib/secret-info/index.js +5 -7
- package/lib/secret-info/index.vue.js +6 -9
- package/lib/src/api/sso-service.js +34 -36
- package/lib/src/api/tab.js +8 -9
- package/lib/src/assets/401/401.gif.js +2 -4
- package/lib/src/assets/404/404-cloud.png.js +2 -4
- package/lib/src/assets/404/404.png.js +2 -4
- package/lib/src/assets/chat-embed/robot.gif.js +2 -4
- package/lib/src/assets/chat-embed/robot.svg.js +2 -4
- package/lib/src/assets/nonemessage.png.js +2 -4
- package/lib/src/components/Affix/index.vue.js +5 -7
- package/lib/src/components/Affix/index.vue2.js +56 -58
- package/lib/src/components/Affix/index.vue3.js +2 -4
- package/lib/src/components/Card/index.js +33 -38
- package/lib/src/components/Scrollbar/index.vue.js +33 -37
- package/lib/src/components/Scrollbar/index.vue2.js +2 -4
- package/lib/src/directives/permission/index.js +3 -5
- package/lib/src/directives/permission/permission.js +7 -9
- package/lib/src/i18n/i18n.js +3 -7
- package/lib/src/i18n/langs/cn.js +2 -4
- package/lib/src/i18n/langs/en.js +2 -4
- package/lib/src/mixins/resizeMixin.js +2 -3
- package/lib/src/permission.js +43 -46
- package/lib/src/router/index.js +16 -9
- package/lib/src/store/getters.js +2 -4
- package/lib/src/store/index.js +16 -13
- package/lib/src/store/modules/app.js +3 -4
- package/lib/src/store/modules/chat-ai-store.js +19 -22
- package/lib/src/store/modules/permission.js +10 -11
- package/lib/src/store/modules/system.js +7 -9
- package/lib/src/store/modules/tab-content.js +13 -15
- package/lib/src/store/modules/table.js +2 -3
- package/lib/src/store/modules/user.js +89 -95
- package/lib/src/utils/auth-api.js +3 -5
- package/lib/src/utils/auth.js +69 -139
- package/lib/src/utils/calculator/calculator-factory-wf.js +48 -49
- package/lib/src/utils/calculator/calculator-factory.js +57 -58
- package/lib/src/utils/calculator/calculator-util.js +29 -32
- package/lib/src/utils/chat-ai-util.js +17 -25
- package/lib/src/utils/common-util.js +271 -356
- package/lib/src/utils/eventBus.js +3 -6
- package/lib/src/utils/file-util.js +15 -16
- package/lib/src/utils/global-prop.js +21 -37
- package/lib/src/utils/guid.js +5 -8
- package/lib/src/utils/i18n-util.js +16 -24
- package/lib/src/utils/iconUtils.js +16 -23
- package/lib/src/utils/index.js +26 -40
- package/lib/src/utils/insert_css.js +8 -7
- package/lib/src/utils/json-util.js +25 -27
- package/lib/src/utils/jump-page-utils.js +172 -180
- package/lib/src/utils/local-storage.js +2 -3
- package/lib/src/utils/menu.js +10 -11
- package/lib/src/utils/permission.js +22 -26
- package/lib/src/utils/permissionAuth.js +102 -136
- package/lib/src/utils/range-selector.js +41 -45
- package/lib/src/utils/request.js +77 -86
- package/lib/src/utils/resize.js +5 -5
- package/lib/src/utils/restful-interface-utils.js +12 -15
- package/lib/src/utils/util.js +6 -26
- package/lib/src/utils/validate.js +10 -20
- package/lib/src/utils/voice-setting-cache.js +140 -153
- package/lib/src/utils/watermark-cache.js +9 -14
- package/lib/src/utils/watermark.js +23 -30
- package/lib/src/utils/workflow-util.js +25 -26
- package/lib/src/views/dsc-component/Sidebar/Item.vue.js +5 -7
- package/lib/src/views/dsc-component/Sidebar/Item.vue2.js +8 -11
- package/lib/src/views/dsc-component/Sidebar/Item.vue3.js +2 -4
- package/lib/src/views/dsc-component/Sidebar/Link.vue.js +9 -12
- package/lib/src/views/dsc-component/Sidebar/SidebarItem.vue.js +19 -26
- package/lib/src/views/dsc-component/Sidebar/SidebarItem.vue2.js +2 -4
- package/lib/src/views/dsc-component/Sidebar/index.vue.js +12 -20
- package/lib/src/views/dsc-component/tabs/tab-content.vue.js +21 -26
- package/lib/src/views/dsc-component/tabs/tab-content.vue2.js +2 -4
- package/lib/src/views/dsc-component/tabs/tab-content.vue3.js +2 -4
- package/lib/src/views/error-page/401.vue.js +9 -13
- package/lib/src/views/error-page/401.vue2.js +2 -4
- package/lib/src/views/error-page/404.vue.js +7 -11
- package/lib/src/views/error-page/404.vue2.js +2 -4
- package/lib/src/views/layout/EmptyLayout.vue.js +6 -8
- package/lib/src/views/layout/Layout.vue.js +12 -19
- package/lib/src/views/layout/Layout.vue2.js +2 -4
- package/lib/src/views/layout/NewLayout.vue.js +6 -10
- package/lib/src/views/layout/components/AppMain.vue.js +9 -11
- package/lib/src/views/layout/components/AppMain.vue2.js +2 -4
- package/lib/src/views/layout/components/Breadcrumb/index.vue.js +44 -37
- package/lib/src/views/layout/components/Breadcrumb/index.vue2.js +2 -4
- package/lib/src/views/layout/components/Menubar/Item.vue.js +5 -7
- package/lib/src/views/layout/components/Menubar/Item.vue2.js +12 -14
- package/lib/src/views/layout/components/Menubar/Item.vue3.js +2 -4
- package/lib/src/views/layout/components/Menubar/Link.vue.js +9 -12
- package/lib/src/views/layout/components/Menubar/SidebarItem.vue.js +15 -24
- package/lib/src/views/layout/components/Menubar/SidebarItem.vue2.js +2 -4
- package/lib/src/views/layout/components/Menubar/index.vue.js +19 -30
- package/lib/src/views/layout/components/Sidebar/Item.vue.js +6 -8
- package/lib/src/views/layout/components/Sidebar/Item.vue2.js +3 -4
- package/lib/src/views/layout/components/Sidebar/Link.vue.js +8 -11
- package/lib/src/views/layout/components/Sidebar/SidebarItem.vue.js +11 -17
- package/lib/src/views/layout/components/Sidebar/SidebarItem.vue2.js +2 -4
- package/lib/src/views/layout/components/Sidebar/index.vue.js +18 -25
- package/lib/src/views/layout/components/iframe-page.vue.js +8 -10
- package/lib/src/views/layout/components/iframe-page.vue2.js +2 -4
- package/lib/src/views/layout/components/tabs/tab-content.vue.js +10 -14
- package/lib/src/views/layout/components/tabs/tab-content.vue2.js +2 -4
- package/lib/src/views/layout/components/tabs/tab-content.vue3.js +2 -4
- package/lib/src/views/layout/mixin/ResizeHandler.js +3 -5
- package/lib/src/views/layout/tab-content-iframe-index.vue.js +8 -10
- package/lib/src/views/layout/tab-content-iframe-index.vue2.js +2 -4
- package/lib/src/views/layout/tab-content-index.vue.js +12 -18
- package/lib/src/views/layout/tab-content-index.vue2.js +2 -4
- package/lib/src/views/login/authredirect.vue.js +2 -3
- package/lib/src/views/redirect/index.vue.js +17 -8
- package/lib/src/views/svg-icon/src/svg-icon.vue.js +2 -4
- package/lib/src/views/wf-history/tache-subprocess-history.vue.js +11 -13
- package/lib/src/views/wf-history/tache-subprocess-history.vue2.js +2 -4
- package/lib/style.css +647 -647
- package/lib/super-grid/index.js +5 -7
- package/lib/super-grid/src/apis.js +221 -231
- package/lib/super-grid/src/columns-config.vue.js +16 -22
- package/lib/super-grid/src/components/grid-icon.vue.js +26 -34
- package/lib/super-grid/src/components/grid-radio-input.vue.js +15 -18
- package/lib/super-grid/src/components/grid-radio-input.vue2.js +3 -4
- package/lib/super-grid/src/components/mobile-table-card.js +73 -83
- package/lib/super-grid/src/components/select-input.vue.js +98 -106
- package/lib/super-grid/src/components/select-input.vue2.js +3 -4
- package/lib/super-grid/src/custom-formatter.js +69 -74
- package/lib/super-grid/src/dynamic-input.vue.js +142 -159
- package/lib/super-grid/src/eventBus.js +3 -6
- package/lib/super-grid/src/events.js +34 -36
- package/lib/super-grid/src/formValidatorUtil.js +62 -65
- package/lib/super-grid/src/formatter.js +36 -41
- package/lib/super-grid/src/group-column.vue.js +8 -13
- package/lib/super-grid/src/header-context-menu.vue.js +10 -13
- package/lib/super-grid/src/header-context-menu.vue2.js +2 -4
- package/lib/super-grid/src/index-column.vue.js +7 -10
- package/lib/super-grid/src/normal-column-content.vue.js +186 -205
- package/lib/super-grid/src/normal-column-content.vue2.js +2 -4
- package/lib/super-grid/src/normal-column.vue.js +40 -55
- package/lib/super-grid/src/normal-column.vue2.js +2 -4
- package/lib/super-grid/src/public-methods.js +12 -14
- package/lib/super-grid/src/row-detail.vue.js +7 -10
- package/lib/super-grid/src/row-operation.vue.js +19 -26
- package/lib/super-grid/src/row-operation.vue2.js +2 -4
- package/lib/super-grid/src/scan-util.js +24 -26
- package/lib/super-grid/src/search-button.vue.js +12 -17
- package/lib/super-grid/src/search-condition-input.vue.js +8 -12
- package/lib/super-grid/src/search-condition-list.vue.js +10 -13
- package/lib/super-grid/src/search-form-advancedQuery.vue.js +13 -23
- package/lib/super-grid/src/search-form-advancedQuery.vue2.js +2 -4
- package/lib/super-grid/src/search-form-dialog.vue.js +9 -13
- package/lib/super-grid/src/search-form-item.vue.js +16 -24
- package/lib/super-grid/src/search-form-item.vue2.js +2 -4
- package/lib/super-grid/src/search-form-mobile.vue.js +13 -22
- package/lib/super-grid/src/search-form-mobile.vue2.js +2 -4
- package/lib/super-grid/src/search-form-number.vue.js +9 -14
- package/lib/super-grid/src/search-form-open.vue.js +7 -13
- package/lib/super-grid/src/search-form-ordinarySearch.vue.js +11 -19
- package/lib/super-grid/src/search-form-ordinarySearch.vue2.js +2 -4
- package/lib/super-grid/src/search-form.vue.js +65 -77
- package/lib/super-grid/src/search-form.vue2.js +2 -4
- package/lib/super-grid/src/search-methods.js +2 -3
- package/lib/super-grid/src/selection-column.vue.js +7 -9
- package/lib/super-grid/src/store.js +3 -4
- package/lib/super-grid/src/super-grid-service.js +121 -128
- package/lib/super-grid/src/super-grid.vue.js +186 -217
- package/lib/super-grid/src/super-grid.vue2.js +2 -4
- package/lib/super-grid/src/utils.js +265 -322
- package/lib/super-grid/src/view-image-dialog.vue.js +26 -33
- package/lib/super-icon/index.js +5 -7
- package/lib/super-icon/src/index.vue.js +5 -7
- package/lib/super-icon/src/index.vue2.js +8 -11
- package/lib/super-icon/src/index.vue3.js +2 -4
- package/lib/super-nine-grid/index.js +5 -7
- package/lib/super-nine-grid/src/apis.js +5 -8
- package/lib/super-nine-grid/src/custom-formatter.js +5 -7
- package/lib/super-nine-grid/src/formatter.js +28 -29
- package/lib/super-nine-grid/src/search-form-number.vue.js +8 -12
- package/lib/super-nine-grid/src/search-form.vue.js +33 -40
- package/lib/super-nine-grid/src/search-form.vue2.js +2 -4
- package/lib/super-nine-grid/src/search-methods.js +2 -3
- package/lib/super-nine-grid/src/store.js +3 -4
- package/lib/super-nine-grid/src/super-grid-service.js +5 -9
- package/lib/super-nine-grid/src/super-nine-grid.vue.js +95 -105
- package/lib/super-nine-grid/src/super-nine-grid.vue2.js +2 -4
- package/lib/super-nine-grid/src/utils.js +31 -27
- package/lib/svg-icon/index.js +5 -7
- package/lib/svg-icon/src/svg-icon.vue.js +8 -10
- package/lib/svg-icon/src/svg-icon.vue2.js +2 -4
- package/lib/utils/gogocodeTransfer.js +23 -28
- package/lib/utils/memory-cache-utils.js +3 -5
- package/lib/utils/organization.js +40 -53
- package/lib/utils/utils.js +27 -29
- package/lib/utils/value-set.js +68 -70
- package/lib/valid-code/index.js +5 -7
- package/lib/valid-code/src/valid-code.vue.js +10 -13
- package/lib/valid-code/src/valid-code.vue2.js +2 -4
- package/lib/workflow-button/index.js +3 -5
- package/lib/workflow-button/src/workflow-button.vue.js +34 -39
- package/lib/workflow-history-list/index.js +5 -7
- package/lib/workflow-history-list/src/api.js +2 -3
- package/lib/workflow-history-list/src/workflow-history-list.vue.js +59 -65
- package/lib/workflow-history-list/src/workflow-history-list.vue2.js +2 -4
- package/lib/workgroup-tree/index.js +5 -7
- package/lib/workgroup-tree/src/workgroup-tree.vue.js +11 -17
- package/lib/workgroup-tree-inline/index.js +3 -5
- package/lib/workgroup-tree-inline/src/search-result.vue.js +21 -25
- package/lib/workgroup-tree-inline/src/search-result.vue2.js +2 -4
- package/lib/workgroup-tree-inline/src/workgroup-tree-inline.vue.js +43 -52
- package/lib/workgroup-tree-inline/src/workgroup-tree-inline.vue2.js +2 -4
- package/lib/workgroup-tree-inline/src/workgroup-tree-service.js +5 -7
- package/lib/workgroup-tree-mobile/index.js +5 -8
- package/lib/workgroup-tree-mobile/src/dept-result.vue.js +11 -14
- package/lib/workgroup-tree-mobile/src/dept-result.vue2.js +3 -4
- package/lib/workgroup-tree-mobile/src/workgroup-tree-app.vue.js +9 -12
- package/lib/workgroup-tree-mobile/src/workgroup-tree-app.vue2.js +2 -4
- package/lib/workgroup-tree-mobile/src/workgroup-tree-app.vue3.js +3 -5
- package/lib/workgroup-tree-mobile/src/workgroup-tree-inline-app.vue.js +76 -86
- package/lib/workgroup-tree-mobile/src/workgroup-tree-inline-app.vue2.js +3 -4
- package/lib/workgroup-tree-mobile/src/workgroup-tree-service.js +20 -28
- package/lib/workgroup-user-tree/index.js +5 -7
- package/lib/workgroup-user-tree/src/workgroup-user-tree.vue.js +11 -17
- package/lib/workgroup-user-tree-inline/index.js +3 -5
- package/lib/workgroup-user-tree-inline/src/search-result.vue.js +21 -25
- package/lib/workgroup-user-tree-inline/src/search-result.vue2.js +2 -4
- package/lib/workgroup-user-tree-inline/src/workgroup-tree-inline-service.js +9 -11
- package/lib/workgroup-user-tree-inline/src/workgroup-user-tree-inline.vue.js +34 -43
- package/lib/workgroup-user-tree-inline/src/workgroup-user-tree-inline.vue2.js +2 -4
- package/lib/workgroup-user-tree-mobile/src/dept-path.vue.js +10 -11
- package/lib/workgroup-user-tree-mobile/src/dept-path.vue2.js +3 -4
- package/lib/workgroup-user-tree-mobile/src/dept-result.vue.js +11 -15
- package/lib/workgroup-user-tree-mobile/src/dept-result.vue2.js +3 -4
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue.js +9 -12
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue2.js +2 -4
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue3.js +3 -5
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-inline-app.vue.js +93 -104
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-inline-app.vue2.js +3 -4
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-service.js +16 -25
- package/lib/year-range-picker/index.js +3 -5
- package/lib/year-range-picker/src/year-range-picker.vue.js +9 -12
- package/package.json +1 -3
- package/vite.config.js +22 -22
- package/dist/favicon.svg +0 -29
- package/dist/index.full.min.js +0 -16440
- package/dist/style.css +0 -3078
package/lib/src/permission.js
CHANGED
|
@@ -1,79 +1,76 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
import "vue";
|
|
8
|
-
import i from "./utils/auth-api.js";
|
|
9
|
-
import { cacheCurrentLanguageUtil as u, getLocaleByLang as a, cacheAllLanguagesUtil as p, cacheAllEnableGlobalPropUtil as c } from "./utils/common-util.js";
|
|
1
|
+
"use strict";
|
|
2
|
+
const e = require("nprogress");
|
|
3
|
+
require("nprogress/nprogress.css");
|
|
4
|
+
const t = require("./utils/auth.js"), r = require("./store/index.js"), s = require("./router/index.js");
|
|
5
|
+
require("element-plus"), require("vue");
|
|
6
|
+
const n = require("./utils/auth-api.js"), o = require("./utils/common-util.js");
|
|
10
7
|
e.configure({ showSpinner: false });
|
|
11
|
-
const
|
|
12
|
-
let
|
|
13
|
-
|
|
14
|
-
let
|
|
15
|
-
e.start(),
|
|
16
|
-
let
|
|
17
|
-
if (
|
|
18
|
-
-1 !==
|
|
19
|
-
else if ("/login" ===
|
|
20
|
-
|
|
21
|
-
else if ("" ===
|
|
22
|
-
|
|
23
|
-
true === t2 ?
|
|
24
|
-
|
|
25
|
-
}) :
|
|
8
|
+
const i = ["/login", "/update-password", "/forget-password", "/reset-password", "/redirect"];
|
|
9
|
+
let u = "_devpJWT", a = "_runDevpJWT", c = "_CURRENT_ROLE", l = "_RUN_CURRENT_ROLE";
|
|
10
|
+
s.default.beforeEach((h, p, d) => {
|
|
11
|
+
let y;
|
|
12
|
+
e.start(), h.query, h.query && h.query[u] && (h.query[u], n.setSessionCache(a, h.query[u])), h.query && h.query[c] && (h.query[c], n.setSessionCache(l, h.query[c]));
|
|
13
|
+
let m, g = t.isDevpSystem();
|
|
14
|
+
if (n.getSessionCache(a) && (y = n.getSessionCache(a), n.getSessionCache(a)), y || (y = t.getToken()), !y && h.query && h.query.JWT && (y = h.query.JWT, y && t.setToken(y)), !y && h.query && h.query.jwt && (y = h.query.jwt, y && t.setToken(y)), h.query && h.query._isNeedMenu_ && (m = h.query._isNeedMenu_), m = null == m || "false" !== m, -1 !== ["/update-password", "/forget-password", "/reset-password", "/redirect"].indexOf(h.path) && -1 === r.getters.whiteList.indexOf(h.path) || !y)
|
|
15
|
+
-1 !== i.indexOf(h.path) || -1 !== r.getters.whiteList.indexOf(h.path) ? d() : (d(`/login?redirect=${h.fullPath}`), e.done());
|
|
16
|
+
else if ("/login" === h.path)
|
|
17
|
+
d({ path: "/", query: h.query }), e.done();
|
|
18
|
+
else if ("" === r.getters.name)
|
|
19
|
+
h.query && (h.query._systemName_ && (window.top.document.title = h.query._systemName_ + ` ${window.$htmlTitle ?? "质量管理系统"}`), h.query.customSystem && "undefined" !== h.query.customSystem && "null" !== h.query.customSystem && (window.$vueApp.config.globalProperties.currentSystem = h.query.customSystem)), r.dispatch("isLoginTimeOut").then((t2) => {
|
|
20
|
+
true === t2 ? r.dispatch("clearToken").then(() => {
|
|
21
|
+
d({ path: "/", replace: true }), e.done();
|
|
22
|
+
}) : r.dispatch("getCurrentUser").then((e2) => new Promise((t3, r2) => {
|
|
26
23
|
new Promise((e3, t4) => {
|
|
27
|
-
|
|
28
|
-
const r3 =
|
|
24
|
+
o.cacheCurrentLanguageUtil(window.$http).then((t5) => {
|
|
25
|
+
const r3 = o.getLocaleByLang(t5);
|
|
29
26
|
window.$locale = r3, e3();
|
|
30
27
|
});
|
|
31
28
|
}).then(() => {
|
|
32
29
|
t3(e2);
|
|
33
30
|
});
|
|
34
31
|
})).then((e2) => new Promise((t3, r2) => {
|
|
35
|
-
|
|
32
|
+
o.cacheAllLanguagesUtil(window.$http).then(() => {
|
|
36
33
|
t3(e2);
|
|
37
34
|
}), function() {
|
|
38
35
|
try {
|
|
39
|
-
return
|
|
36
|
+
return o.cacheAllEnableGlobalPropUtil(window.$http);
|
|
40
37
|
} catch (e3) {
|
|
41
38
|
console.error("cacheAllEnableGlobalProp-error=", e3);
|
|
42
39
|
}
|
|
43
40
|
}();
|
|
44
41
|
})).then((e2) => {
|
|
45
|
-
const t3 =
|
|
46
|
-
if (!
|
|
47
|
-
return
|
|
42
|
+
const t3 = n.getSessionCache(l);
|
|
43
|
+
if (!g && t3)
|
|
44
|
+
return r.dispatch("getDevPlatformPermissions", t3);
|
|
48
45
|
{
|
|
49
|
-
let t4 =
|
|
50
|
-
return t4 || (t4 = window.$vueApp.config.globalProperties.currentSystem),
|
|
46
|
+
let t4 = h.query ? h.query.customSystem : null;
|
|
47
|
+
return t4 || (t4 = window.$vueApp.config.globalProperties.currentSystem), r.dispatch("getCurrentUserPermissions", { loginName: e2.loginName, systemCode: t4 });
|
|
51
48
|
}
|
|
52
|
-
}).then((e2) =>
|
|
49
|
+
}).then((e2) => r.dispatch("generateRoutes", e2)).then(() => m ? r.dispatch("getPermissionMenus", window.$vueApp.config.globalProperties.currentSystem) : new Promise((e2, t3) => {
|
|
53
50
|
e2();
|
|
54
51
|
})).then(() => {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
}), window.sessionStorage.setItem((/* @__PURE__ */ new Date()).getTime() + "-name=null-from~~toPath",
|
|
52
|
+
r.getters.protectedRouters.forEach((e2) => {
|
|
53
|
+
s.default.addRoute(e2);
|
|
54
|
+
}), window.sessionStorage.setItem((/* @__PURE__ */ new Date()).getTime() + "-name=null-from~~toPath", p.path + "~~" + h.path), d({ ...h, replace: true });
|
|
58
55
|
}).catch((e2) => {
|
|
59
|
-
|
|
60
|
-
|
|
56
|
+
r.dispatch("clearToken").then(() => {
|
|
57
|
+
d({ path: "/" });
|
|
61
58
|
});
|
|
62
59
|
});
|
|
63
60
|
}).catch((e2) => {
|
|
64
|
-
|
|
65
|
-
|
|
61
|
+
r.dispatch("clearToken").then(() => {
|
|
62
|
+
d({ path: "/" });
|
|
66
63
|
});
|
|
67
64
|
});
|
|
68
65
|
else {
|
|
69
|
-
if (
|
|
66
|
+
if (r.getters.name, m) {
|
|
70
67
|
let e2 = window.$vueApp.config.globalProperties.currentSystem;
|
|
71
|
-
return !e2 &&
|
|
72
|
-
|
|
68
|
+
return !e2 && h.query && h.query.customSystem && (e2 = h.query.customSystem), r.dispatch("getPermissionMenus", e2).then(() => {
|
|
69
|
+
d();
|
|
73
70
|
});
|
|
74
71
|
}
|
|
75
|
-
|
|
72
|
+
d();
|
|
76
73
|
}
|
|
77
|
-
}),
|
|
74
|
+
}), s.default.afterEach(() => {
|
|
78
75
|
e.done();
|
|
79
76
|
});
|
package/lib/src/router/index.js
CHANGED
|
@@ -1,9 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } }), require("vue");
|
|
3
|
+
const e = require("vue-router"), t = require("../views/layout/NewLayout.vue.js"), r = (e2) => Object.freeze(Object.defineProperty({ __proto__: null, default: e2 }, Symbol.toStringTag, { value: "Module" }));
|
|
4
|
+
function o(e2) {
|
|
5
|
+
const t2 = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
6
|
+
if (e2) {
|
|
7
|
+
for (const r2 in e2)
|
|
8
|
+
if ("default" !== r2) {
|
|
9
|
+
const o2 = Object.getOwnPropertyDescriptor(e2, r2);
|
|
10
|
+
Object.defineProperty(t2, r2, o2.get ? o2 : { enumerable: true, get: () => e2[r2] });
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
return t2.default = e2, Object.freeze(t2);
|
|
14
|
+
}
|
|
15
|
+
const i = o(e), n = [{ path: "/redirect", component: t, hidden: true, children: [{ path: "/redirect/:path*", component: () => Promise.resolve().then(() => r(require("../views/redirect/index.vue.js"))) }] }, { path: "/iframe-page", component: t, hidden: true, children: [{ path: "page", component: () => Promise.resolve().then(() => r(require("../views/layout/components/iframe-page.vue.js"))), hidden: true }] }, { path: "/auth-redirect", component: () => Promise.resolve().then(() => r(require("../views/login/authredirect.vue.js"))), hidden: true }, { path: "/404", component: () => Promise.resolve().then(() => r(require("../views/error-page/404.vue.js"))), hidden: true }, { path: "/401", component: () => Promise.resolve().then(() => r(require("../views/error-page/401.vue.js"))), hidden: true }, { path: "/show-sub-wf-history", component: () => Promise.resolve().then(() => r(require("../views/wf-history/tache-subprocess-history.vue.js"))), hidden: true }, { path: "/tab-content-index", component: () => Promise.resolve().then(() => r(require("../views/layout/tab-content-index.vue.js"))), hidden: true }, { path: "/tab-content-iframe-index", component: () => Promise.resolve().then(() => r(require("../views/layout/tab-content-iframe-index.vue.js"))), hidden: true }], s = i.createRouter({ history: i.createWebHashHistory(), routes: n, scrollBehavior: () => ({ top: 0 }) });
|
|
16
|
+
exports.default = s, exports.errorRouterMap = [{ path: "*", redirect: "/404", hidden: true }], exports.protectedRouterMap = [], exports.publicRouterMap = n;
|
package/lib/src/store/getters.js
CHANGED
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
e as default
|
|
4
|
-
};
|
|
1
|
+
"use strict";
|
|
2
|
+
module.exports = { sidebar: (e) => e.app.sidebar, device: (e) => e.app.device, windowWidth: (e) => e.app.windowWidth, windowHeight: (e) => e.app.windowHeight, isMobileResize: (e) => e.app.isMobileResize, isMobileListCard: (e) => e.app.windowWidth <= 768, tableEditingDatas: (e) => e.table.tableEditingDatas, isConfigEditing: (e) => e.table.tableEditingDatas.length > 0, isEditing: (e) => (i) => e.table.tableEditingDatas.includes(i), isRowEditing: (e) => (i) => e.table.tableEditingDatas.some((e2) => e2.includes(i)), theme: (e) => e.system.theme, navExpanded: (e) => e.system.navExpanded, locale: (e) => e.system.locale, token: (e) => e.user.token, name: (e) => e.user.name, protectedRouters: (e) => e.permission.protectedRouters, currentUserPermissions: (e) => e.permission.currentUserPermissions, preventReclick: (e) => e.app.preventReclick, menus: (e) => e.user.menus, openTab: (e) => e.tabContent.openTab, activeIndex: (e) => e.tabContent.activeIndex, whiteList: (e) => e.app.whiteList };
|
package/lib/src/store/index.js
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
require("vue");
|
|
3
|
+
const e = require("vuex"), r = require("./modules/app.js"), t = require("./modules/table.js"), s = require("./modules/user.js"), u = require("./modules/system.js"), o = require("./modules/permission.js"), i = require("./modules/tab-content.js"), n = require("./getters.js");
|
|
4
|
+
function l(e2) {
|
|
5
|
+
const r2 = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
6
|
+
if (e2) {
|
|
7
|
+
for (const t2 in e2)
|
|
8
|
+
if ("default" !== t2) {
|
|
9
|
+
const s2 = Object.getOwnPropertyDescriptor(e2, t2);
|
|
10
|
+
Object.defineProperty(r2, t2, s2.get ? s2 : { enumerable: true, get: () => e2[t2] });
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
return r2.default = e2, Object.freeze(r2);
|
|
14
|
+
}
|
|
15
|
+
const c = l(e).createStore({ modules: { app: r, table: t, user: s, system: u, permission: o, tabContent: i }, getters: n });
|
|
16
|
+
module.exports = c;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
require("@zxing/library/esm/core/util/System");
|
|
2
3
|
const e = { state: { sidebar: { opened: !+window.sessionStorage.getItem("sidebarStatus"), withoutAnimation: false }, isAMBdesign: false, device: "desktop", preventReclick: false, whiteList: [], systemWidth: [], windowWidth: null, windowHeight: null, isMobileResize: false }, mutations: { updateWindowSize(e2, { width: i, height: t }) {
|
|
3
4
|
e2.windowWidth = i, e2.windowHeight = t, e2.isMobileResize = !!i && i <= 768;
|
|
4
5
|
}, toggleSidebar: (e2) => {
|
|
@@ -36,6 +37,4 @@ const e = { state: { sidebar: { opened: !+window.sessionStorage.getItem("sidebar
|
|
|
36
37
|
}, addWhiteList({ commit: e2 }, i) {
|
|
37
38
|
e2("setWhiteList", i);
|
|
38
39
|
} } };
|
|
39
|
-
|
|
40
|
-
e as default
|
|
41
|
-
};
|
|
40
|
+
module.exports = e;
|
|
@@ -1,36 +1,33 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
const n =
|
|
4
|
-
|
|
5
|
-
e(
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
return a.value[e2] || null;
|
|
1
|
+
"use strict";
|
|
2
|
+
const e = require("vue"), t = require("pinia").defineStore("ChatAiStore", () => {
|
|
3
|
+
const t2 = e.ref("chat"), n = e.ref({ menuCode: "", menuName: "" }), u = e.ref({});
|
|
4
|
+
e.ref(null);
|
|
5
|
+
const a = e.ref([]);
|
|
6
|
+
function r(e2) {
|
|
7
|
+
return u.value[e2] || null;
|
|
9
8
|
}
|
|
10
9
|
return { setCurrentTabName: function(e2) {
|
|
11
10
|
t2.value = e2;
|
|
12
11
|
}, getCurrentTabName: function() {
|
|
13
12
|
return t2.value;
|
|
14
13
|
}, setPageData: function(e2) {
|
|
15
|
-
|
|
14
|
+
a.value = JSON.parse(JSON.stringify(e2));
|
|
16
15
|
}, getPageData: function() {
|
|
17
|
-
return
|
|
16
|
+
return a.value;
|
|
18
17
|
}, clearPageData: function() {
|
|
19
|
-
|
|
18
|
+
a.value = [];
|
|
20
19
|
}, getActiveMenu: function() {
|
|
21
|
-
return
|
|
20
|
+
return n.value;
|
|
22
21
|
}, setActiveMenu: function(e2) {
|
|
23
|
-
|
|
22
|
+
n.value = e2;
|
|
24
23
|
}, getPageType: function() {
|
|
25
24
|
}, setPageInfoToChatStore: function(e2, t3) {
|
|
26
|
-
|
|
27
|
-
}, getPageInfo:
|
|
28
|
-
return
|
|
29
|
-
}, pageData:
|
|
30
|
-
const
|
|
31
|
-
|
|
25
|
+
u.value[e2] = t3;
|
|
26
|
+
}, getPageInfo: r, getActiveMenuPageInfo: function() {
|
|
27
|
+
return u.value[n.value.menuCode] || null;
|
|
28
|
+
}, pageData: a, activeMenu: n, addListRef: function(e2, t3) {
|
|
29
|
+
const n2 = r(e2) || {};
|
|
30
|
+
n2.subTableRefs = n2.listRefs || [], n2.subTableRefs[t3.tableName] = { ref: t3 };
|
|
32
31
|
} };
|
|
33
32
|
});
|
|
34
|
-
|
|
35
|
-
n as default
|
|
36
|
-
};
|
|
33
|
+
module.exports = t;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
const e = require("../../router/index.js");
|
|
2
3
|
function t(e2, r2) {
|
|
3
4
|
const n = [], s = [];
|
|
4
5
|
return e2.forEach((e3) => {
|
|
@@ -15,17 +16,15 @@ const r = { state: { protectedRouters: [], currentUserPermissions: [] }, mutatio
|
|
|
15
16
|
}, setRouters: (e2, t2) => {
|
|
16
17
|
e2.protectedRouters = t2;
|
|
17
18
|
} }, actions: { generateRoutes: ({ commit: r2 }, n) => new Promise((n2) => {
|
|
18
|
-
const s = (/* @__PURE__ */ new Date()).getTime(), i = t(e), o = (/* @__PURE__ */ new Date()).getTime();
|
|
19
|
+
const s = (/* @__PURE__ */ new Date()).getTime(), i = t(e.protectedRouterMap), o = (/* @__PURE__ */ new Date()).getTime();
|
|
19
20
|
window.sessionStorage.setItem("generateRoutes==>执行时间:", o - s + "");
|
|
20
|
-
const
|
|
21
|
-
if (
|
|
21
|
+
const u = i.allRouters, c = i.menuRouters;
|
|
22
|
+
if (u.length > 0) {
|
|
22
23
|
const e2 = { path: "" };
|
|
23
|
-
|
|
24
|
+
c.length > 0 && ("" !== u[0].path ? (c[0].redirectTmp && (e2.redirect = c[0].redirectTmp), u.push(e2)) : c.length > 0 && "" === u[0].path && (!c[0].children || 0 === c[0].children.length) && c[0].redirectTmp && (u[0].redirect = c[0].redirectTmp));
|
|
24
25
|
}
|
|
25
|
-
r2("setRouters",
|
|
26
|
-
const
|
|
27
|
-
window.sessionStorage.setItem("generateRoutes==>执行时间c-a:",
|
|
26
|
+
r2("setRouters", u);
|
|
27
|
+
const d = (/* @__PURE__ */ new Date()).getTime();
|
|
28
|
+
window.sessionStorage.setItem("generateRoutes==>执行时间c-a:", d - s + ""), n2();
|
|
28
29
|
}) } };
|
|
29
|
-
|
|
30
|
-
r as default
|
|
31
|
-
};
|
|
30
|
+
module.exports = r;
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
const
|
|
3
|
-
Object.keys(
|
|
1
|
+
"use strict";
|
|
2
|
+
const e = require("../../utils/auth.js"), t = { updateState(t2, s2) {
|
|
3
|
+
Object.keys(s2).forEach((a) => {
|
|
4
4
|
var _a;
|
|
5
|
-
|
|
5
|
+
a in t2 && (t2[a] = s2[a], ["theme"].includes(a) && (e.setTheme(s2[a]), (_a = document.querySelector("body")) == null ? void 0 : _a.setAttribute("class", s2[a])));
|
|
6
6
|
});
|
|
7
|
-
} }, s = { namespaced: true, state: () => ({ theme:
|
|
8
|
-
|
|
7
|
+
} }, s = { namespaced: true, state: () => ({ theme: e.getTheme(), navExpanded: true, locale: "zh-CN", routes: {} }), mutations: t, actions: { updateSystemParams({ commit: e2 }, t2) {
|
|
8
|
+
e2("updateState", t2);
|
|
9
9
|
} } };
|
|
10
|
-
|
|
11
|
-
s as default
|
|
12
|
-
};
|
|
10
|
+
module.exports = s;
|
|
@@ -1,20 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
const
|
|
3
|
-
e2.openTab.push(
|
|
4
|
-
}, delete_tabs(e2,
|
|
5
|
-
let
|
|
1
|
+
"use strict";
|
|
2
|
+
const e = require("../../utils/chat-ai-util.js"), t = { state: { openTab: [], activeIndex: null }, mutations: { add_tabs(e2, t2) {
|
|
3
|
+
e2.openTab.push(t2);
|
|
4
|
+
}, delete_tabs(e2, t2) {
|
|
5
|
+
let a = 0;
|
|
6
6
|
for (const n of e2.openTab) {
|
|
7
|
-
if (n.code ===
|
|
7
|
+
if (n.code === t2.code)
|
|
8
8
|
break;
|
|
9
|
-
|
|
9
|
+
a++;
|
|
10
10
|
}
|
|
11
|
-
e2.openTab.splice(
|
|
12
|
-
}, set_active_index(
|
|
13
|
-
const n =
|
|
14
|
-
e({ menuCode:
|
|
15
|
-
}, clear_tabs(e2,
|
|
11
|
+
e2.openTab.splice(a, 1);
|
|
12
|
+
}, set_active_index(t2, a) {
|
|
13
|
+
const n = t2.openTab.find((e2) => e2.code === a);
|
|
14
|
+
e.setActiveMenuToChatAiStore({ menuCode: a, menuName: (n == null ? void 0 : n.name) || "" }), t2.activeIndex = a;
|
|
15
|
+
}, clear_tabs(e2, t2) {
|
|
16
16
|
e2.openTab.length > 0 && e2.openTab.splice(0, e2.openTab.length);
|
|
17
17
|
} }, actions: {} };
|
|
18
|
-
|
|
19
|
-
a as default
|
|
20
|
-
};
|
|
18
|
+
module.exports = t;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
const t = { state: { tableEditingDatas: [] }, mutations: { toggleRowEditing(t2, i) {
|
|
2
3
|
t2.tableEditingDatas.includes(i) ? t2.tableEditingDatas = t2.tableEditingDatas.filter((t3) => t3 !== i) : t2.tableEditingDatas = [...t2.tableEditingDatas, i];
|
|
3
4
|
}, setRowEditing(t2, { $rowDataGuId: i, isEditing: a = false }) {
|
|
@@ -13,6 +14,4 @@ const t = { state: { tableEditingDatas: [] }, mutations: { toggleRowEditing(t2,
|
|
|
13
14
|
}, clearAllEditing({ commit: t2 }) {
|
|
14
15
|
t2("clearAllEditing");
|
|
15
16
|
} } };
|
|
16
|
-
|
|
17
|
-
t as default
|
|
18
|
-
};
|
|
17
|
+
module.exports = t;
|
|
@@ -1,139 +1,133 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
e2.
|
|
8
|
-
},
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
t();
|
|
14
|
-
const a2 = m2.systemCode, r2 = m2.username.trim();
|
|
15
|
-
return new Promise((t2, c2) => {
|
|
16
|
-
e.login(r2, m2.password, m2.language).then((t3) => (s(t3.jwt), o(t3.language), n(t3.theme), t3.lockTip && x({ showClose: true, message: t3.lockTip, type: "warning", duration: 1e4 }), i2("setToken", t3.jwt), e.getCurrentUserPermissionsBySystem(t3.subject, a2))).then((e2) => {
|
|
1
|
+
"use strict";
|
|
2
|
+
const e = require("../../api/sso-service.js"), s = require("../../utils/auth.js"), t = require("../../utils/permissionAuth.js"), n = require("../../utils/common-util.js"), o = require("element-plus"), i = { state: { token: "", name: "", menus: [] }, mutations: { setToken: (e2, s2) => {
|
|
3
|
+
e2.token = s2;
|
|
4
|
+
}, setName: (e2, s2) => {
|
|
5
|
+
e2.name = s2;
|
|
6
|
+
}, setMenus: (e2, s2) => {
|
|
7
|
+
e2.menus = s2;
|
|
8
|
+
} }, actions: { login({ commit: n2 }, i2) {
|
|
9
|
+
s.clearPermission();
|
|
10
|
+
const r = i2.systemCode, m = i2.username.trim();
|
|
11
|
+
return new Promise((a, c) => {
|
|
12
|
+
e.login(m, i2.password, i2.language).then((t2) => (s.setToken(t2.jwt), s.setLanguage(t2.language), s.setTheme(t2.theme), t2.lockTip && o.ElMessage({ showClose: true, message: t2.lockTip, type: "warning", duration: 1e4 }), n2("setToken", t2.jwt), e.getCurrentUserPermissionsBySystem(t2.subject, r))).then((e2) => {
|
|
17
13
|
let s2 = ["index"];
|
|
18
|
-
s2 = s2.concat(e2),
|
|
14
|
+
s2 = s2.concat(e2), t.setPermissions(s2, r), a();
|
|
19
15
|
}).catch((e2) => {
|
|
20
|
-
|
|
16
|
+
c(e2);
|
|
21
17
|
});
|
|
22
18
|
});
|
|
23
|
-
}, loginWithValidateCode({ commit:
|
|
24
|
-
|
|
25
|
-
const
|
|
26
|
-
return new Promise((
|
|
27
|
-
e.loginWithValidateCode(
|
|
19
|
+
}, loginWithValidateCode({ commit: n2 }, i2) {
|
|
20
|
+
s.clearPermission();
|
|
21
|
+
const r = i2.username.trim(), m = i2.systemCode;
|
|
22
|
+
return new Promise((a, c) => {
|
|
23
|
+
e.loginWithValidateCode(r, i2.password, i2.language, i2.validCode, i2.imageCodeKey).then((t2) => (s.setToken(t2.jwt), s.setLanguage(t2.language), s.setTheme(t2.theme), t2.lockTip && o.ElMessage({ showClose: true, message: t2.lockTip, type: "warning", duration: 1e4 }), n2("setToken", t2.jwt), e.getCurrentUserPermissionsBySystem(t2.subject, m))).then((e2) => {
|
|
28
24
|
let s2 = ["index"];
|
|
29
|
-
s2 = s2.concat(e2),
|
|
25
|
+
s2 = s2.concat(e2), t.setPermissions(s2, m), a();
|
|
30
26
|
}).catch((e2) => {
|
|
31
|
-
|
|
27
|
+
c(e2);
|
|
32
28
|
});
|
|
33
29
|
});
|
|
34
|
-
}, loginWithCookieTokenNew: ({ commit: t2 },
|
|
35
|
-
let
|
|
36
|
-
|
|
37
|
-
|
|
30
|
+
}, loginWithCookieTokenNew: ({ commit: t2 }, o2) => (s.clearVoiceCache(), new Promise((i2, r) => {
|
|
31
|
+
let m = o2 ? o2.loginName : null, a = o2 ? o2.systemCode : null;
|
|
32
|
+
m ? n.cachePermissionsWhenLoginWithToken(m, a).then(() => {
|
|
33
|
+
i2();
|
|
38
34
|
}).catch((e2) => {
|
|
39
|
-
|
|
35
|
+
r(e2);
|
|
40
36
|
}) : e.getCurrentUser().then((e2) => {
|
|
41
|
-
e2 && (
|
|
42
|
-
|
|
37
|
+
e2 && (m = e2.loginName, s.setUsername(e2.loginName), s.setTenantUsername(e2.tenantLoginName), s.setCurrentUser(e2), t2("setName", e2.name)), n.cachePermissionsWhenLoginWithToken(m, a).then(() => {
|
|
38
|
+
i2(e2);
|
|
43
39
|
}).catch((e3) => {
|
|
44
|
-
|
|
40
|
+
r(e3);
|
|
45
41
|
});
|
|
46
42
|
}).catch((e2) => {
|
|
47
|
-
|
|
43
|
+
r(e2);
|
|
48
44
|
});
|
|
49
|
-
})), loginWithCookieToken: ({ commit: t2 },
|
|
50
|
-
|
|
51
|
-
|
|
45
|
+
})), loginWithCookieToken: ({ commit: t2 }, o2) => (s.clearVoiceCache(), new Promise((i2, r) => {
|
|
46
|
+
o2 ? n.cachePermissionsWhenLoginWithToken(o2).then(() => {
|
|
47
|
+
i2();
|
|
52
48
|
}).catch((e2) => {
|
|
53
|
-
|
|
49
|
+
r(e2);
|
|
54
50
|
}) : e.getCurrentUser().then((e2) => {
|
|
55
|
-
e2 && (
|
|
56
|
-
|
|
51
|
+
e2 && (o2 = e2.loginName, s.setUsername(e2.loginName), s.setTenantUsername(e2.tenantLoginName), s.setCurrentUser(e2), t2("setName", e2.name)), n.cachePermissionsWhenLoginWithToken(o2).then(() => {
|
|
52
|
+
i2(e2);
|
|
57
53
|
}).catch((e3) => {
|
|
58
|
-
|
|
54
|
+
r(e3);
|
|
59
55
|
});
|
|
60
56
|
}).catch((e2) => {
|
|
61
|
-
|
|
57
|
+
r(e2);
|
|
62
58
|
});
|
|
63
|
-
})), getCurrentUser: ({ commit: t2, state:
|
|
64
|
-
const
|
|
65
|
-
void 0 ===
|
|
66
|
-
e2 ? (
|
|
59
|
+
})), getCurrentUser: ({ commit: t2, state: n2 }) => new Promise((n3, o2) => {
|
|
60
|
+
const i2 = s.getUsername();
|
|
61
|
+
void 0 === i2 || "" === i2 || null === i2 ? e.getCurrentUser().then((e2) => {
|
|
62
|
+
e2 ? (s.setUsername(e2.loginName), s.setTenantUsername(e2.tenantLoginName), s.setCurrentUser(e2), t2("setName", e2.name)) : (s.removeUsername(), s.removeTenantUsername(), s.removeCurrentUser(), t2("setName", "")), n3(e2);
|
|
67
63
|
}).catch((e2) => {
|
|
68
64
|
o2(e2);
|
|
69
|
-
}) : (t2("setName",
|
|
70
|
-
}), logout: ({ commit:
|
|
71
|
-
e.logout(
|
|
72
|
-
|
|
65
|
+
}) : (t2("setName", i2), n3({ loginName: i2 }));
|
|
66
|
+
}), logout: ({ commit: t2, state: n2 }) => new Promise((o2, i2) => {
|
|
67
|
+
e.logout(n2.token).then((e2) => {
|
|
68
|
+
t2("setToken", ""), s.removeTheme(), s.removeAllThemes(), t2("setName", ""), s.clearPermission(), s.removeDevpPermissions(), s.removeProjectSettings(), s.removeProjectCode(), s.removeSystemCacheUrl(), o2(e2);
|
|
73
69
|
}).catch((e2) => {
|
|
74
70
|
i2(e2);
|
|
75
71
|
});
|
|
76
|
-
}), clearToken: ({ commit: e2 }) => new Promise((
|
|
77
|
-
e2("setToken", ""),
|
|
78
|
-
}), getCurrentUserPermissions: ({ commit:
|
|
79
|
-
const
|
|
80
|
-
let
|
|
81
|
-
void 0 ===
|
|
82
|
-
let
|
|
83
|
-
|
|
72
|
+
}), clearToken: ({ commit: e2 }) => new Promise((t2) => {
|
|
73
|
+
e2("setToken", ""), s.removeTheme(), s.removeAllThemes(), e2("setName", ""), s.clearPermission(), s.removeDevpPermissions(), s.removeProjectSettings(), s.removeProjectCode(), s.removeSystemCacheUrl(), t2();
|
|
74
|
+
}), getCurrentUserPermissions: ({ commit: s2 }, n2) => new Promise((s3, o2) => {
|
|
75
|
+
const i2 = n2.loginName, r = n2.systemCode;
|
|
76
|
+
let m = t.getPermissions(r);
|
|
77
|
+
void 0 === m || "" === m || null === m ? e.getCurrentUserPermissionsBySystem(i2, r).then((e2) => {
|
|
78
|
+
let n3 = ["index"];
|
|
79
|
+
n3 = n3.concat(e2), m = t.setPermissions(n3, r), s3(m);
|
|
84
80
|
}).catch((e2) => {
|
|
85
81
|
o2(e2);
|
|
86
|
-
}) :
|
|
87
|
-
}), getDevPlatformPermissions: ({ commit:
|
|
88
|
-
let
|
|
89
|
-
void 0 ===
|
|
90
|
-
let
|
|
91
|
-
|
|
82
|
+
}) : s3(m);
|
|
83
|
+
}), getDevPlatformPermissions: ({ commit: s2 }, n2) => new Promise((s3, o2) => {
|
|
84
|
+
let i2 = t.getPermissions();
|
|
85
|
+
void 0 === i2 || "" === i2 || null === i2 ? e.getDevPlatformPermissions(n2).then((e2) => {
|
|
86
|
+
let n3 = ["index"];
|
|
87
|
+
n3 = n3.concat(e2), i2 = t.setPermissions(n3), s3(i2);
|
|
92
88
|
}).catch((e2) => {
|
|
93
89
|
o2(e2);
|
|
94
|
-
}) :
|
|
95
|
-
}), isPasswordExpired({ commit:
|
|
96
|
-
const
|
|
97
|
-
return new Promise((
|
|
98
|
-
e.isPasswordExpired(
|
|
99
|
-
|
|
90
|
+
}) : s3(i2);
|
|
91
|
+
}), isPasswordExpired({ commit: s2 }, t2) {
|
|
92
|
+
const n2 = t2.username.trim();
|
|
93
|
+
return new Promise((s3, o2) => {
|
|
94
|
+
e.isPasswordExpired(n2, t2.password).then((e2) => {
|
|
95
|
+
s3(e2);
|
|
100
96
|
}).catch((e2) => {
|
|
101
|
-
|
|
97
|
+
o2(e2);
|
|
102
98
|
});
|
|
103
99
|
});
|
|
104
|
-
}, isPasswordExpiredWithValidateCode({ commit:
|
|
105
|
-
const
|
|
106
|
-
return new Promise((
|
|
107
|
-
e.isPasswordExpiredWithValidateCode(
|
|
108
|
-
|
|
100
|
+
}, isPasswordExpiredWithValidateCode({ commit: s2 }, t2) {
|
|
101
|
+
const n2 = t2.username.trim();
|
|
102
|
+
return new Promise((s3, o2) => {
|
|
103
|
+
e.isPasswordExpiredWithValidateCode(n2, t2.password, t2.validCode, t2.imageCodeKey).then((e2) => {
|
|
104
|
+
s3(e2);
|
|
109
105
|
}).catch((e2) => {
|
|
110
|
-
|
|
106
|
+
o2(e2);
|
|
111
107
|
});
|
|
112
108
|
});
|
|
113
|
-
}, updatePassword: ({ commit:
|
|
114
|
-
e.updatePassword(
|
|
115
|
-
|
|
109
|
+
}, updatePassword: ({ commit: s2 }, t2) => new Promise((s3, n2) => {
|
|
110
|
+
e.updatePassword(t2, t2.userId).then((e2) => {
|
|
111
|
+
s3(e2);
|
|
116
112
|
}).catch((e2) => {
|
|
117
|
-
|
|
113
|
+
n2(e2);
|
|
118
114
|
});
|
|
119
|
-
}), isLoginTimeOut: ({ commit:
|
|
115
|
+
}), isLoginTimeOut: ({ commit: s2 }) => new Promise((s3, t2) => {
|
|
120
116
|
e.isLoginTimeOut().then((e2) => {
|
|
121
|
-
|
|
117
|
+
s3(e2);
|
|
122
118
|
}).catch((e2) => {
|
|
123
|
-
|
|
119
|
+
t2(e2);
|
|
124
120
|
});
|
|
125
|
-
}), getPermissionMenus: ({ commit:
|
|
126
|
-
const
|
|
127
|
-
|
|
121
|
+
}), getPermissionMenus: ({ commit: s2 }, o2) => new Promise((s3, i2) => {
|
|
122
|
+
const r = t.getMenus(o2);
|
|
123
|
+
n.isPlateSys(o2) || void 0 === r || "" === r || null === r ? e.getUserPermissionMenusBySystemCode(o2).then((e2) => {
|
|
128
124
|
if (e2) {
|
|
129
|
-
const
|
|
130
|
-
|
|
125
|
+
const n2 = e2.menus, i3 = e2.defaultMenuCode;
|
|
126
|
+
t.setMenus(n2, o2), t.setDefaultMenuCode(i3, o2), s3(n2);
|
|
131
127
|
} else
|
|
132
|
-
|
|
128
|
+
s3();
|
|
133
129
|
}).catch((e2) => {
|
|
134
|
-
|
|
135
|
-
}) :
|
|
130
|
+
i2(e2);
|
|
131
|
+
}) : s3(r);
|
|
136
132
|
}) } };
|
|
137
|
-
|
|
138
|
-
U as default
|
|
139
|
-
};
|
|
133
|
+
module.exports = i;
|