agilebuilder-ui 1.1.65-tmp30 → 1.1.65-tmp32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/chat-embed/src/index.vue.mjs +1 -1
- package/es/chat-embed/src/index.vue2.mjs +104 -100
- package/es/chat-embed/src/voice/js/crypto-js.mjs +46 -50
- package/es/chat-embed/src/voice/voice.vue.mjs +8 -11
- package/es/date-picker-range/index.vue.mjs +1 -1
- package/es/date-picker-range/index.vue2.mjs +41 -33
- package/es/department-tree-inline/src/department-tree-service.mjs +0 -1
- package/es/department-user-tree-inline/src/department-user-multiple-tree-inline.vue.mjs +14 -11
- package/es/department-user-tree-inline/src/department-user-single-tree-inline.vue.mjs +6 -6
- package/es/department-user-tree-inline/src/department-user-tree-multi-service.mjs +19 -20
- package/es/department-user-tree-inline/src/department-user-tree-single-service.mjs +0 -1
- package/es/department-user-tree-inline/src/search-result.vue.mjs +4 -4
- package/es/department-user-tree-mobile/src/department-user-tree-inline-app.vue.mjs +2 -2
- package/es/dynamic-source-select/src/dynamic-source-select.vue.mjs +86 -85
- package/es/fs-preview/src/fs-preview.vue.mjs +73 -59
- package/es/fs-upload/src/fs-upload-multi.vue.mjs +3 -3
- package/es/fs-upload-list/src/fs-upload-list.vue.mjs +5 -6
- package/es/fs-upload-new/src/file-upload-mobile/file-upload-app.vue.mjs +15 -17
- package/es/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue.mjs +19 -19
- package/es/fs-upload-new/src/file-upload-mobile/file-upload-component.vue2.mjs +2 -2
- package/es/fs-upload-new/src/fs-preview-new.vue.mjs +1 -1
- package/es/fs-upload-new/src/fs-preview-new.vue2.mjs +50 -50
- package/es/i18n-setting/index.mjs +7 -0
- package/es/i18n-setting/src/i18n-setting-dialog.vue.mjs +23 -0
- package/es/i18n-setting/src/i18n-setting.mjs +14 -0
- package/es/i18n-setting/src/index.vue.mjs +47 -0
- package/es/index.mjs +46 -41
- package/es/multipart-upload/src/multipart-upload-form.vue.mjs +5 -5
- package/es/multipart-upload/src/multipart-upload-list.vue.mjs +6 -6
- package/es/organization-input/src/organization-input.vue.mjs +58 -58
- package/es/remove-department/src/remove-dept-service.mjs +4 -5
- package/es/remove-user/src/remove-user-service.mjs +0 -1
- package/es/remove-workgroup/src/remove-workgroup-service.mjs +0 -1
- package/es/rich-editor/index.vue.mjs +43 -84
- package/es/scan-code-input/src/scan-code-input.vue.mjs +1 -1
- package/es/scan-code-input-browser/src/scan-code-input.vue.mjs +20 -9
- package/es/src/api/sso-service.mjs +0 -1
- package/es/src/i18n/langs/cn.mjs +1 -1
- package/es/src/i18n/langs/en.mjs +1 -1
- package/es/src/permission.mjs +7 -10
- package/es/src/router/index.mjs +0 -1
- package/es/src/store/index.mjs +0 -1
- package/es/src/store/modules/app.mjs +0 -1
- package/es/src/utils/common-util.mjs +143 -143
- package/es/src/utils/i18n-util.mjs +32 -30
- package/es/src/utils/iconUtils.mjs +0 -1
- package/es/src/utils/jump-page-utils.mjs +1 -1
- package/es/src/utils/permission.mjs +25 -26
- package/es/src/utils/permissionAuth.mjs +0 -1
- package/es/src/utils/restful-interface-utils.mjs +5 -6
- package/es/src/utils/watermark.mjs +2 -7
- package/es/src/utils/workflow-util.mjs +6 -6
- package/es/src/views/dsc-component/Sidebar/Item.vue.mjs +1 -1
- package/es/src/views/dsc-component/Sidebar/Item.vue2.mjs +1 -1
- package/es/src/views/layout/components/Menubar/Item.vue.mjs +1 -1
- package/es/src/views/layout/components/Menubar/Item.vue2.mjs +8 -8
- package/es/src/views/layout/components/Menubar/SidebarItem.vue.mjs +11 -11
- package/es/style.css +1 -3103
- package/es/super-grid/src/apis.mjs +155 -151
- package/es/super-grid/src/components/mobile-table-card.mjs +14 -10
- package/es/super-grid/src/components/select-input.vue.mjs +66 -66
- package/es/super-grid/src/custom-formatter.mjs +5 -6
- package/es/super-grid/src/dynamic-input.vue.mjs +31 -39
- package/es/super-grid/src/formValidatorUtil.mjs +0 -1
- package/es/super-grid/src/normal-column-content.vue.mjs +1 -2
- package/es/super-grid/src/normal-column.vue.mjs +12 -10
- package/es/super-grid/src/row-operation.vue.mjs +3 -3
- package/es/super-grid/src/search-form-item.vue.mjs +18 -14
- package/es/super-grid/src/search-form-number.vue.mjs +7 -6
- package/es/super-grid/src/search-form-open.vue.mjs +3 -2
- package/es/super-grid/src/search-form-open.vue2.mjs +4 -0
- package/es/super-grid/src/search-form-ordinarySearch.vue.mjs +1 -1
- package/es/super-grid/src/super-grid.vue.mjs +254 -242
- package/es/super-grid/src/utils.mjs +6 -6
- package/es/super-grid/src/view-image-dialog.vue.mjs +5 -5
- package/es/super-nine-grid/src/super-nine-grid.vue.mjs +89 -83
- package/es/utils/utils.mjs +0 -1
- package/es/utils/value-set.mjs +0 -1
- package/es/workflow-history-list/src/workflow-history-list.vue.mjs +11 -10
- package/es/workgroup-tree-inline/src/workgroup-tree-service.mjs +0 -1
- package/es/workgroup-user-tree-inline/src/workgroup-tree-inline-service.mjs +0 -1
- package/es/workgroup-user-tree-mobile/src/workgroup-user-tree-inline-app.vue.mjs +2 -2
- package/package.json +6 -2
- package/src/styles/index.scss +4 -0
- package/src/styles/theme/dark-blue/select.scss +27 -1
- package/src/styles/theme/forest-green/select.scss +27 -1
- package/src/styles/theme/green/select.scss +27 -1
- package/src/styles/theme/ocean-blue/select.scss +27 -1
- package/src/styles/theme/tiffany-blue-mobile/select.scss +29 -2
- package/.eslintrc.cjs +0 -28
- package/.prettierrc.json +0 -12
- package/dist/favicon.svg +0 -29
- package/dist/index.full.min.js +0 -16659
- package/dist/style.css +0 -3104
- package/index.html +0 -19
- package/lib/IntervalSelection/index.cjs +0 -5
- package/lib/IntervalSelection/src/sectionDate.vue.cjs +0 -45
- package/lib/IntervalSelection/src/sectionDate.vue2.cjs +0 -2
- package/lib/_virtual/__vite-browser-external.cjs +0 -2
- package/lib/_virtual/_plugin-vue_export-helper.cjs +0 -7
- package/lib/breadcrumb/index.cjs +0 -5
- package/lib/breadcrumb/src/breadcrumb.vue.cjs +0 -37
- package/lib/breadcrumb/src/breadcrumb.vue2.cjs +0 -2
- package/lib/chat-embed/index.cjs +0 -5
- package/lib/chat-embed/src/chat-addition-data.vue.cjs +0 -5
- package/lib/chat-embed/src/chat-addition-data.vue2.cjs +0 -15
- package/lib/chat-embed/src/chat-addition-data.vue3.cjs +0 -2
- package/lib/chat-embed/src/chat-ai-answer-tip.vue.cjs +0 -5
- package/lib/chat-embed/src/chat-ai-answer-tip.vue2.cjs +0 -26
- package/lib/chat-embed/src/chat-ai-answer-tip.vue3.cjs +0 -2
- package/lib/chat-embed/src/chat-bubble-footer.vue.cjs +0 -5
- package/lib/chat-embed/src/chat-bubble-footer.vue2.cjs +0 -28
- package/lib/chat-embed/src/chat-bubble-footer.vue3.cjs +0 -2
- package/lib/chat-embed/src/chat-embed-message.cjs +0 -16
- package/lib/chat-embed/src/chat-sender.vue.cjs +0 -5
- package/lib/chat-embed/src/chat-sender.vue2.cjs +0 -145
- package/lib/chat-embed/src/chat-sender.vue3.cjs +0 -2
- package/lib/chat-embed/src/components/answer-auto-chart.vue.cjs +0 -5
- package/lib/chat-embed/src/components/answer-auto-chart.vue2.cjs +0 -50
- package/lib/chat-embed/src/components/answer-auto-chart.vue3.cjs +0 -2
- package/lib/chat-embed/src/components/answer-home-chart.vue.cjs +0 -5
- package/lib/chat-embed/src/components/answer-home-chart.vue2.cjs +0 -3
- package/lib/chat-embed/src/components/answer-home-chart.vue3.cjs +0 -2
- package/lib/chat-embed/src/components/answer-interaction-data.vue.cjs +0 -5
- package/lib/chat-embed/src/components/answer-interaction-data.vue2.cjs +0 -107
- package/lib/chat-embed/src/components/answer-interaction-data.vue3.cjs +0 -2
- package/lib/chat-embed/src/components/history-detail.vue.cjs +0 -5
- package/lib/chat-embed/src/components/history-detail.vue2.cjs +0 -50
- package/lib/chat-embed/src/components/history-detail.vue3.cjs +0 -2
- package/lib/chat-embed/src/header.vue.cjs +0 -5
- package/lib/chat-embed/src/header.vue2.cjs +0 -39
- package/lib/chat-embed/src/header.vue3.cjs +0 -2
- package/lib/chat-embed/src/index.vue.cjs +0 -5
- package/lib/chat-embed/src/index.vue2.cjs +0 -281
- package/lib/chat-embed/src/index.vue3.cjs +0 -2
- package/lib/chat-embed/src/recommendation-message.vue.cjs +0 -5
- package/lib/chat-embed/src/recommendation-message.vue2.cjs +0 -8
- package/lib/chat-embed/src/recommendation-message.vue3.cjs +0 -2
- package/lib/chat-embed/src/sidebar-item.vue.cjs +0 -5
- package/lib/chat-embed/src/sidebar-item.vue2.cjs +0 -109
- package/lib/chat-embed/src/sidebar-item.vue3.cjs +0 -2
- package/lib/chat-embed/src/type.cjs +0 -3
- package/lib/chat-embed/src/util/chat-embed-util.cjs +0 -51
- package/lib/chat-embed/src/util/history-message-util.cjs +0 -74
- package/lib/chat-embed/src/util/mcp-utils.cjs +0 -50
- package/lib/chat-embed/src/util/text-file-util.cjs +0 -8
- package/lib/chat-embed/src/voice/index.cjs +0 -5
- package/lib/chat-embed/src/voice/js/crypto-js.cjs +0 -1005
- package/lib/chat-embed/src/voice/js/processor/index.umd.cjs +0 -170
- package/lib/chat-embed/src/voice/js/timer.cjs +0 -8
- package/lib/chat-embed/src/voice/voice.vue.cjs +0 -96
- package/lib/date-picker-range/index.cjs +0 -5
- package/lib/date-picker-range/index.vue.cjs +0 -5
- package/lib/date-picker-range/index.vue2.cjs +0 -89
- package/lib/date-picker-range/index.vue3.cjs +0 -2
- package/lib/department-tree/index.cjs +0 -5
- package/lib/department-tree/src/department-tree.vue.cjs +0 -17
- package/lib/department-tree-inline/index.cjs +0 -5
- package/lib/department-tree-inline/src/department-multi-tree-inline.vue.cjs +0 -81
- package/lib/department-tree-inline/src/department-multi-tree-inline.vue2.cjs +0 -2
- package/lib/department-tree-inline/src/department-single-tree-inline.vue.cjs +0 -54
- package/lib/department-tree-inline/src/department-single-tree-inline.vue2.cjs +0 -2
- package/lib/department-tree-inline/src/department-tree-inline.vue.cjs +0 -12
- package/lib/department-tree-inline/src/department-tree-service.cjs +0 -106
- package/lib/department-tree-inline/src/search-result.vue.cjs +0 -36
- package/lib/department-tree-inline/src/search-result.vue2.cjs +0 -2
- package/lib/department-tree-mobile/index.cjs +0 -5
- package/lib/department-tree-mobile/src/department-tree-app.vue.cjs +0 -13
- package/lib/department-tree-mobile/src/department-tree-app.vue2.cjs +0 -2
- package/lib/department-tree-mobile/src/department-tree-app.vue3.cjs +0 -3
- package/lib/department-tree-mobile/src/department-tree-inline-app.vue.cjs +0 -110
- package/lib/department-tree-mobile/src/department-tree-inline-app.vue2.cjs +0 -3
- package/lib/department-tree-mobile/src/department-tree-service.cjs +0 -47
- package/lib/department-tree-mobile/src/dept-path.vue.cjs +0 -13
- package/lib/department-tree-mobile/src/dept-path.vue2.cjs +0 -3
- package/lib/department-tree-mobile/src/dept-result.vue.cjs +0 -14
- package/lib/department-tree-mobile/src/dept-result.vue2.cjs +0 -3
- package/lib/department-user-tree/index.cjs +0 -5
- package/lib/department-user-tree/src/department-user-multiple-tree.vue.cjs +0 -16
- package/lib/department-user-tree/src/department-user-multiple-tree.vue2.cjs +0 -2
- package/lib/department-user-tree/src/department-user-single-tree.vue.cjs +0 -14
- package/lib/department-user-tree/src/department-user-tree.vue.cjs +0 -21
- package/lib/department-user-tree-inline/index.cjs +0 -5
- package/lib/department-user-tree-inline/src/department-user-multiple-tree-inline.vue.cjs +0 -154
- package/lib/department-user-tree-inline/src/department-user-multiple-tree-inline.vue2.cjs +0 -2
- package/lib/department-user-tree-inline/src/department-user-single-tree-inline.vue.cjs +0 -57
- package/lib/department-user-tree-inline/src/department-user-single-tree-inline.vue2.cjs +0 -2
- package/lib/department-user-tree-inline/src/department-user-tree-inline.vue.cjs +0 -11
- package/lib/department-user-tree-inline/src/department-user-tree-multi-service.cjs +0 -78
- package/lib/department-user-tree-inline/src/department-user-tree-single-service.cjs +0 -51
- package/lib/department-user-tree-inline/src/group-user/group-input.vue.cjs +0 -34
- package/lib/department-user-tree-inline/src/group-user/group-list.vue.cjs +0 -22
- package/lib/department-user-tree-inline/src/group-user/group-user.vue.cjs +0 -10
- package/lib/department-user-tree-inline/src/group-user-multiple-tree.vue.cjs +0 -72
- package/lib/department-user-tree-inline/src/group-user-single-tree.vue.cjs +0 -28
- package/lib/department-user-tree-inline/src/group-user-tree-service.cjs +0 -33
- package/lib/department-user-tree-inline/src/search-result.vue.cjs +0 -38
- package/lib/department-user-tree-inline/src/search-result.vue2.cjs +0 -2
- package/lib/department-user-tree-mobile/index.cjs +0 -5
- package/lib/department-user-tree-mobile/src/department-user-tree-app.vue.cjs +0 -13
- package/lib/department-user-tree-mobile/src/department-user-tree-app.vue2.cjs +0 -2
- package/lib/department-user-tree-mobile/src/department-user-tree-app.vue3.cjs +0 -3
- package/lib/department-user-tree-mobile/src/department-user-tree-inline-app.vue.cjs +0 -124
- package/lib/department-user-tree-mobile/src/department-user-tree-inline-app.vue2.cjs +0 -3
- package/lib/department-user-tree-mobile/src/department-user-tree-service.cjs +0 -28
- package/lib/department-user-tree-mobile/src/dept-path.vue.cjs +0 -13
- package/lib/department-user-tree-mobile/src/dept-path.vue2.cjs +0 -3
- package/lib/department-user-tree-mobile/src/dept-result.vue.cjs +0 -14
- package/lib/department-user-tree-mobile/src/dept-result.vue2.cjs +0 -3
- package/lib/directives/prevent-reclick.cjs +0 -14
- package/lib/dynamic-source-select/index.cjs +0 -5
- package/lib/dynamic-source-select/src/dynamic-source-select-service.cjs +0 -30
- package/lib/dynamic-source-select/src/dynamic-source-select.vue.cjs +0 -266
- package/lib/dynamic-source-select/src/dynamic-source-select.vue2.cjs +0 -2
- package/lib/dynamic-source-select/src/dynamic-source-select.vue3.cjs +0 -2
- package/lib/dynamic-source-select/src/events.cjs +0 -28
- package/lib/empty-state/index.vue.cjs +0 -6
- package/lib/empty-state/index.vue2.cjs +0 -3
- package/lib/favicon.svg +0 -29
- package/lib/fs-preview/index.cjs +0 -5
- package/lib/fs-preview/src/fs-preview.vue.cjs +0 -119
- package/lib/fs-preview/src/fs-preview.vue2.cjs +0 -2
- package/lib/fs-upload/index.cjs +0 -5
- package/lib/fs-upload/src/fs-upload-multi.vue.cjs +0 -63
- package/lib/fs-upload/src/fs-upload-single.vue.cjs +0 -64
- package/lib/fs-upload/src/fs-upload.vue.cjs +0 -18
- package/lib/fs-upload/src/see-big-picture.vue.cjs +0 -9
- package/lib/fs-upload-list/index.cjs +0 -5
- package/lib/fs-upload-list/src/fs-upload-list.vue.cjs +0 -91
- package/lib/fs-upload-list/src/fs-upload-list.vue2.cjs +0 -2
- package/lib/fs-upload-new/index.cjs +0 -5
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-app.vue.cjs +0 -57
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-app.vue2.cjs +0 -3
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue.cjs +0 -170
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-browser.vue2.cjs +0 -3
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-component.vue.cjs +0 -5
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-component.vue2.cjs +0 -32
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-component.vue3.cjs +0 -2
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-input.vue.cjs +0 -41
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload-input.vue2.cjs +0 -3
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload.vue.cjs +0 -29
- package/lib/fs-upload-new/src/file-upload-mobile/file-upload.vue2.cjs +0 -3
- package/lib/fs-upload-new/src/fs-button-upload.vue.cjs +0 -5
- package/lib/fs-upload-new/src/fs-button-upload.vue2.cjs +0 -55
- package/lib/fs-upload-new/src/fs-button-upload.vue3.cjs +0 -2
- package/lib/fs-upload-new/src/fs-drag-upload.vue.cjs +0 -5
- package/lib/fs-upload-new/src/fs-drag-upload.vue2.cjs +0 -55
- package/lib/fs-upload-new/src/fs-drag-upload.vue3.cjs +0 -2
- package/lib/fs-upload-new/src/fs-preview-new.vue.cjs +0 -5
- package/lib/fs-upload-new/src/fs-preview-new.vue2.cjs +0 -84
- package/lib/fs-upload-new/src/fs-preview-new.vue3.cjs +0 -2
- package/lib/fs-upload-new/src/fs-preview-new.vue4.cjs +0 -2
- package/lib/fs-upload-new/src/fs-upload-new.vue.cjs +0 -54
- package/lib/fs-upload-new/src/fs-upload-new.vue2.cjs +0 -3
- package/lib/hamburger/index.cjs +0 -5
- package/lib/hamburger/src/hamburger.vue.cjs +0 -11
- package/lib/hamburger/src/hamburger.vue2.cjs +0 -2
- package/lib/index.cjs +0 -41
- package/lib/json-view/json-view-dialog.vue.cjs +0 -16
- package/lib/json-view/json-view-dialog.vue2.cjs +0 -3
- package/lib/json-view/json-view.vue.cjs +0 -3
- package/lib/json-view/json-view.vue2.cjs +0 -32
- package/lib/multipart-upload/index.cjs +0 -5
- package/lib/multipart-upload/src/index.vue.cjs +0 -10
- package/lib/multipart-upload/src/multipart-upload-form.vue.cjs +0 -73
- package/lib/multipart-upload/src/multipart-upload-list.vue.cjs +0 -96
- package/lib/organization-input/index.cjs +0 -5
- package/lib/organization-input/src/organization-input.vue.cjs +0 -218
- package/lib/organization-input/src/organization-input.vue2.cjs +0 -2
- package/lib/plugins/export-data-new.cjs +0 -229
- package/lib/plugins/export-data.cjs +0 -173
- package/lib/plugins/index.cjs +0 -5
- package/lib/plugins/public-method.cjs +0 -13
- package/lib/remove-department/index.cjs +0 -5
- package/lib/remove-department/src/remove-department.vue.cjs +0 -27
- package/lib/remove-department/src/remove-dept-service.cjs +0 -12
- package/lib/remove-user/index.cjs +0 -5
- package/lib/remove-user/src/remove-user-service.cjs +0 -12
- package/lib/remove-user/src/remove-user.vue.cjs +0 -29
- package/lib/remove-workgroup/index.cjs +0 -5
- package/lib/remove-workgroup/src/remove-workgroup-service.cjs +0 -12
- package/lib/remove-workgroup/src/remove-workgroup.vue.cjs +0 -25
- package/lib/rich-editor/index.cjs +0 -5
- package/lib/rich-editor/index.vue.cjs +0 -67
- package/lib/rich-editor/tinymce/zh_CN.cjs +0 -2
- package/lib/rich-editor/viewer.vue.cjs +0 -24
- package/lib/row-form/index.cjs +0 -5
- package/lib/row-form/index.vue.cjs +0 -5
- package/lib/row-form/index.vue2.cjs +0 -56
- package/lib/row-form/index.vue3.cjs +0 -2
- package/lib/row-form/operation.vue.cjs +0 -28
- package/lib/row-form/operation.vue2.cjs +0 -3
- package/lib/scan-code-input/index.cjs +0 -5
- package/lib/scan-code-input/src/events.cjs +0 -13
- package/lib/scan-code-input/src/scan-code-input.vue.cjs +0 -26
- package/lib/scan-code-input-browser/index.cjs +0 -5
- package/lib/scan-code-input-browser/src/scan-code-input.vue.cjs +0 -34
- package/lib/secret-info/index.cjs +0 -5
- package/lib/secret-info/index.vue.cjs +0 -13
- package/lib/src/api/sso-service.cjs +0 -55
- package/lib/src/api/tab.cjs +0 -14
- package/lib/src/assets/401/401.gif.cjs +0 -2
- package/lib/src/assets/404/404-cloud.png.cjs +0 -2
- package/lib/src/assets/404/404.png.cjs +0 -2
- package/lib/src/assets/chat-embed/robot.gif.cjs +0 -2
- package/lib/src/assets/chat-embed/robot.svg.cjs +0 -2
- package/lib/src/assets/nonemessage.png.cjs +0 -2
- package/lib/src/components/Affix/index.vue.cjs +0 -5
- package/lib/src/components/Affix/index.vue2.cjs +0 -81
- package/lib/src/components/Affix/index.vue3.cjs +0 -2
- package/lib/src/components/Card/index.cjs +0 -46
- package/lib/src/components/Scrollbar/index.vue.cjs +0 -48
- package/lib/src/components/Scrollbar/index.vue2.cjs +0 -2
- package/lib/src/directives/permission/index.cjs +0 -5
- package/lib/src/directives/permission/permission.cjs +0 -9
- package/lib/src/i18n/i18n.cjs +0 -3
- package/lib/src/i18n/langs/cn.cjs +0 -2
- package/lib/src/i18n/langs/en.cjs +0 -2
- package/lib/src/mixins/resizeMixin.cjs +0 -20
- package/lib/src/permission.cjs +0 -76
- package/lib/src/router/index.cjs +0 -16
- package/lib/src/store/getters.cjs +0 -2
- package/lib/src/store/index.cjs +0 -16
- package/lib/src/store/modules/app.cjs +0 -40
- package/lib/src/store/modules/chat-ai-store.cjs +0 -33
- package/lib/src/store/modules/permission.cjs +0 -30
- package/lib/src/store/modules/system.cjs +0 -10
- package/lib/src/store/modules/tab-content.cjs +0 -18
- package/lib/src/store/modules/table.cjs +0 -17
- package/lib/src/store/modules/user.cjs +0 -133
- package/lib/src/utils/auth-api.cjs +0 -132
- package/lib/src/utils/auth.cjs +0 -86
- package/lib/src/utils/calculator/calculator-factory-wf.cjs +0 -166
- package/lib/src/utils/calculator/calculator-factory.cjs +0 -92
- package/lib/src/utils/calculator/calculator-util.cjs +0 -53
- package/lib/src/utils/chat-ai-util.cjs +0 -26
- package/lib/src/utils/common-util.cjs +0 -362
- package/lib/src/utils/eventBus.cjs +0 -3
- package/lib/src/utils/file-util.cjs +0 -22
- package/lib/src/utils/global-prop.cjs +0 -22
- package/lib/src/utils/guid.cjs +0 -7
- package/lib/src/utils/i18n-util.cjs +0 -62
- package/lib/src/utils/iconUtils.cjs +0 -19
- package/lib/src/utils/index.cjs +0 -32
- package/lib/src/utils/insert_css.cjs +0 -18
- package/lib/src/utils/json-util.cjs +0 -45
- package/lib/src/utils/jump-page-utils.cjs +0 -256
- package/lib/src/utils/local-storage.cjs +0 -18
- package/lib/src/utils/menu.cjs +0 -13
- package/lib/src/utils/permission.cjs +0 -41
- package/lib/src/utils/permissionAuth.cjs +0 -120
- package/lib/src/utils/range-selector.cjs +0 -101
- package/lib/src/utils/request.cjs +0 -131
- package/lib/src/utils/resize.cjs +0 -11
- package/lib/src/utils/restful-interface-utils.cjs +0 -15
- package/lib/src/utils/util.cjs +0 -341
- package/lib/src/utils/validate.cjs +0 -12
- package/lib/src/utils/voice-setting-cache.cjs +0 -199
- package/lib/src/utils/watermark-cache.cjs +0 -10
- package/lib/src/utils/watermark.cjs +0 -33
- package/lib/src/utils/workflow-util.cjs +0 -41
- package/lib/src/views/dsc-component/Sidebar/Item.vue.cjs +0 -5
- package/lib/src/views/dsc-component/Sidebar/Item.vue2.cjs +0 -9
- package/lib/src/views/dsc-component/Sidebar/Item.vue3.cjs +0 -2
- package/lib/src/views/dsc-component/Sidebar/Link.vue.cjs +0 -11
- package/lib/src/views/dsc-component/Sidebar/SidebarItem.vue.cjs +0 -46
- package/lib/src/views/dsc-component/Sidebar/SidebarItem.vue2.cjs +0 -2
- package/lib/src/views/dsc-component/Sidebar/index.vue.cjs +0 -103
- package/lib/src/views/dsc-component/tabs/tab-content.vue.cjs +0 -61
- package/lib/src/views/dsc-component/tabs/tab-content.vue2.cjs +0 -2
- package/lib/src/views/dsc-component/tabs/tab-content.vue3.cjs +0 -2
- package/lib/src/views/error-page/401.vue.cjs +0 -11
- package/lib/src/views/error-page/401.vue2.cjs +0 -2
- package/lib/src/views/error-page/404.vue.cjs +0 -8
- package/lib/src/views/error-page/404.vue2.cjs +0 -2
- package/lib/src/views/layout/EmptyLayout.vue.cjs +0 -7
- package/lib/src/views/layout/Layout.vue.cjs +0 -21
- package/lib/src/views/layout/Layout.vue2.cjs +0 -2
- package/lib/src/views/layout/NewLayout.vue.cjs +0 -7
- package/lib/src/views/layout/components/AppMain.vue.cjs +0 -11
- package/lib/src/views/layout/components/AppMain.vue2.cjs +0 -2
- package/lib/src/views/layout/components/Breadcrumb/index.vue.cjs +0 -56
- package/lib/src/views/layout/components/Breadcrumb/index.vue2.cjs +0 -2
- package/lib/src/views/layout/components/Menubar/Item.vue.cjs +0 -5
- package/lib/src/views/layout/components/Menubar/Item.vue2.cjs +0 -13
- package/lib/src/views/layout/components/Menubar/Item.vue3.cjs +0 -2
- package/lib/src/views/layout/components/Menubar/Link.vue.cjs +0 -11
- package/lib/src/views/layout/components/Menubar/SidebarItem.vue.cjs +0 -47
- package/lib/src/views/layout/components/Menubar/SidebarItem.vue2.cjs +0 -2
- package/lib/src/views/layout/components/Menubar/index.vue.cjs +0 -79
- package/lib/src/views/layout/components/Sidebar/Item.vue.cjs +0 -7
- package/lib/src/views/layout/components/Sidebar/Item.vue2.cjs +0 -3
- package/lib/src/views/layout/components/Sidebar/Link.vue.cjs +0 -9
- package/lib/src/views/layout/components/Sidebar/SidebarItem.vue.cjs +0 -16
- package/lib/src/views/layout/components/Sidebar/SidebarItem.vue2.cjs +0 -2
- package/lib/src/views/layout/components/Sidebar/index.vue.cjs +0 -51
- package/lib/src/views/layout/components/iframe-page.vue.cjs +0 -12
- package/lib/src/views/layout/components/iframe-page.vue2.cjs +0 -2
- package/lib/src/views/layout/components/tabs/tab-content.vue.cjs +0 -60
- package/lib/src/views/layout/components/tabs/tab-content.vue2.cjs +0 -2
- package/lib/src/views/layout/components/tabs/tab-content.vue3.cjs +0 -2
- package/lib/src/views/layout/mixin/ResizeHandler.cjs +0 -14
- package/lib/src/views/layout/tab-content-iframe-index.vue.cjs +0 -12
- package/lib/src/views/layout/tab-content-iframe-index.vue2.cjs +0 -2
- package/lib/src/views/layout/tab-content-index.vue.cjs +0 -22
- package/lib/src/views/layout/tab-content-index.vue2.cjs +0 -2
- package/lib/src/views/login/authredirect.vue.cjs +0 -6
- package/lib/src/views/redirect/index.vue.cjs +0 -17
- package/lib/src/views/super-icon/index.cjs +0 -5
- package/lib/src/views/super-icon/src/index.vue.cjs +0 -5
- package/lib/src/views/super-icon/src/index.vue2.cjs +0 -10
- package/lib/src/views/super-icon/src/index.vue3.cjs +0 -2
- package/lib/src/views/svg-icon/src/svg-icon.vue.cjs +0 -2
- package/lib/src/views/svg-icon/src/svg-icon.vue2.cjs +0 -12
- package/lib/src/views/wf-history/tache-subprocess-history.vue.cjs +0 -12
- package/lib/src/views/wf-history/tache-subprocess-history.vue2.cjs +0 -2
- package/lib/style.css +0 -3103
- package/lib/super-grid/index.cjs +0 -5
- package/lib/super-grid/src/apis.cjs +0 -477
- package/lib/super-grid/src/columns-config.vue.cjs +0 -76
- package/lib/super-grid/src/components/grid-icon.vue.cjs +0 -39
- package/lib/super-grid/src/components/grid-radio-input.vue.cjs +0 -22
- package/lib/super-grid/src/components/grid-radio-input.vue2.cjs +0 -3
- package/lib/super-grid/src/components/mobile-table-card.cjs +0 -99
- package/lib/super-grid/src/components/select-input.vue.cjs +0 -141
- package/lib/super-grid/src/components/select-input.vue2.cjs +0 -3
- package/lib/super-grid/src/custom-formatter.cjs +0 -163
- package/lib/super-grid/src/dynamic-input.vue.cjs +0 -465
- package/lib/super-grid/src/eventBus.cjs +0 -3
- package/lib/super-grid/src/events.cjs +0 -35
- package/lib/super-grid/src/formValidatorUtil.cjs +0 -106
- package/lib/super-grid/src/formatter.cjs +0 -69
- package/lib/super-grid/src/group-column.vue.cjs +0 -19
- package/lib/super-grid/src/header-context-menu.vue.cjs +0 -12
- package/lib/super-grid/src/header-context-menu.vue2.cjs +0 -2
- package/lib/super-grid/src/index-column.vue.cjs +0 -19
- package/lib/super-grid/src/normal-column-content.vue.cjs +0 -303
- package/lib/super-grid/src/normal-column-content.vue2.cjs +0 -2
- package/lib/super-grid/src/normal-column.vue.cjs +0 -90
- package/lib/super-grid/src/normal-column.vue2.cjs +0 -2
- package/lib/super-grid/src/public-methods.cjs +0 -20
- package/lib/super-grid/src/row-detail.vue.cjs +0 -11
- package/lib/super-grid/src/row-operation.vue.cjs +0 -82
- package/lib/super-grid/src/row-operation.vue2.cjs +0 -2
- package/lib/super-grid/src/scan-util.cjs +0 -98
- package/lib/super-grid/src/search-button.vue.cjs +0 -20
- package/lib/super-grid/src/search-condition-input.vue.cjs +0 -13
- package/lib/super-grid/src/search-condition-list.vue.cjs +0 -17
- package/lib/super-grid/src/search-form-advancedQuery.vue.cjs +0 -106
- package/lib/super-grid/src/search-form-advancedQuery.vue2.cjs +0 -2
- package/lib/super-grid/src/search-form-dialog.vue.cjs +0 -23
- package/lib/super-grid/src/search-form-item.vue.cjs +0 -120
- package/lib/super-grid/src/search-form-item.vue2.cjs +0 -2
- package/lib/super-grid/src/search-form-mobile.vue.cjs +0 -32
- package/lib/super-grid/src/search-form-mobile.vue2.cjs +0 -2
- package/lib/super-grid/src/search-form-number.vue.cjs +0 -21
- package/lib/super-grid/src/search-form-open.vue.cjs +0 -46
- package/lib/super-grid/src/search-form-ordinarySearch.vue.cjs +0 -33
- package/lib/super-grid/src/search-form-ordinarySearch.vue2.cjs +0 -2
- package/lib/super-grid/src/search-form.vue.cjs +0 -194
- package/lib/super-grid/src/search-form.vue2.cjs +0 -2
- package/lib/super-grid/src/search-methods.cjs +0 -163
- package/lib/super-grid/src/selection-column.vue.cjs +0 -9
- package/lib/super-grid/src/store.cjs +0 -3
- package/lib/super-grid/src/super-grid-service.cjs +0 -253
- package/lib/super-grid/src/super-grid.vue.cjs +0 -1083
- package/lib/super-grid/src/super-grid.vue2.cjs +0 -2
- package/lib/super-grid/src/utils.cjs +0 -373
- package/lib/super-grid/src/view-image-dialog.vue.cjs +0 -60
- package/lib/super-icon/index.cjs +0 -5
- package/lib/super-icon/src/index.vue.cjs +0 -5
- package/lib/super-icon/src/index.vue2.cjs +0 -10
- package/lib/super-icon/src/index.vue3.cjs +0 -2
- package/lib/super-nine-grid/index.cjs +0 -5
- package/lib/super-nine-grid/src/apis.cjs +0 -33
- package/lib/super-nine-grid/src/custom-formatter.cjs +0 -33
- package/lib/super-nine-grid/src/formatter.cjs +0 -36
- package/lib/super-nine-grid/src/search-form-number.vue.cjs +0 -9
- package/lib/super-nine-grid/src/search-form.vue.cjs +0 -84
- package/lib/super-nine-grid/src/search-form.vue2.cjs +0 -2
- package/lib/super-nine-grid/src/search-methods.cjs +0 -47
- package/lib/super-nine-grid/src/store.cjs +0 -3
- package/lib/super-nine-grid/src/super-grid-service.cjs +0 -35
- package/lib/super-nine-grid/src/super-nine-grid.vue.cjs +0 -215
- package/lib/super-nine-grid/src/super-nine-grid.vue2.cjs +0 -2
- package/lib/super-nine-grid/src/utils.cjs +0 -36
- package/lib/svg-icon/index.cjs +0 -5
- package/lib/svg-icon/src/svg-icon.vue.cjs +0 -12
- package/lib/svg-icon/src/svg-icon.vue2.cjs +0 -2
- package/lib/utils/gogocodeTransfer.cjs +0 -28
- package/lib/utils/memory-cache-utils.cjs +0 -28
- package/lib/utils/organization.cjs +0 -55
- package/lib/utils/utils.cjs +0 -85
- package/lib/utils/value-set.cjs +0 -92
- package/lib/valid-code/index.cjs +0 -5
- package/lib/valid-code/src/valid-code.vue.cjs +0 -20
- package/lib/valid-code/src/valid-code.vue2.cjs +0 -2
- package/lib/workflow-button/index.cjs +0 -5
- package/lib/workflow-button/src/workflow-button.vue.cjs +0 -80
- package/lib/workflow-history-list/index.cjs +0 -5
- package/lib/workflow-history-list/src/api.cjs +0 -5
- package/lib/workflow-history-list/src/workflow-history-list.vue.cjs +0 -83
- package/lib/workflow-history-list/src/workflow-history-list.vue2.cjs +0 -2
- package/lib/workgroup-tree/index.cjs +0 -5
- package/lib/workgroup-tree/src/workgroup-tree.vue.cjs +0 -17
- package/lib/workgroup-tree-inline/index.cjs +0 -5
- package/lib/workgroup-tree-inline/src/search-result.vue.cjs +0 -35
- package/lib/workgroup-tree-inline/src/search-result.vue2.cjs +0 -2
- package/lib/workgroup-tree-inline/src/workgroup-tree-inline.vue.cjs +0 -119
- package/lib/workgroup-tree-inline/src/workgroup-tree-inline.vue2.cjs +0 -2
- package/lib/workgroup-tree-inline/src/workgroup-tree-service.cjs +0 -33
- package/lib/workgroup-tree-mobile/index.cjs +0 -5
- package/lib/workgroup-tree-mobile/src/dept-result.vue.cjs +0 -14
- package/lib/workgroup-tree-mobile/src/dept-result.vue2.cjs +0 -3
- package/lib/workgroup-tree-mobile/src/workgroup-tree-app.vue.cjs +0 -13
- package/lib/workgroup-tree-mobile/src/workgroup-tree-app.vue2.cjs +0 -2
- package/lib/workgroup-tree-mobile/src/workgroup-tree-app.vue3.cjs +0 -3
- package/lib/workgroup-tree-mobile/src/workgroup-tree-inline-app.vue.cjs +0 -99
- package/lib/workgroup-tree-mobile/src/workgroup-tree-inline-app.vue2.cjs +0 -3
- package/lib/workgroup-tree-mobile/src/workgroup-tree-service.cjs +0 -25
- package/lib/workgroup-user-tree/index.cjs +0 -5
- package/lib/workgroup-user-tree/src/workgroup-user-tree.vue.cjs +0 -17
- package/lib/workgroup-user-tree-inline/index.cjs +0 -5
- package/lib/workgroup-user-tree-inline/src/search-result.vue.cjs +0 -35
- package/lib/workgroup-user-tree-inline/src/search-result.vue2.cjs +0 -2
- package/lib/workgroup-user-tree-inline/src/workgroup-tree-inline-service.cjs +0 -71
- package/lib/workgroup-user-tree-inline/src/workgroup-user-tree-inline.vue.cjs +0 -163
- package/lib/workgroup-user-tree-inline/src/workgroup-user-tree-inline.vue2.cjs +0 -2
- package/lib/workgroup-user-tree-mobile/src/dept-path.vue.cjs +0 -13
- package/lib/workgroup-user-tree-mobile/src/dept-path.vue2.cjs +0 -3
- package/lib/workgroup-user-tree-mobile/src/dept-result.vue.cjs +0 -14
- package/lib/workgroup-user-tree-mobile/src/dept-result.vue2.cjs +0 -3
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue.cjs +0 -13
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue2.cjs +0 -2
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-app.vue3.cjs +0 -3
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-inline-app.vue.cjs +0 -124
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-inline-app.vue2.cjs +0 -3
- package/lib/workgroup-user-tree-mobile/src/workgroup-user-tree-service.cjs +0 -20
- package/lib/year-range-picker/index.cjs +0 -5
- package/lib/year-range-picker/src/year-range-picker.vue.cjs +0 -11
- package/src/api/sso-service.js +0 -222
- package/src/api/tab.js +0 -36
- package/src/assets/401/401.gif +0 -0
- package/src/assets/404/404-cloud.png +0 -0
- package/src/assets/404/404.png +0 -0
- package/src/assets/chat-embed/background.png +0 -0
- package/src/assets/chat-embed/robot.gif +0 -0
- package/src/assets/chat-embed/robot.svg +0 -32
- package/src/assets/cloud.png +0 -0
- package/src/assets/nonemessage.png +0 -0
- package/src/assets/tab-selectWhite.png +0 -0
- package/src/components/Affix/index.vue +0 -272
- package/src/components/Card/index.jsx +0 -227
- package/src/components/Scrollbar/index.vue +0 -224
- package/src/directives/permission/index.js +0 -14
- package/src/directives/permission/permission.js +0 -27
- package/src/i18n/i18n.js +0 -16
- package/src/i18n/langs/cn.js +0 -344
- package/src/i18n/langs/en.js +0 -344
- package/src/index.js +0 -22
- package/src/mixins/resizeMixin.js +0 -49
- package/src/permission.js +0 -252
- package/src/plugins.js +0 -18
- package/src/router/index.js +0 -92
- package/src/store/getters.js +0 -26
- package/src/store/index.js +0 -23
- package/src/store/modules/app.js +0 -96
- package/src/store/modules/chat-ai-store.ts +0 -85
- package/src/store/modules/permission.js +0 -143
- package/src/store/modules/system.js +0 -35
- package/src/store/modules/tab-content.js +0 -42
- package/src/store/modules/table.js +0 -76
- package/src/store/modules/user.js +0 -448
- package/src/utils/auth-api.js +0 -370
- package/src/utils/auth.js +0 -194
- package/src/utils/calculator/calculator-factory-wf.js +0 -465
- package/src/utils/calculator/calculator-factory.js +0 -133
- package/src/utils/calculator/calculator-util.js +0 -184
- package/src/utils/chat-ai-util.ts +0 -41
- package/src/utils/common-util.js +0 -1019
- package/src/utils/dingtalk-util.ts +0 -43
- package/src/utils/eventBus.js +0 -10
- package/src/utils/file-util.ts +0 -42
- package/src/utils/global-prop.ts +0 -44
- package/src/utils/guid.js +0 -13
- package/src/utils/i18n-util.js +0 -145
- package/src/utils/iconUtils.js +0 -37
- package/src/utils/iframe-communicator.js +0 -234
- package/src/utils/index.js +0 -102
- package/src/utils/insert_css.js +0 -47
- package/src/utils/json-util.ts +0 -85
- package/src/utils/jump-page-utils.js +0 -829
- package/src/utils/local-storage.js +0 -33
- package/src/utils/menu.js +0 -19
- package/src/utils/permission.js +0 -126
- package/src/utils/permissionAuth.js +0 -311
- package/src/utils/range-selector.js +0 -204
- package/src/utils/request.js +0 -407
- package/src/utils/resize.js +0 -19
- package/src/utils/restful-interface-utils.js +0 -57
- package/src/utils/util.js +0 -1000
- package/src/utils/validate.js +0 -34
- package/src/utils/voice-setting-cache.js +0 -497
- package/src/utils/watermark-cache.js +0 -13
- package/src/utils/watermark.js +0 -119
- package/src/utils/workflow-util.js +0 -107
- package/src/views/404.vue +0 -248
- package/src/views/dsc-component/Sidebar/Item.vue +0 -95
- package/src/views/dsc-component/Sidebar/Link.vue +0 -38
- package/src/views/dsc-component/Sidebar/SidebarItem.vue +0 -245
- package/src/views/dsc-component/Sidebar/index.vue +0 -258
- package/src/views/dsc-component/tabs/tab-content.vue +0 -230
- package/src/views/error-page/401.vue +0 -106
- package/src/views/error-page/404.vue +0 -248
- package/src/views/layout/EmptyLayout.vue +0 -3
- package/src/views/layout/Layout.vue +0 -85
- package/src/views/layout/NewLayout.vue +0 -18
- package/src/views/layout/components/AppMain.vue +0 -46
- package/src/views/layout/components/Breadcrumb/index.vue +0 -158
- package/src/views/layout/components/Menubar/Item.vue +0 -125
- package/src/views/layout/components/Menubar/Link.vue +0 -38
- package/src/views/layout/components/Menubar/SidebarItem.vue +0 -333
- package/src/views/layout/components/Menubar/index.vue +0 -250
- package/src/views/layout/components/Sidebar/Item.vue +0 -33
- package/src/views/layout/components/Sidebar/Link.vue +0 -38
- package/src/views/layout/components/Sidebar/SidebarItem.vue +0 -179
- package/src/views/layout/components/Sidebar/index.vue +0 -141
- package/src/views/layout/components/iframe-page.vue +0 -38
- package/src/views/layout/components/index.js +0 -4
- package/src/views/layout/components/tabs/tab-content.vue +0 -273
- package/src/views/layout/mixin/ResizeHandler.js +0 -41
- package/src/views/layout/tab-content-iframe-index.vue +0 -38
- package/src/views/layout/tab-content-index.vue +0 -92
- package/src/views/login/authredirect.vue +0 -10
- package/src/views/login/index.vue +0 -296
- package/src/views/login/update-password.vue +0 -246
- package/src/views/redirect/index.vue +0 -14
- package/src/views/super-icon/index.js +0 -6
- package/src/views/super-icon/src/index.vue +0 -52
- package/src/views/svg-icon/index.js +0 -6
- package/src/views/svg-icon/src/svg-icon.vue +0 -43
- package/src/views/wf-history/tache-subprocess-history.vue +0 -45
- package/vite.config.js +0 -103
package/src/router/index.js
DELETED
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import * as Vue from 'vue'
|
|
2
|
-
import * as VueRouter from 'vue-router'
|
|
3
|
-
|
|
4
|
-
/* Layout */
|
|
5
|
-
import Layout from '../views/layout/NewLayout.vue'
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* hidden: true if `hidden:true` will not show in the sidebar(default is false)
|
|
9
|
-
* alwaysShow: true if set true, will always show the root menu, whatever its child routes length
|
|
10
|
-
* if not set alwaysShow, only more than one route under the children
|
|
11
|
-
* it will becomes nested mode, otherwise not show the root menu
|
|
12
|
-
* redirect: noredirect if `redirect:noredirect` will no redirect in the breadcrumb
|
|
13
|
-
* name:'router-name' the name is used by <keep-alive> (must set!!!)
|
|
14
|
-
* meta : {
|
|
15
|
-
title: 'title' the name show in submenu and breadcrumb (recommend set)
|
|
16
|
-
icon: 'svg-name' the icon show in the sidebar,
|
|
17
|
-
}
|
|
18
|
-
**/
|
|
19
|
-
export const publicRouterMap = [
|
|
20
|
-
{
|
|
21
|
-
path: '/redirect',
|
|
22
|
-
component: Layout,
|
|
23
|
-
hidden: true,
|
|
24
|
-
children: [
|
|
25
|
-
{
|
|
26
|
-
path: '/redirect/:path*',
|
|
27
|
-
component: () => import('../views/redirect/index.vue'),
|
|
28
|
-
},
|
|
29
|
-
],
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
path: '/iframe-page',
|
|
33
|
-
component: Layout,
|
|
34
|
-
hidden: true,
|
|
35
|
-
children: [
|
|
36
|
-
{
|
|
37
|
-
path: 'page',
|
|
38
|
-
component: () => import('../views/layout/components/iframe-page.vue'),
|
|
39
|
-
hidden: true,
|
|
40
|
-
},
|
|
41
|
-
],
|
|
42
|
-
},
|
|
43
|
-
// {
|
|
44
|
-
// path: '/login',
|
|
45
|
-
// component: () => import('../views/login/index'),
|
|
46
|
-
// hidden: true
|
|
47
|
-
// },
|
|
48
|
-
{
|
|
49
|
-
path: '/auth-redirect',
|
|
50
|
-
component: () => import('../views/login/authredirect.vue'),
|
|
51
|
-
hidden: true,
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
path: '/404',
|
|
55
|
-
component: () => import('../views/error-page/404.vue'),
|
|
56
|
-
hidden: true,
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
path: '/401',
|
|
60
|
-
component: () => import('../views/error-page/401.vue'),
|
|
61
|
-
hidden: true,
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
path: '/show-sub-wf-history',
|
|
65
|
-
component: () => import('../views/wf-history/tache-subprocess-history.vue'),
|
|
66
|
-
hidden: true,
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
path: '/tab-content-index',
|
|
70
|
-
component: ()=>import('../views/layout/tab-content-index.vue'),
|
|
71
|
-
hidden: true,
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
path: '/tab-content-iframe-index',
|
|
75
|
-
component: () => import('../views/layout/tab-content-iframe-index.vue'),
|
|
76
|
-
hidden: true,
|
|
77
|
-
},
|
|
78
|
-
]
|
|
79
|
-
export const protectedRouterMap = []
|
|
80
|
-
export const errorRouterMap = [
|
|
81
|
-
// 404的映射必须是最后一个
|
|
82
|
-
{ path: '*', redirect: '/404', hidden: true },
|
|
83
|
-
]
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
export default VueRouter.createRouter({
|
|
87
|
-
history: VueRouter.createWebHashHistory(),
|
|
88
|
-
routes: publicRouterMap,
|
|
89
|
-
scrollBehavior: () => ({
|
|
90
|
-
top: 0,
|
|
91
|
-
}),
|
|
92
|
-
})
|
package/src/store/getters.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
const getters = {
|
|
2
|
-
sidebar: (state) => state.app.sidebar,
|
|
3
|
-
device: (state) => state.app.device,
|
|
4
|
-
windowWidth: (state) => state.app.windowWidth,
|
|
5
|
-
windowHeight: (state) => state.app.windowHeight,
|
|
6
|
-
isMobileResize: (state) => state.app.isMobileResize,
|
|
7
|
-
isMobileListCard: (state) => state.app.windowWidth <= 768, // 是否显示卡片
|
|
8
|
-
tableEditingDatas: (state) => state.table.tableEditingDatas,
|
|
9
|
-
isConfigEditing: (state) => state.table.tableEditingDatas.length > 0,
|
|
10
|
-
isEditing: (state) => ($rowDataGuId) => state.table.tableEditingDatas.includes($rowDataGuId),
|
|
11
|
-
isRowEditing: (state) => ($rowGuId) => state.table.tableEditingDatas.some(v => v.includes($rowGuId)),
|
|
12
|
-
theme: (state) => state.system.theme, // 主题
|
|
13
|
-
navExpanded: (state) => state.system.navExpanded, // 是否展开导航
|
|
14
|
-
locale: (state) => state.system.locale, // 国际化
|
|
15
|
-
token: (state) => state.user.token,
|
|
16
|
-
name: (state) => state.user.name,
|
|
17
|
-
// routers: state => state.permission.routers,
|
|
18
|
-
protectedRouters: (state) => state.permission.protectedRouters,
|
|
19
|
-
currentUserPermissions: (state) => state.permission.currentUserPermissions,
|
|
20
|
-
preventReclick: (state) => state.app.preventReclick,
|
|
21
|
-
menus: (state) => state.user.menus,
|
|
22
|
-
openTab: (state) => state.tabContent.openTab,
|
|
23
|
-
activeIndex: (state) => state.tabContent.activeIndex,
|
|
24
|
-
whiteList: (state) => state.app.whiteList,
|
|
25
|
-
}
|
|
26
|
-
export default getters
|
package/src/store/index.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import * as Vue from 'vue'
|
|
2
|
-
import * as Vuex from 'vuex'
|
|
3
|
-
import app from './modules/app'
|
|
4
|
-
import table from './modules/table'
|
|
5
|
-
import user from './modules/user'
|
|
6
|
-
import system from './modules/system'
|
|
7
|
-
import permission from './modules/permission'
|
|
8
|
-
import tabContent from './modules/tab-content'
|
|
9
|
-
import getters from './getters'
|
|
10
|
-
|
|
11
|
-
const store = Vuex.createStore({
|
|
12
|
-
modules: {
|
|
13
|
-
app,
|
|
14
|
-
table,
|
|
15
|
-
user,
|
|
16
|
-
system,
|
|
17
|
-
permission,
|
|
18
|
-
tabContent,
|
|
19
|
-
},
|
|
20
|
-
getters,
|
|
21
|
-
})
|
|
22
|
-
|
|
23
|
-
export default store
|
package/src/store/modules/app.js
DELETED
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import System from "@zxing/library/esm/core/util/System"
|
|
2
|
-
|
|
3
|
-
const app = {
|
|
4
|
-
state: {
|
|
5
|
-
sidebar: {
|
|
6
|
-
opened: !+window.sessionStorage.getItem('sidebarStatus'),
|
|
7
|
-
withoutAnimation: false,
|
|
8
|
-
},
|
|
9
|
-
isAMBdesign: false, // 是否开启页面设计模式
|
|
10
|
-
device: 'desktop',
|
|
11
|
-
preventReclick: false,
|
|
12
|
-
whiteList: [],
|
|
13
|
-
systemWidth: [],
|
|
14
|
-
windowWidth: null, // 网页宽度
|
|
15
|
-
windowHeight: null, // 网页高度
|
|
16
|
-
isMobileResize: false, // 是否移动端
|
|
17
|
-
},
|
|
18
|
-
mutations: {
|
|
19
|
-
// 写入网页 高度 宽度 是否移动端
|
|
20
|
-
updateWindowSize(state, { width, height }) {
|
|
21
|
-
state.windowWidth = width;
|
|
22
|
-
state.windowHeight = height;
|
|
23
|
-
state.isMobileResize = !!width && width <= 768
|
|
24
|
-
},
|
|
25
|
-
toggleSidebar: (state) => {
|
|
26
|
-
if (state.sidebar.opened) {
|
|
27
|
-
window.sessionStorage.setItem('sidebarStatus', 1)
|
|
28
|
-
} else {
|
|
29
|
-
window.sessionStorage.setItem('sidebarStatus', 0)
|
|
30
|
-
}
|
|
31
|
-
state.sidebar.opened = !state.sidebar.opened
|
|
32
|
-
state.sidebar.withoutAnimation = false
|
|
33
|
-
},
|
|
34
|
-
closeSidebar: (state, withoutAnimation) => {
|
|
35
|
-
window.sessionStorage.setItem('sidebarStatus', 1)
|
|
36
|
-
state.sidebar.opened = false
|
|
37
|
-
state.sidebar.withoutAnimation = withoutAnimation
|
|
38
|
-
},
|
|
39
|
-
toggleDevice: (state, device) => {
|
|
40
|
-
state.device = device
|
|
41
|
-
},
|
|
42
|
-
togglePreventReclick: (state, preventReclick) => {
|
|
43
|
-
state.preventReclick = preventReclick
|
|
44
|
-
},
|
|
45
|
-
setWhiteList: (state, whiteList) => {
|
|
46
|
-
if (whiteList instanceof Array) {
|
|
47
|
-
state.whiteList = whiteList
|
|
48
|
-
}
|
|
49
|
-
},
|
|
50
|
-
},
|
|
51
|
-
actions: {
|
|
52
|
-
startListeningToResize({ state, commit }) {
|
|
53
|
-
const handleResize = (data) => {
|
|
54
|
-
commit('updateWindowSize', {
|
|
55
|
-
width: data?.width ?? window.innerWidth,
|
|
56
|
-
height: data?.height ?? window.innerHeight,
|
|
57
|
-
});
|
|
58
|
-
};
|
|
59
|
-
if (!state.windowWidth && !state.windowHeight) {
|
|
60
|
-
const element = document.querySelector('.amb-design-board');
|
|
61
|
-
if (element && state.isAMBdesign) {
|
|
62
|
-
handleResize({
|
|
63
|
-
width: element.clientWidth,
|
|
64
|
-
height: element.clientHeight,
|
|
65
|
-
});
|
|
66
|
-
const designObserver = new ResizeObserver(entries => {
|
|
67
|
-
for (const entry of entries) {
|
|
68
|
-
handleResize({
|
|
69
|
-
width: entry?.['target']?.clientWidth,
|
|
70
|
-
height: entry?.['target']?.clientHeight,
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
designObserver.observe(element);
|
|
75
|
-
} else {
|
|
76
|
-
window.addEventListener('resize', handleResize);
|
|
77
|
-
handleResize();
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
|
-
toggleSidebar: ({ commit }) => {
|
|
82
|
-
commit('toggleSidebar')
|
|
83
|
-
},
|
|
84
|
-
closeSidebar({ commit }, { withoutAnimation }) {
|
|
85
|
-
commit('closeSidebar', withoutAnimation)
|
|
86
|
-
},
|
|
87
|
-
toggelDevice({ commit }, device) {
|
|
88
|
-
commit('toggleDevice', device)
|
|
89
|
-
},
|
|
90
|
-
addWhiteList({ commit }, whiteList) {
|
|
91
|
-
commit('setWhiteList', whiteList)
|
|
92
|
-
},
|
|
93
|
-
},
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
export default app
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import { ref, computed, reactive } from 'vue'
|
|
2
|
-
import { defineStore } from 'pinia'
|
|
3
|
-
|
|
4
|
-
type Menu = {
|
|
5
|
-
menuCode: string
|
|
6
|
-
menuName: string
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export default defineStore('ChatAiStore', () => {
|
|
10
|
-
const currentTabName = ref('chat')
|
|
11
|
-
const activeMenu = ref<Menu>({
|
|
12
|
-
menuCode: '',
|
|
13
|
-
menuName: ''
|
|
14
|
-
})
|
|
15
|
-
const pageInfo = ref<any>({})
|
|
16
|
-
|
|
17
|
-
// 最后操作的表格实例
|
|
18
|
-
const pageRef = ref<any>(null)
|
|
19
|
-
const pageData = ref<any[]>([])
|
|
20
|
-
|
|
21
|
-
function setCurrentTabName(name: string) {
|
|
22
|
-
currentTabName.value = name
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
function getCurrentTabName() {
|
|
26
|
-
return currentTabName.value
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
function setPageInfoToChatStore(menuCode: string, info: any) {
|
|
30
|
-
pageInfo.value[menuCode] = info
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
function getPageInfo(menuCode: string) {
|
|
34
|
-
return pageInfo.value[menuCode] || null
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
function getActiveMenuPageInfo() {
|
|
38
|
-
return pageInfo.value[activeMenu.value.menuCode] || null
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
function setPageData(newSelection: any[]) {
|
|
42
|
-
pageData.value = JSON.parse(JSON.stringify(newSelection))
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
function getPageData() {
|
|
46
|
-
return pageData.value
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
function clearPageData() {
|
|
50
|
-
pageData.value = []
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
function setActiveMenu(menu: any) {
|
|
54
|
-
activeMenu.value = menu
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
function getActiveMenu() {
|
|
58
|
-
return activeMenu.value
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
function addListRef(menuCode: string, listRef: any) {
|
|
62
|
-
const info = getPageInfo(menuCode) || {}
|
|
63
|
-
info.subTableRefs = info.listRefs || []
|
|
64
|
-
info.subTableRefs[listRef.tableName] = { ref: listRef }
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
function getPageType() {}
|
|
68
|
-
|
|
69
|
-
return {
|
|
70
|
-
setCurrentTabName,
|
|
71
|
-
getCurrentTabName,
|
|
72
|
-
setPageData,
|
|
73
|
-
getPageData,
|
|
74
|
-
clearPageData,
|
|
75
|
-
getActiveMenu,
|
|
76
|
-
setActiveMenu,
|
|
77
|
-
getPageType,
|
|
78
|
-
setPageInfoToChatStore,
|
|
79
|
-
getPageInfo,
|
|
80
|
-
getActiveMenuPageInfo,
|
|
81
|
-
pageData,
|
|
82
|
-
activeMenu,
|
|
83
|
-
addListRef
|
|
84
|
-
}
|
|
85
|
-
})
|
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
import { protectedRouterMap } from '../../router'
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* 通过meta.role判断是否与当前用户权限匹配
|
|
5
|
-
* @param roles
|
|
6
|
-
* @param route
|
|
7
|
-
*/
|
|
8
|
-
function hasPermission(currentUserPermissions, route) {
|
|
9
|
-
let result = true
|
|
10
|
-
const orgPermission = route.meta.permission
|
|
11
|
-
if (orgPermission) {
|
|
12
|
-
result = false
|
|
13
|
-
const currentPermission = orgPermission.replace(/\./g, '__')
|
|
14
|
-
const permissionResult = currentUserPermissions[currentPermission]
|
|
15
|
-
if (permissionResult !== undefined && permissionResult === true) {
|
|
16
|
-
result = true
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
return result
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* 递归过滤受权限保护的路由表,返回符合用户权限的路由表
|
|
24
|
-
* @param allRoutes 即protectedRouterMap
|
|
25
|
-
* @param currentUserPermissions 后台返回的当前用户具有的权限
|
|
26
|
-
*/
|
|
27
|
-
function filterProtectedRouter(allRoutes, currentUserPermissions) {
|
|
28
|
-
// console.log('filterProtectedRouter--', allRoutes)
|
|
29
|
-
const res = []
|
|
30
|
-
const menuRouters = []
|
|
31
|
-
|
|
32
|
-
allRoutes.forEach((route) => {
|
|
33
|
-
const tmp = { ...route }
|
|
34
|
-
|
|
35
|
-
if (tmp.children && tmp.children.length > 0) {
|
|
36
|
-
const routerResult = filterProtectedRouter(
|
|
37
|
-
tmp.children,
|
|
38
|
-
currentUserPermissions
|
|
39
|
-
)
|
|
40
|
-
// 所有有权限的路由,包括不是菜单的路由
|
|
41
|
-
tmp.children = routerResult.allRouters
|
|
42
|
-
// 所有菜单路由
|
|
43
|
-
tmp.menuChildren = routerResult.menuRouters
|
|
44
|
-
if (tmp.menuChildren && tmp.menuChildren.length > 0) {
|
|
45
|
-
if (tmp.redirectTmp) {
|
|
46
|
-
tmp.redirectTmp = tmp.redirectTmp + '/' + tmp.menuChildren[0].path
|
|
47
|
-
} else {
|
|
48
|
-
tmp.redirectTmp = tmp.path + '/' + tmp.menuChildren[0].path
|
|
49
|
-
}
|
|
50
|
-
res.push(tmp)
|
|
51
|
-
menuRouters.push(tmp)
|
|
52
|
-
}
|
|
53
|
-
} else {
|
|
54
|
-
if (tmp.path === '') {
|
|
55
|
-
// 表示是空路由,即系统路由
|
|
56
|
-
res.push(tmp)
|
|
57
|
-
} else {
|
|
58
|
-
if (
|
|
59
|
-
typeof tmp.hidden === 'undefined' ||
|
|
60
|
-
(typeof tmp.hidden !== 'undefined' && tmp.hidden === false)
|
|
61
|
-
) {
|
|
62
|
-
menuRouters.push(tmp)
|
|
63
|
-
}
|
|
64
|
-
res.push(tmp)
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
})
|
|
68
|
-
|
|
69
|
-
return { allRouters: res, menuRouters: menuRouters }
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
const permission = {
|
|
73
|
-
state: {
|
|
74
|
-
// routers: publicRouterMap,
|
|
75
|
-
protectedRouters: [],
|
|
76
|
-
currentUserPermissions: [],
|
|
77
|
-
},
|
|
78
|
-
mutations: {
|
|
79
|
-
setCurrentUserPermissions: (state, currentUserPermissions) => {
|
|
80
|
-
state.currentUserPermissions = currentUserPermissions
|
|
81
|
-
},
|
|
82
|
-
setRouters: (state, routers) => {
|
|
83
|
-
state.protectedRouters = routers
|
|
84
|
-
// 把公共路由,用户有权限的路由,错误路由合并后就是当前用户的完整路由表
|
|
85
|
-
// state.routers = publicRouterMap.concat(routers).concat(errorRouterMap)
|
|
86
|
-
},
|
|
87
|
-
},
|
|
88
|
-
actions: {
|
|
89
|
-
generateRoutes({ commit }, data) {
|
|
90
|
-
return new Promise((resolve) => {
|
|
91
|
-
const currentUserPermissions = data
|
|
92
|
-
// commit('setCurrentUserPermissions', currentUserPermissions)
|
|
93
|
-
const a = new Date().getTime()
|
|
94
|
-
const accessableRoutersResult = filterProtectedRouter(
|
|
95
|
-
protectedRouterMap,
|
|
96
|
-
currentUserPermissions
|
|
97
|
-
)
|
|
98
|
-
const b = new Date().getTime()
|
|
99
|
-
window.sessionStorage.setItem('generateRoutes==>执行时间:', b - a + '')
|
|
100
|
-
const accessableRouters = accessableRoutersResult.allRouters
|
|
101
|
-
const allMenuRoutes = accessableRoutersResult.menuRouters
|
|
102
|
-
// console.log('有权限的路由表结果==', accessableRouters)
|
|
103
|
-
// 动态添加空路由(即系统路由)
|
|
104
|
-
if (accessableRouters.length > 0) {
|
|
105
|
-
// 获得所有菜单路由
|
|
106
|
-
// console.log('allMenuRoutes==', allMenuRoutes)
|
|
107
|
-
const emptyPathRouter = {
|
|
108
|
-
path: '',
|
|
109
|
-
}
|
|
110
|
-
if (allMenuRoutes.length > 0) {
|
|
111
|
-
if (accessableRouters[0].path !== '') {
|
|
112
|
-
// 表示不包含空路由,需要添加空路由
|
|
113
|
-
if (allMenuRoutes[0].redirectTmp) {
|
|
114
|
-
emptyPathRouter.redirect = allMenuRoutes[0].redirectTmp
|
|
115
|
-
}
|
|
116
|
-
accessableRouters.push(emptyPathRouter)
|
|
117
|
-
} else if (
|
|
118
|
-
allMenuRoutes.length > 0 &&
|
|
119
|
-
accessableRouters[0].path === '' &&
|
|
120
|
-
(!allMenuRoutes[0].children ||
|
|
121
|
-
allMenuRoutes[0].children.length === 0)
|
|
122
|
-
) {
|
|
123
|
-
// 表示自己配置了空路由,且没有子路由
|
|
124
|
-
if (allMenuRoutes[0].redirectTmp) {
|
|
125
|
-
accessableRouters[0].redirect = allMenuRoutes[0].redirectTmp
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
// console.log('更新后的有权限的路由表结果,更新了根路由跳转的地址==', accessableRouters)
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
commit('setRouters', accessableRouters)
|
|
132
|
-
const c = new Date().getTime()
|
|
133
|
-
window.sessionStorage.setItem(
|
|
134
|
-
'generateRoutes==>执行时间c-a:',
|
|
135
|
-
c - a + ''
|
|
136
|
-
)
|
|
137
|
-
resolve()
|
|
138
|
-
})
|
|
139
|
-
},
|
|
140
|
-
},
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
export default permission
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { setTheme, getTheme } from '../../utils/auth'
|
|
2
|
-
|
|
3
|
-
const state = () => ({
|
|
4
|
-
theme: getTheme(),
|
|
5
|
-
navExpanded: true,
|
|
6
|
-
locale: 'zh-CN',
|
|
7
|
-
routes: {}
|
|
8
|
-
});
|
|
9
|
-
|
|
10
|
-
const mutations = {
|
|
11
|
-
updateState(state, payload) {
|
|
12
|
-
Object.keys(payload).forEach(key => {
|
|
13
|
-
if (key in state) {
|
|
14
|
-
state[key] = payload[key];
|
|
15
|
-
if (['theme'].includes(key)) {
|
|
16
|
-
setTheme(payload[key])
|
|
17
|
-
document.querySelector('body')?.setAttribute('class', payload[key])
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
const actions = {
|
|
25
|
-
updateSystemParams({ commit }, payload) {
|
|
26
|
-
commit('updateState', payload);
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
export default {
|
|
31
|
-
namespaced: true,
|
|
32
|
-
state,
|
|
33
|
-
mutations,
|
|
34
|
-
actions
|
|
35
|
-
};
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { setActiveMenuToChatAiStore } from '../../utils/chat-ai-util.ts'
|
|
2
|
-
const tabContent = {
|
|
3
|
-
state: {
|
|
4
|
-
openTab: [], // 所有打开的路由
|
|
5
|
-
activeIndex: null // 激活状态
|
|
6
|
-
},
|
|
7
|
-
mutations: {
|
|
8
|
-
// 添加tabs
|
|
9
|
-
add_tabs(state, data) {
|
|
10
|
-
state.openTab.push(data)
|
|
11
|
-
},
|
|
12
|
-
// 删除tabs
|
|
13
|
-
delete_tabs(state, route) {
|
|
14
|
-
let index = 0
|
|
15
|
-
for (const option of state.openTab) {
|
|
16
|
-
if (option.code === route.code) {
|
|
17
|
-
break
|
|
18
|
-
}
|
|
19
|
-
index++
|
|
20
|
-
}
|
|
21
|
-
state.openTab.splice(index, 1)
|
|
22
|
-
},
|
|
23
|
-
// 设置当前激活的tab
|
|
24
|
-
set_active_index(state, index) {
|
|
25
|
-
const activeTab = state.openTab.find((item) => item.code === index)
|
|
26
|
-
setActiveMenuToChatAiStore({
|
|
27
|
-
menuCode: index,
|
|
28
|
-
menuName: activeTab?.name || ''
|
|
29
|
-
})
|
|
30
|
-
state.activeIndex = index
|
|
31
|
-
},
|
|
32
|
-
// 清空tabs
|
|
33
|
-
clear_tabs(state, route) {
|
|
34
|
-
if (state.openTab.length > 0) {
|
|
35
|
-
state.openTab.splice(0, state.openTab.length)
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
actions: {}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export default tabContent
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
const app = {
|
|
2
|
-
state: {
|
|
3
|
-
tableEditingDatas: [], // 开启编辑 表格$rowDataGuId
|
|
4
|
-
},
|
|
5
|
-
mutations: {
|
|
6
|
-
/**
|
|
7
|
-
* 切换行数据的编辑状态
|
|
8
|
-
* @param {Object} state - 当前状态对象
|
|
9
|
-
* @param {string} $rowDataGuId - 行数据的唯一标识
|
|
10
|
-
*/
|
|
11
|
-
toggleRowEditing(state, $rowDataGuId) {
|
|
12
|
-
if (state.tableEditingDatas.includes($rowDataGuId)) {
|
|
13
|
-
state.tableEditingDatas = state.tableEditingDatas.filter(id => id !== $rowDataGuId)
|
|
14
|
-
} else {
|
|
15
|
-
state.tableEditingDatas = [...state.tableEditingDatas, $rowDataGuId]
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
/**
|
|
19
|
-
* 直接设置行数据的编辑状态
|
|
20
|
-
* @param {Object} state - 当前状态对象
|
|
21
|
-
* @param {Object} payload - 包含行数据唯一标识和编辑状态的对象
|
|
22
|
-
* @param {string} payload.$rowDataGuId - 行数据的唯一标识
|
|
23
|
-
* @param {boolean} payload.isEditing - 编辑状态
|
|
24
|
-
*/
|
|
25
|
-
setRowEditing(state, { $rowDataGuId, isEditing = false }) {
|
|
26
|
-
if ($rowDataGuId) {
|
|
27
|
-
if (isEditing) {
|
|
28
|
-
if (!state.tableEditingDatas.includes($rowDataGuId)) {
|
|
29
|
-
state.tableEditingDatas = [...state.tableEditingDatas, $rowDataGuId];
|
|
30
|
-
}
|
|
31
|
-
} else {
|
|
32
|
-
state.tableEditingDatas = state.tableEditingDatas.filter(id => id!== $rowDataGuId);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
/**
|
|
37
|
-
* 清理所有编辑状态
|
|
38
|
-
* @param {Object} state - 当前状态对象
|
|
39
|
-
*/
|
|
40
|
-
clearAllEditing(state) {
|
|
41
|
-
state.tableEditingDatas = [];
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
actions: {
|
|
45
|
-
/**
|
|
46
|
-
* 触发切换行数据编辑状态的操作
|
|
47
|
-
* @param {Object} context - 上下文对象
|
|
48
|
-
* @param {string} $rowDataGuId - 行数据的唯一标识
|
|
49
|
-
*/
|
|
50
|
-
toggleEditingData({ commit }, $rowDataGuId) {
|
|
51
|
-
commit('toggleRowEditing', $rowDataGuId)
|
|
52
|
-
},
|
|
53
|
-
/**
|
|
54
|
-
* 触发直接设置行数据编辑状态的操作
|
|
55
|
-
* @param {Object} context - 上下文对象
|
|
56
|
-
* @param {Object} payload - 包含行数据唯一标识和编辑状态的对象
|
|
57
|
-
* @param {string} payload.$rowDataGuId - 行数据的唯一标识
|
|
58
|
-
* @param {boolean} payload.isEditing - 编辑状态
|
|
59
|
-
*/
|
|
60
|
-
setRowEditing({ commit }, payload) {
|
|
61
|
-
commit('setRowEditing', payload);
|
|
62
|
-
},
|
|
63
|
-
closeRowEditing({ commit }, payload) {
|
|
64
|
-
commit('setRowEditing', payload);
|
|
65
|
-
},
|
|
66
|
-
/**
|
|
67
|
-
* 触发清理所有编辑状态的操作
|
|
68
|
-
* @param {Object} context - 上下文对象
|
|
69
|
-
*/
|
|
70
|
-
clearAllEditing({ commit }) {
|
|
71
|
-
commit('clearAllEditing');
|
|
72
|
-
}
|
|
73
|
-
},
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
export default app
|