agilebuilder-ui 1.1.65-tmp30 → 1.1.65-tmp32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/chat-embed/src/index.vue.mjs +1 -1
- package/es/chat-embed/src/index.vue2.mjs +104 -100
- package/es/chat-embed/src/voice/js/crypto-js.mjs +46 -50
- package/es/chat-embed/src/voice/voice.vue.mjs +8 -11
- package/es/date-picker-range/index.vue.mjs +1 -1
- package/es/date-picker-range/index.vue2.mjs +41 -33
- package/es/department-tree-inline/src/department-tree-service.mjs +0 -1
- package/es/department-user-tree-inline/src/department-user-multiple-tree-inline.vue.mjs +14 -11
- package/es/department-user-tree-inline/src/department-user-single-tree-inline.vue.mjs +6 -6
- package/es/department-user-tree-inline/src/department-user-tree-multi-service.mjs +19 -20
- package/es/department-user-tree-inline/src/department-user-tree-single-service.mjs +0 -1
- package/es/department-user-tree-inline/src/search-result.vue.mjs +4 -4
- package/es/department-user-tree-mobile/src/department-user-tree-inline-app.vue.mjs +2 -2
- package/es/dynamic-source-select/src/dynamic-source-select.vue.mjs +86 -85
- package/es/fs-preview/src/fs-preview.vue.mjs +73 -59
- package/es/fs-upload/src/fs-upload-multi.vue.mjs +3 -3
- package/es/fs-upload-list/src/fs-upload-list.vue.mjs +5 -6
- package/es/fs-upload-new/src/file-upload-mobile/file-upload-app.vue.mjs +15 -17
- package/es/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue.mjs +19 -19
- package/es/fs-upload-new/src/file-upload-mobile/file-upload-component.vue2.mjs +2 -2
- package/es/fs-upload-new/src/fs-preview-new.vue.mjs +1 -1
- package/es/fs-upload-new/src/fs-preview-new.vue2.mjs +50 -50
- package/es/i18n-setting/index.mjs +7 -0
- package/es/i18n-setting/src/i18n-setting-dialog.vue.mjs +23 -0
- package/es/i18n-setting/src/i18n-setting.mjs +14 -0
- package/es/i18n-setting/src/index.vue.mjs +47 -0
- package/es/index.mjs +46 -41
- package/es/multipart-upload/src/multipart-upload-form.vue.mjs +5 -5
- package/es/multipart-upload/src/multipart-upload-list.vue.mjs +6 -6
- package/es/organization-input/src/organization-input.vue.mjs +58 -58
- package/es/remove-department/src/remove-dept-service.mjs +4 -5
- package/es/remove-user/src/remove-user-service.mjs +0 -1
- package/es/remove-workgroup/src/remove-workgroup-service.mjs +0 -1
- package/es/rich-editor/index.vue.mjs +43 -84
- package/es/scan-code-input/src/scan-code-input.vue.mjs +1 -1
- package/es/scan-code-input-browser/src/scan-code-input.vue.mjs +20 -9
- package/es/src/api/sso-service.mjs +0 -1
- package/es/src/i18n/langs/cn.mjs +1 -1
- package/es/src/i18n/langs/en.mjs +1 -1
- package/es/src/permission.mjs +7 -10
- package/es/src/router/index.mjs +0 -1
- package/es/src/store/index.mjs +0 -1
- package/es/src/store/modules/app.mjs +0 -1
- package/es/src/utils/common-util.mjs +143 -143
- package/es/src/utils/i18n-util.mjs +32 -30
- package/es/src/utils/iconUtils.mjs +0 -1
- package/es/src/utils/jump-page-utils.mjs +1 -1
- package/es/src/utils/permission.mjs +25 -26
- package/es/src/utils/permissionAuth.mjs +0 -1
- package/es/src/utils/restful-interface-utils.mjs +5 -6
- package/es/src/utils/watermark.mjs +2 -7
- package/es/src/utils/workflow-util.mjs +6 -6
- package/es/src/views/dsc-component/Sidebar/Item.vue.mjs +1 -1
- package/es/src/views/dsc-component/Sidebar/Item.vue2.mjs +1 -1
- package/es/src/views/layout/components/Menubar/Item.vue.mjs +1 -1
- package/es/src/views/layout/components/Menubar/Item.vue2.mjs +8 -8
- package/es/src/views/layout/components/Menubar/SidebarItem.vue.mjs +11 -11
- package/es/style.css +1 -3103
- package/es/super-grid/src/apis.mjs +155 -151
- package/es/super-grid/src/components/mobile-table-card.mjs +14 -10
- package/es/super-grid/src/components/select-input.vue.mjs +66 -66
- package/es/super-grid/src/custom-formatter.mjs +5 -6
- package/es/super-grid/src/dynamic-input.vue.mjs +31 -39
- package/es/super-grid/src/formValidatorUtil.mjs +0 -1
- package/es/super-grid/src/normal-column-content.vue.mjs +1 -2
- package/es/super-grid/src/normal-column.vue.mjs +12 -10
- package/es/super-grid/src/row-operation.vue.mjs +3 -3
- package/es/super-grid/src/search-form-item.vue.mjs +18 -14
- package/es/super-grid/src/search-form-number.vue.mjs +7 -6
- package/es/super-grid/src/search-form-open.vue.mjs +3 -2
- package/es/super-grid/src/search-form-open.vue2.mjs +4 -0
- package/es/super-grid/src/search-form-ordinarySearch.vue.mjs +1 -1
- package/es/super-grid/src/super-grid.vue.mjs +254 -242
- package/es/super-grid/src/utils.mjs +6 -6
- package/es/super-grid/src/view-image-dialog.vue.mjs +5 -5
- package/es/super-nine-grid/src/super-nine-grid.vue.mjs +89 -83
- package/es/utils/utils.mjs +0 -1
- package/es/utils/value-set.mjs +0 -1
- package/es/workflow-history-list/src/workflow-history-list.vue.mjs +11 -10
- package/es/workgroup-tree-inline/src/workgroup-tree-service.mjs +0 -1
- package/es/workgroup-user-tree-inline/src/workgroup-tree-inline-service.mjs +0 -1
- package/es/workgroup-user-tree-mobile/src/workgroup-user-tree-inline-app.vue.mjs +2 -2
- package/package.json +6 -2
- package/src/styles/index.scss +4 -0
- package/src/styles/theme/dark-blue/select.scss +27 -1
- package/src/styles/theme/forest-green/select.scss +27 -1
- package/src/styles/theme/green/select.scss +27 -1
- package/src/styles/theme/ocean-blue/select.scss +27 -1
- package/src/styles/theme/tiffany-blue-mobile/select.scss +29 -2
- package/.eslintrc.cjs +0 -28
- package/.prettierrc.json +0 -12
- package/dist/favicon.svg +0 -29
- package/dist/index.full.min.js +0 -16659
- package/dist/style.css +0 -3104
- package/index.html +0 -19
- package/lib/IntervalSelection/index.cjs +0 -5
- package/lib/IntervalSelection/src/sectionDate.vue.cjs +0 -45
- package/lib/IntervalSelection/src/sectionDate.vue2.cjs +0 -2
- package/lib/_virtual/__vite-browser-external.cjs +0 -2
- package/lib/_virtual/_plugin-vue_export-helper.cjs +0 -7
- package/lib/breadcrumb/index.cjs +0 -5
- package/lib/breadcrumb/src/breadcrumb.vue.cjs +0 -37
- package/lib/breadcrumb/src/breadcrumb.vue2.cjs +0 -2
- package/lib/chat-embed/index.cjs +0 -5
- package/lib/chat-embed/src/chat-addition-data.vue.cjs +0 -5
- package/lib/chat-embed/src/chat-addition-data.vue2.cjs +0 -15
- package/lib/chat-embed/src/chat-addition-data.vue3.cjs +0 -2
- package/lib/chat-embed/src/chat-ai-answer-tip.vue.cjs +0 -5
- package/lib/chat-embed/src/chat-ai-answer-tip.vue2.cjs +0 -26
- package/lib/chat-embed/src/chat-ai-answer-tip.vue3.cjs +0 -2
- package/lib/chat-embed/src/chat-bubble-footer.vue.cjs +0 -5
- package/lib/chat-embed/src/chat-bubble-footer.vue2.cjs +0 -28
- package/lib/chat-embed/src/chat-bubble-footer.vue3.cjs +0 -2
- package/lib/chat-embed/src/chat-embed-message.cjs +0 -16
- package/lib/chat-embed/src/chat-sender.vue.cjs +0 -5
- package/lib/chat-embed/src/chat-sender.vue2.cjs +0 -145
- package/lib/chat-embed/src/chat-sender.vue3.cjs +0 -2
- package/lib/chat-embed/src/components/answer-auto-chart.vue.cjs +0 -5
- package/lib/chat-embed/src/components/answer-auto-chart.vue2.cjs +0 -50
- package/lib/chat-embed/src/components/answer-auto-chart.vue3.cjs +0 -2
- package/lib/chat-embed/src/components/answer-home-chart.vue.cjs +0 -5
- package/lib/chat-embed/src/components/answer-home-chart.vue2.cjs +0 -3
- package/lib/chat-embed/src/components/answer-home-chart.vue3.cjs +0 -2
- package/lib/chat-embed/src/components/answer-interaction-data.vue.cjs +0 -5
- package/lib/chat-embed/src/components/answer-interaction-data.vue2.cjs +0 -107
- package/lib/chat-embed/src/components/answer-interaction-data.vue3.cjs +0 -2
- package/lib/chat-embed/src/components/history-detail.vue.cjs +0 -5
- package/lib/chat-embed/src/components/history-detail.vue2.cjs +0 -50
- package/lib/chat-embed/src/components/history-detail.vue3.cjs +0 -2
- package/lib/chat-embed/src/header.vue.cjs +0 -5
- package/lib/chat-embed/src/header.vue2.cjs +0 -39
- package/lib/chat-embed/src/header.vue3.cjs +0 -2
- package/lib/chat-embed/src/index.vue.cjs +0 -5
- package/lib/chat-embed/src/index.vue2.cjs +0 -281
- package/lib/chat-embed/src/index.vue3.cjs +0 -2
- package/lib/chat-embed/src/recommendation-message.vue.cjs +0 -5
- package/lib/chat-embed/src/recommendation-message.vue2.cjs +0 -8
- package/lib/chat-embed/src/recommendation-message.vue3.cjs +0 -2
- package/lib/chat-embed/src/sidebar-item.vue.cjs +0 -5
- package/lib/chat-embed/src/sidebar-item.vue2.cjs +0 -109
- package/lib/chat-embed/src/sidebar-item.vue3.cjs +0 -2
- package/lib/chat-embed/src/type.cjs +0 -3
- package/lib/chat-embed/src/util/chat-embed-util.cjs +0 -51
- package/lib/chat-embed/src/util/history-message-util.cjs +0 -74
- package/lib/chat-embed/src/util/mcp-utils.cjs +0 -50
- package/lib/chat-embed/src/util/text-file-util.cjs +0 -8
- package/lib/chat-embed/src/voice/index.cjs +0 -5
- package/lib/chat-embed/src/voice/js/crypto-js.cjs +0 -1005
- package/lib/chat-embed/src/voice/js/processor/index.umd.cjs +0 -170
- package/lib/chat-embed/src/voice/js/timer.cjs +0 -8
- package/lib/chat-embed/src/voice/voice.vue.cjs +0 -96
- package/lib/date-picker-range/index.cjs +0 -5
- package/lib/date-picker-range/index.vue.cjs +0 -5
- package/lib/date-picker-range/index.vue2.cjs +0 -89
- package/lib/date-picker-range/index.vue3.cjs +0 -2
- package/lib/department-tree/index.cjs +0 -5
- package/lib/department-tree/src/department-tree.vue.cjs +0 -17
- package/lib/department-tree-inline/index.cjs +0 -5
- package/lib/department-tree-inline/src/department-multi-tree-inline.vue.cjs +0 -81
- package/lib/department-tree-inline/src/department-multi-tree-inline.vue2.cjs +0 -2
- package/lib/department-tree-inline/src/department-single-tree-inline.vue.cjs +0 -54
- package/lib/department-tree-inline/src/department-single-tree-inline.vue2.cjs +0 -2
- package/lib/department-tree-inline/src/department-tree-inline.vue.cjs +0 -12
- package/lib/department-tree-inline/src/department-tree-service.cjs +0 -106
- package/lib/department-tree-inline/src/search-result.vue.cjs +0 -36
- package/lib/department-tree-inline/src/search-result.vue2.cjs +0 -2
- package/lib/department-tree-mobile/index.cjs +0 -5
- package/lib/department-tree-mobile/src/department-tree-app.vue.cjs +0 -13
- package/lib/department-tree-mobile/src/department-tree-app.vue2.cjs +0 -2
- package/lib/department-tree-mobile/src/department-tree-app.vue3.cjs +0 -3
- package/lib/department-tree-mobile/src/department-tree-inline-app.vue.cjs +0 -110
- package/lib/department-tree-mobile/src/department-tree-inline-app.vue2.cjs +0 -3
- package/lib/department-tree-mobile/src/department-tree-service.cjs +0 -47
- package/lib/department-tree-mobile/src/dept-path.vue.cjs +0 -13
- package/lib/department-tree-mobile/src/dept-path.vue2.cjs +0 -3
- package/lib/department-tree-mobile/src/dept-result.vue.cjs +0 -14
- package/lib/department-tree-mobile/src/dept-result.vue2.cjs +0 -3
- package/lib/department-user-tree/index.cjs +0 -5
- package/lib/department-user-tree/src/department-user-multiple-tree.vue.cjs +0 -16
- package/lib/department-user-tree/src/department-user-multiple-tree.vue2.cjs +0 -2
- package/lib/department-user-tree/src/department-user-single-tree.vue.cjs +0 -14
- package/lib/department-user-tree/src/department-user-tree.vue.cjs +0 -21
- package/lib/department-user-tree-inline/index.cjs +0 -5
- package/lib/department-user-tree-inline/src/department-user-multiple-tree-inline.vue.cjs +0 -154
- package/lib/department-user-tree-inline/src/department-user-multiple-tree-inline.vue2.cjs +0 -2
- package/lib/department-user-tree-inline/src/department-user-single-tree-inline.vue.cjs +0 -57
- package/lib/department-user-tree-inline/src/department-user-single-tree-inline.vue2.cjs +0 -2
- package/lib/department-user-tree-inline/src/department-user-tree-inline.vue.cjs +0 -11
- package/lib/department-user-tree-inline/src/department-user-tree-multi-service.cjs +0 -78
- package/lib/department-user-tree-inline/src/department-user-tree-single-service.cjs +0 -51
- package/lib/department-user-tree-inline/src/group-user/group-input.vue.cjs +0 -34
- package/lib/department-user-tree-inline/src/group-user/group-list.vue.cjs +0 -22
- package/lib/department-user-tree-inline/src/group-user/group-user.vue.cjs +0 -10
- package/lib/department-user-tree-inline/src/group-user-multiple-tree.vue.cjs +0 -72
- package/lib/department-user-tree-inline/src/group-user-single-tree.vue.cjs +0 -28
- package/lib/department-user-tree-inline/src/group-user-tree-service.cjs +0 -33
- package/lib/department-user-tree-inline/src/search-result.vue.cjs +0 -38
- package/lib/department-user-tree-inline/src/search-result.vue2.cjs +0 -2
- package/lib/department-user-tree-mobile/index.cjs +0 -5
- package/lib/department-user-tree-mobile/src/department-user-tree-app.vue.cjs +0 -13
- package/lib/department-user-tree-mobile/src/department-user-tree-app.vue2.cjs +0 -2
- package/lib/department-user-tree-mobile/src/department-user-tree-app.vue3.cjs +0 -3
- package/lib/department-user-tree-mobile/src/department-user-tree-inline-app.vue.cjs +0 -124
- package/lib/department-user-tree-mobile/src/department-user-tree-inline-app.vue2.cjs +0 -3
- package/lib/department-user-tree-mobile/src/department-user-tree-service.cjs +0 -28
- package/lib/department-user-tree-mobile/src/dept-path.vue.cjs +0 -13
- package/lib/department-user-tree-mobile/src/dept-path.vue2.cjs +0 -3
- package/lib/department-user-tree-mobile/src/dept-result.vue.cjs +0 -14
- package/lib/department-user-tree-mobile/src/dept-result.vue2.cjs +0 -3
- package/lib/directives/prevent-reclick.cjs +0 -14
- package/lib/dynamic-source-select/index.cjs +0 -5
- package/lib/dynamic-source-select/src/dynamic-source-select-service.cjs +0 -30
- package/lib/dynamic-source-select/src/dynamic-source-select.vue.cjs +0 -266
- package/lib/dynamic-source-select/src/dynamic-source-select.vue2.cjs +0 -2
- package/lib/dynamic-source-select/src/dynamic-source-select.vue3.cjs +0 -2
- package/lib/dynamic-source-select/src/events.cjs +0 -28
- package/lib/empty-state/index.vue.cjs +0 -6
- package/lib/empty-state/index.vue2.cjs +0 -3
- package/lib/favicon.svg +0 -29
- package/lib/fs-preview/index.cjs +0 -5
- package/lib/fs-preview/src/fs-preview.vue.cjs +0 -119
- package/lib/fs-preview/src/fs-preview.vue2.cjs +0 -2
- package/lib/fs-upload/index.cjs +0 -5
- package/lib/fs-upload/src/fs-upload-multi.vue.cjs +0 -63
- package/lib/fs-upload/src/fs-upload-single.vue.cjs +0 -64
- package/lib/fs-upload/src/fs-upload.vue.cjs +0 -18
- package/lib/fs-upload/src/see-big-picture.vue.cjs +0 -9
- package/lib/fs-upload-list/index.cjs +0 -5
- package/lib/fs-upload-list/src/fs-upload-list.vue.cjs +0 -91
- package/lib/fs-upload-list/src/fs-upload-list.vue2.cjs +0 -2
- package/lib/fs-upload-new/index.cjs +0 -5
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-app.vue.cjs +0 -57
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-app.vue2.cjs +0 -3
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue.cjs +0 -170
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue2.cjs +0 -3
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-component.vue.cjs +0 -5
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-component.vue2.cjs +0 -32
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-component.vue3.cjs +0 -2
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-input.vue.cjs +0 -41
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-input.vue2.cjs +0 -3
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload.vue.cjs +0 -29
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload.vue2.cjs +0 -3
- package/lib/fs-upload-new/src/fs-button-upload.vue.cjs +0 -5
- package/lib/fs-upload-new/src/fs-button-upload.vue2.cjs +0 -55
- package/lib/fs-upload-new/src/fs-button-upload.vue3.cjs +0 -2
- package/lib/fs-upload-new/src/fs-drag-upload.vue.cjs +0 -5
- package/lib/fs-upload-new/src/fs-drag-upload.vue2.cjs +0 -55
- package/lib/fs-upload-new/src/fs-drag-upload.vue3.cjs +0 -2
- package/lib/fs-upload-new/src/fs-preview-new.vue.cjs +0 -5
- package/lib/fs-upload-new/src/fs-preview-new.vue2.cjs +0 -84
- package/lib/fs-upload-new/src/fs-preview-new.vue3.cjs +0 -2
- package/lib/fs-upload-new/src/fs-preview-new.vue4.cjs +0 -2
- package/lib/fs-upload-new/src/fs-upload-new.vue.cjs +0 -54
- package/lib/fs-upload-new/src/fs-upload-new.vue2.cjs +0 -3
- package/lib/hamburger/index.cjs +0 -5
- package/lib/hamburger/src/hamburger.vue.cjs +0 -11
- package/lib/hamburger/src/hamburger.vue2.cjs +0 -2
- package/lib/index.cjs +0 -41
- package/lib/json-view/json-view-dialog.vue.cjs +0 -16
- package/lib/json-view/json-view-dialog.vue2.cjs +0 -3
- package/lib/json-view/json-view.vue.cjs +0 -3
- package/lib/json-view/json-view.vue2.cjs +0 -32
- package/lib/multipart-upload/index.cjs +0 -5
- package/lib/multipart-upload/src/index.vue.cjs +0 -10
- package/lib/multipart-upload/src/multipart-upload-form.vue.cjs +0 -73
- package/lib/multipart-upload/src/multipart-upload-list.vue.cjs +0 -96
- package/lib/organization-input/index.cjs +0 -5
- package/lib/organization-input/src/organization-input.vue.cjs +0 -218
- package/lib/organization-input/src/organization-input.vue2.cjs +0 -2
- package/lib/plugins/export-data-new.cjs +0 -229
- package/lib/plugins/export-data.cjs +0 -173
- package/lib/plugins/index.cjs +0 -5
- package/lib/plugins/public-method.cjs +0 -13
- package/lib/remove-department/index.cjs +0 -5
- package/lib/remove-department/src/remove-department.vue.cjs +0 -27
- package/lib/remove-department/src/remove-dept-service.cjs +0 -12
- package/lib/remove-user/index.cjs +0 -5
- package/lib/remove-user/src/remove-user-service.cjs +0 -12
- package/lib/remove-user/src/remove-user.vue.cjs +0 -29
- package/lib/remove-workgroup/index.cjs +0 -5
- package/lib/remove-workgroup/src/remove-workgroup-service.cjs +0 -12
- package/lib/remove-workgroup/src/remove-workgroup.vue.cjs +0 -25
- package/lib/rich-editor/index.cjs +0 -5
- package/lib/rich-editor/index.vue.cjs +0 -67
- package/lib/rich-editor/tinymce/zh_CN.cjs +0 -2
- package/lib/rich-editor/viewer.vue.cjs +0 -24
- package/lib/row-form/index.cjs +0 -5
- package/lib/row-form/index.vue.cjs +0 -5
- package/lib/row-form/index.vue2.cjs +0 -56
- package/lib/row-form/index.vue3.cjs +0 -2
- package/lib/row-form/operation.vue.cjs +0 -28
- package/lib/row-form/operation.vue2.cjs +0 -3
- package/lib/scan-code-input/index.cjs +0 -5
- package/lib/scan-code-input/src/events.cjs +0 -13
- package/lib/scan-code-input/src/scan-code-input.vue.cjs +0 -26
- package/lib/scan-code-input-browser/index.cjs +0 -5
- package/lib/scan-code-input-browser/src/scan-code-input.vue.cjs +0 -34
- package/lib/secret-info/index.cjs +0 -5
- package/lib/secret-info/index.vue.cjs +0 -13
- package/lib/src/api/sso-service.cjs +0 -55
- package/lib/src/api/tab.cjs +0 -14
- package/lib/src/assets/401/401.gif.cjs +0 -2
- package/lib/src/assets/404/404-cloud.png.cjs +0 -2
- package/lib/src/assets/404/404.png.cjs +0 -2
- package/lib/src/assets/chat-embed/robot.gif.cjs +0 -2
- package/lib/src/assets/chat-embed/robot.svg.cjs +0 -2
- package/lib/src/assets/nonemessage.png.cjs +0 -2
- package/lib/src/components/Affix/index.vue.cjs +0 -5
- package/lib/src/components/Affix/index.vue2.cjs +0 -81
- package/lib/src/components/Affix/index.vue3.cjs +0 -2
- package/lib/src/components/Card/index.cjs +0 -46
- package/lib/src/components/Scrollbar/index.vue.cjs +0 -48
- package/lib/src/components/Scrollbar/index.vue2.cjs +0 -2
- package/lib/src/directives/permission/index.cjs +0 -5
- package/lib/src/directives/permission/permission.cjs +0 -9
- package/lib/src/i18n/i18n.cjs +0 -3
- package/lib/src/i18n/langs/cn.cjs +0 -2
- package/lib/src/i18n/langs/en.cjs +0 -2
- package/lib/src/mixins/resizeMixin.cjs +0 -20
- package/lib/src/permission.cjs +0 -76
- package/lib/src/router/index.cjs +0 -16
- package/lib/src/store/getters.cjs +0 -2
- package/lib/src/store/index.cjs +0 -16
- package/lib/src/store/modules/app.cjs +0 -40
- package/lib/src/store/modules/chat-ai-store.cjs +0 -33
- package/lib/src/store/modules/permission.cjs +0 -30
- package/lib/src/store/modules/system.cjs +0 -10
- package/lib/src/store/modules/tab-content.cjs +0 -18
- package/lib/src/store/modules/table.cjs +0 -17
- package/lib/src/store/modules/user.cjs +0 -133
- package/lib/src/utils/auth-api.cjs +0 -132
- package/lib/src/utils/auth.cjs +0 -86
- package/lib/src/utils/calculator/calculator-factory-wf.cjs +0 -166
- package/lib/src/utils/calculator/calculator-factory.cjs +0 -92
- package/lib/src/utils/calculator/calculator-util.cjs +0 -53
- package/lib/src/utils/chat-ai-util.cjs +0 -26
- package/lib/src/utils/common-util.cjs +0 -362
- package/lib/src/utils/eventBus.cjs +0 -3
- package/lib/src/utils/file-util.cjs +0 -22
- package/lib/src/utils/global-prop.cjs +0 -22
- package/lib/src/utils/guid.cjs +0 -7
- package/lib/src/utils/i18n-util.cjs +0 -62
- package/lib/src/utils/iconUtils.cjs +0 -19
- package/lib/src/utils/index.cjs +0 -32
- package/lib/src/utils/insert_css.cjs +0 -18
- package/lib/src/utils/json-util.cjs +0 -45
- package/lib/src/utils/jump-page-utils.cjs +0 -256
- package/lib/src/utils/local-storage.cjs +0 -18
- package/lib/src/utils/menu.cjs +0 -13
- package/lib/src/utils/permission.cjs +0 -41
- package/lib/src/utils/permissionAuth.cjs +0 -120
- package/lib/src/utils/range-selector.cjs +0 -101
- package/lib/src/utils/request.cjs +0 -131
- package/lib/src/utils/resize.cjs +0 -11
- package/lib/src/utils/restful-interface-utils.cjs +0 -15
- package/lib/src/utils/util.cjs +0 -341
- package/lib/src/utils/validate.cjs +0 -12
- package/lib/src/utils/voice-setting-cache.cjs +0 -199
- package/lib/src/utils/watermark-cache.cjs +0 -10
- package/lib/src/utils/watermark.cjs +0 -33
- package/lib/src/utils/workflow-util.cjs +0 -41
- package/lib/src/views/dsc-component/Sidebar/Item.vue.cjs +0 -5
- package/lib/src/views/dsc-component/Sidebar/Item.vue2.cjs +0 -9
- package/lib/src/views/dsc-component/Sidebar/Item.vue3.cjs +0 -2
- package/lib/src/views/dsc-component/Sidebar/Link.vue.cjs +0 -11
- package/lib/src/views/dsc-component/Sidebar/SidebarItem.vue.cjs +0 -46
- package/lib/src/views/dsc-component/Sidebar/SidebarItem.vue2.cjs +0 -2
- package/lib/src/views/dsc-component/Sidebar/index.vue.cjs +0 -103
- package/lib/src/views/dsc-component/tabs/tab-content.vue.cjs +0 -61
- package/lib/src/views/dsc-component/tabs/tab-content.vue2.cjs +0 -2
- package/lib/src/views/dsc-component/tabs/tab-content.vue3.cjs +0 -2
- package/lib/src/views/error-page/401.vue.cjs +0 -11
- package/lib/src/views/error-page/401.vue2.cjs +0 -2
- package/lib/src/views/error-page/404.vue.cjs +0 -8
- package/lib/src/views/error-page/404.vue2.cjs +0 -2
- package/lib/src/views/layout/EmptyLayout.vue.cjs +0 -7
- package/lib/src/views/layout/Layout.vue.cjs +0 -21
- package/lib/src/views/layout/Layout.vue2.cjs +0 -2
- package/lib/src/views/layout/NewLayout.vue.cjs +0 -7
- package/lib/src/views/layout/components/AppMain.vue.cjs +0 -11
- package/lib/src/views/layout/components/AppMain.vue2.cjs +0 -2
- package/lib/src/views/layout/components/Breadcrumb/index.vue.cjs +0 -56
- package/lib/src/views/layout/components/Breadcrumb/index.vue2.cjs +0 -2
- package/lib/src/views/layout/components/Menubar/Item.vue.cjs +0 -5
- package/lib/src/views/layout/components/Menubar/Item.vue2.cjs +0 -13
- package/lib/src/views/layout/components/Menubar/Item.vue3.cjs +0 -2
- package/lib/src/views/layout/components/Menubar/Link.vue.cjs +0 -11
- package/lib/src/views/layout/components/Menubar/SidebarItem.vue.cjs +0 -47
- package/lib/src/views/layout/components/Menubar/SidebarItem.vue2.cjs +0 -2
- package/lib/src/views/layout/components/Menubar/index.vue.cjs +0 -79
- package/lib/src/views/layout/components/Sidebar/Item.vue.cjs +0 -7
- package/lib/src/views/layout/components/Sidebar/Item.vue2.cjs +0 -3
- package/lib/src/views/layout/components/Sidebar/Link.vue.cjs +0 -9
- package/lib/src/views/layout/components/Sidebar/SidebarItem.vue.cjs +0 -16
- package/lib/src/views/layout/components/Sidebar/SidebarItem.vue2.cjs +0 -2
- package/lib/src/views/layout/components/Sidebar/index.vue.cjs +0 -51
- package/lib/src/views/layout/components/iframe-page.vue.cjs +0 -12
- package/lib/src/views/layout/components/iframe-page.vue2.cjs +0 -2
- package/lib/src/views/layout/components/tabs/tab-content.vue.cjs +0 -60
- package/lib/src/views/layout/components/tabs/tab-content.vue2.cjs +0 -2
- package/lib/src/views/layout/components/tabs/tab-content.vue3.cjs +0 -2
- package/lib/src/views/layout/mixin/ResizeHandler.cjs +0 -14
- package/lib/src/views/layout/tab-content-iframe-index.vue.cjs +0 -12
- package/lib/src/views/layout/tab-content-iframe-index.vue2.cjs +0 -2
- package/lib/src/views/layout/tab-content-index.vue.cjs +0 -22
- package/lib/src/views/layout/tab-content-index.vue2.cjs +0 -2
- package/lib/src/views/login/authredirect.vue.cjs +0 -6
- package/lib/src/views/redirect/index.vue.cjs +0 -17
- package/lib/src/views/super-icon/index.cjs +0 -5
- package/lib/src/views/super-icon/src/index.vue.cjs +0 -5
- package/lib/src/views/super-icon/src/index.vue2.cjs +0 -10
- package/lib/src/views/super-icon/src/index.vue3.cjs +0 -2
- package/lib/src/views/svg-icon/src/svg-icon.vue.cjs +0 -2
- package/lib/src/views/svg-icon/src/svg-icon.vue2.cjs +0 -12
- package/lib/src/views/wf-history/tache-subprocess-history.vue.cjs +0 -12
- package/lib/src/views/wf-history/tache-subprocess-history.vue2.cjs +0 -2
- package/lib/style.css +0 -3103
- package/lib/super-grid/index.cjs +0 -5
- package/lib/super-grid/src/apis.cjs +0 -477
- package/lib/super-grid/src/columns-config.vue.cjs +0 -76
- package/lib/super-grid/src/components/grid-icon.vue.cjs +0 -39
- package/lib/super-grid/src/components/grid-radio-input.vue.cjs +0 -22
- package/lib/super-grid/src/components/grid-radio-input.vue2.cjs +0 -3
- package/lib/super-grid/src/components/mobile-table-card.cjs +0 -99
- package/lib/super-grid/src/components/select-input.vue.cjs +0 -141
- package/lib/super-grid/src/components/select-input.vue2.cjs +0 -3
- package/lib/super-grid/src/custom-formatter.cjs +0 -163
- package/lib/super-grid/src/dynamic-input.vue.cjs +0 -465
- package/lib/super-grid/src/eventBus.cjs +0 -3
- package/lib/super-grid/src/events.cjs +0 -35
- package/lib/super-grid/src/formValidatorUtil.cjs +0 -106
- package/lib/super-grid/src/formatter.cjs +0 -69
- package/lib/super-grid/src/group-column.vue.cjs +0 -19
- package/lib/super-grid/src/header-context-menu.vue.cjs +0 -12
- package/lib/super-grid/src/header-context-menu.vue2.cjs +0 -2
- package/lib/super-grid/src/index-column.vue.cjs +0 -19
- package/lib/super-grid/src/normal-column-content.vue.cjs +0 -303
- package/lib/super-grid/src/normal-column-content.vue2.cjs +0 -2
- package/lib/super-grid/src/normal-column.vue.cjs +0 -90
- package/lib/super-grid/src/normal-column.vue2.cjs +0 -2
- package/lib/super-grid/src/public-methods.cjs +0 -20
- package/lib/super-grid/src/row-detail.vue.cjs +0 -11
- package/lib/super-grid/src/row-operation.vue.cjs +0 -82
- package/lib/super-grid/src/row-operation.vue2.cjs +0 -2
- package/lib/super-grid/src/scan-util.cjs +0 -98
- package/lib/super-grid/src/search-button.vue.cjs +0 -20
- package/lib/super-grid/src/search-condition-input.vue.cjs +0 -13
- package/lib/super-grid/src/search-condition-list.vue.cjs +0 -17
- package/lib/super-grid/src/search-form-advancedQuery.vue.cjs +0 -106
- package/lib/super-grid/src/search-form-advancedQuery.vue2.cjs +0 -2
- package/lib/super-grid/src/search-form-dialog.vue.cjs +0 -23
- package/lib/super-grid/src/search-form-item.vue.cjs +0 -120
- package/lib/super-grid/src/search-form-item.vue2.cjs +0 -2
- package/lib/super-grid/src/search-form-mobile.vue.cjs +0 -32
- package/lib/super-grid/src/search-form-mobile.vue2.cjs +0 -2
- package/lib/super-grid/src/search-form-number.vue.cjs +0 -21
- package/lib/super-grid/src/search-form-open.vue.cjs +0 -46
- package/lib/super-grid/src/search-form-ordinarySearch.vue.cjs +0 -33
- package/lib/super-grid/src/search-form-ordinarySearch.vue2.cjs +0 -2
- package/lib/super-grid/src/search-form.vue.cjs +0 -194
- package/lib/super-grid/src/search-form.vue2.cjs +0 -2
- package/lib/super-grid/src/search-methods.cjs +0 -163
- package/lib/super-grid/src/selection-column.vue.cjs +0 -9
- package/lib/super-grid/src/store.cjs +0 -3
- package/lib/super-grid/src/super-grid-service.cjs +0 -253
- package/lib/super-grid/src/super-grid.vue.cjs +0 -1083
- package/lib/super-grid/src/super-grid.vue2.cjs +0 -2
- package/lib/super-grid/src/utils.cjs +0 -373
- package/lib/super-grid/src/view-image-dialog.vue.cjs +0 -60
- package/lib/super-icon/index.cjs +0 -5
- package/lib/super-icon/src/index.vue.cjs +0 -5
- package/lib/super-icon/src/index.vue2.cjs +0 -10
- package/lib/super-icon/src/index.vue3.cjs +0 -2
- package/lib/super-nine-grid/index.cjs +0 -5
- package/lib/super-nine-grid/src/apis.cjs +0 -33
- package/lib/super-nine-grid/src/custom-formatter.cjs +0 -33
- package/lib/super-nine-grid/src/formatter.cjs +0 -36
- package/lib/super-nine-grid/src/search-form-number.vue.cjs +0 -9
- package/lib/super-nine-grid/src/search-form.vue.cjs +0 -84
- package/lib/super-nine-grid/src/search-form.vue2.cjs +0 -2
- package/lib/super-nine-grid/src/search-methods.cjs +0 -47
- package/lib/super-nine-grid/src/store.cjs +0 -3
- package/lib/super-nine-grid/src/super-grid-service.cjs +0 -35
- package/lib/super-nine-grid/src/super-nine-grid.vue.cjs +0 -215
- package/lib/super-nine-grid/src/super-nine-grid.vue2.cjs +0 -2
- package/lib/super-nine-grid/src/utils.cjs +0 -36
- package/lib/svg-icon/index.cjs +0 -5
- package/lib/svg-icon/src/svg-icon.vue.cjs +0 -12
- package/lib/svg-icon/src/svg-icon.vue2.cjs +0 -2
- package/lib/utils/gogocodeTransfer.cjs +0 -28
- package/lib/utils/memory-cache-utils.cjs +0 -28
- package/lib/utils/organization.cjs +0 -55
- package/lib/utils/utils.cjs +0 -85
- package/lib/utils/value-set.cjs +0 -92
- package/lib/valid-code/index.cjs +0 -5
- package/lib/valid-code/src/valid-code.vue.cjs +0 -20
- package/lib/valid-code/src/valid-code.vue2.cjs +0 -2
- package/lib/workflow-button/index.cjs +0 -5
- package/lib/workflow-button/src/workflow-button.vue.cjs +0 -80
- package/lib/workflow-history-list/index.cjs +0 -5
- package/lib/workflow-history-list/src/api.cjs +0 -5
- package/lib/workflow-history-list/src/workflow-history-list.vue.cjs +0 -83
- package/lib/workflow-history-list/src/workflow-history-list.vue2.cjs +0 -2
- package/lib/workgroup-tree/index.cjs +0 -5
- package/lib/workgroup-tree/src/workgroup-tree.vue.cjs +0 -17
- package/lib/workgroup-tree-inline/index.cjs +0 -5
- package/lib/workgroup-tree-inline/src/search-result.vue.cjs +0 -35
- package/lib/workgroup-tree-inline/src/search-result.vue2.cjs +0 -2
- package/lib/workgroup-tree-inline/src/workgroup-tree-inline.vue.cjs +0 -119
- package/lib/workgroup-tree-inline/src/workgroup-tree-inline.vue2.cjs +0 -2
- package/lib/workgroup-tree-inline/src/workgroup-tree-service.cjs +0 -33
- package/lib/workgroup-tree-mobile/index.cjs +0 -5
- package/lib/workgroup-tree-mobile/src/dept-result.vue.cjs +0 -14
- package/lib/workgroup-tree-mobile/src/dept-result.vue2.cjs +0 -3
- package/lib/workgroup-tree-mobile/src/workgroup-tree-app.vue.cjs +0 -13
- package/lib/workgroup-tree-mobile/src/workgroup-tree-app.vue2.cjs +0 -2
- package/lib/workgroup-tree-mobile/src/workgroup-tree-app.vue3.cjs +0 -3
- package/lib/workgroup-tree-mobile/src/workgroup-tree-inline-app.vue.cjs +0 -99
- package/lib/workgroup-tree-mobile/src/workgroup-tree-inline-app.vue2.cjs +0 -3
- package/lib/workgroup-tree-mobile/src/workgroup-tree-service.cjs +0 -25
- package/lib/workgroup-user-tree/index.cjs +0 -5
- package/lib/workgroup-user-tree/src/workgroup-user-tree.vue.cjs +0 -17
- package/lib/workgroup-user-tree-inline/index.cjs +0 -5
- package/lib/workgroup-user-tree-inline/src/search-result.vue.cjs +0 -35
- package/lib/workgroup-user-tree-inline/src/search-result.vue2.cjs +0 -2
- package/lib/workgroup-user-tree-inline/src/workgroup-tree-inline-service.cjs +0 -71
- package/lib/workgroup-user-tree-inline/src/workgroup-user-tree-inline.vue.cjs +0 -163
- package/lib/workgroup-user-tree-inline/src/workgroup-user-tree-inline.vue2.cjs +0 -2
- package/lib/workgroup-user-tree-mobile/src/dept-path.vue.cjs +0 -13
- package/lib/workgroup-user-tree-mobile/src/dept-path.vue2.cjs +0 -3
- package/lib/workgroup-user-tree-mobile/src/dept-result.vue.cjs +0 -14
- package/lib/workgroup-user-tree-mobile/src/dept-result.vue2.cjs +0 -3
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue.cjs +0 -13
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue2.cjs +0 -2
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue3.cjs +0 -3
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-inline-app.vue.cjs +0 -124
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-inline-app.vue2.cjs +0 -3
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-service.cjs +0 -20
- package/lib/year-range-picker/index.cjs +0 -5
- package/lib/year-range-picker/src/year-range-picker.vue.cjs +0 -11
- package/src/api/sso-service.js +0 -222
- package/src/api/tab.js +0 -36
- package/src/assets/401/401.gif +0 -0
- package/src/assets/404/404-cloud.png +0 -0
- package/src/assets/404/404.png +0 -0
- package/src/assets/chat-embed/background.png +0 -0
- package/src/assets/chat-embed/robot.gif +0 -0
- package/src/assets/chat-embed/robot.svg +0 -32
- package/src/assets/cloud.png +0 -0
- package/src/assets/nonemessage.png +0 -0
- package/src/assets/tab-selectWhite.png +0 -0
- package/src/components/Affix/index.vue +0 -272
- package/src/components/Card/index.jsx +0 -227
- package/src/components/Scrollbar/index.vue +0 -224
- package/src/directives/permission/index.js +0 -14
- package/src/directives/permission/permission.js +0 -27
- package/src/i18n/i18n.js +0 -16
- package/src/i18n/langs/cn.js +0 -344
- package/src/i18n/langs/en.js +0 -344
- package/src/index.js +0 -22
- package/src/mixins/resizeMixin.js +0 -49
- package/src/permission.js +0 -252
- package/src/plugins.js +0 -18
- package/src/router/index.js +0 -92
- package/src/store/getters.js +0 -26
- package/src/store/index.js +0 -23
- package/src/store/modules/app.js +0 -96
- package/src/store/modules/chat-ai-store.ts +0 -85
- package/src/store/modules/permission.js +0 -143
- package/src/store/modules/system.js +0 -35
- package/src/store/modules/tab-content.js +0 -42
- package/src/store/modules/table.js +0 -76
- package/src/store/modules/user.js +0 -448
- package/src/utils/auth-api.js +0 -370
- package/src/utils/auth.js +0 -194
- package/src/utils/calculator/calculator-factory-wf.js +0 -465
- package/src/utils/calculator/calculator-factory.js +0 -133
- package/src/utils/calculator/calculator-util.js +0 -184
- package/src/utils/chat-ai-util.ts +0 -41
- package/src/utils/common-util.js +0 -1019
- package/src/utils/dingtalk-util.ts +0 -43
- package/src/utils/eventBus.js +0 -10
- package/src/utils/file-util.ts +0 -42
- package/src/utils/global-prop.ts +0 -44
- package/src/utils/guid.js +0 -13
- package/src/utils/i18n-util.js +0 -145
- package/src/utils/iconUtils.js +0 -37
- package/src/utils/iframe-communicator.js +0 -234
- package/src/utils/index.js +0 -102
- package/src/utils/insert_css.js +0 -47
- package/src/utils/json-util.ts +0 -85
- package/src/utils/jump-page-utils.js +0 -829
- package/src/utils/local-storage.js +0 -33
- package/src/utils/menu.js +0 -19
- package/src/utils/permission.js +0 -126
- package/src/utils/permissionAuth.js +0 -311
- package/src/utils/range-selector.js +0 -204
- package/src/utils/request.js +0 -407
- package/src/utils/resize.js +0 -19
- package/src/utils/restful-interface-utils.js +0 -57
- package/src/utils/util.js +0 -1000
- package/src/utils/validate.js +0 -34
- package/src/utils/voice-setting-cache.js +0 -497
- package/src/utils/watermark-cache.js +0 -13
- package/src/utils/watermark.js +0 -119
- package/src/utils/workflow-util.js +0 -107
- package/src/views/404.vue +0 -248
- package/src/views/dsc-component/Sidebar/Item.vue +0 -95
- package/src/views/dsc-component/Sidebar/Link.vue +0 -38
- package/src/views/dsc-component/Sidebar/SidebarItem.vue +0 -245
- package/src/views/dsc-component/Sidebar/index.vue +0 -258
- package/src/views/dsc-component/tabs/tab-content.vue +0 -230
- package/src/views/error-page/401.vue +0 -106
- package/src/views/error-page/404.vue +0 -248
- package/src/views/layout/EmptyLayout.vue +0 -3
- package/src/views/layout/Layout.vue +0 -85
- package/src/views/layout/NewLayout.vue +0 -18
- package/src/views/layout/components/AppMain.vue +0 -46
- package/src/views/layout/components/Breadcrumb/index.vue +0 -158
- package/src/views/layout/components/Menubar/Item.vue +0 -125
- package/src/views/layout/components/Menubar/Link.vue +0 -38
- package/src/views/layout/components/Menubar/SidebarItem.vue +0 -333
- package/src/views/layout/components/Menubar/index.vue +0 -250
- package/src/views/layout/components/Sidebar/Item.vue +0 -33
- package/src/views/layout/components/Sidebar/Link.vue +0 -38
- package/src/views/layout/components/Sidebar/SidebarItem.vue +0 -179
- package/src/views/layout/components/Sidebar/index.vue +0 -141
- package/src/views/layout/components/iframe-page.vue +0 -38
- package/src/views/layout/components/index.js +0 -4
- package/src/views/layout/components/tabs/tab-content.vue +0 -273
- package/src/views/layout/mixin/ResizeHandler.js +0 -41
- package/src/views/layout/tab-content-iframe-index.vue +0 -38
- package/src/views/layout/tab-content-index.vue +0 -92
- package/src/views/login/authredirect.vue +0 -10
- package/src/views/login/index.vue +0 -296
- package/src/views/login/update-password.vue +0 -246
- package/src/views/redirect/index.vue +0 -14
- package/src/views/super-icon/index.js +0 -6
- package/src/views/super-icon/src/index.vue +0 -52
- package/src/views/svg-icon/index.js +0 -6
- package/src/views/svg-icon/src/svg-icon.vue +0 -43
- package/src/views/wf-history/tache-subprocess-history.vue +0 -45
- package/vite.config.js +0 -103
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<section class="app-main agilebuilder-page-main">
|
|
3
|
-
<router-view v-slot="{ Component }">
|
|
4
|
-
<transition name="fade-transform" mode="out-in">
|
|
5
|
-
<component :is="Component"></component>
|
|
6
|
-
</transition>
|
|
7
|
-
</router-view>
|
|
8
|
-
</section>
|
|
9
|
-
</template>
|
|
10
|
-
|
|
11
|
-
<script>
|
|
12
|
-
export default {
|
|
13
|
-
name: 'AppMain',
|
|
14
|
-
computed: {
|
|
15
|
-
// key() {
|
|
16
|
-
// return this.$route.name !== undefined ? this.$route.name + +new Date() : this.$route + +new Date()
|
|
17
|
-
// }
|
|
18
|
-
|
|
19
|
-
// 解决的问题如下:
|
|
20
|
-
// 改变路由参数(page?pageCode=xx)去获取对应数据,然后渲染到页面(用的是同一套组件),
|
|
21
|
-
// 问题来了:当切换菜单时,数据并没有更新,后来看了Vue-router官网,
|
|
22
|
-
// 有这么一句话:提醒一下,当使用路由参数时,例如从 /user/foo 导航到 user/bar,原来的组件实例会被复用。
|
|
23
|
-
// 因为两个路由都渲染同个组件,比起销毁再创建,复用则显得更加高效。不过,这也意味着组件的生命周期钩子不会再被调用
|
|
24
|
-
key() {
|
|
25
|
-
return this.$route.name !== undefined
|
|
26
|
-
? this.$route.name + +new Date()
|
|
27
|
-
: this.$route + +new Date()
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
}
|
|
31
|
-
</script>
|
|
32
|
-
|
|
33
|
-
<style lang="scss" scoped>
|
|
34
|
-
.app-main ::v-deep{
|
|
35
|
-
padding: var(--app-main-padding, 15px);
|
|
36
|
-
height: calc(100vh - (var(--app-main-padding, 15px) * 2));
|
|
37
|
-
position: relative;
|
|
38
|
-
overflow: hidden;
|
|
39
|
-
// :not(:has( > .three-column-layout, > .el-container))
|
|
40
|
-
& > .app-container {
|
|
41
|
-
max-height: calc(100vh - (var(--app-main-padding, 15px) * 2));
|
|
42
|
-
height: calc(100vh - (var(--app-main-padding, 15px) * 2));
|
|
43
|
-
overflow: auto;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
</style>
|
|
@@ -1,158 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<el-breadcrumb class="app-breadcrumb" separator=">">
|
|
3
|
-
<transition-group name="breadcrumb" tag="span">
|
|
4
|
-
<el-breadcrumb-item
|
|
5
|
-
v-for="(item, index) in levelListWithTitle"
|
|
6
|
-
:key="item.path + '-' + index"
|
|
7
|
-
>
|
|
8
|
-
<span class="no-redirect">
|
|
9
|
-
{{ $t(item.meta.title) }}
|
|
10
|
-
</span>
|
|
11
|
-
</el-breadcrumb-item>
|
|
12
|
-
</transition-group>
|
|
13
|
-
</el-breadcrumb>
|
|
14
|
-
</template>
|
|
15
|
-
|
|
16
|
-
<script>
|
|
17
|
-
import {getLanguageWithLocale} from '../../../../utils/util'
|
|
18
|
-
import * as pathToRegexp from 'path-to-regexp'
|
|
19
|
-
import Cookies from 'js-cookie'
|
|
20
|
-
|
|
21
|
-
export default {
|
|
22
|
-
name: 'Breadcrumb',
|
|
23
|
-
data() {
|
|
24
|
-
return {
|
|
25
|
-
levelList: null,
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
computed: {
|
|
29
|
-
levelListWithTitle() {
|
|
30
|
-
return this.levelList.filter(
|
|
31
|
-
(item) => item.meta.title !== undefined && item.meta.title !== null
|
|
32
|
-
)
|
|
33
|
-
},
|
|
34
|
-
},
|
|
35
|
-
watch: {
|
|
36
|
-
$route() {
|
|
37
|
-
this.getBreadcrumb()
|
|
38
|
-
},
|
|
39
|
-
},
|
|
40
|
-
created() {
|
|
41
|
-
this.getBreadcrumb()
|
|
42
|
-
},
|
|
43
|
-
methods: {
|
|
44
|
-
getBreadcrumb() {
|
|
45
|
-
const {params} = this.$route
|
|
46
|
-
console.log('this.$route.matched==', this.$route.matched)
|
|
47
|
-
let matched = this.$route.matched.filter((item) => {
|
|
48
|
-
if (item.name) {
|
|
49
|
-
// To solve this problem https://github.com/PanJiaChen/vue-element-admin/issues/561
|
|
50
|
-
var toPath = pathToRegexp.compile(item.path)
|
|
51
|
-
item.path = toPath(params)
|
|
52
|
-
return true
|
|
53
|
-
}
|
|
54
|
-
})
|
|
55
|
-
// const first = matched[0]
|
|
56
|
-
if (matched) {
|
|
57
|
-
let systemName
|
|
58
|
-
const language = getLanguageWithLocale()
|
|
59
|
-
const systemNameObj =
|
|
60
|
-
window.$vueApp.config.globalProperties.systemNameObj
|
|
61
|
-
if (systemNameObj) {
|
|
62
|
-
systemName = systemNameObj[language]
|
|
63
|
-
}
|
|
64
|
-
matched = [
|
|
65
|
-
{path: '/', redirect: 'noredirect', meta: {title: systemName}},
|
|
66
|
-
].concat(matched)
|
|
67
|
-
const cookieMenu = Cookies.get('selectMenu')
|
|
68
|
-
const leftSelectMenu =
|
|
69
|
-
window.$vueApp.config.globalProperties._selectMenu
|
|
70
|
-
let selectMenu
|
|
71
|
-
if (leftSelectMenu) {
|
|
72
|
-
selectMenu = leftSelectMenu
|
|
73
|
-
} else if (cookieMenu) {
|
|
74
|
-
selectMenu = cookieMenu
|
|
75
|
-
}
|
|
76
|
-
if (selectMenu) {
|
|
77
|
-
// 解决表单页面无法获得列表路由
|
|
78
|
-
const path = selectMenu.substring(0, selectMenu.indexOf('~~'))
|
|
79
|
-
const title = selectMenu.substring(selectMenu.indexOf('~~') + 2)
|
|
80
|
-
if (matched && matched.length > 0) {
|
|
81
|
-
const lastRoute = matched[matched.length - 1]
|
|
82
|
-
if (this.isShouldConcatLastMenu(title, path, lastRoute)) {
|
|
83
|
-
matched.push({path: path, meta: {title: title}})
|
|
84
|
-
}
|
|
85
|
-
} else {
|
|
86
|
-
matched.push({path: path, meta: {title: title}})
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
this.levelList = matched
|
|
91
|
-
},
|
|
92
|
-
// 新建页面时会把列表页面路由刷没,导致菜单路径缺少最后一层菜单问题
|
|
93
|
-
isShouldConcatLastMenu(title, path, lastRoute) {
|
|
94
|
-
if (
|
|
95
|
-
this.isTitleNotEqual(title, lastRoute) &&
|
|
96
|
-
this.isPathNotEqual(path, lastRoute)
|
|
97
|
-
) {
|
|
98
|
-
// title和path都不同,表示是不同的页面,需要添加到matched集合中
|
|
99
|
-
return true
|
|
100
|
-
}
|
|
101
|
-
return false
|
|
102
|
-
},
|
|
103
|
-
/**
|
|
104
|
-
* window.$vueApp.config.globalProperties._selectMenu的菜单标题是否与最后的路由页面标题一致
|
|
105
|
-
* 返回true表示不一样,返回false表示一样
|
|
106
|
-
*/
|
|
107
|
-
isTitleNotEqual(title, lastRoute) {
|
|
108
|
-
if (
|
|
109
|
-
title &&
|
|
110
|
-
lastRoute.meta &&
|
|
111
|
-
title !== lastRoute.meta.title &&
|
|
112
|
-
title !== this.$t(lastRoute.meta.title)
|
|
113
|
-
) {
|
|
114
|
-
// 表示title不一样,当前可能是在表单页面,需要添加到matched集合中
|
|
115
|
-
return true
|
|
116
|
-
}
|
|
117
|
-
return false
|
|
118
|
-
},
|
|
119
|
-
/**
|
|
120
|
-
* window.$vueApp.config.globalProperties._selectMenu的菜单的访问路径是否与最后的路由页面的路径一致
|
|
121
|
-
* 返回true表示不一样,返回false表示一样
|
|
122
|
-
*/
|
|
123
|
-
isPathNotEqual(path, lastRoute) {
|
|
124
|
-
if (path && lastRoute.path && path !== lastRoute.path) {
|
|
125
|
-
// 表示path不一样,当前可能是在表单页面,需要添加到matched集合中
|
|
126
|
-
return true
|
|
127
|
-
}
|
|
128
|
-
return false
|
|
129
|
-
},
|
|
130
|
-
},
|
|
131
|
-
}
|
|
132
|
-
</script>
|
|
133
|
-
|
|
134
|
-
<style lang="scss" rel="stylesheet/scss" scoped>
|
|
135
|
-
.app-breadcrumb.el-breadcrumb {
|
|
136
|
-
background-color: #eee;
|
|
137
|
-
width: 100%;
|
|
138
|
-
border: 1px solid #ccc;
|
|
139
|
-
bottom: 2px;
|
|
140
|
-
margin-left: 2px;
|
|
141
|
-
display: inline-block;
|
|
142
|
-
font-size: 14px;
|
|
143
|
-
line-height: 40px;
|
|
144
|
-
|
|
145
|
-
.no-redirect {
|
|
146
|
-
color: #333;
|
|
147
|
-
cursor: text;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
.el-breadcrumb__item {
|
|
151
|
-
padding-left: 5px;
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
.el-breadcrumb__separator {
|
|
155
|
-
margin: 0 5px;
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
</style>
|
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
<script lang="jsx">
|
|
2
|
-
import { defineComponent, h } from 'vue'
|
|
3
|
-
import SvgIcon from '../../../svg-icon/src/svg-icon.vue'
|
|
4
|
-
import { ElBadge } from 'element-plus'
|
|
5
|
-
import SuperIcon from '../../../super-icon/index'
|
|
6
|
-
export default defineComponent({
|
|
7
|
-
name: 'MenuItem',
|
|
8
|
-
functional: true,
|
|
9
|
-
props: {
|
|
10
|
-
icon: {
|
|
11
|
-
type: String,
|
|
12
|
-
default: ''
|
|
13
|
-
},
|
|
14
|
-
title: {
|
|
15
|
-
type: String,
|
|
16
|
-
default: ''
|
|
17
|
-
},
|
|
18
|
-
hasChildren: {
|
|
19
|
-
type: Boolean,
|
|
20
|
-
default: false
|
|
21
|
-
},
|
|
22
|
-
isRoot: {
|
|
23
|
-
type: Boolean,
|
|
24
|
-
default: false
|
|
25
|
-
},
|
|
26
|
-
code: {
|
|
27
|
-
type: Boolean,
|
|
28
|
-
default: false
|
|
29
|
-
},
|
|
30
|
-
undoneTaskCount: {
|
|
31
|
-
type: Number,
|
|
32
|
-
default: 0
|
|
33
|
-
},
|
|
34
|
-
unreadTaskCount: {
|
|
35
|
-
type: Number,
|
|
36
|
-
default: 0
|
|
37
|
-
},
|
|
38
|
-
menuLayer: {
|
|
39
|
-
type: Number,
|
|
40
|
-
default: null
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
render(props) {
|
|
44
|
-
const { title, hasChildren, isRoot, code } = props
|
|
45
|
-
// alert('undoneTaskCount=='+ this.undoneTaskCount+',code='+code)
|
|
46
|
-
const icon = props.icon
|
|
47
|
-
const menuLayer = props.menuLayer
|
|
48
|
-
const vnodes = []
|
|
49
|
-
// let iconsData = [h(SvgIcon,{'icon-class': 'meun_post' })]
|
|
50
|
-
let iconsData = [h('i', { class: 'amb-iconfont amb-icon-meun_post' })]
|
|
51
|
-
if (icon) {
|
|
52
|
-
iconsData = [h(SuperIcon, { iconValue: icon })]
|
|
53
|
-
}
|
|
54
|
-
let titleClass = ['smb-sidebar-menu-item-title']
|
|
55
|
-
if(!menuLayer || menuLayer <= 2) {
|
|
56
|
-
vnodes.push(h('div', { class: ['smb-sidebar-menu-item-icon'] }, iconsData))
|
|
57
|
-
} else {
|
|
58
|
-
vnodes.push(h('div', { class: ['smb-sidebar-menu-item-no-icon'] }))
|
|
59
|
-
titleClass.push('smb-sidebar-menu-item-no-icon-title')
|
|
60
|
-
}
|
|
61
|
-
if (title) {
|
|
62
|
-
if (isRoot) {
|
|
63
|
-
// 是否是根目录,没有子菜单时
|
|
64
|
-
vnodes.push(
|
|
65
|
-
h('div', { class: titleClass }, [
|
|
66
|
-
h(
|
|
67
|
-
'div',
|
|
68
|
-
{
|
|
69
|
-
title: title
|
|
70
|
-
},
|
|
71
|
-
title
|
|
72
|
-
)
|
|
73
|
-
])
|
|
74
|
-
)
|
|
75
|
-
} else if (code === 'undoneTask') {
|
|
76
|
-
// 有子菜单时
|
|
77
|
-
vnodes.push(
|
|
78
|
-
h('div', { class: titleClass }, [
|
|
79
|
-
h(
|
|
80
|
-
'div',
|
|
81
|
-
{
|
|
82
|
-
title: title
|
|
83
|
-
},
|
|
84
|
-
[h(ElBadge, { value: this.undoneTaskCount, style: { display: 'inline' } }, title)]
|
|
85
|
-
)
|
|
86
|
-
])
|
|
87
|
-
)
|
|
88
|
-
} else if (code === 'unreadTask') {
|
|
89
|
-
// 有子菜单时
|
|
90
|
-
vnodes.push(
|
|
91
|
-
h('div', { class: titleClass }, [
|
|
92
|
-
h(
|
|
93
|
-
'div',
|
|
94
|
-
{
|
|
95
|
-
title: title
|
|
96
|
-
},
|
|
97
|
-
[h(ElBadge, { value: this.unreadTaskCount, style: { display: 'inline' } }, title)]
|
|
98
|
-
)
|
|
99
|
-
])
|
|
100
|
-
)
|
|
101
|
-
} else {
|
|
102
|
-
// 有子菜单时
|
|
103
|
-
vnodes.push(
|
|
104
|
-
h('div', { class: titleClass }, [
|
|
105
|
-
h(
|
|
106
|
-
'div',
|
|
107
|
-
{
|
|
108
|
-
title: title
|
|
109
|
-
},
|
|
110
|
-
title
|
|
111
|
-
)
|
|
112
|
-
])
|
|
113
|
-
)
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
return vnodes
|
|
117
|
-
}
|
|
118
|
-
})
|
|
119
|
-
</script>
|
|
120
|
-
<style lang="scss" scoped>
|
|
121
|
-
:deep(.super-icon) {
|
|
122
|
-
width: 20px !important;
|
|
123
|
-
height: 20px !important;
|
|
124
|
-
}
|
|
125
|
-
</style>
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div>
|
|
3
|
-
<!-- eslint-disable vue/require-component-is-->
|
|
4
|
-
<!-- <a v-if="isExter" :href="to.path" target="_blank" rel="noopener">
|
|
5
|
-
<slot />
|
|
6
|
-
</a> -->
|
|
7
|
-
|
|
8
|
-
<router-link v-if="!isOpenNewTab" :to="to">
|
|
9
|
-
<slot />
|
|
10
|
-
</router-link>
|
|
11
|
-
<div v-else>
|
|
12
|
-
<slot />
|
|
13
|
-
</div>
|
|
14
|
-
</div>
|
|
15
|
-
</template>
|
|
16
|
-
|
|
17
|
-
<script>
|
|
18
|
-
export default {
|
|
19
|
-
props: {
|
|
20
|
-
to: {
|
|
21
|
-
type: Object,
|
|
22
|
-
required: true,
|
|
23
|
-
},
|
|
24
|
-
},
|
|
25
|
-
data() {
|
|
26
|
-
const isExter = this.to.isExternal
|
|
27
|
-
const openWay = this.to.openWay
|
|
28
|
-
let isOpenNewTab = false
|
|
29
|
-
if (openWay && openWay === 'NEW_PAGE_OPEN') {
|
|
30
|
-
isOpenNewTab = true
|
|
31
|
-
}
|
|
32
|
-
return {
|
|
33
|
-
isExter,
|
|
34
|
-
isOpenNewTab,
|
|
35
|
-
}
|
|
36
|
-
},
|
|
37
|
-
}
|
|
38
|
-
</script>
|
|
@@ -1,333 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="menu-wrapper">
|
|
3
|
-
<template v-if="!item.children || item.children.length === 0">
|
|
4
|
-
<app-link :to="toPath(item)" @click="clickMenu(toPath(item))">
|
|
5
|
-
<el-menu-item
|
|
6
|
-
:index="item.code + '~~' + item.i18nValue"
|
|
7
|
-
class="smb-sidebar-menu-item"
|
|
8
|
-
:class="{ 'submenu-title-noDropdown': !isNest }"
|
|
9
|
-
>
|
|
10
|
-
<item
|
|
11
|
-
:menu-layer="item.layer"
|
|
12
|
-
:icon="item.iconName"
|
|
13
|
-
:title="getI18nName(item)"
|
|
14
|
-
:is-root="true"
|
|
15
|
-
/>
|
|
16
|
-
</el-menu-item>
|
|
17
|
-
</app-link>
|
|
18
|
-
</template>
|
|
19
|
-
|
|
20
|
-
<el-sub-menu v-else :index="item.code + '~~' + item.i18nValue" class="smb-sidebar-menu-item">
|
|
21
|
-
<template v-slot:title>
|
|
22
|
-
<item
|
|
23
|
-
:menu-layer="item.layer"
|
|
24
|
-
:icon="item.iconName"
|
|
25
|
-
:title="getI18nName(item)"
|
|
26
|
-
:has-children="item.children.length > 0 ? true : false"
|
|
27
|
-
/>
|
|
28
|
-
</template>
|
|
29
|
-
|
|
30
|
-
<template v-for="child in item.children">
|
|
31
|
-
<sidebar-item
|
|
32
|
-
:key="child.code"
|
|
33
|
-
v-if="child.children && child.children.length > 0"
|
|
34
|
-
:is-nest="true"
|
|
35
|
-
:item="child"
|
|
36
|
-
class="nest-menu smb-sidebar-menu-item"
|
|
37
|
-
/>
|
|
38
|
-
<app-link v-else-if="hasLoad" :key="child.code" :to="toPath(child)" @click="clickMenu(toPath(child))">
|
|
39
|
-
<el-menu-item :index="child.code + '~~' + child.i18nValue" class="smb-sidebar-menu-item">
|
|
40
|
-
<item :menu-layer="child.layer" :undone-task-count="undoneTaskCount" :unread-task-count="unreadTaskCount" :code="child.code" :icon="child.iconName" :title="getI18nName(child)" />
|
|
41
|
-
</el-menu-item>
|
|
42
|
-
</app-link>
|
|
43
|
-
</template>
|
|
44
|
-
</el-sub-menu>
|
|
45
|
-
</div>
|
|
46
|
-
</template>
|
|
47
|
-
|
|
48
|
-
<script>
|
|
49
|
-
import Item from "./Item.vue";
|
|
50
|
-
import AppLink from "./Link.vue";
|
|
51
|
-
import * as Vue from "vue";
|
|
52
|
-
import { getI18nName } from "../../../../utils/menu";
|
|
53
|
-
import tabJs from "../../../../api/tab";
|
|
54
|
-
import { getSystemCode } from "../../../../utils/permissionAuth";
|
|
55
|
-
import authApi from "../../../../utils/auth-api";
|
|
56
|
-
import { getSystemFrontendUrl } from '../../../../utils/common-util';
|
|
57
|
-
|
|
58
|
-
export default {
|
|
59
|
-
name: "SidebarItem",
|
|
60
|
-
components: { Item, AppLink },
|
|
61
|
-
props: {
|
|
62
|
-
// route object
|
|
63
|
-
item: {
|
|
64
|
-
type: Object,
|
|
65
|
-
required: true,
|
|
66
|
-
},
|
|
67
|
-
isNest: {
|
|
68
|
-
type: Boolean,
|
|
69
|
-
default: false,
|
|
70
|
-
},
|
|
71
|
-
basePath: {
|
|
72
|
-
type: String,
|
|
73
|
-
default: "",
|
|
74
|
-
}
|
|
75
|
-
},
|
|
76
|
-
data() {
|
|
77
|
-
let frontendUrlKey = '_PLAT_FORM_FRONTEND_URL'
|
|
78
|
-
let devpJWTKey = '_devpJWT'
|
|
79
|
-
let currentRoleKey = '_CURRENT_ROLE'
|
|
80
|
-
let isDevp = authApi.isDevpSystem()
|
|
81
|
-
let platFrontUrl
|
|
82
|
-
let devpJWT
|
|
83
|
-
let currentRole
|
|
84
|
-
if(isDevp) {
|
|
85
|
-
// // 开发平台中访问运行平台的菜单需要的参数
|
|
86
|
-
platFrontUrl= authApi.getSessionCache(frontendUrlKey)
|
|
87
|
-
devpJWT= authApi.getSessionCache(devpJWTKey)
|
|
88
|
-
currentRole= authApi.getSessionCache(currentRoleKey)
|
|
89
|
-
}
|
|
90
|
-
return {
|
|
91
|
-
onlyOneChild: null,
|
|
92
|
-
platFrontUrl,
|
|
93
|
-
devpJWT,
|
|
94
|
-
currentRole,
|
|
95
|
-
devpJWTKey,
|
|
96
|
-
currentRoleKey,
|
|
97
|
-
frontendUrlKey,
|
|
98
|
-
isDevp,
|
|
99
|
-
hasLoad: false,
|
|
100
|
-
undoneTaskCount: 0,
|
|
101
|
-
unreadTaskCount: 0
|
|
102
|
-
};
|
|
103
|
-
},
|
|
104
|
-
created(){
|
|
105
|
-
if (this.item.code === 'myTask'){
|
|
106
|
-
// 我的任务菜单查询待办和待阅数量
|
|
107
|
-
window.$vueApp.config.globalProperties.$http.get(window.$vueApp.config.globalProperties.baseAPI + '/task/tasks/to-do-task-nums').then(res => {
|
|
108
|
-
this.undoneTaskCount = res.undoneTaskCount
|
|
109
|
-
this.unreadTaskCount = res.unreadCount
|
|
110
|
-
this.hasLoad = true
|
|
111
|
-
}).finally(()=>{
|
|
112
|
-
this.hasLoad = true
|
|
113
|
-
})
|
|
114
|
-
} else {
|
|
115
|
-
this.hasLoad = true
|
|
116
|
-
}
|
|
117
|
-
},
|
|
118
|
-
methods: {
|
|
119
|
-
...tabJs,
|
|
120
|
-
hasOneShowingChild(children, parent) {
|
|
121
|
-
if (children && children.length > 0) {
|
|
122
|
-
this.onlyOneChild = children[0];
|
|
123
|
-
}
|
|
124
|
-
// When there is only one child router, the child router is displayed by default
|
|
125
|
-
if (children.length === 1) {
|
|
126
|
-
return true;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
// Show parent if there are no child router to display
|
|
130
|
-
if (!children || children.length === 0) {
|
|
131
|
-
// children不存在
|
|
132
|
-
this.onlyOneChild = { ...parent, path: "", noShowingChildren: true };
|
|
133
|
-
return true;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
return false;
|
|
137
|
-
},
|
|
138
|
-
toPath(menu) {
|
|
139
|
-
const toPathObj = {};
|
|
140
|
-
let routePath
|
|
141
|
-
toPathObj.openWay = menu.openWay;
|
|
142
|
-
if (this.isExternalLink(menu.pageType)) {
|
|
143
|
-
routePath = menu.path
|
|
144
|
-
if(!routePath) {
|
|
145
|
-
routePath = ''
|
|
146
|
-
}
|
|
147
|
-
if((routePath.indexOf('http:') < 0 && routePath.indexOf('https:') < 0) && this.platFrontUrl) {
|
|
148
|
-
// 说明不是全路径,需要拼接运行平台前端访问路径
|
|
149
|
-
if(this.platFrontUrl.lastIndexOf('/') === this.platFrontUrl.length - 1) {
|
|
150
|
-
// 去掉最后一个/
|
|
151
|
-
this.platFrontUrl = this.platFrontUrl.substring(0,this.platFrontUrl.length - 1)
|
|
152
|
-
}
|
|
153
|
-
routePath =this.platFrontUrl + routePath
|
|
154
|
-
} else {
|
|
155
|
-
routePath = menu.fullPath
|
|
156
|
-
if(!routePath) {
|
|
157
|
-
routePath = ''
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
routePath = this.getRoutePath(routePath)
|
|
161
|
-
toPathObj.path = "/tab-content-index"
|
|
162
|
-
if(this.isDevp){
|
|
163
|
-
// 如果是开发平台,进入开发平台设置首页
|
|
164
|
-
toPathObj.path = "/devp-project/setting"
|
|
165
|
-
}
|
|
166
|
-
toPathObj.tabPath = routePath
|
|
167
|
-
toPathObj.query = {};
|
|
168
|
-
// toPathObj.query.src = routePath;
|
|
169
|
-
toPathObj.isExternal = true;
|
|
170
|
-
// 如果路径中没有拼系统编码,才需要把系统编码放到参数中
|
|
171
|
-
toPathObj.query.customSystem = getSystemCode();
|
|
172
|
-
toPathObj.query._menuCode = menu.code;
|
|
173
|
-
toPathObj.query._menuName = getI18nName(menu);
|
|
174
|
-
} else if(menu.openWay && menu.openWay === 'NEW_PAGE_OPEN'){
|
|
175
|
-
// 新页签打开菜单时
|
|
176
|
-
routePath = menu.fullPath
|
|
177
|
-
if(routePath.indexOf('http:') < 0 && routePath.indexOf('https:') < 0){
|
|
178
|
-
// 表示不是全路径
|
|
179
|
-
let frontUrl = getSystemFrontendUrl(window.$vueApp.config.globalProperties.frontUrl)
|
|
180
|
-
if(frontUrl.lastIndexOf("/") < frontUrl.length -1 ){
|
|
181
|
-
// 表示最后不是斜线结尾的,需要添加斜线结尾
|
|
182
|
-
frontUrl = frontUrl + '/'
|
|
183
|
-
}
|
|
184
|
-
routePath = frontUrl + "#" + routePath
|
|
185
|
-
}
|
|
186
|
-
toPathObj.query = {}
|
|
187
|
-
toPathObj.query._menuCode = menu.code;
|
|
188
|
-
toPathObj.path=routePath
|
|
189
|
-
}else{
|
|
190
|
-
routePath = menu.fullPath;
|
|
191
|
-
if(!routePath) {
|
|
192
|
-
routePath = ''
|
|
193
|
-
}
|
|
194
|
-
if (routePath.indexOf("?") > 0) {
|
|
195
|
-
routePath += "&"
|
|
196
|
-
} else {
|
|
197
|
-
routePath += "?"
|
|
198
|
-
}
|
|
199
|
-
routePath = routePath + '_isNeedMenu_=false'
|
|
200
|
-
toPathObj.path = "/tab-content-index";
|
|
201
|
-
if(this.isDevp){
|
|
202
|
-
// 如果是开发平台,进入开发平台设置首页
|
|
203
|
-
toPathObj.path = "/devp-project/setting"
|
|
204
|
-
}
|
|
205
|
-
toPathObj.tabPath = routePath;
|
|
206
|
-
toPathObj.query = {};
|
|
207
|
-
toPathObj.query.customSystem = getSystemCode();
|
|
208
|
-
toPathObj.query._menuCode = menu.code;
|
|
209
|
-
toPathObj.query._menuName = getI18nName(menu);
|
|
210
|
-
}
|
|
211
|
-
return toPathObj;
|
|
212
|
-
},
|
|
213
|
-
getRoutePath(routePath){
|
|
214
|
-
if (routePath.indexOf("?") > 0) {
|
|
215
|
-
routePath += "&"
|
|
216
|
-
} else {
|
|
217
|
-
routePath += "?"
|
|
218
|
-
}
|
|
219
|
-
routePath = routePath + '_isNeedMenu_=false'
|
|
220
|
-
if (this.devpJWT) {
|
|
221
|
-
// 开发平台中访问运行平台的菜单需要的参数
|
|
222
|
-
if (routePath.indexOf("?") > 0) {
|
|
223
|
-
routePath += "&"
|
|
224
|
-
} else {
|
|
225
|
-
routePath += "?"
|
|
226
|
-
}
|
|
227
|
-
routePath = routePath + this.devpJWTKey + '=' + this.devpJWT
|
|
228
|
-
}
|
|
229
|
-
if (this.currentRole) {
|
|
230
|
-
// 开发平台中访问运行平台的菜单需要的参数
|
|
231
|
-
if (routePath.indexOf("?") > 0) {
|
|
232
|
-
routePath += "&"
|
|
233
|
-
} else {
|
|
234
|
-
routePath += "?"
|
|
235
|
-
}
|
|
236
|
-
routePath = routePath + this.currentRoleKey + '=' + this.currentRole
|
|
237
|
-
}
|
|
238
|
-
return routePath
|
|
239
|
-
},
|
|
240
|
-
isExternalLink(pageType) {
|
|
241
|
-
if (pageType && pageType === "iframe") {
|
|
242
|
-
return true;
|
|
243
|
-
}
|
|
244
|
-
return false;
|
|
245
|
-
},
|
|
246
|
-
clickMenu(toPathObj) {
|
|
247
|
-
if (
|
|
248
|
-
toPathObj.openWay &&
|
|
249
|
-
toPathObj.openWay === "NEW_PAGE_OPEN"
|
|
250
|
-
) {
|
|
251
|
-
// 新页签打开菜单
|
|
252
|
-
if(toPathObj.query && toPathObj.query.src){
|
|
253
|
-
let url = toPathObj.query.src;
|
|
254
|
-
if (url && url.indexOf("?") > 0) {
|
|
255
|
-
url += "&";
|
|
256
|
-
} else {
|
|
257
|
-
url += "?";
|
|
258
|
-
}
|
|
259
|
-
if (toPathObj.query.customSystem) {
|
|
260
|
-
url += "customSystem=" + toPathObj.query.customSystem;
|
|
261
|
-
}
|
|
262
|
-
if (toPathObj.query._menuCode) {
|
|
263
|
-
url += "_menuCode=" + toPathObj.query._menuCode;
|
|
264
|
-
}
|
|
265
|
-
if (toPathObj.query._menuCode) {
|
|
266
|
-
url += "_menuName=" + toPathObj.query._menuName;
|
|
267
|
-
}
|
|
268
|
-
window.open(url, toPathObj.query._menuCode)
|
|
269
|
-
} else {
|
|
270
|
-
const url = toPathObj.path;
|
|
271
|
-
window.open(url, toPathObj.query._menuCode)
|
|
272
|
-
}
|
|
273
|
-
} else {
|
|
274
|
-
// 刷新页签打开菜单
|
|
275
|
-
this.addTabs(
|
|
276
|
-
toPathObj.query,
|
|
277
|
-
this.$store.state.tabContent.openTab,
|
|
278
|
-
toPathObj.tabPath
|
|
279
|
-
);
|
|
280
|
-
}
|
|
281
|
-
},
|
|
282
|
-
getI18nName(menu) {
|
|
283
|
-
return getI18nName(menu);
|
|
284
|
-
},
|
|
285
|
-
},
|
|
286
|
-
};
|
|
287
|
-
</script>
|
|
288
|
-
|
|
289
|
-
<style lang="scss" scoped>
|
|
290
|
-
.smb-sidebar-menu-item {
|
|
291
|
-
position: relative;
|
|
292
|
-
--el-menu-item-height: 45px;
|
|
293
|
-
--el-menu-sub-item-height: 45px;
|
|
294
|
-
&.el-menu-item, &.el-sub-menu {
|
|
295
|
-
padding: 0 !important;
|
|
296
|
-
&:not(:has(> .el-tooltip__trigger)) {
|
|
297
|
-
display: flex;
|
|
298
|
-
flex-direction: row;
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
|
-
& > :deep(.el-tooltip__trigger) {
|
|
302
|
-
display: flex;
|
|
303
|
-
flex-direction: row;
|
|
304
|
-
padding: 0 !important;
|
|
305
|
-
}
|
|
306
|
-
:deep(.smb-sidebar-menu-item-icon) {
|
|
307
|
-
display: flex;
|
|
308
|
-
align-items: center;
|
|
309
|
-
justify-content: center;
|
|
310
|
-
width: var(--admin-layout-left-menu-collapse, 54px);
|
|
311
|
-
font-size: 16px;
|
|
312
|
-
}
|
|
313
|
-
:deep(.smb-sidebar-menu-item-no-icon) {
|
|
314
|
-
width: 20px;
|
|
315
|
-
}
|
|
316
|
-
:deep(.smb-sidebar-menu-item-title) {
|
|
317
|
-
flex: 0 0 calc(100% - var(--admin-layout-left-menu-collapse, 54px) - 35px);
|
|
318
|
-
overflow: hidden;
|
|
319
|
-
white-space: nowrap;
|
|
320
|
-
overflow: hidden;
|
|
321
|
-
text-overflow: ellipsis;
|
|
322
|
-
& > div {
|
|
323
|
-
overflow: hidden;
|
|
324
|
-
white-space: nowrap;
|
|
325
|
-
overflow: hidden;
|
|
326
|
-
text-overflow: ellipsis;
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
:deep(.smb-sidebar-menu-item-no-icon-title) {
|
|
330
|
-
flex: 0 0 calc(100% - 20px - 20px);
|
|
331
|
-
}
|
|
332
|
-
}
|
|
333
|
-
</style>
|