agilebuilder-ui 1.1.65-tmp30 → 1.1.65-tmp31
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 +5 -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/lib/src/permission.cjs
DELETED
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const e = require("nprogress");
|
|
3
|
-
require("nprogress/nprogress.css");
|
|
4
|
-
const t = require("./utils/auth.cjs"), r = require("./store/index.cjs"), s = require("./router/index.cjs");
|
|
5
|
-
require("element-plus"), require("vue");
|
|
6
|
-
const n = require("./utils/auth-api.cjs"), o = require("./utils/common-util.cjs");
|
|
7
|
-
e.configure({ showSpinner: false });
|
|
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) => {
|
|
23
|
-
new Promise((e3, t4) => {
|
|
24
|
-
o.cacheCurrentLanguageUtil(window.$http).then((t5) => {
|
|
25
|
-
const r3 = o.getLocaleByLang(t5);
|
|
26
|
-
window.$locale = r3, e3();
|
|
27
|
-
});
|
|
28
|
-
}).then(() => {
|
|
29
|
-
t3(e2);
|
|
30
|
-
});
|
|
31
|
-
})).then((e2) => new Promise((t3, r2) => {
|
|
32
|
-
o.cacheAllLanguagesUtil(window.$http).then(() => {
|
|
33
|
-
t3(e2);
|
|
34
|
-
}), function() {
|
|
35
|
-
try {
|
|
36
|
-
return o.cacheAllEnableGlobalPropUtil(window.$http);
|
|
37
|
-
} catch (e3) {
|
|
38
|
-
console.error("cacheAllEnableGlobalProp-error=", e3);
|
|
39
|
-
}
|
|
40
|
-
}();
|
|
41
|
-
})).then((e2) => {
|
|
42
|
-
const t3 = n.getSessionCache(l);
|
|
43
|
-
if (!g && t3)
|
|
44
|
-
return r.dispatch("getDevPlatformPermissions", t3);
|
|
45
|
-
{
|
|
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 });
|
|
48
|
-
}
|
|
49
|
-
}).then((e2) => r.dispatch("generateRoutes", e2)).then(() => m ? r.dispatch("getPermissionMenus", window.$vueApp.config.globalProperties.currentSystem) : new Promise((e2, t3) => {
|
|
50
|
-
e2();
|
|
51
|
-
})).then(() => {
|
|
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 });
|
|
55
|
-
}).catch((e2) => {
|
|
56
|
-
r.dispatch("clearToken").then(() => {
|
|
57
|
-
d({ path: "/" });
|
|
58
|
-
});
|
|
59
|
-
});
|
|
60
|
-
}).catch((e2) => {
|
|
61
|
-
r.dispatch("clearToken").then(() => {
|
|
62
|
-
d({ path: "/" });
|
|
63
|
-
});
|
|
64
|
-
});
|
|
65
|
-
else {
|
|
66
|
-
if (r.getters.name, m) {
|
|
67
|
-
let e2 = window.$vueApp.config.globalProperties.currentSystem;
|
|
68
|
-
return !e2 && h.query && h.query.customSystem && (e2 = h.query.customSystem), r.dispatch("getPermissionMenus", e2).then(() => {
|
|
69
|
-
d();
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
d();
|
|
73
|
-
}
|
|
74
|
-
}), s.default.afterEach(() => {
|
|
75
|
-
e.done();
|
|
76
|
-
});
|
package/lib/src/router/index.cjs
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
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.cjs"), 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.cjs"))) }] }, { path: "/iframe-page", component: t, hidden: true, children: [{ path: "page", component: () => Promise.resolve().then(() => r(require("../views/layout/components/iframe-page.vue.cjs"))), hidden: true }] }, { path: "/auth-redirect", component: () => Promise.resolve().then(() => r(require("../views/login/authredirect.vue.cjs"))), hidden: true }, { path: "/404", component: () => Promise.resolve().then(() => r(require("../views/error-page/404.vue.cjs"))), hidden: true }, { path: "/401", component: () => Promise.resolve().then(() => r(require("../views/error-page/401.vue.cjs"))), hidden: true }, { path: "/show-sub-wf-history", component: () => Promise.resolve().then(() => r(require("../views/wf-history/tache-subprocess-history.vue.cjs"))), hidden: true }, { path: "/tab-content-index", component: () => Promise.resolve().then(() => r(require("../views/layout/tab-content-index.vue.cjs"))), hidden: true }, { path: "/tab-content-iframe-index", component: () => Promise.resolve().then(() => r(require("../views/layout/tab-content-iframe-index.vue.cjs"))), 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;
|
|
@@ -1,2 +0,0 @@
|
|
|
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.cjs
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
require("vue");
|
|
3
|
-
const e = require("vuex"), r = require("./modules/app.cjs"), t = require("./modules/table.cjs"), s = require("./modules/user.cjs"), u = require("./modules/system.cjs"), o = require("./modules/permission.cjs"), c = require("./modules/tab-content.cjs"), i = require("./getters.cjs");
|
|
4
|
-
function n(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 l = n(e).createStore({ modules: { app: r, table: t, user: s, system: u, permission: o, tabContent: c }, getters: i });
|
|
16
|
-
module.exports = l;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
require("@zxing/library/esm/core/util/System");
|
|
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 }) {
|
|
4
|
-
e2.windowWidth = i, e2.windowHeight = t, e2.isMobileResize = !!i && i <= 768;
|
|
5
|
-
}, toggleSidebar: (e2) => {
|
|
6
|
-
e2.sidebar.opened ? window.sessionStorage.setItem("sidebarStatus", 1) : window.sessionStorage.setItem("sidebarStatus", 0), e2.sidebar.opened = !e2.sidebar.opened, e2.sidebar.withoutAnimation = false;
|
|
7
|
-
}, closeSidebar: (e2, i) => {
|
|
8
|
-
window.sessionStorage.setItem("sidebarStatus", 1), e2.sidebar.opened = false, e2.sidebar.withoutAnimation = i;
|
|
9
|
-
}, toggleDevice: (e2, i) => {
|
|
10
|
-
e2.device = i;
|
|
11
|
-
}, togglePreventReclick: (e2, i) => {
|
|
12
|
-
e2.preventReclick = i;
|
|
13
|
-
}, setWhiteList: (e2, i) => {
|
|
14
|
-
i instanceof Array && (e2.whiteList = i);
|
|
15
|
-
} }, actions: { startListeningToResize({ state: e2, commit: i }) {
|
|
16
|
-
const t = (e3) => {
|
|
17
|
-
i("updateWindowSize", { width: (e3 == null ? void 0 : e3.width) ?? window.innerWidth, height: (e3 == null ? void 0 : e3.height) ?? window.innerHeight });
|
|
18
|
-
};
|
|
19
|
-
if (!e2.windowWidth && !e2.windowHeight) {
|
|
20
|
-
const i2 = document.querySelector(".amb-design-board");
|
|
21
|
-
if (i2 && e2.isAMBdesign) {
|
|
22
|
-
t({ width: i2.clientWidth, height: i2.clientHeight });
|
|
23
|
-
new ResizeObserver((e3) => {
|
|
24
|
-
var _a, _b;
|
|
25
|
-
for (const i3 of e3)
|
|
26
|
-
t({ width: (_a = i3 == null ? void 0 : i3.target) == null ? void 0 : _a.clientWidth, height: (_b = i3 == null ? void 0 : i3.target) == null ? void 0 : _b.clientHeight });
|
|
27
|
-
}).observe(i2);
|
|
28
|
-
} else
|
|
29
|
-
window.addEventListener("resize", t), t();
|
|
30
|
-
}
|
|
31
|
-
}, toggleSidebar: ({ commit: e2 }) => {
|
|
32
|
-
e2("toggleSidebar");
|
|
33
|
-
}, closeSidebar({ commit: e2 }, { withoutAnimation: i }) {
|
|
34
|
-
e2("closeSidebar", i);
|
|
35
|
-
}, toggelDevice({ commit: e2 }, i) {
|
|
36
|
-
e2("toggleDevice", i);
|
|
37
|
-
}, addWhiteList({ commit: e2 }, i) {
|
|
38
|
-
e2("setWhiteList", i);
|
|
39
|
-
} } };
|
|
40
|
-
module.exports = e;
|
|
@@ -1,33 +0,0 @@
|
|
|
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;
|
|
8
|
-
}
|
|
9
|
-
return { setCurrentTabName: function(e2) {
|
|
10
|
-
t2.value = e2;
|
|
11
|
-
}, getCurrentTabName: function() {
|
|
12
|
-
return t2.value;
|
|
13
|
-
}, setPageData: function(e2) {
|
|
14
|
-
a.value = JSON.parse(JSON.stringify(e2));
|
|
15
|
-
}, getPageData: function() {
|
|
16
|
-
return a.value;
|
|
17
|
-
}, clearPageData: function() {
|
|
18
|
-
a.value = [];
|
|
19
|
-
}, getActiveMenu: function() {
|
|
20
|
-
return n.value;
|
|
21
|
-
}, setActiveMenu: function(e2) {
|
|
22
|
-
n.value = e2;
|
|
23
|
-
}, getPageType: function() {
|
|
24
|
-
}, setPageInfoToChatStore: function(e2, t3) {
|
|
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 };
|
|
31
|
-
} };
|
|
32
|
-
});
|
|
33
|
-
module.exports = t;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const e = require("../../router/index.cjs");
|
|
3
|
-
function t(e2, r2) {
|
|
4
|
-
const n = [], s = [];
|
|
5
|
-
return e2.forEach((e3) => {
|
|
6
|
-
const r3 = { ...e3 };
|
|
7
|
-
if (r3.children && r3.children.length > 0) {
|
|
8
|
-
const e4 = t(r3.children);
|
|
9
|
-
r3.children = e4.allRouters, r3.menuChildren = e4.menuRouters, r3.menuChildren && r3.menuChildren.length > 0 && (r3.redirectTmp ? r3.redirectTmp = r3.redirectTmp + "/" + r3.menuChildren[0].path : r3.redirectTmp = r3.path + "/" + r3.menuChildren[0].path, n.push(r3), s.push(r3));
|
|
10
|
-
} else
|
|
11
|
-
"" === r3.path || (void 0 === r3.hidden || void 0 !== r3.hidden && false === r3.hidden) && s.push(r3), n.push(r3);
|
|
12
|
-
}), { allRouters: n, menuRouters: s };
|
|
13
|
-
}
|
|
14
|
-
const r = { state: { protectedRouters: [], currentUserPermissions: [] }, mutations: { setCurrentUserPermissions: (e2, t2) => {
|
|
15
|
-
e2.currentUserPermissions = t2;
|
|
16
|
-
}, setRouters: (e2, t2) => {
|
|
17
|
-
e2.protectedRouters = t2;
|
|
18
|
-
} }, actions: { generateRoutes: ({ commit: r2 }, n) => new Promise((n2) => {
|
|
19
|
-
const s = (/* @__PURE__ */ new Date()).getTime(), i = t(e.protectedRouterMap), o = (/* @__PURE__ */ new Date()).getTime();
|
|
20
|
-
window.sessionStorage.setItem("generateRoutes==>执行时间:", o - s + "");
|
|
21
|
-
const c = i.allRouters, u = i.menuRouters;
|
|
22
|
-
if (c.length > 0) {
|
|
23
|
-
const e2 = { path: "" };
|
|
24
|
-
u.length > 0 && ("" !== c[0].path ? (u[0].redirectTmp && (e2.redirect = u[0].redirectTmp), c.push(e2)) : u.length > 0 && "" === c[0].path && (!u[0].children || 0 === u[0].children.length) && u[0].redirectTmp && (c[0].redirect = u[0].redirectTmp));
|
|
25
|
-
}
|
|
26
|
-
r2("setRouters", c);
|
|
27
|
-
const d = (/* @__PURE__ */ new Date()).getTime();
|
|
28
|
-
window.sessionStorage.setItem("generateRoutes==>执行时间c-a:", d - s + ""), n2();
|
|
29
|
-
}) } };
|
|
30
|
-
module.exports = r;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const e = require("../../utils/auth.cjs"), t = { updateState(t2, s2) {
|
|
3
|
-
Object.keys(s2).forEach((a) => {
|
|
4
|
-
var _a;
|
|
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
|
-
});
|
|
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
|
-
} } };
|
|
10
|
-
module.exports = s;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const e = require("../../utils/chat-ai-util.cjs"), 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
|
-
for (const n of e2.openTab) {
|
|
7
|
-
if (n.code === t2.code)
|
|
8
|
-
break;
|
|
9
|
-
a++;
|
|
10
|
-
}
|
|
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
|
-
e2.openTab.length > 0 && e2.openTab.splice(0, e2.openTab.length);
|
|
17
|
-
} }, actions: {} };
|
|
18
|
-
module.exports = t;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const t = { state: { tableEditingDatas: [] }, mutations: { toggleRowEditing(t2, i) {
|
|
3
|
-
t2.tableEditingDatas.includes(i) ? t2.tableEditingDatas = t2.tableEditingDatas.filter((t3) => t3 !== i) : t2.tableEditingDatas = [...t2.tableEditingDatas, i];
|
|
4
|
-
}, setRowEditing(t2, { $rowDataGuId: i, isEditing: a = false }) {
|
|
5
|
-
i && (a ? t2.tableEditingDatas.includes(i) || (t2.tableEditingDatas = [...t2.tableEditingDatas, i]) : t2.tableEditingDatas = t2.tableEditingDatas.filter((t3) => t3 !== i));
|
|
6
|
-
}, clearAllEditing(t2) {
|
|
7
|
-
t2.tableEditingDatas = [];
|
|
8
|
-
} }, actions: { toggleEditingData({ commit: t2 }, i) {
|
|
9
|
-
t2("toggleRowEditing", i);
|
|
10
|
-
}, setRowEditing({ commit: t2 }, i) {
|
|
11
|
-
t2("setRowEditing", i);
|
|
12
|
-
}, closeRowEditing({ commit: t2 }, i) {
|
|
13
|
-
t2("setRowEditing", i);
|
|
14
|
-
}, clearAllEditing({ commit: t2 }) {
|
|
15
|
-
t2("clearAllEditing");
|
|
16
|
-
} } };
|
|
17
|
-
module.exports = t;
|
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const e = require("../../api/sso-service.cjs"), s = require("../../utils/auth.cjs"), t = require("../../utils/permissionAuth.cjs"), n = require("../../utils/common-util.cjs"), 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) => {
|
|
13
|
-
let s2 = ["index"];
|
|
14
|
-
s2 = s2.concat(e2), t.setPermissions(s2, r), a();
|
|
15
|
-
}).catch((e2) => {
|
|
16
|
-
c(e2);
|
|
17
|
-
});
|
|
18
|
-
});
|
|
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) => {
|
|
24
|
-
let s2 = ["index"];
|
|
25
|
-
s2 = s2.concat(e2), t.setPermissions(s2, m), a();
|
|
26
|
-
}).catch((e2) => {
|
|
27
|
-
c(e2);
|
|
28
|
-
});
|
|
29
|
-
});
|
|
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();
|
|
34
|
-
}).catch((e2) => {
|
|
35
|
-
r(e2);
|
|
36
|
-
}) : e.getCurrentUser().then((e2) => {
|
|
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);
|
|
39
|
-
}).catch((e3) => {
|
|
40
|
-
r(e3);
|
|
41
|
-
});
|
|
42
|
-
}).catch((e2) => {
|
|
43
|
-
r(e2);
|
|
44
|
-
});
|
|
45
|
-
})), loginWithCookieToken: ({ commit: t2 }, o2) => (s.clearVoiceCache(), new Promise((i2, r) => {
|
|
46
|
-
o2 ? n.cachePermissionsWhenLoginWithToken(o2).then(() => {
|
|
47
|
-
i2();
|
|
48
|
-
}).catch((e2) => {
|
|
49
|
-
r(e2);
|
|
50
|
-
}) : e.getCurrentUser().then((e2) => {
|
|
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);
|
|
53
|
-
}).catch((e3) => {
|
|
54
|
-
r(e3);
|
|
55
|
-
});
|
|
56
|
-
}).catch((e2) => {
|
|
57
|
-
r(e2);
|
|
58
|
-
});
|
|
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);
|
|
63
|
-
}).catch((e2) => {
|
|
64
|
-
o2(e2);
|
|
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);
|
|
69
|
-
}).catch((e2) => {
|
|
70
|
-
i2(e2);
|
|
71
|
-
});
|
|
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);
|
|
80
|
-
}).catch((e2) => {
|
|
81
|
-
o2(e2);
|
|
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);
|
|
88
|
-
}).catch((e2) => {
|
|
89
|
-
o2(e2);
|
|
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);
|
|
96
|
-
}).catch((e2) => {
|
|
97
|
-
o2(e2);
|
|
98
|
-
});
|
|
99
|
-
});
|
|
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);
|
|
105
|
-
}).catch((e2) => {
|
|
106
|
-
o2(e2);
|
|
107
|
-
});
|
|
108
|
-
});
|
|
109
|
-
}, updatePassword: ({ commit: s2 }, t2) => new Promise((s3, n2) => {
|
|
110
|
-
e.updatePassword(t2, t2.userId).then((e2) => {
|
|
111
|
-
s3(e2);
|
|
112
|
-
}).catch((e2) => {
|
|
113
|
-
n2(e2);
|
|
114
|
-
});
|
|
115
|
-
}), isLoginTimeOut: ({ commit: s2 }) => new Promise((s3, t2) => {
|
|
116
|
-
e.isLoginTimeOut().then((e2) => {
|
|
117
|
-
s3(e2);
|
|
118
|
-
}).catch((e2) => {
|
|
119
|
-
t2(e2);
|
|
120
|
-
});
|
|
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) => {
|
|
124
|
-
if (e2) {
|
|
125
|
-
const n2 = e2.menus, i3 = e2.defaultMenuCode;
|
|
126
|
-
t.setMenus(n2, o2), t.setDefaultMenuCode(i3, o2), s3(n2);
|
|
127
|
-
} else
|
|
128
|
-
s3();
|
|
129
|
-
}).catch((e2) => {
|
|
130
|
-
i2(e2);
|
|
131
|
-
}) : s3(r);
|
|
132
|
-
}) } };
|
|
133
|
-
module.exports = i;
|
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const e = require("js-cookie"), n = "JWT", t = "USERNAME", o = "TENANT_USERNAME", r = "CURRENT_USER", i = "CURRENT_SYSTEM_URL_", s = "CURRENT_LANGUAGE", u = "AMB_LANG_INFO", c = "_runDevpJWT", l = "CURRENT_THEME", a = "AMB_THEME_INFO";
|
|
3
|
-
function f() {
|
|
4
|
-
let e2 = false;
|
|
5
|
-
const n2 = window.$vueApp.config.globalProperties.systemCode;
|
|
6
|
-
return n2 && "devp" === n2 && (e2 = true), e2;
|
|
7
|
-
}
|
|
8
|
-
function g() {
|
|
9
|
-
let e2 = p(n);
|
|
10
|
-
return e2 || (e2 = v(n)), e2;
|
|
11
|
-
}
|
|
12
|
-
function m(e2) {
|
|
13
|
-
let n2 = e2;
|
|
14
|
-
if (!f()) {
|
|
15
|
-
v(c) && (n2 = "_run_" + n2);
|
|
16
|
-
}
|
|
17
|
-
return n2;
|
|
18
|
-
}
|
|
19
|
-
function p(n2) {
|
|
20
|
-
return e.get(n2);
|
|
21
|
-
}
|
|
22
|
-
function S(n2, t2) {
|
|
23
|
-
e.set(n2, t2, { path: "/" });
|
|
24
|
-
}
|
|
25
|
-
function d(n2) {
|
|
26
|
-
e.remove(n2, { path: "/" });
|
|
27
|
-
}
|
|
28
|
-
function v(e2) {
|
|
29
|
-
return window.sessionStorage.getItem(e2);
|
|
30
|
-
}
|
|
31
|
-
function C(e2, n2) {
|
|
32
|
-
return window.sessionStorage.setItem(e2, n2);
|
|
33
|
-
}
|
|
34
|
-
function U(e2) {
|
|
35
|
-
window.sessionStorage.removeItem(e2);
|
|
36
|
-
}
|
|
37
|
-
function T() {
|
|
38
|
-
let e2 = localStorage.getItem(i);
|
|
39
|
-
if (e2)
|
|
40
|
-
return JSON.parse(e2);
|
|
41
|
-
}
|
|
42
|
-
const w = { getToken: function() {
|
|
43
|
-
let e2;
|
|
44
|
-
return f() ? e2 = g() : (e2 = v(c), e2 || (e2 = g())), e2;
|
|
45
|
-
}, setToken: function(e2) {
|
|
46
|
-
S(n, e2), C(n, e2);
|
|
47
|
-
}, removeToken: function() {
|
|
48
|
-
d(n), U(n), U(c);
|
|
49
|
-
}, getUsername: function() {
|
|
50
|
-
let e2 = m(t), n2 = p(e2);
|
|
51
|
-
return n2 || (n2 = v(e2)), n2;
|
|
52
|
-
}, setUsername: function(e2) {
|
|
53
|
-
let n2 = m(t);
|
|
54
|
-
C(n2, e2), S(n2, e2);
|
|
55
|
-
}, removeUsername: function() {
|
|
56
|
-
U(t), d(t);
|
|
57
|
-
}, getTenantUsername: function() {
|
|
58
|
-
let e2 = p(o);
|
|
59
|
-
return e2 || (e2 = v(o)), e2;
|
|
60
|
-
}, setTenantUsername: function(e2) {
|
|
61
|
-
C(o, e2), S(o, e2);
|
|
62
|
-
}, removeTenantUsername: function() {
|
|
63
|
-
U(o), d(o);
|
|
64
|
-
}, getCurrentUser: function() {
|
|
65
|
-
return function(e2) {
|
|
66
|
-
let n2 = p(e2);
|
|
67
|
-
n2 || (n2 = v(e2));
|
|
68
|
-
if (n2)
|
|
69
|
-
return JSON.parse(n2);
|
|
70
|
-
}(m(r));
|
|
71
|
-
}, setCurrentUser: function(e2) {
|
|
72
|
-
const n2 = m(r);
|
|
73
|
-
if (e2) {
|
|
74
|
-
e2.password && (e2.password = null);
|
|
75
|
-
const t2 = JSON.stringify(e2);
|
|
76
|
-
C(n2, t2), S(n2, t2);
|
|
77
|
-
}
|
|
78
|
-
}, removeCurrentUser: function() {
|
|
79
|
-
U(r), d(r);
|
|
80
|
-
}, getCookieCache: p, setCookieCache: S, removeCookieCache: d, getSessionCache: v, setSessionCache: C, removeSessionCache: U, getSystemCacheUrlByCode: function(e2) {
|
|
81
|
-
if (e2 || (e2 = window.$vueApp.config.globalProperties.customSystem), e2 || (e2 = window.$vueApp.config.globalProperties.systemCode), e2) {
|
|
82
|
-
const n2 = T(), t2 = n2 ? n2[e2] : null;
|
|
83
|
-
if (t2)
|
|
84
|
-
return t2.backendUrl;
|
|
85
|
-
}
|
|
86
|
-
}, getSystemCacheFrontendUrlByCode: function(e2) {
|
|
87
|
-
if (e2 || (e2 = window.$vueApp.config.globalProperties.customSystem), e2 || (e2 = window.$vueApp.config.globalProperties.systemCode), e2) {
|
|
88
|
-
const n2 = T(), t2 = n2 ? n2[e2] : null;
|
|
89
|
-
if (t2)
|
|
90
|
-
return t2.frontendUrl;
|
|
91
|
-
}
|
|
92
|
-
}, getSystemCacheUrl: T, setSystemCacheUrl: function(e2) {
|
|
93
|
-
if (e2) {
|
|
94
|
-
const n2 = JSON.stringify(e2);
|
|
95
|
-
localStorage.setItem(i, n2);
|
|
96
|
-
}
|
|
97
|
-
}, removeSystemCacheUrl: function() {
|
|
98
|
-
localStorage.removeItem(i);
|
|
99
|
-
}, getLanguage: function() {
|
|
100
|
-
let e2 = p(s);
|
|
101
|
-
const n2 = window.$vueApp.config.globalProperties.projectModel;
|
|
102
|
-
return !e2 && n2 && "developing.model" === n2 && (e2 = v(s)), e2;
|
|
103
|
-
}, setLanguage: function(e2) {
|
|
104
|
-
e2 || (e2 = "zh_CN"), S(s, e2), C(s, e2);
|
|
105
|
-
}, removeLanguage: function() {
|
|
106
|
-
d(s), U(s);
|
|
107
|
-
}, getAllLanguages: function() {
|
|
108
|
-
let e2 = p(u);
|
|
109
|
-
const n2 = window.$vueApp.config.globalProperties.projectModel;
|
|
110
|
-
return !e2 && n2 && "developing.model" === n2 && (e2 = v(u)), e2;
|
|
111
|
-
}, setAllLanguages: function(e2) {
|
|
112
|
-
S(u, e2), C(u, e2);
|
|
113
|
-
}, removeAllLanguages: function() {
|
|
114
|
-
d(u), U(u);
|
|
115
|
-
}, getTheme: function() {
|
|
116
|
-
return localStorage.getItem(l);
|
|
117
|
-
}, setTheme: function(e2) {
|
|
118
|
-
localStorage.setItem(l, e2);
|
|
119
|
-
}, removeTheme: function() {
|
|
120
|
-
localStorage.removeItem(l);
|
|
121
|
-
}, getAllThemes: function() {
|
|
122
|
-
let e2 = p(a);
|
|
123
|
-
const n2 = window.$vueApp.config.globalProperties.projectModel;
|
|
124
|
-
return !e2 && n2 && "developing.model" === n2 && (e2 = v(a)), e2;
|
|
125
|
-
}, setAllThemes: function(e2) {
|
|
126
|
-
S(a, e2), C(a, e2);
|
|
127
|
-
}, removeAllThemes: function() {
|
|
128
|
-
d(a), U(a);
|
|
129
|
-
}, removePublishControl: function() {
|
|
130
|
-
d("VERSION_ENVIRONMENT"), d("CURRENT_USER_SYSTEM_VERSION");
|
|
131
|
-
}, isDevpSystem: f, getRunInfoKey: m };
|
|
132
|
-
module.exports = w;
|
package/lib/src/utils/auth.cjs
DELETED
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const e = require("./auth-api.cjs"), t = require("./permissionAuth.cjs"), o = require("./global-prop.cjs"), r = require("./watermark-cache.cjs"), n = require("./voice-setting-cache.cjs");
|
|
4
|
-
function s() {
|
|
5
|
-
e.removeToken();
|
|
6
|
-
}
|
|
7
|
-
function u() {
|
|
8
|
-
e.removeUsername();
|
|
9
|
-
}
|
|
10
|
-
function i() {
|
|
11
|
-
e.removeTenantUsername();
|
|
12
|
-
}
|
|
13
|
-
function c() {
|
|
14
|
-
e.removeCurrentUser();
|
|
15
|
-
}
|
|
16
|
-
function a() {
|
|
17
|
-
e.removeTheme();
|
|
18
|
-
}
|
|
19
|
-
function m() {
|
|
20
|
-
return e.isDevpSystem();
|
|
21
|
-
}
|
|
22
|
-
function g() {
|
|
23
|
-
e.removeSystemCacheUrl();
|
|
24
|
-
}
|
|
25
|
-
exports.clearPermission = function() {
|
|
26
|
-
s(), e.removeLanguage(), e.removeAllLanguages(), u(), i(), c(), t.removeAllSystemPermissions(), e.removePublishControl(), g(), o.removeAllGlobalPropCache(), r.removeWatermark(), n.removeVoiceCache();
|
|
27
|
-
}, exports.clearVoiceCache = function() {
|
|
28
|
-
n.removeVoiceCache();
|
|
29
|
-
}, exports.getAllLanguages = function() {
|
|
30
|
-
return e.getAllLanguages();
|
|
31
|
-
}, exports.getAllThemes = function() {
|
|
32
|
-
return e.getAllThemes();
|
|
33
|
-
}, exports.getCookieCache = function(t2) {
|
|
34
|
-
return e.getCookieCache(t2);
|
|
35
|
-
}, exports.getCurrentUser = function() {
|
|
36
|
-
return e.getCurrentUser();
|
|
37
|
-
}, exports.getLanguage = function() {
|
|
38
|
-
return e.getLanguage();
|
|
39
|
-
}, exports.getRunCurrentRole = function() {
|
|
40
|
-
if (!m())
|
|
41
|
-
return e.getSessionCache("_RUN_CURRENT_ROLE");
|
|
42
|
-
}, exports.getRunInfoKey = function(t2) {
|
|
43
|
-
return e.getRunInfoKey(t2);
|
|
44
|
-
}, exports.getSessionCache = function(t2) {
|
|
45
|
-
return e.getSessionCache(t2);
|
|
46
|
-
}, exports.getTenantUsername = function() {
|
|
47
|
-
return e.getTenantUsername();
|
|
48
|
-
}, exports.getTheme = function() {
|
|
49
|
-
return e.getTheme();
|
|
50
|
-
}, exports.getToken = function() {
|
|
51
|
-
return e.getToken();
|
|
52
|
-
}, exports.getUsername = function() {
|
|
53
|
-
return e.getUsername();
|
|
54
|
-
}, exports.isDevpSystem = m, exports.removeAllThemes = function() {
|
|
55
|
-
e.removeAllThemes();
|
|
56
|
-
}, exports.removeCookieCache = function(t2) {
|
|
57
|
-
e.removeCookieCache(t2);
|
|
58
|
-
}, exports.removeCurrentUser = c, exports.removeDevpPermissions = function() {
|
|
59
|
-
e.removeSessionCache("_devpJWT"), e.removeSessionCache("_CURRENT_ROLE");
|
|
60
|
-
}, exports.removeProjectCode = function() {
|
|
61
|
-
e.removeCookieCache("_PROJECT_CDOE");
|
|
62
|
-
}, exports.removeProjectSettings = function() {
|
|
63
|
-
e.removeCookieCache("PROJECT_SETTINGS");
|
|
64
|
-
}, exports.removeSessionCache = function(t2) {
|
|
65
|
-
e.removeSessionCache(t2);
|
|
66
|
-
}, exports.removeSystemCacheUrl = g, exports.removeTenantUsername = i, exports.removeTheme = a, exports.removeToken = s, exports.removeUsername = u, exports.setAllLanguages = function(t2) {
|
|
67
|
-
e.setAllLanguages(t2);
|
|
68
|
-
}, exports.setAllThemes = function(t2) {
|
|
69
|
-
e.setAllThemes(t2);
|
|
70
|
-
}, exports.setCookieCache = function(t2, o2) {
|
|
71
|
-
e.setCookieCache(t2, o2);
|
|
72
|
-
}, exports.setCurrentUser = function(t2) {
|
|
73
|
-
e.setCurrentUser(t2);
|
|
74
|
-
}, exports.setLanguage = function(t2) {
|
|
75
|
-
e.setLanguage(t2);
|
|
76
|
-
}, exports.setSessionCache = function(t2, o2) {
|
|
77
|
-
return e.setSessionCache(t2, o2);
|
|
78
|
-
}, exports.setTenantUsername = function(t2) {
|
|
79
|
-
e.setTenantUsername(t2);
|
|
80
|
-
}, exports.setTheme = function(t2) {
|
|
81
|
-
t2 ? e.setTheme(t2) : a();
|
|
82
|
-
}, exports.setToken = function(t2) {
|
|
83
|
-
e.setToken(t2);
|
|
84
|
-
}, exports.setUsername = function(t2) {
|
|
85
|
-
e.setUsername(t2);
|
|
86
|
-
};
|