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,296 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="login-container">
|
|
3
|
-
<el-form
|
|
4
|
-
ref="loginForm"
|
|
5
|
-
:model="loginForm"
|
|
6
|
-
:rules="loginRules"
|
|
7
|
-
class="login-form"
|
|
8
|
-
auto-complete="on"
|
|
9
|
-
label-position="left"
|
|
10
|
-
>
|
|
11
|
-
<h3 class="title">***管理系统</h3>
|
|
12
|
-
<el-form-item prop="username">
|
|
13
|
-
<span class="svg-container">
|
|
14
|
-
<svg-icon icon-class="user" />
|
|
15
|
-
</span>
|
|
16
|
-
<el-input
|
|
17
|
-
v-model="loginForm.username"
|
|
18
|
-
name="username"
|
|
19
|
-
type="text"
|
|
20
|
-
auto-complete="on"
|
|
21
|
-
placeholder="username"
|
|
22
|
-
/>
|
|
23
|
-
</el-form-item>
|
|
24
|
-
<el-form-item prop="password">
|
|
25
|
-
<span class="svg-container">
|
|
26
|
-
<svg-icon icon-class="password" />
|
|
27
|
-
</span>
|
|
28
|
-
<el-input
|
|
29
|
-
v-model="loginForm.password"
|
|
30
|
-
:type="pwdType"
|
|
31
|
-
name="password"
|
|
32
|
-
auto-complete="on"
|
|
33
|
-
placeholder="password"
|
|
34
|
-
@keyup.enter="handleLogin"
|
|
35
|
-
/>
|
|
36
|
-
<span class="show-pwd" @click="showPwd">
|
|
37
|
-
<svg-icon icon-class="eye" />
|
|
38
|
-
</span>
|
|
39
|
-
</el-form-item>
|
|
40
|
-
<el-form-item>
|
|
41
|
-
<el-button
|
|
42
|
-
:loading="loading"
|
|
43
|
-
type="primary"
|
|
44
|
-
style="width: 100%"
|
|
45
|
-
@click.prevent="handleLogin"
|
|
46
|
-
>
|
|
47
|
-
Sign in
|
|
48
|
-
</el-button>
|
|
49
|
-
</el-form-item>
|
|
50
|
-
<div class="tips">
|
|
51
|
-
<span style="margin-right: 20px"> ***公司 </span>
|
|
52
|
-
</div>
|
|
53
|
-
</el-form>
|
|
54
|
-
</div>
|
|
55
|
-
</template>
|
|
56
|
-
|
|
57
|
-
<script>
|
|
58
|
-
import { ElMessage as Message } from 'element-plus'
|
|
59
|
-
export default {
|
|
60
|
-
name: 'Login',
|
|
61
|
-
data() {
|
|
62
|
-
const checkValidCode = (rule, value, callback) => {
|
|
63
|
-
// console.log('value=', value, 'this.validCode=', this.validCode)
|
|
64
|
-
if (!value) {
|
|
65
|
-
callback(new Error('请输入验证码'))
|
|
66
|
-
} else if (value.toUpperCase() !== this.validCode.toUpperCase()) {
|
|
67
|
-
// this.refreshCode = Math.random()
|
|
68
|
-
callback(new Error('验证码不正确'))
|
|
69
|
-
} else {
|
|
70
|
-
callback()
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
return {
|
|
74
|
-
loginForm: {
|
|
75
|
-
username: '',
|
|
76
|
-
password: '',
|
|
77
|
-
validCode: '',
|
|
78
|
-
},
|
|
79
|
-
loginRules: {
|
|
80
|
-
username: [
|
|
81
|
-
{ required: true, trigger: 'blur', message: '请输入用户名' },
|
|
82
|
-
],
|
|
83
|
-
password: [{ required: true, trigger: 'blur', message: '请输入密码' }],
|
|
84
|
-
validCode: [
|
|
85
|
-
{ required: true, trigger: 'blur', validator: checkValidCode },
|
|
86
|
-
],
|
|
87
|
-
},
|
|
88
|
-
loading: false,
|
|
89
|
-
pwdType: 'password',
|
|
90
|
-
redirect: undefined,
|
|
91
|
-
validCodeVisible: false,
|
|
92
|
-
// 刷新验证码
|
|
93
|
-
refreshCode: 0,
|
|
94
|
-
validCode: '',
|
|
95
|
-
}
|
|
96
|
-
},
|
|
97
|
-
watch: {
|
|
98
|
-
$route: {
|
|
99
|
-
deep: true,
|
|
100
|
-
|
|
101
|
-
handler: function (route) {
|
|
102
|
-
this.redirect = route.query && route.query.redirect
|
|
103
|
-
// console.log('login--redirect', this.redirect)
|
|
104
|
-
const errorCode = route.query && route.query.errorCode
|
|
105
|
-
if (errorCode === 'sso.1021') {
|
|
106
|
-
// 表示超过失败登录次数,需要显示验证码
|
|
107
|
-
this.validCodeVisible = true
|
|
108
|
-
this.loginForm.validCode = ''
|
|
109
|
-
this.refreshCode = Math.random()
|
|
110
|
-
}
|
|
111
|
-
},
|
|
112
|
-
|
|
113
|
-
immediate: true,
|
|
114
|
-
},
|
|
115
|
-
},
|
|
116
|
-
created: function () {
|
|
117
|
-
// 子系统是嵌套在iframe中的,所以需要把整个页面都显示为登录页面,而不要只在iframe中显示登录页面
|
|
118
|
-
window.top.location.href = process.env.BASE_URL + '#/login'
|
|
119
|
-
},
|
|
120
|
-
methods: {
|
|
121
|
-
showPwd() {
|
|
122
|
-
if (this.pwdType === 'password') {
|
|
123
|
-
this.pwdType = ''
|
|
124
|
-
} else {
|
|
125
|
-
this.pwdType = 'password'
|
|
126
|
-
}
|
|
127
|
-
},
|
|
128
|
-
login() {
|
|
129
|
-
// return new Promise((resolve, reject) => {
|
|
130
|
-
this.$store
|
|
131
|
-
.dispatch('login', this.loginForm)
|
|
132
|
-
.then(() => {
|
|
133
|
-
this.loading = false
|
|
134
|
-
this.$router.push({ path: this.redirect || '/' })
|
|
135
|
-
// resolve()
|
|
136
|
-
})
|
|
137
|
-
.catch((error) => {
|
|
138
|
-
this.loading = false
|
|
139
|
-
if (error.response.status === 401) {
|
|
140
|
-
// console.log('error.response login==', error.response)
|
|
141
|
-
const errorData = error.response.data
|
|
142
|
-
|
|
143
|
-
if (errorData.code === 'sso.1021') {
|
|
144
|
-
// 表示超过失败登录次数,需要显示验证码
|
|
145
|
-
this.validCodeVisible = true
|
|
146
|
-
Message({
|
|
147
|
-
message: errorData.message,
|
|
148
|
-
showClose: true,
|
|
149
|
-
type: 'error',
|
|
150
|
-
duration: 5 * 1000,
|
|
151
|
-
})
|
|
152
|
-
} else {
|
|
153
|
-
// 表示超过失败登录次数,需要锁定用户,显示提示信息
|
|
154
|
-
this.validCodeVisible = false
|
|
155
|
-
Message({
|
|
156
|
-
message: errorData.message,
|
|
157
|
-
showClose: true,
|
|
158
|
-
type: 'error',
|
|
159
|
-
duration: 5 * 1000,
|
|
160
|
-
})
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
// reject(error)
|
|
164
|
-
})
|
|
165
|
-
// })
|
|
166
|
-
},
|
|
167
|
-
handleLogin() {
|
|
168
|
-
if (!this.validCodeVisible) {
|
|
169
|
-
this.validCode = 'aaaa'
|
|
170
|
-
}
|
|
171
|
-
this.$refs.loginForm.validate((valid) => {
|
|
172
|
-
if (valid) {
|
|
173
|
-
this.loading = true
|
|
174
|
-
this.$store
|
|
175
|
-
.dispatch('isPasswordExpired', this.loginForm)
|
|
176
|
-
.then((message) => {
|
|
177
|
-
if (
|
|
178
|
-
typeof message !== 'undefined' &&
|
|
179
|
-
message !== null &&
|
|
180
|
-
message !== false
|
|
181
|
-
) {
|
|
182
|
-
// 表示密码已过期,需要重置密码
|
|
183
|
-
this.$router.push({
|
|
184
|
-
path:
|
|
185
|
-
'/update-password?errorMessage=' +
|
|
186
|
-
message +
|
|
187
|
-
'&username=' +
|
|
188
|
-
this.loginForm.username +
|
|
189
|
-
'&redirect=' +
|
|
190
|
-
(this.redirect || '/'),
|
|
191
|
-
})
|
|
192
|
-
} else {
|
|
193
|
-
this.login()
|
|
194
|
-
}
|
|
195
|
-
})
|
|
196
|
-
.catch((error) => {
|
|
197
|
-
this.loading = false
|
|
198
|
-
console.log('error isPasswordExpired', error)
|
|
199
|
-
})
|
|
200
|
-
} else {
|
|
201
|
-
// console.log('error submit!!')
|
|
202
|
-
return false
|
|
203
|
-
}
|
|
204
|
-
})
|
|
205
|
-
},
|
|
206
|
-
},
|
|
207
|
-
}
|
|
208
|
-
</script>
|
|
209
|
-
|
|
210
|
-
<style lang="scss" rel="stylesheet/scss">
|
|
211
|
-
$bg: #2d3a4b;
|
|
212
|
-
$light_gray: #eee;
|
|
213
|
-
|
|
214
|
-
/* reset element-ui css */
|
|
215
|
-
.login-container {
|
|
216
|
-
.el-input {
|
|
217
|
-
display: inline-block;
|
|
218
|
-
height: 47px;
|
|
219
|
-
width: 85%;
|
|
220
|
-
input {
|
|
221
|
-
background: transparent;
|
|
222
|
-
border: 0px;
|
|
223
|
-
-webkit-appearance: none;
|
|
224
|
-
border-radius: 0px;
|
|
225
|
-
padding: 12px 5px 12px 15px;
|
|
226
|
-
color: $light_gray;
|
|
227
|
-
height: 47px;
|
|
228
|
-
&:-webkit-autofill {
|
|
229
|
-
-webkit-box-shadow: 0 0 0px 1000px $bg inset !important;
|
|
230
|
-
-webkit-text-fill-color: #fff !important;
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
.el-form-item {
|
|
235
|
-
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
236
|
-
background: rgba(0, 0, 0, 0.1);
|
|
237
|
-
border-radius: 5px;
|
|
238
|
-
color: #454545;
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
</style>
|
|
242
|
-
|
|
243
|
-
<style lang="scss" rel="stylesheet/scss" scoped>
|
|
244
|
-
$bg: #2d3a4b;
|
|
245
|
-
$dark_gray: #889aa4;
|
|
246
|
-
$light_gray: #eee;
|
|
247
|
-
.login-container {
|
|
248
|
-
position: fixed;
|
|
249
|
-
height: 100%;
|
|
250
|
-
width: 100%;
|
|
251
|
-
background-color: $bg;
|
|
252
|
-
.login-form {
|
|
253
|
-
position: absolute;
|
|
254
|
-
left: 0;
|
|
255
|
-
right: 0;
|
|
256
|
-
width: 520px;
|
|
257
|
-
max-width: 100%;
|
|
258
|
-
padding: 35px 35px 15px 35px;
|
|
259
|
-
margin: 120px auto;
|
|
260
|
-
}
|
|
261
|
-
.tips {
|
|
262
|
-
font-size: 14px;
|
|
263
|
-
color: #fff;
|
|
264
|
-
margin-bottom: 10px;
|
|
265
|
-
span {
|
|
266
|
-
&:first-of-type {
|
|
267
|
-
margin-right: 16px;
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
.svg-container {
|
|
272
|
-
padding: 6px 5px 6px 15px;
|
|
273
|
-
color: $dark_gray;
|
|
274
|
-
vertical-align: middle;
|
|
275
|
-
width: 30px;
|
|
276
|
-
display: inline-block;
|
|
277
|
-
}
|
|
278
|
-
.title {
|
|
279
|
-
font-size: 26px;
|
|
280
|
-
font-weight: 400;
|
|
281
|
-
color: $light_gray;
|
|
282
|
-
margin: 0px auto 40px auto;
|
|
283
|
-
text-align: center;
|
|
284
|
-
font-weight: bold;
|
|
285
|
-
}
|
|
286
|
-
.show-pwd {
|
|
287
|
-
position: absolute;
|
|
288
|
-
right: 10px;
|
|
289
|
-
top: 7px;
|
|
290
|
-
font-size: 16px;
|
|
291
|
-
color: $dark_gray;
|
|
292
|
-
cursor: pointer;
|
|
293
|
-
user-select: none;
|
|
294
|
-
}
|
|
295
|
-
}
|
|
296
|
-
</style>
|
|
@@ -1,246 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="login-container">
|
|
3
|
-
<span v-if="overdueDay !== ''">
|
|
4
|
-
您的密码还有<strong>{{ overdueDay }}</strong
|
|
5
|
-
>将要过期,请修改密码
|
|
6
|
-
</span>
|
|
7
|
-
|
|
8
|
-
<el-form
|
|
9
|
-
ref="loginForm"
|
|
10
|
-
:model="loginForm"
|
|
11
|
-
:rules="loginRules"
|
|
12
|
-
class="login-form"
|
|
13
|
-
auto-complete="on"
|
|
14
|
-
label-position="left"
|
|
15
|
-
>
|
|
16
|
-
<el-form-item prop="username" label="用户名">
|
|
17
|
-
<el-input
|
|
18
|
-
v-model="loginForm.username"
|
|
19
|
-
name="username"
|
|
20
|
-
type="text"
|
|
21
|
-
auto-complete="on"
|
|
22
|
-
placeholder="用户名"
|
|
23
|
-
disabled
|
|
24
|
-
/>
|
|
25
|
-
</el-form-item>
|
|
26
|
-
<el-form-item prop="password" label="原密码">
|
|
27
|
-
<el-input
|
|
28
|
-
v-model="loginForm.password"
|
|
29
|
-
type="password"
|
|
30
|
-
name="password"
|
|
31
|
-
show-password
|
|
32
|
-
auto-complete="on"
|
|
33
|
-
placeholder="密码"
|
|
34
|
-
/>
|
|
35
|
-
</el-form-item>
|
|
36
|
-
<el-form-item prop="newPassword" label="新密码">
|
|
37
|
-
<el-input
|
|
38
|
-
v-model="loginForm.newPassword"
|
|
39
|
-
type="password"
|
|
40
|
-
show-password
|
|
41
|
-
name="newPassword"
|
|
42
|
-
auto-complete="on"
|
|
43
|
-
placeholder="新密码"
|
|
44
|
-
/>
|
|
45
|
-
</el-form-item>
|
|
46
|
-
<el-form-item prop="confirmNewPassword" label="确认新密码">
|
|
47
|
-
<el-input
|
|
48
|
-
v-model="loginForm.confirmNewPassword"
|
|
49
|
-
type="password"
|
|
50
|
-
show-password
|
|
51
|
-
name="confirmNewPassword"
|
|
52
|
-
auto-complete="on"
|
|
53
|
-
placeholder="请再次输入新密码"
|
|
54
|
-
/>
|
|
55
|
-
</el-form-item>
|
|
56
|
-
<el-form-item>
|
|
57
|
-
<el-button
|
|
58
|
-
:loading="loading"
|
|
59
|
-
:style="width"
|
|
60
|
-
type="primary"
|
|
61
|
-
@click.prevent="handleLogin"
|
|
62
|
-
>
|
|
63
|
-
确定
|
|
64
|
-
</el-button>
|
|
65
|
-
<el-button
|
|
66
|
-
v-if="overdueDay !== ''"
|
|
67
|
-
:loading="loading"
|
|
68
|
-
:style="width"
|
|
69
|
-
type="primary"
|
|
70
|
-
@click.prevent="jump"
|
|
71
|
-
>
|
|
72
|
-
跳过
|
|
73
|
-
</el-button>
|
|
74
|
-
</el-form-item>
|
|
75
|
-
</el-form>
|
|
76
|
-
</div>
|
|
77
|
-
</template>
|
|
78
|
-
|
|
79
|
-
<script>
|
|
80
|
-
export default {
|
|
81
|
-
name: 'UpdatePassword',
|
|
82
|
-
data() {
|
|
83
|
-
const validatePwdEq = (rule, value, callback) => {
|
|
84
|
-
if (this.clickBtnType === 'jump') {
|
|
85
|
-
callback()
|
|
86
|
-
} else {
|
|
87
|
-
// console.log('validatePwdEq-value==', value)
|
|
88
|
-
if (this.loginForm.newPassword !== value) {
|
|
89
|
-
callback(new Error('两次输入的密码不一致'))
|
|
90
|
-
} else {
|
|
91
|
-
callback()
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
return {
|
|
96
|
-
loginForm: {
|
|
97
|
-
username: '',
|
|
98
|
-
password: '',
|
|
99
|
-
newPassword: '',
|
|
100
|
-
confirmNewPassword: '',
|
|
101
|
-
},
|
|
102
|
-
loginRules: {
|
|
103
|
-
username: [
|
|
104
|
-
{ required: true, trigger: 'blur', message: '请输入用户名' },
|
|
105
|
-
],
|
|
106
|
-
password: [{ required: true, trigger: 'blur', message: '请输入密码' }],
|
|
107
|
-
newPassword: [
|
|
108
|
-
{ required: true, trigger: 'blur', message: '请输入新密码' },
|
|
109
|
-
],
|
|
110
|
-
confirmNewPassword: [
|
|
111
|
-
{ required: true, trigger: 'blur', validator: validatePwdEq },
|
|
112
|
-
],
|
|
113
|
-
},
|
|
114
|
-
loading: false,
|
|
115
|
-
pwdType: 'password',
|
|
116
|
-
errorMessage: undefined,
|
|
117
|
-
overdueDay: '',
|
|
118
|
-
width: 'width: 100%',
|
|
119
|
-
userId: null,
|
|
120
|
-
clickBtnType: 'ok',
|
|
121
|
-
redirect: undefined,
|
|
122
|
-
username: null,
|
|
123
|
-
}
|
|
124
|
-
},
|
|
125
|
-
created: function () {
|
|
126
|
-
this.redirect = this.$route.query && this.$route.query.redirect
|
|
127
|
-
// console.log('login--update-password', this.redirect)
|
|
128
|
-
this.errorMessage = this.$route.query && this.$route.query.errorMessage
|
|
129
|
-
this.username = this.$route.query && this.$route.query.username
|
|
130
|
-
this.loginForm.username = this.username
|
|
131
|
-
if (this.username.indexOf('::') > 0) {
|
|
132
|
-
// 表示有租户编码,需要截取用户登录名
|
|
133
|
-
this.loginForm.username = this.username.substring(
|
|
134
|
-
this.username.indexOf('::') + 2
|
|
135
|
-
)
|
|
136
|
-
}
|
|
137
|
-
if (this.errorMessage.indexOf('OVERDUE_DAY:') >= 0) {
|
|
138
|
-
// 表示密码将要过期,获得过期天数
|
|
139
|
-
this.overdueDay = this.errorMessage.substring(
|
|
140
|
-
this.errorMessage.indexOf(':') + 1
|
|
141
|
-
)
|
|
142
|
-
this.width = 'width: 50%'
|
|
143
|
-
}
|
|
144
|
-
},
|
|
145
|
-
methods: {
|
|
146
|
-
showPwd() {
|
|
147
|
-
if (this.pwdType === 'password') {
|
|
148
|
-
this.pwdType = ''
|
|
149
|
-
} else {
|
|
150
|
-
this.pwdType = 'password'
|
|
151
|
-
}
|
|
152
|
-
},
|
|
153
|
-
handleLogin() {
|
|
154
|
-
// 表示点击了“确定”按钮
|
|
155
|
-
this.clickBtnType = 'ok'
|
|
156
|
-
this.login()
|
|
157
|
-
},
|
|
158
|
-
updatePassword() {
|
|
159
|
-
const map = {
|
|
160
|
-
newPassword: this.loginForm.newPassword,
|
|
161
|
-
levelPassword: this.loginForm.password,
|
|
162
|
-
loginName: this.loginForm.username,
|
|
163
|
-
}
|
|
164
|
-
this.$store
|
|
165
|
-
.dispatch('updatePassword', map)
|
|
166
|
-
.then((data) => {
|
|
167
|
-
if (data === 'success') {
|
|
168
|
-
if (this.redirect) {
|
|
169
|
-
this.$router.push({ path: this.redirect })
|
|
170
|
-
} else {
|
|
171
|
-
this.$router.push({ path: '/' })
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
})
|
|
175
|
-
.catch((e) => {
|
|
176
|
-
// console.log('error submit!!')
|
|
177
|
-
return false
|
|
178
|
-
})
|
|
179
|
-
},
|
|
180
|
-
jump() {
|
|
181
|
-
// 表示点击了“跳过”按钮
|
|
182
|
-
this.clickBtnType = 'jump'
|
|
183
|
-
this.login()
|
|
184
|
-
},
|
|
185
|
-
login() {
|
|
186
|
-
this.$refs.loginForm.validate((valid) => {
|
|
187
|
-
if (valid) {
|
|
188
|
-
const map = {
|
|
189
|
-
password: this.loginForm.password,
|
|
190
|
-
username: this.username,
|
|
191
|
-
}
|
|
192
|
-
this.$store
|
|
193
|
-
.dispatch('login', map)
|
|
194
|
-
.then(() => {
|
|
195
|
-
this.loading = false
|
|
196
|
-
if (this.clickBtnType === 'ok') {
|
|
197
|
-
// 如果点击了“确定”,修改密码
|
|
198
|
-
this.updatePassword()
|
|
199
|
-
} else {
|
|
200
|
-
// 如果点击了跳过,则直接进入主页
|
|
201
|
-
this.$router.push({ path: this.redirect || '/' })
|
|
202
|
-
}
|
|
203
|
-
})
|
|
204
|
-
.catch((error) => {
|
|
205
|
-
console.log('登录失败', error)
|
|
206
|
-
this.loading = false
|
|
207
|
-
this.$router.push({ path: '/login' })
|
|
208
|
-
})
|
|
209
|
-
} else {
|
|
210
|
-
console.log('error submit!!')
|
|
211
|
-
return false
|
|
212
|
-
}
|
|
213
|
-
})
|
|
214
|
-
},
|
|
215
|
-
},
|
|
216
|
-
}
|
|
217
|
-
</script>
|
|
218
|
-
|
|
219
|
-
<style lang="scss" rel="stylesheet/scss" scoped>
|
|
220
|
-
$bg: #fff;
|
|
221
|
-
$dark_gray: #889aa4;
|
|
222
|
-
.login-container {
|
|
223
|
-
position: fixed;
|
|
224
|
-
height: 100%;
|
|
225
|
-
width: 100%;
|
|
226
|
-
background-color: $bg;
|
|
227
|
-
.login-form {
|
|
228
|
-
position: absolute;
|
|
229
|
-
left: 0;
|
|
230
|
-
right: 0;
|
|
231
|
-
width: 550px;
|
|
232
|
-
max-width: 100%;
|
|
233
|
-
padding: 35px 35px 15px 35px;
|
|
234
|
-
margin: 120px auto;
|
|
235
|
-
}
|
|
236
|
-
.show-pwd {
|
|
237
|
-
position: absolute;
|
|
238
|
-
right: 10px;
|
|
239
|
-
top: 7px;
|
|
240
|
-
font-size: 16px;
|
|
241
|
-
color: $dark_gray;
|
|
242
|
-
cursor: pointer;
|
|
243
|
-
user-select: none;
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
</style>
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
<script>
|
|
2
|
-
import * as Vue from 'vue'
|
|
3
|
-
export default {
|
|
4
|
-
beforeCreate() {
|
|
5
|
-
const { params, query } = this.$route
|
|
6
|
-
const { path } = params
|
|
7
|
-
this.$router.replace({ path: '/' + path, query })
|
|
8
|
-
},
|
|
9
|
-
|
|
10
|
-
render() {
|
|
11
|
-
return Vue.h() // avoid warning message
|
|
12
|
-
},
|
|
13
|
-
}
|
|
14
|
-
</script>
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<i v-if="iconValue.indexOf('amb-icon-') === 0" class="amb-iconfont" :class="iconValue" />
|
|
3
|
-
<i v-else-if="iconValue.indexOf('amb-color-icon-') === 0" class="amb-color-iconfont super-icon" :class="iconValue" />
|
|
4
|
-
<i v-else-if="iconValue.indexOf('fa-') === 0" :class="'fa ' + iconValue" />
|
|
5
|
-
<img
|
|
6
|
-
v-else-if="iconValue.indexOf('svg-img-') === 0"
|
|
7
|
-
:src="defaultShowSvgAction + iconValue"
|
|
8
|
-
style="width: 1em; height: 1em"
|
|
9
|
-
/>
|
|
10
|
-
<SvgIcon v-else-if="iconValue.indexOf('svg-') === 0" :icon-class="iconValue.substring('svg-'.length)" />
|
|
11
|
-
<img
|
|
12
|
-
v-else-if="iconValue.indexOf('http') === 0 || iconValue.indexOf('//') === 0 || iconValue.indexOf('data:') === 0"
|
|
13
|
-
:src="iconValue"
|
|
14
|
-
style="width: 1em; height: 1em"
|
|
15
|
-
/>
|
|
16
|
-
<el-icon v-else><component :is="iconValue" /></el-icon>
|
|
17
|
-
</template>
|
|
18
|
-
<script lang="ts">
|
|
19
|
-
export default {
|
|
20
|
-
name: 'SuperIcon'
|
|
21
|
-
}
|
|
22
|
-
</script>
|
|
23
|
-
|
|
24
|
-
<script setup lang="ts">
|
|
25
|
-
import { ref } from 'vue'
|
|
26
|
-
import SvgIcon from '../../svg-icon/src/svg-icon.vue'
|
|
27
|
-
const props = defineProps({
|
|
28
|
-
// 值为:ElementUI、custom
|
|
29
|
-
iconType: {
|
|
30
|
-
type: String,
|
|
31
|
-
default: 'custom'
|
|
32
|
-
},
|
|
33
|
-
iconValue: {
|
|
34
|
-
type: String,
|
|
35
|
-
required: true,
|
|
36
|
-
default: ''
|
|
37
|
-
}
|
|
38
|
-
})
|
|
39
|
-
const defaultShowImageAction = ref(
|
|
40
|
-
window.$vueApp.config.globalProperties.baseAPI + '/component/super-form/show-image?serverPath='
|
|
41
|
-
)
|
|
42
|
-
const defaultShowSvgAction = ref(
|
|
43
|
-
window.$vueApp.config.globalProperties.baseAPI + '/component/super-form/show-svg?svgName='
|
|
44
|
-
)
|
|
45
|
-
</script>
|
|
46
|
-
<style lang="scss" scoped>
|
|
47
|
-
.super-icon {
|
|
48
|
-
width: 1em; // 继承父类的 font-size
|
|
49
|
-
height: 1em; // 继承父类的 font-size
|
|
50
|
-
font-size: 14px; // 默认 font-size 为 14px
|
|
51
|
-
}
|
|
52
|
-
</style>
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<svg :class="svgClass" aria-hidden="true">
|
|
3
|
-
<use :xlink:href="iconName" />
|
|
4
|
-
</svg>
|
|
5
|
-
</template>
|
|
6
|
-
|
|
7
|
-
<script>
|
|
8
|
-
export default {
|
|
9
|
-
name: 'SvgIcon',
|
|
10
|
-
props: {
|
|
11
|
-
iconClass: {
|
|
12
|
-
type: String,
|
|
13
|
-
required: true,
|
|
14
|
-
},
|
|
15
|
-
className: {
|
|
16
|
-
type: String,
|
|
17
|
-
default: '',
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
computed: {
|
|
21
|
-
iconName() {
|
|
22
|
-
return `#icon-${this.iconClass}`
|
|
23
|
-
},
|
|
24
|
-
svgClass() {
|
|
25
|
-
if (this.className) {
|
|
26
|
-
return 'svg-icon ' + this.className
|
|
27
|
-
} else {
|
|
28
|
-
return 'svg-icon'
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
},
|
|
32
|
-
}
|
|
33
|
-
</script>
|
|
34
|
-
|
|
35
|
-
<style scoped>
|
|
36
|
-
.svg-icon {
|
|
37
|
-
width: 1.2em;
|
|
38
|
-
height: 1.2em;
|
|
39
|
-
vertical-align: -0.25em;
|
|
40
|
-
fill: currentColor;
|
|
41
|
-
overflow: initial;
|
|
42
|
-
}
|
|
43
|
-
</style>
|