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,43 +0,0 @@
|
|
|
1
|
-
export function checkDingtalkEnvironment() {
|
|
2
|
-
const authSource = window.localStorage.getItem('auth_source')
|
|
3
|
-
let isDingTalk = false
|
|
4
|
-
if (authSource && authSource === 'dingtalk') {
|
|
5
|
-
isDingTalk = true
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
if (isDingTalk) {
|
|
9
|
-
let dd: any = null
|
|
10
|
-
import('dingtalk-jsapi').then((module) => {
|
|
11
|
-
dd = module.default
|
|
12
|
-
window.$dd = dd
|
|
13
|
-
const nonceStr = '1234567890' // 必填,自定义固定字符串。
|
|
14
|
-
const timeStamp = new Date().getTime() // 必填,生成签名的时间戳
|
|
15
|
-
try {
|
|
16
|
-
window.$http
|
|
17
|
-
.post(window.$vueApp.config.globalProperties.baseAPI + '/component/dingtalk/jsticket-sign', {
|
|
18
|
-
nonceStr: nonceStr, // 必填,自定义固定字符串。
|
|
19
|
-
timeStamp: timeStamp, // 必填,生成签名的时间戳
|
|
20
|
-
url: window.location.href // 必填,当前页面的url
|
|
21
|
-
})
|
|
22
|
-
.then((response: any) => {
|
|
23
|
-
dd.config({
|
|
24
|
-
agentId: response.agentId, // 必填,授权应用的agentid
|
|
25
|
-
corpId: response.corpId, //必填,企业ID
|
|
26
|
-
timeStamp: timeStamp, // 必填,生成签名的时间戳
|
|
27
|
-
nonceStr: nonceStr, // 必填,自定义固定字符串。
|
|
28
|
-
signature: response.signature, // 必填,签名
|
|
29
|
-
type: 0, //选填。0表示微应用的jsapi,1表示服务窗的jsapi;不填默认为0。该参数从dingtalk.js的0.8.3版本开始支持
|
|
30
|
-
jsApiList: ['biz.util.chooseImage'] // 必填,需要使用的jsapi列表,注意:不要带dd。
|
|
31
|
-
})
|
|
32
|
-
dd.error(function (err) {
|
|
33
|
-
window.$dd = null
|
|
34
|
-
console.error('dd error: ' + JSON.stringify(err))
|
|
35
|
-
})
|
|
36
|
-
})
|
|
37
|
-
} catch (e) {
|
|
38
|
-
window.$dd = null
|
|
39
|
-
console.error('DingTalk SDK initialization failed: ', e)
|
|
40
|
-
}
|
|
41
|
-
})
|
|
42
|
-
}
|
|
43
|
-
}
|
package/src/utils/eventBus.js
DELETED
package/src/utils/file-util.ts
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
// ...所有支持的icon
|
|
2
|
-
const iconList = [
|
|
3
|
-
'amb-color-icon-XLS',
|
|
4
|
-
'amb-color-icon-XLSX',
|
|
5
|
-
'amb-color-icon-DOC',
|
|
6
|
-
'amb-color-icon-DOCX',
|
|
7
|
-
'amb-color-icon-PPT',
|
|
8
|
-
'amb-color-icon-PDF',
|
|
9
|
-
'amb-color-icon-TXT',
|
|
10
|
-
'amb-color-icon-JPG',
|
|
11
|
-
'amb-color-icon-PNG',
|
|
12
|
-
'amb-color-icon-ZIP',
|
|
13
|
-
'amb-color-icon-AVI',
|
|
14
|
-
'amb-color-icon-MP4',
|
|
15
|
-
'amb-color-icon-qita'
|
|
16
|
-
]
|
|
17
|
-
// 列表_5215278368.xls
|
|
18
|
-
export function getFileIconByName(fileName: string): string {
|
|
19
|
-
const qitaIcon = 'amb-color-icon-qita'
|
|
20
|
-
if (!fileName) {
|
|
21
|
-
return qitaIcon
|
|
22
|
-
}
|
|
23
|
-
let fileType = fileName.substring(fileName.lastIndexOf('.') + 1) // 获取文件名
|
|
24
|
-
if (!fileType) {
|
|
25
|
-
return qitaIcon
|
|
26
|
-
}
|
|
27
|
-
switch (fileType) {
|
|
28
|
-
case 'xlsx':
|
|
29
|
-
fileType = 'XLS'
|
|
30
|
-
break
|
|
31
|
-
case 'docx':
|
|
32
|
-
fileType = 'DOC'
|
|
33
|
-
case 'pptx':
|
|
34
|
-
fileType = 'PPT'
|
|
35
|
-
break
|
|
36
|
-
}
|
|
37
|
-
const finalIconName = 'amb-color-icon-' + fileType.toUpperCase()
|
|
38
|
-
if (iconList.includes(finalIconName)) {
|
|
39
|
-
return finalIconName
|
|
40
|
-
}
|
|
41
|
-
return qitaIcon
|
|
42
|
-
}
|
package/src/utils/global-prop.ts
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
const GLOBAL_PROP = {
|
|
2
|
-
loadState: 'GLOBAL_PROP_LOAD_STATE',
|
|
3
|
-
CAN_SHOW_ORG_TREE: 'global-show-org-tree',
|
|
4
|
-
PORTAL_CHART_LAYOUT_COL: 'portal-chart-layout-col'
|
|
5
|
-
} as const
|
|
6
|
-
|
|
7
|
-
export function cacheAllGlobalPropCache(propMap: Record<string, string>) {
|
|
8
|
-
for (const key in propMap) {
|
|
9
|
-
localStorage.setItem(key, propMap[key])
|
|
10
|
-
}
|
|
11
|
-
localStorage.setItem(GLOBAL_PROP.loadState, 'true')
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export function removeAllGlobalPropCache() {
|
|
15
|
-
localStorage.removeItem(GLOBAL_PROP.loadState)
|
|
16
|
-
localStorage.removeItem(GLOBAL_PROP.CAN_SHOW_ORG_TREE)
|
|
17
|
-
localStorage.removeItem(GLOBAL_PROP.PORTAL_CHART_LAYOUT_COL)
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export function getCanShowOrgTree() {
|
|
21
|
-
return localStorage.getItem(GLOBAL_PROP.CAN_SHOW_ORG_TREE)
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export function cacheCanShowOrgTree(value: string) {
|
|
25
|
-
localStorage.setItem(GLOBAL_PROP.CAN_SHOW_ORG_TREE, value)
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export function removeCanShowOrgTree() {
|
|
29
|
-
localStorage.removeItem(GLOBAL_PROP.CAN_SHOW_ORG_TREE)
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export function cacheGlobalProp(key: string, value: string) {
|
|
33
|
-
localStorage.setItem(key, value)
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export function getGlobalProp(key: string) {
|
|
37
|
-
return localStorage.getItem(key)
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export function removeGlobalProp(key: string) {
|
|
41
|
-
localStorage.removeItem(key)
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export { GLOBAL_PROP }
|
package/src/utils/guid.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 获取4位随机数
|
|
3
|
-
*/
|
|
4
|
-
export function getS4(a, b, c, d) {
|
|
5
|
-
return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1)
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* 生成GuId
|
|
10
|
-
*/
|
|
11
|
-
export function getGuId(data = `{s}{s}-{s}-{s}-{s}-{s}{s}{s}`) {
|
|
12
|
-
return data.replace(/{(y|m|d|h|i|s|a)+}/g, getS4)
|
|
13
|
-
}
|
package/src/utils/i18n-util.js
DELETED
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
import axios from 'axios'
|
|
2
|
-
export function setLangFileUrl(systemCode, lang, url) {
|
|
3
|
-
let i18nFileUrlsItem = getLocalStorageJson('i18nFileUrls')
|
|
4
|
-
if (!i18nFileUrlsItem) {
|
|
5
|
-
i18nFileUrlsItem = {}
|
|
6
|
-
}
|
|
7
|
-
i18nFileUrlsItem[systemCode + '_' + lang] = url
|
|
8
|
-
window.localStorage.setItem('i18nFileUrls', JSON.stringify(i18nFileUrlsItem))
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export function getLangFileUrl(systemCode, lang) {
|
|
12
|
-
const i18nFileUrlsItem = getLocalStorageJson('i18nFileUrls')
|
|
13
|
-
if (i18nFileUrlsItem) {
|
|
14
|
-
return i18nFileUrlsItem[systemCode + '_' + lang]
|
|
15
|
-
}
|
|
16
|
-
return null
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export function removeLangFileUrl(systemCode, lang) {
|
|
20
|
-
const i18nFileUrlsItem = getLocalStorageJson('i18nFileUrls')
|
|
21
|
-
if (i18nFileUrlsItem) {
|
|
22
|
-
delete i18nFileUrlsItem[systemCode + '_' + lang]
|
|
23
|
-
window.localStorage.setItem('i18nFileUrls', JSON.stringify(i18nFileUrlsItem))
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export function removeAllLangFileUrl(systemCode, lang) {
|
|
28
|
-
window.localStorage.removeItem('i18nFileUrls')
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export function setEnableI18nState(systemCode, enableI18n) {
|
|
32
|
-
let allStateObj = {}
|
|
33
|
-
const allState = getLocalStorageJson('enableI18nSystem')
|
|
34
|
-
if (allState) {
|
|
35
|
-
allStateObj = allState
|
|
36
|
-
}
|
|
37
|
-
allStateObj[systemCode] = enableI18n ? true : false
|
|
38
|
-
window.localStorage.setItem('enableI18nSystem', JSON.stringify(allStateObj))
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export function getEnableI18nState(systemCode) {
|
|
42
|
-
const allState = getLocalStorageJson('enableI18nSystem')
|
|
43
|
-
if (allState) {
|
|
44
|
-
return allState[systemCode]
|
|
45
|
-
}
|
|
46
|
-
return null
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export function removeEnableI18nState() {
|
|
50
|
-
window.localStorage.removeItem('enableI18nSystem')
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
export function removeEnableI18nWidthSystemCode() {
|
|
54
|
-
const allState = getLocalStorageJson('enableI18nSystem')
|
|
55
|
-
if (allState) {
|
|
56
|
-
delete allState[getCurrentSystemCode()]
|
|
57
|
-
window.localStorage.setItem('enableI18nSystem', JSON.stringify(allState))
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
function getLocalStorageJson(key) {
|
|
62
|
-
const item = window.localStorage.getItem(key)
|
|
63
|
-
if (item) {
|
|
64
|
-
return JSON.parse(item)
|
|
65
|
-
}
|
|
66
|
-
return null
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
function loadLangFile(systemCode, url, language) {
|
|
70
|
-
console.log('loadLangFile', systemCode, url, language)
|
|
71
|
-
if (!url) {
|
|
72
|
-
return Promise.resolve()
|
|
73
|
-
}
|
|
74
|
-
return new Promise((resolve, reject) => {
|
|
75
|
-
if (window.$i18n) {
|
|
76
|
-
axios
|
|
77
|
-
.get(url, {
|
|
78
|
-
withCredential: false
|
|
79
|
-
})
|
|
80
|
-
.then((response) => {
|
|
81
|
-
const lang = getLocaleByLang(language)
|
|
82
|
-
if (response && response.data) {
|
|
83
|
-
// 获取当前的国际化信息
|
|
84
|
-
const currentMessages = window.$i18n.global.getLocaleMessage(lang)
|
|
85
|
-
// 新的国际化信息
|
|
86
|
-
if (currentMessages[systemCode]) {
|
|
87
|
-
Object.assign(currentMessages[systemCode], response.data)
|
|
88
|
-
} else {
|
|
89
|
-
currentMessages[systemCode] = response.data
|
|
90
|
-
}
|
|
91
|
-
// 设置合并后的国际化信息
|
|
92
|
-
window.$i18n.global.setLocaleMessage(lang, currentMessages)
|
|
93
|
-
}
|
|
94
|
-
resolve()
|
|
95
|
-
})
|
|
96
|
-
.catch((error) => {
|
|
97
|
-
reject(error)
|
|
98
|
-
})
|
|
99
|
-
}
|
|
100
|
-
resolve()
|
|
101
|
-
})
|
|
102
|
-
}
|
|
103
|
-
export function getLocaleByLang(lang) {
|
|
104
|
-
let locale = 'cn'
|
|
105
|
-
if (lang && lang.indexOf('_') > 0) {
|
|
106
|
-
const language = lang.substring(0, lang.indexOf('_'))
|
|
107
|
-
locale = language
|
|
108
|
-
}
|
|
109
|
-
if (locale === 'zh') {
|
|
110
|
-
locale = 'cn'
|
|
111
|
-
}
|
|
112
|
-
return locale
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
function clearI18nCache(lang) {
|
|
116
|
-
removeEnableI18nState()
|
|
117
|
-
removeAllLangFileUrl()
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
function setI18nFileVersion(version) {
|
|
121
|
-
window.localStorage.setItem('i18nFileVersion', version)
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
function getI18nFileVersion() {
|
|
125
|
-
const version = window.localStorage.getItem('i18nFileVersion')
|
|
126
|
-
if (version === 'undefined' || version === 'null') {
|
|
127
|
-
return null
|
|
128
|
-
}
|
|
129
|
-
return window.localStorage.getItem('i18nFileVersion')
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
export default {
|
|
133
|
-
setLangFileUrl,
|
|
134
|
-
getLangFileUrl,
|
|
135
|
-
removeLangFileUrl,
|
|
136
|
-
setEnableI18nState,
|
|
137
|
-
getEnableI18nState,
|
|
138
|
-
removeEnableI18nState,
|
|
139
|
-
removeEnableI18nWidthSystemCode,
|
|
140
|
-
getLocalStorageJson,
|
|
141
|
-
loadLangFile,
|
|
142
|
-
getLocaleByLang,
|
|
143
|
-
setI18nFileVersion,
|
|
144
|
-
getI18nFileVersion
|
|
145
|
-
}
|
package/src/utils/iconUtils.js
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import * as Vue from 'vue'
|
|
2
|
-
|
|
3
|
-
export function getRedisButtonGeneralIcon(buttonCode) {
|
|
4
|
-
let buttonIcon = ''
|
|
5
|
-
const buttonIcons = window.sessionStorage.getItem('button-icon')
|
|
6
|
-
if (buttonIcons && buttonIcons !== undefined && buttonIcons !== 'undefined') {
|
|
7
|
-
const buttonIconMap = JSON.parse(buttonIcons)
|
|
8
|
-
buttonIcon = buttonIconMap[buttonCode]
|
|
9
|
-
}
|
|
10
|
-
return buttonIcon
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export function findRedisButtonGeneralIcon() {
|
|
14
|
-
return new Promise((resolve, reject) => {
|
|
15
|
-
window.$vueApp.config.globalProperties.$http
|
|
16
|
-
.get(
|
|
17
|
-
window.$vueApp.config.globalProperties.baseAPI +
|
|
18
|
-
'/component/general-icon/find-redis-button-icon'
|
|
19
|
-
)
|
|
20
|
-
.then((data) => {
|
|
21
|
-
window.sessionStorage.setItem('button-icon', JSON.stringify(data))
|
|
22
|
-
resolve(data)
|
|
23
|
-
})
|
|
24
|
-
.catch((error) => {
|
|
25
|
-
reject(error)
|
|
26
|
-
})
|
|
27
|
-
})
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export function isFaIcon (icon) {
|
|
31
|
-
if (icon && (icon.indexOf('fa') === 0)) {
|
|
32
|
-
// 表示以“fa-”开头,使用font-awesome中的图标
|
|
33
|
-
icon = 'fa fa-custom ' + icon
|
|
34
|
-
return true
|
|
35
|
-
}
|
|
36
|
-
return false
|
|
37
|
-
}
|
|
@@ -1,234 +0,0 @@
|
|
|
1
|
-
// import store from '../store';
|
|
2
|
-
|
|
3
|
-
// (function(global) {
|
|
4
|
-
// // 防止重复初始化
|
|
5
|
-
// if (global.$ambAppIframe?.__initialized) {
|
|
6
|
-
// console.warn('$ambAppIframe communicator already initialized');
|
|
7
|
-
// return;
|
|
8
|
-
// }
|
|
9
|
-
|
|
10
|
-
// class GlobalCommunicator {
|
|
11
|
-
// constructor() {
|
|
12
|
-
// this.__initialized = true;
|
|
13
|
-
// this.enabled = true;
|
|
14
|
-
// this.store = null;
|
|
15
|
-
// this.trustedOrigins = new Set([window.location.origin]);
|
|
16
|
-
// this.iframeRegistry = new WeakMap(); // iframe窗口到origin的映射
|
|
17
|
-
// this.pendingIframes = new WeakMap(); // 等待加载完成的iframe
|
|
18
|
-
// this.parentWindow = window !== window.top ? window.top : null;
|
|
19
|
-
|
|
20
|
-
// this.init();
|
|
21
|
-
// }
|
|
22
|
-
|
|
23
|
-
// init() {
|
|
24
|
-
// // 设置消息监听
|
|
25
|
-
// window.addEventListener('message', this.handleMessage.bind(this));
|
|
26
|
-
|
|
27
|
-
// // 如果是iframe,主动向父级注册
|
|
28
|
-
// if (this.parentWindow) {
|
|
29
|
-
// this.registerToParent();
|
|
30
|
-
// }
|
|
31
|
-
// }
|
|
32
|
-
|
|
33
|
-
// // 绑定Vuex store
|
|
34
|
-
// bindStore(store) {
|
|
35
|
-
// if (this.store) {
|
|
36
|
-
// console.warn('Store already bound');
|
|
37
|
-
// return;
|
|
38
|
-
// }
|
|
39
|
-
|
|
40
|
-
// this.store = store;
|
|
41
|
-
// this.unsubscribe = store.subscribe((mutation) => {
|
|
42
|
-
// if (this.enabled && mutation.type.startsWith('system/')) {
|
|
43
|
-
// this.broadcastState();
|
|
44
|
-
// }
|
|
45
|
-
// });
|
|
46
|
-
// }
|
|
47
|
-
|
|
48
|
-
// // 向父级注册
|
|
49
|
-
// registerToParent() {
|
|
50
|
-
// const attemptRegister = (attempt = 0) => {
|
|
51
|
-
// this.parentWindow.postMessage({
|
|
52
|
-
// type: 'CHILD_REGISTER',
|
|
53
|
-
// source: window.location.origin
|
|
54
|
-
// }, '*');
|
|
55
|
-
|
|
56
|
-
// if (attempt < 2) {
|
|
57
|
-
// setTimeout(() => attemptRegister(attempt + 1), 500 * (attempt + 1));
|
|
58
|
-
// }
|
|
59
|
-
// };
|
|
60
|
-
|
|
61
|
-
// attemptRegister();
|
|
62
|
-
// }
|
|
63
|
-
|
|
64
|
-
// // 处理收到的消息
|
|
65
|
-
// handleMessage(event) {
|
|
66
|
-
// if (!this.enabled || !event.data || !event.data.type) return;
|
|
67
|
-
|
|
68
|
-
// const { type, payload, source } = event.data;
|
|
69
|
-
// const origin = event.origin;
|
|
70
|
-
|
|
71
|
-
// // 自动处理信任源
|
|
72
|
-
// if (type === 'CHILD_REGISTER' || type === 'IFRAME_READY') {
|
|
73
|
-
// this.addTrustedOrigin(origin);
|
|
74
|
-
// }
|
|
75
|
-
|
|
76
|
-
// if (!this.isTrustedOrigin(origin)) return;
|
|
77
|
-
|
|
78
|
-
// switch(type) {
|
|
79
|
-
// case 'CHILD_REGISTER':
|
|
80
|
-
// this.registerIframe(event.source, origin);
|
|
81
|
-
// break;
|
|
82
|
-
// case 'IFRAME_READY':
|
|
83
|
-
// this.handleIframeReady(event.source, origin);
|
|
84
|
-
// break;
|
|
85
|
-
// case 'STATE_UPDATE':
|
|
86
|
-
// this.handleStateUpdate(payload);
|
|
87
|
-
// break;
|
|
88
|
-
// case 'STATE_REQUEST':
|
|
89
|
-
// this.sendStateTo(event.source, origin);
|
|
90
|
-
// break;
|
|
91
|
-
// }
|
|
92
|
-
// }
|
|
93
|
-
|
|
94
|
-
// // 处理iframe准备就绪
|
|
95
|
-
// handleIframeReady(iframeWindow, origin) {
|
|
96
|
-
// if (this.pendingIframes?.has(iframeWindow)) {
|
|
97
|
-
// const { resolve } = this.pendingIframes?.get(iframeWindow);
|
|
98
|
-
// this.registerIframe(iframeWindow, origin);
|
|
99
|
-
// resolve(iframeWindow);
|
|
100
|
-
// this.pendingIframes?.delete?.(iframeWindow);
|
|
101
|
-
// }
|
|
102
|
-
// }
|
|
103
|
-
|
|
104
|
-
// // 注册iframe
|
|
105
|
-
// registerIframe(iframeWindow, origin) {
|
|
106
|
-
// this.iframeRegistry?.set(iframeWindow, origin);
|
|
107
|
-
// this.sendStateTo(iframeWindow, origin);
|
|
108
|
-
// }
|
|
109
|
-
|
|
110
|
-
// // 发送状态到指定窗口
|
|
111
|
-
// sendStateTo(targetWindow, targetOrigin) {
|
|
112
|
-
// if (!this.enabled || !this.store) return;
|
|
113
|
-
|
|
114
|
-
// try {
|
|
115
|
-
// targetWindow?.postMessage?.({
|
|
116
|
-
// type: 'STATE_UPDATE',
|
|
117
|
-
// payload: this.store.state.system,
|
|
118
|
-
// source: window.location.origin
|
|
119
|
-
// }, targetOrigin);
|
|
120
|
-
// } catch (e) {
|
|
121
|
-
// // console.error('Failed to send state:', e);
|
|
122
|
-
// this.cleanupConnection(targetWindow);
|
|
123
|
-
// }
|
|
124
|
-
// }
|
|
125
|
-
|
|
126
|
-
// // 广播状态到所有已注册的iframe和父窗口
|
|
127
|
-
// broadcastState() {
|
|
128
|
-
// // 发送给子iframe
|
|
129
|
-
// this.iframeRegistry?.forEach?.((origin, iframeWindow) => {
|
|
130
|
-
// this.sendStateTo(iframeWindow, origin);
|
|
131
|
-
// });
|
|
132
|
-
|
|
133
|
-
// // 发送给父窗口
|
|
134
|
-
// if (this.parentWindow) {
|
|
135
|
-
// this.sendStateTo(this.parentWindow, this.getParentOrigin());
|
|
136
|
-
// }
|
|
137
|
-
// }
|
|
138
|
-
|
|
139
|
-
// // 创建受管理的iframe
|
|
140
|
-
// createManagedIframe(url, container) {
|
|
141
|
-
// return new Promise((resolve, reject) => {
|
|
142
|
-
// const iframe = document.createElement('iframe');
|
|
143
|
-
// iframe.src = url;
|
|
144
|
-
// container.appendChild(iframe);
|
|
145
|
-
|
|
146
|
-
// const origin = new URL(url).origin;
|
|
147
|
-
// this.addTrustedOrigin(origin);
|
|
148
|
-
|
|
149
|
-
// // 设置加载完成监听
|
|
150
|
-
// iframe.onload = () => {
|
|
151
|
-
// try {
|
|
152
|
-
// // 存储为待处理iframe,等待IFRAME_READY消息
|
|
153
|
-
// this.pendingIframes?.set(iframe.contentWindow, { resolve, reject });
|
|
154
|
-
|
|
155
|
-
// // 设置超时拒绝
|
|
156
|
-
// setTimeout(() => {
|
|
157
|
-
// if (this.pendingIframes?.has(iframe.contentWindow)) {
|
|
158
|
-
// this.pendingIframes?.delete?.(iframe.contentWindow);
|
|
159
|
-
// reject(new Error('Iframe ready timeout'));
|
|
160
|
-
// }
|
|
161
|
-
// }, 5000);
|
|
162
|
-
// } catch (e) {
|
|
163
|
-
// reject(e);
|
|
164
|
-
// }
|
|
165
|
-
// };
|
|
166
|
-
|
|
167
|
-
// iframe.onerror = () => {
|
|
168
|
-
// reject(new Error('Iframe failed to load'));
|
|
169
|
-
// };
|
|
170
|
-
// });
|
|
171
|
-
// }
|
|
172
|
-
|
|
173
|
-
// // 添加信任源
|
|
174
|
-
// addTrustedOrigin(origin) {
|
|
175
|
-
// if (!this.trustedOrigins.has(origin)) {
|
|
176
|
-
// this.trustedOrigins.add(origin);
|
|
177
|
-
// }
|
|
178
|
-
// }
|
|
179
|
-
|
|
180
|
-
// // 验证源是否可信
|
|
181
|
-
// isTrustedOrigin(origin) {
|
|
182
|
-
// return this.trustedOrigins.has(origin);
|
|
183
|
-
// }
|
|
184
|
-
|
|
185
|
-
// // 获取父窗口origin
|
|
186
|
-
// getParentOrigin() {
|
|
187
|
-
// return Array.from(this.trustedOrigins).find(o => o !== window.location.origin) || '*';
|
|
188
|
-
// }
|
|
189
|
-
|
|
190
|
-
// // 清理连接
|
|
191
|
-
// cleanupConnection(targetWindow) {
|
|
192
|
-
// this.iframeRegistry?.delete?.(targetWindow);
|
|
193
|
-
// this.pendingIframes?.delete?.(targetWindow);
|
|
194
|
-
// }
|
|
195
|
-
|
|
196
|
-
// // 销毁实例
|
|
197
|
-
// destroy() {
|
|
198
|
-
// window.removeEventListener('message', this.handleMessage);
|
|
199
|
-
// if (this.unsubscribe) this.unsubscribe();
|
|
200
|
-
// this.enabled = false;
|
|
201
|
-
// }
|
|
202
|
-
// }
|
|
203
|
-
|
|
204
|
-
// // 挂载到全局对象
|
|
205
|
-
// global.$ambAppIframe = global.$ambAppIframe || new GlobalCommunicator();
|
|
206
|
-
|
|
207
|
-
// // 添加快捷方法
|
|
208
|
-
// global.$ambAppIframe.enable = function() {
|
|
209
|
-
// this.enabled = true;
|
|
210
|
-
// };
|
|
211
|
-
|
|
212
|
-
// global.$ambAppIframe.disable = function() {
|
|
213
|
-
// this.enabled = false;
|
|
214
|
-
// };
|
|
215
|
-
|
|
216
|
-
// })(window);
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
// if (window.$ambAppIframe) window.$ambAppIframe.bindStore(store);
|
|
220
|
-
|
|
221
|
-
// if (window !== window.top) {
|
|
222
|
-
// try {
|
|
223
|
-
// window.parent.postMessage({
|
|
224
|
-
// type: 'IFRAME_READY',
|
|
225
|
-
// source: window.location.origin
|
|
226
|
-
// }, '*');
|
|
227
|
-
// } catch (error) {
|
|
228
|
-
// console.error(error)
|
|
229
|
-
// }
|
|
230
|
-
// }
|
|
231
|
-
|
|
232
|
-
// // export {
|
|
233
|
-
// // store as systemStore
|
|
234
|
-
// // }
|
package/src/utils/index.js
DELETED
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Created by jiachenpan on 16/11/18.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
export function parseTime(time, cFormat) {
|
|
6
|
-
if (arguments.length === 0) {
|
|
7
|
-
return null
|
|
8
|
-
}
|
|
9
|
-
const format = cFormat || '{y}-{m}-{d} {h}:{i}:{s}'
|
|
10
|
-
let date
|
|
11
|
-
if (typeof time === 'object') {
|
|
12
|
-
date = time
|
|
13
|
-
} else {
|
|
14
|
-
if (('' + time).length === 10) time = parseInt(time) * 1000
|
|
15
|
-
date = new Date(time)
|
|
16
|
-
}
|
|
17
|
-
const formatObj = {
|
|
18
|
-
y: date.getFullYear(),
|
|
19
|
-
m: date.getMonth() + 1,
|
|
20
|
-
d: date.getDate(),
|
|
21
|
-
h: date.getHours(),
|
|
22
|
-
i: date.getMinutes(),
|
|
23
|
-
s: date.getSeconds(),
|
|
24
|
-
a: date.getDay(),
|
|
25
|
-
}
|
|
26
|
-
const time_str = format.replace(/{(y|m|d|h|i|s|a)+}/g, (result, key) => {
|
|
27
|
-
let value = formatObj[key]
|
|
28
|
-
// Note: getDay() returns 0 on Sunday
|
|
29
|
-
if (key === 'a') {
|
|
30
|
-
return ['日', '一', '二', '三', '四', '五', '六'][value]
|
|
31
|
-
}
|
|
32
|
-
if (result.length > 0 && value < 10) {
|
|
33
|
-
value = '0' + value
|
|
34
|
-
}
|
|
35
|
-
return value || 0
|
|
36
|
-
})
|
|
37
|
-
return time_str
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export function formatTime(time, option) {
|
|
41
|
-
if (('' + time).length === 10) {
|
|
42
|
-
time = parseInt(time) * 1000
|
|
43
|
-
} else {
|
|
44
|
-
time = +time
|
|
45
|
-
}
|
|
46
|
-
const d = new Date(time)
|
|
47
|
-
const now = Date.now()
|
|
48
|
-
|
|
49
|
-
const diff = (now - d) / 1000
|
|
50
|
-
|
|
51
|
-
if (diff < 30) {
|
|
52
|
-
return '刚刚'
|
|
53
|
-
} else if (diff < 3600) {
|
|
54
|
-
// less 1 hour
|
|
55
|
-
return Math.ceil(diff / 60) + '分钟前'
|
|
56
|
-
} else if (diff < 3600 * 24) {
|
|
57
|
-
return Math.ceil(diff / 3600) + '小时前'
|
|
58
|
-
} else if (diff < 3600 * 24 * 2) {
|
|
59
|
-
return '1天前'
|
|
60
|
-
}
|
|
61
|
-
if (option) {
|
|
62
|
-
return parseTime(time, option)
|
|
63
|
-
} else {
|
|
64
|
-
return (
|
|
65
|
-
d.getMonth() +
|
|
66
|
-
1 +
|
|
67
|
-
'月' +
|
|
68
|
-
d.getDate() +
|
|
69
|
-
'日' +
|
|
70
|
-
d.getHours() +
|
|
71
|
-
'时' +
|
|
72
|
-
d.getMinutes() +
|
|
73
|
-
'分'
|
|
74
|
-
)
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
export function isExternal(path) {
|
|
79
|
-
return /^(https?:|mailto:|tel:)/.test(path)
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
export function getStore() {
|
|
83
|
-
return window.Vue.$store
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
export function getRouter() {
|
|
87
|
-
return window.Vue.$router
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
export function utf8ToB64(str) {
|
|
91
|
-
return window.btoa(unescape(encodeURIComponent(str)))
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
export function b64ToUtf8(str) {
|
|
95
|
-
return decodeURIComponent(escape(window.atob(str)))
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
export function getLoginName(jwt) {
|
|
99
|
-
const payload = jwt.split('.')[1]
|
|
100
|
-
const result = b64ToUtf8(payload)
|
|
101
|
-
return JSON.parse(result).sub
|
|
102
|
-
}
|