agilebuilder-ui 1.0.0
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/README.md +7 -0
- package/index.html +13 -0
- package/package.json +36 -0
- package/packages/IntervalSelection/index.js +6 -0
- package/packages/IntervalSelection/src/quarterScope.vue +405 -0
- package/packages/IntervalSelection/src/sectionDate.vue +475 -0
- package/packages/breadcrumb/index.js +6 -0
- package/packages/breadcrumb/src/breadcrumb.vue +81 -0
- package/packages/department-tree/index.js +6 -0
- package/packages/department-tree/src/department-tree.vue +114 -0
- package/packages/department-tree-inline/index.js +6 -0
- package/packages/department-tree-inline/src/department-multi-tree-inline.vue +494 -0
- package/packages/department-tree-inline/src/department-single-tree-inline.vue +367 -0
- package/packages/department-tree-inline/src/department-tree-inline.vue +86 -0
- package/packages/department-tree-inline/src/department-tree-service.js +344 -0
- package/packages/department-tree-inline/src/search-result.vue +238 -0
- package/packages/department-user-tree/index.js +6 -0
- package/packages/department-user-tree/src/department-user-multiple-tree.vue +133 -0
- package/packages/department-user-tree/src/department-user-single-tree.vue +96 -0
- package/packages/department-user-tree/src/department-user-tree.vue +115 -0
- package/packages/department-user-tree-inline/index.js +9 -0
- package/packages/department-user-tree-inline/src/department-user-multiple-tree-inline.vue +758 -0
- package/packages/department-user-tree-inline/src/department-user-single-tree-inline.vue +358 -0
- package/packages/department-user-tree-inline/src/department-user-tree-inline.vue +87 -0
- package/packages/department-user-tree-inline/src/department-user-tree-multi-service.js +309 -0
- package/packages/department-user-tree-inline/src/department-user-tree-single-service.js +180 -0
- package/packages/department-user-tree-inline/src/search-result.vue +286 -0
- package/packages/directives/prevent-reclick.js +22 -0
- package/packages/dynamic-source-select/index.js +6 -0
- package/packages/dynamic-source-select/src/dynamic-source-select-service.js +124 -0
- package/packages/dynamic-source-select/src/dynamic-source-select.vue +857 -0
- package/packages/dynamic-source-select/src/events.js +77 -0
- package/packages/fs-preview/index.js +6 -0
- package/packages/fs-preview/src/fs-preview.vue +303 -0
- package/packages/fs-upload/index.js +6 -0
- package/packages/fs-upload/src/fs-upload-multi.vue +458 -0
- package/packages/fs-upload/src/fs-upload-single.vue +365 -0
- package/packages/fs-upload/src/fs-upload.vue +191 -0
- package/packages/fs-upload/src/see-big-picture.vue +67 -0
- package/packages/fs-upload-list/index.js +6 -0
- package/packages/fs-upload-list/src/fs-upload-list.vue +387 -0
- package/packages/hamburger/index.js +6 -0
- package/packages/hamburger/src/hamburger.vue +50 -0
- package/packages/index.js +124 -0
- package/packages/multipart-upload/index.js +6 -0
- package/packages/multipart-upload/src/index.vue +66 -0
- package/packages/multipart-upload/src/multipart-upload-form.vue +395 -0
- package/packages/multipart-upload/src/multipart-upload-list.vue +539 -0
- package/packages/organization-input/index.js +6 -0
- package/packages/organization-input/src/organization-input.vue +579 -0
- package/packages/plugins/export-data-new.js +630 -0
- package/packages/plugins/export-data.js +431 -0
- package/packages/plugins/index.js +15 -0
- package/packages/plugins/public-method.js +47 -0
- package/packages/remove-department/index.js +6 -0
- package/packages/remove-department/src/remove-department.vue +201 -0
- package/packages/remove-department/src/remove-dept-service.js +31 -0
- package/packages/remove-user/index.js +6 -0
- package/packages/remove-user/src/remove-user-service.js +31 -0
- package/packages/remove-user/src/remove-user.vue +227 -0
- package/packages/remove-workgroup/index.js +6 -0
- package/packages/remove-workgroup/src/remove-workgroup-service.js +31 -0
- package/packages/remove-workgroup/src/remove-workgroup.vue +184 -0
- package/packages/rich-editor/index.js +7 -0
- package/packages/rich-editor/index.vue +314 -0
- package/packages/rich-editor/tinymce/icons/default/icons.min.js +1 -0
- package/packages/rich-editor/tinymce/langs/README.md +3 -0
- package/packages/rich-editor/tinymce/langs/zh-Hans.js +1 -0
- package/packages/rich-editor/tinymce/license.txt +21 -0
- package/packages/rich-editor/tinymce/models/dom/model.min.js +4 -0
- package/packages/rich-editor/tinymce/plugins/accordion/plugin.min.js +4 -0
- package/packages/rich-editor/tinymce/plugins/advlist/plugin.min.js +4 -0
- package/packages/rich-editor/tinymce/plugins/anchor/plugin.min.js +4 -0
- package/packages/rich-editor/tinymce/plugins/autolink/plugin.min.js +4 -0
- package/packages/rich-editor/tinymce/plugins/autoresize/plugin.min.js +4 -0
- package/packages/rich-editor/tinymce/plugins/autosave/plugin.min.js +4 -0
- package/packages/rich-editor/tinymce/plugins/charmap/plugin.min.js +4 -0
- package/packages/rich-editor/tinymce/plugins/code/plugin.min.js +4 -0
- package/packages/rich-editor/tinymce/plugins/codesample/plugin.min.js +4 -0
- package/packages/rich-editor/tinymce/plugins/directionality/plugin.min.js +4 -0
- package/packages/rich-editor/tinymce/plugins/emoticons/js/emojiimages.js +1 -0
- package/packages/rich-editor/tinymce/plugins/emoticons/js/emojiimages.min.js +3 -0
- package/packages/rich-editor/tinymce/plugins/emoticons/js/emojis.js +1 -0
- package/packages/rich-editor/tinymce/plugins/emoticons/js/emojis.min.js +2 -0
- package/packages/rich-editor/tinymce/plugins/emoticons/plugin.min.js +4 -0
- package/packages/rich-editor/tinymce/plugins/fullscreen/plugin.min.js +4 -0
- package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/ar.js +90 -0
- package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/bg_BG.js +90 -0
- package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/ca.js +90 -0
- package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/cs.js +90 -0
- package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/da.js +90 -0
- package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/de.js +90 -0
- package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/el.js +90 -0
- package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/en.js +90 -0
- package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/es.js +90 -0
- package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/eu.js +90 -0
- package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/fa.js +90 -0
- package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/fi.js +90 -0
- package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/fr_FR.js +90 -0
- package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/he_IL.js +90 -0
- package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/hi.js +90 -0
- package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/hr.js +90 -0
- package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/hu_HU.js +90 -0
- package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/id.js +90 -0
- package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/it.js +90 -0
- package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/ja.js +90 -0
- package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/kk.js +90 -0
- package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/ko_KR.js +90 -0
- package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/ms.js +90 -0
- package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/nb_NO.js +90 -0
- package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/nl.js +90 -0
- package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/pl.js +90 -0
- package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/pt_BR.js +90 -0
- package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/pt_PT.js +90 -0
- package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/ro.js +90 -0
- package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/ru.js +90 -0
- package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/sk.js +90 -0
- package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/sl_SI.js +90 -0
- package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/sv_SE.js +90 -0
- package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/th_TH.js +90 -0
- package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/tr.js +90 -0
- package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/uk.js +90 -0
- package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/vi.js +90 -0
- package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/zh_CN.js +84 -0
- package/packages/rich-editor/tinymce/plugins/help/js/i18n/keynav/zh_TW.js +90 -0
- package/packages/rich-editor/tinymce/plugins/help/plugin.min.js +4 -0
- package/packages/rich-editor/tinymce/plugins/image/plugin.min.js +4 -0
- package/packages/rich-editor/tinymce/plugins/importcss/plugin.min.js +4 -0
- package/packages/rich-editor/tinymce/plugins/insertdatetime/plugin.min.js +4 -0
- package/packages/rich-editor/tinymce/plugins/link/plugin.min.js +4 -0
- package/packages/rich-editor/tinymce/plugins/lists/plugin.min.js +4 -0
- package/packages/rich-editor/tinymce/plugins/media/plugin.min.js +4 -0
- package/packages/rich-editor/tinymce/plugins/nonbreaking/plugin.min.js +4 -0
- package/packages/rich-editor/tinymce/plugins/pagebreak/plugin.min.js +4 -0
- package/packages/rich-editor/tinymce/plugins/preview/plugin.min.js +4 -0
- package/packages/rich-editor/tinymce/plugins/quickbars/plugin.min.js +4 -0
- package/packages/rich-editor/tinymce/plugins/save/plugin.min.js +4 -0
- package/packages/rich-editor/tinymce/plugins/searchreplace/plugin.min.js +4 -0
- package/packages/rich-editor/tinymce/plugins/table/plugin.min.js +4 -0
- package/packages/rich-editor/tinymce/plugins/template/plugin.min.js +4 -0
- package/packages/rich-editor/tinymce/plugins/visualblocks/plugin.min.js +4 -0
- package/packages/rich-editor/tinymce/plugins/visualchars/plugin.min.js +4 -0
- package/packages/rich-editor/tinymce/plugins/wordcount/plugin.min.js +4 -0
- package/packages/rich-editor/tinymce/skins/content/dark/content.js +2 -0
- package/packages/rich-editor/tinymce/skins/content/dark/content.min.css +1 -0
- package/packages/rich-editor/tinymce/skins/content/default/content.js +2 -0
- package/packages/rich-editor/tinymce/skins/content/default/content.min.css +1 -0
- package/packages/rich-editor/tinymce/skins/content/document/content.js +2 -0
- package/packages/rich-editor/tinymce/skins/content/document/content.min.css +1 -0
- package/packages/rich-editor/tinymce/skins/content/tinymce-5/content.js +2 -0
- package/packages/rich-editor/tinymce/skins/content/tinymce-5/content.min.css +1 -0
- package/packages/rich-editor/tinymce/skins/content/tinymce-5-dark/content.js +2 -0
- package/packages/rich-editor/tinymce/skins/content/tinymce-5-dark/content.min.css +1 -0
- package/packages/rich-editor/tinymce/skins/content/writer/content.js +2 -0
- package/packages/rich-editor/tinymce/skins/content/writer/content.min.css +1 -0
- package/packages/rich-editor/tinymce/skins/ui/oxide/content.inline.js +2 -0
- package/packages/rich-editor/tinymce/skins/ui/oxide/content.inline.min.css +1 -0
- package/packages/rich-editor/tinymce/skins/ui/oxide/content.js +2 -0
- package/packages/rich-editor/tinymce/skins/ui/oxide/content.min.css +1 -0
- package/packages/rich-editor/tinymce/skins/ui/oxide/skin.js +2 -0
- package/packages/rich-editor/tinymce/skins/ui/oxide/skin.min.css +1 -0
- package/packages/rich-editor/tinymce/skins/ui/oxide/skin.shadowdom.js +2 -0
- package/packages/rich-editor/tinymce/skins/ui/oxide/skin.shadowdom.min.css +1 -0
- package/packages/rich-editor/tinymce/skins/ui/oxide-dark/content.inline.js +2 -0
- package/packages/rich-editor/tinymce/skins/ui/oxide-dark/content.inline.min.css +1 -0
- package/packages/rich-editor/tinymce/skins/ui/oxide-dark/content.js +2 -0
- package/packages/rich-editor/tinymce/skins/ui/oxide-dark/content.min.css +1 -0
- package/packages/rich-editor/tinymce/skins/ui/oxide-dark/skin.js +2 -0
- package/packages/rich-editor/tinymce/skins/ui/oxide-dark/skin.min.css +1 -0
- package/packages/rich-editor/tinymce/skins/ui/oxide-dark/skin.shadowdom.js +2 -0
- package/packages/rich-editor/tinymce/skins/ui/oxide-dark/skin.shadowdom.min.css +1 -0
- package/packages/rich-editor/tinymce/skins/ui/tinymce-5/content.inline.js +2 -0
- package/packages/rich-editor/tinymce/skins/ui/tinymce-5/content.inline.min.css +1 -0
- package/packages/rich-editor/tinymce/skins/ui/tinymce-5/content.js +2 -0
- package/packages/rich-editor/tinymce/skins/ui/tinymce-5/content.min.css +1 -0
- package/packages/rich-editor/tinymce/skins/ui/tinymce-5/skin.js +2 -0
- package/packages/rich-editor/tinymce/skins/ui/tinymce-5/skin.min.css +1 -0
- package/packages/rich-editor/tinymce/skins/ui/tinymce-5/skin.shadowdom.js +2 -0
- package/packages/rich-editor/tinymce/skins/ui/tinymce-5/skin.shadowdom.min.css +1 -0
- package/packages/rich-editor/tinymce/skins/ui/tinymce-5-dark/content.inline.js +2 -0
- package/packages/rich-editor/tinymce/skins/ui/tinymce-5-dark/content.inline.min.css +1 -0
- package/packages/rich-editor/tinymce/skins/ui/tinymce-5-dark/content.js +2 -0
- package/packages/rich-editor/tinymce/skins/ui/tinymce-5-dark/content.min.css +1 -0
- package/packages/rich-editor/tinymce/skins/ui/tinymce-5-dark/skin.js +2 -0
- package/packages/rich-editor/tinymce/skins/ui/tinymce-5-dark/skin.min.css +1 -0
- package/packages/rich-editor/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.js +2 -0
- package/packages/rich-editor/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.min.css +1 -0
- package/packages/rich-editor/tinymce/themes/silver/theme.min.js +4 -0
- package/packages/rich-editor/tinymce/tinymce.d.ts +3238 -0
- package/packages/rich-editor/tinymce/tinymce.min.js +4 -0
- package/packages/rich-editor/tinymce/zh_CN.js +418 -0
- package/packages/rich-editor/viewer.vue +105 -0
- package/packages/scan-code-input/index.js +6 -0
- package/packages/scan-code-input/src/events.js +34 -0
- package/packages/scan-code-input/src/scan-code-input-colse.vue +140 -0
- package/packages/scan-code-input/src/scan-code-input.vue +132 -0
- package/packages/secret-info/index.js +7 -0
- package/packages/secret-info/index.vue +100 -0
- package/packages/super-grid/index.js +7 -0
- package/packages/super-grid/src/apis.js +1193 -0
- package/packages/super-grid/src/columns-config.vue +429 -0
- package/packages/super-grid/src/components/grid-icon.vue +162 -0
- package/packages/super-grid/src/components/hyperlinks.vue +114 -0
- package/packages/super-grid/src/custom-formatter.js +430 -0
- package/packages/super-grid/src/dynamic-input.vue +1473 -0
- package/packages/super-grid/src/eventBus.js +10 -0
- package/packages/super-grid/src/events.js +56 -0
- package/packages/super-grid/src/formValidatorUtil.js +300 -0
- package/packages/super-grid/src/formatter.js +196 -0
- package/packages/super-grid/src/group-column.vue +99 -0
- package/packages/super-grid/src/header-context-menu.vue +82 -0
- package/packages/super-grid/src/index-column.vue +69 -0
- package/packages/super-grid/src/normal-column.vue +1239 -0
- package/packages/super-grid/src/public-methods.js +30 -0
- package/packages/super-grid/src/row-operation.vue +193 -0
- package/packages/super-grid/src/search-button.vue +79 -0
- package/packages/super-grid/src/search-condition-input.vue +74 -0
- package/packages/super-grid/src/search-condition-list.vue +70 -0
- package/packages/super-grid/src/search-form-advancedQuery.vue +833 -0
- package/packages/super-grid/src/search-form-dialog.vue +77 -0
- package/packages/super-grid/src/search-form-item.vue +496 -0
- package/packages/super-grid/src/search-form-number.vue +111 -0
- package/packages/super-grid/src/search-form-open.vue +178 -0
- package/packages/super-grid/src/search-form-ordinarySearch.vue +248 -0
- package/packages/super-grid/src/search-form.vue +767 -0
- package/packages/super-grid/src/search-methods.js +591 -0
- package/packages/super-grid/src/selection-column.vue +46 -0
- package/packages/super-grid/src/store.js +3 -0
- package/packages/super-grid/src/super-grid-service.js +729 -0
- package/packages/super-grid/src/super-grid.vue +3025 -0
- package/packages/super-grid/src/utils.js +880 -0
- package/packages/super-grid/src/view-image-dialog.vue +190 -0
- package/packages/super-nine-grid/index.js +7 -0
- package/packages/super-nine-grid/src/apis.js +108 -0
- package/packages/super-nine-grid/src/custom-formatter.js +73 -0
- package/packages/super-nine-grid/src/formatter.js +134 -0
- package/packages/super-nine-grid/src/search-form-number.vue +35 -0
- package/packages/super-nine-grid/src/search-form.vue +704 -0
- package/packages/super-nine-grid/src/search-methods.js +151 -0
- package/packages/super-nine-grid/src/store.js +3 -0
- package/packages/super-nine-grid/src/super-grid-service.js +108 -0
- package/packages/super-nine-grid/src/super-nine-grid.vue +1211 -0
- package/packages/super-nine-grid/src/utils.js +264 -0
- package/packages/svg-icon/index.js +6 -0
- package/packages/svg-icon/src/svg-icon.vue +43 -0
- package/packages/utils/date-util.js +292 -0
- package/packages/utils/dom.js +227 -0
- package/packages/utils/gogocodeTransfer.js +59 -0
- package/packages/utils/memory-cache-utils.js +117 -0
- package/packages/utils/utils.js +180 -0
- package/packages/utils/value-set.js +97 -0
- package/packages/valid-code/index.js +7 -0
- package/packages/valid-code/src/valid-code.vue +104 -0
- package/packages/workflow-button/index.js +6 -0
- package/packages/workflow-button/src/workflow-button.vue +569 -0
- package/packages/workflow-history-list/index.js +6 -0
- package/packages/workflow-history-list/src/api.js +7 -0
- package/packages/workflow-history-list/src/workflow-history-list.vue +302 -0
- package/packages/workgroup-tree/index.js +6 -0
- package/packages/workgroup-tree/src/workgroup-tree.vue +87 -0
- package/packages/workgroup-tree-inline/index.js +6 -0
- package/packages/workgroup-tree-inline/src/search-result.vue +226 -0
- package/packages/workgroup-tree-inline/src/workgroup-tree-inline.vue +539 -0
- package/packages/workgroup-tree-inline/src/workgroup-tree-service.js +93 -0
- package/packages/workgroup-user-tree/index.js +6 -0
- package/packages/workgroup-user-tree/src/workgroup-user-tree.vue +104 -0
- package/packages/workgroup-user-tree-inline/index.js +9 -0
- package/packages/workgroup-user-tree-inline/src/search-result.vue +270 -0
- package/packages/workgroup-user-tree-inline/src/workgroup-tree-inline-service.js +239 -0
- package/packages/workgroup-user-tree-inline/src/workgroup-user-tree-inline.vue +681 -0
- package/packages/year-range-picker/index.js +6 -0
- package/packages/year-range-picker/src/year-range-picker.vue +53 -0
- package/public/vite.svg +1 -0
- package/src/api/sso-service.js +193 -0
- package/src/api/tab.js +36 -0
- package/src/api/user-service.js +11 -0
- 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/cloud.png +0 -0
- package/src/assets/nonemessage.png +0 -0
- package/src/directives/permission/index.js +13 -0
- package/src/directives/permission/permission.js +20 -0
- package/src/i18n/i18n.js +16 -0
- package/src/i18n/langs/cn.js +266 -0
- package/src/i18n/langs/en.js +276 -0
- package/src/index.js +93 -0
- package/src/permission.js +242 -0
- package/src/plugins.js +18 -0
- package/src/router/index.js +92 -0
- package/src/store/getters.js +15 -0
- package/src/store/index.js +19 -0
- package/src/store/modules/app.js +54 -0
- package/src/store/modules/permission.js +143 -0
- package/src/store/modules/tab-content.js +36 -0
- package/src/store/modules/user.js +365 -0
- package/src/styles/display-layout.scss +34 -0
- package/src/styles/element-ui.scss +29 -0
- package/src/styles/index.scss +157 -0
- package/src/styles/mixin.scss +27 -0
- package/src/styles/theme/black/font-style.scss +70 -0
- package/src/styles/theme/black/index.scss +306 -0
- package/src/styles/theme/black/sidebar.scss +189 -0
- package/src/styles/theme/blue/font-style.scss +46 -0
- package/src/styles/theme/blue/index.scss +172 -0
- package/src/styles/theme/blue/sidebar.scss +171 -0
- package/src/styles/theme/blue2/font-style.scss +70 -0
- package/src/styles/theme/blue2/index.scss +188 -0
- package/src/styles/theme/blue2/sidebar.scss +201 -0
- package/src/styles/theme/dark-blue/button.scss +78 -0
- package/src/styles/theme/dark-blue/card.scss +63 -0
- package/src/styles/theme/dark-blue/checkbox.scss +10 -0
- package/src/styles/theme/dark-blue/dark-blue-var.scss +9 -0
- package/src/styles/theme/dark-blue/dialog.scss +17 -0
- package/src/styles/theme/dark-blue/element-variables.scss +7 -0
- package/src/styles/theme/dark-blue/font.scss +71 -0
- package/src/styles/theme/dark-blue/form.scss +51 -0
- package/src/styles/theme/dark-blue/index.scss +277 -0
- package/src/styles/theme/dark-blue/input.scss +15 -0
- package/src/styles/theme/dark-blue/message.scss +8 -0
- package/src/styles/theme/dark-blue/pagination.scss +18 -0
- package/src/styles/theme/dark-blue/radio.scss +13 -0
- package/src/styles/theme/dark-blue/scrollbar-style.scss +32 -0
- package/src/styles/theme/dark-blue/sidebar.scss +268 -0
- package/src/styles/theme/dark-blue/tab.scss +83 -0
- package/src/styles/theme/dark-blue/table.scss +60 -0
- package/src/styles/theme/dark-blue/tree.scss +57 -0
- package/src/styles/theme/dark-blue/var.scss +1028 -0
- package/src/styles/theme/gray/card-style.scss +54 -0
- package/src/styles/theme/gray/font-style.scss +70 -0
- package/src/styles/theme/gray/index.scss +172 -0
- package/src/styles/theme/gray/input-style.scss +19 -0
- package/src/styles/theme/gray/scrollbar-style.scss +32 -0
- package/src/styles/theme/gray/sidebar.scss +243 -0
- package/src/styles/theme/gray/tab-style.scss +81 -0
- package/src/styles/transition.scss +47 -0
- package/src/utils/auth-api.js +259 -0
- package/src/utils/auth.js +98 -0
- package/src/utils/calculator/calculator-factory-wf.js +558 -0
- package/src/utils/calculator/calculator-factory.js +145 -0
- package/src/utils/calculator/calculator-util.js +166 -0
- package/src/utils/common-util.js +474 -0
- package/src/utils/eventBus.js +10 -0
- package/src/utils/iconUtils.js +37 -0
- package/src/utils/index.js +102 -0
- package/src/utils/jump-page-utils.js +824 -0
- package/src/utils/local-storage.js +33 -0
- package/src/utils/menu.js +19 -0
- package/src/utils/permission.js +31 -0
- package/src/utils/permissionAuth.js +121 -0
- package/src/utils/range-selector.js +204 -0
- package/src/utils/request.js +280 -0
- package/src/utils/restful-interface-utils.js +57 -0
- package/src/utils/util.js +910 -0
- package/src/utils/validate.js +34 -0
- package/src/utils/watermark.js +108 -0
- package/src/utils/workflow-util.js +104 -0
- package/src/views/404.vue +248 -0
- package/src/views/dsc-component/Sidebar/Item.vue +81 -0
- package/src/views/dsc-component/Sidebar/Link.vue +38 -0
- package/src/views/dsc-component/Sidebar/SidebarItem.vue +197 -0
- package/src/views/dsc-component/Sidebar/index.vue +229 -0
- package/src/views/dsc-component/tabs/tab-content.vue +215 -0
- package/src/views/error-page/401.vue +106 -0
- package/src/views/error-page/404.vue +248 -0
- package/src/views/layout/EmptyLayout.vue +3 -0
- package/src/views/layout/Layout.vue +81 -0
- package/src/views/layout/NewLayout.vue +18 -0
- package/src/views/layout/components/AppMain.vue +39 -0
- package/src/views/layout/components/Breadcrumb/index.vue +158 -0
- package/src/views/layout/components/Menubar/Item.vue +79 -0
- package/src/views/layout/components/Menubar/Link.vue +38 -0
- package/src/views/layout/components/Menubar/SidebarItem.vue +261 -0
- package/src/views/layout/components/Menubar/index.vue +210 -0
- package/src/views/layout/components/Sidebar/Item.vue +53 -0
- package/src/views/layout/components/Sidebar/Link.vue +38 -0
- package/src/views/layout/components/Sidebar/SidebarItem.vue +135 -0
- package/src/views/layout/components/Sidebar/index.vue +141 -0
- package/src/views/layout/components/iframe-page.vue +38 -0
- package/src/views/layout/components/index.js +4 -0
- package/src/views/layout/components/tabs/tab-content.vue +214 -0
- package/src/views/layout/mixin/ResizeHandler.js +41 -0
- package/src/views/layout/tab-content-iframe-index.vue +38 -0
- package/src/views/layout/tab-content-index.vue +92 -0
- package/src/views/login/authredirect.vue +10 -0
- package/src/views/login/index.vue +296 -0
- package/src/views/login/update-password.vue +243 -0
- package/src/views/redirect/index.vue +14 -0
- package/src/views/svg-icon/index.js +6 -0
- package/src/views/svg-icon/src/svg-icon.vue +46 -0
- package/src/views/wf-history/tache-subprocess-history.vue +45 -0
- package/vite.config.js +37 -0
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
const en = {
|
|
2
|
+
imatrixUIPublicModel: {
|
|
3
|
+
sure: 'Sure',
|
|
4
|
+
cancel: 'Cancel',
|
|
5
|
+
allDepartments: 'All Departments',
|
|
6
|
+
allUsers: 'All Users',
|
|
7
|
+
reset: 'Reset',
|
|
8
|
+
to: 'To',
|
|
9
|
+
edit: 'Edit',
|
|
10
|
+
clear: 'Clear',
|
|
11
|
+
download: 'Download',
|
|
12
|
+
delete: 'Delete',
|
|
13
|
+
preview: 'Preview',
|
|
14
|
+
add: 'Add',
|
|
15
|
+
graphView: 'Graphic view',
|
|
16
|
+
listView: 'List View',
|
|
17
|
+
fieldName: 'Field Name',
|
|
18
|
+
operator: 'Operator',
|
|
19
|
+
value: 'Value',
|
|
20
|
+
andOr: 'And/Or',
|
|
21
|
+
whenTheVariableIsEmpty: 'When The Variable Is Empty',
|
|
22
|
+
perhaps: 'Perhaps',
|
|
23
|
+
also: 'Also',
|
|
24
|
+
greaterThan: 'Greater Than',
|
|
25
|
+
lessThan: 'Less Than',
|
|
26
|
+
beEqualTo: 'Be Equal To',
|
|
27
|
+
notGreaterThan: 'Not Greater Than',
|
|
28
|
+
notLessThan: 'Not Less Than',
|
|
29
|
+
notEqualTo: 'Not Equal To',
|
|
30
|
+
contain: 'Contain',
|
|
31
|
+
notIncluded: 'Not Included',
|
|
32
|
+
laterThan: 'Later Than',
|
|
33
|
+
earlierThan: 'Earlier Than',
|
|
34
|
+
noLaterThan: 'No Later Than',
|
|
35
|
+
noEarlierThan: 'No Earlier Than',
|
|
36
|
+
ignore11: 'Ignore (1 = 1)',
|
|
37
|
+
nonConformity: 'Non Conformity (1 < > 1)',
|
|
38
|
+
switchToNormalQuery: 'Switch To Normal Query',
|
|
39
|
+
switchToAdvancedQuery: 'Switch To Advanced Query',
|
|
40
|
+
isNull: 'Is Null',
|
|
41
|
+
isNotNull: 'Is Not Null',
|
|
42
|
+
previewImage: 'Preview image',
|
|
43
|
+
fullScreen: 'Full Screen',
|
|
44
|
+
forbidden: 'forbidden',
|
|
45
|
+
startUsing: 'Start Using',
|
|
46
|
+
systemCode: 'System Code'
|
|
47
|
+
},
|
|
48
|
+
imatrixUIMessage: {
|
|
49
|
+
whetherToConfirmDeletion: 'Whether To Confirm Deletion',
|
|
50
|
+
tips: 'Tips',
|
|
51
|
+
pleaseEnterContent: 'Please Enter Content',
|
|
52
|
+
internalServerError: 'Server error',
|
|
53
|
+
pleaseSelectDepartment: 'Please Select Department',
|
|
54
|
+
pleaseSelectPersonnel: 'Please Select Personnel',
|
|
55
|
+
pleaseRemoveallpersonnelBeforeSelectingSpecificPersonnel:
|
|
56
|
+
'Please Remove All Personnel Before Selecting Specific Personnel',
|
|
57
|
+
queryResultIsEmpty: 'Query Result Is Empty',
|
|
58
|
+
pleaseSelectATeam: 'Please Select A Team',
|
|
59
|
+
pleaseEnterTeamName: 'Please Enter Team Name',
|
|
60
|
+
validationFailed: 'Validation Failed',
|
|
61
|
+
selectionDate: 'Selection Date',
|
|
62
|
+
selectTime: 'Select Time',
|
|
63
|
+
pleaseEnterATimePoint: 'Please Enter A Time Point',
|
|
64
|
+
pleaseSelect: 'Please Select',
|
|
65
|
+
startDate: 'Start Date',
|
|
66
|
+
endDate: 'End Date',
|
|
67
|
+
noExportColumnsConfigured: 'No Export Columns Configured',
|
|
68
|
+
organizationTreeNoResultNotRemove:
|
|
69
|
+
'No information selected, no need to remove',
|
|
70
|
+
exceedFileSize: 'File size limit {filesize} M exceeded',
|
|
71
|
+
upload: 'Upload',
|
|
72
|
+
invalideDoubleValue: '{num} is not a legal decimal',
|
|
73
|
+
noJumpPage: 'Jump page not configured',
|
|
74
|
+
saveSuccessfully: 'Savee successfully',
|
|
75
|
+
pleaseInputSearchCondition: 'Please enter the query criteria',
|
|
76
|
+
fileUpload: 'File Upload',
|
|
77
|
+
selectYear: 'Select Year',
|
|
78
|
+
search: 'Search',
|
|
79
|
+
forbiddenException: 'You do not have permission to access this resource',
|
|
80
|
+
theButtonIsNotBoundToAResource:
|
|
81
|
+
'The button is not bound to a resource, Bind the resource first',
|
|
82
|
+
asyncExport: 'Asynchronous export, please wait for message notification!',
|
|
83
|
+
selectedWorkingGroup: 'Selected working group',
|
|
84
|
+
},
|
|
85
|
+
superGrid: {
|
|
86
|
+
columnConfig: 'Column Config',
|
|
87
|
+
pleaseSaveOrCancelEditingLine:
|
|
88
|
+
'Please Save Or Cancel Editing Line {row} Data First',
|
|
89
|
+
pleaseSaveLine: 'Please Save Line {row} Data First',
|
|
90
|
+
noNeedToSaveRow: 'No Need To Save Row {row} Data',
|
|
91
|
+
pleaseSetURLToSaveRowInformation:
|
|
92
|
+
'Please set "URL to save row information"',
|
|
93
|
+
lineSavedSuccessfully: 'Line {row} Saved Successfully',
|
|
94
|
+
theReturnValueOfTheBeforesaveCallbackMethodIsFalse:
|
|
95
|
+
'The Return Value Of The Beforesave Callback Method Is False',
|
|
96
|
+
lineNoNeedToUndoEdit: 'Line {row} No Need To Undo Edit',
|
|
97
|
+
lineCancelledSuccessfully: 'Line {row} cancelled successfully',
|
|
98
|
+
label: 'Label',
|
|
99
|
+
isShow: 'Is Show',
|
|
100
|
+
isExportable: 'Is Exportable',
|
|
101
|
+
recordLine: 'Record line {row}',
|
|
102
|
+
pageRecordLine: 'Record in row {row} of page {pageNum}',
|
|
103
|
+
fileName: 'File Name',
|
|
104
|
+
deleteSuccessful: 'Deleted successfully',
|
|
105
|
+
index: 'No.',
|
|
106
|
+
searchConditionName: 'Search Condition Name',
|
|
107
|
+
pleaseInputSearchConditionName:
|
|
108
|
+
'Please enter the name of the query criteria',
|
|
109
|
+
saveCondition: 'Save Condition',
|
|
110
|
+
saveConditionTitle: 'Save Condition',
|
|
111
|
+
displayOrder: 'Display Order',
|
|
112
|
+
width: 'Column Width',
|
|
113
|
+
default: 'Default',
|
|
114
|
+
custom: 'Custom',
|
|
115
|
+
show: 'Show',
|
|
116
|
+
hidden: 'Hidden',
|
|
117
|
+
export: 'Export',
|
|
118
|
+
unExport: 'Not Export',
|
|
119
|
+
whetherToConfirmReset: 'Are you sure you want to reset?',
|
|
120
|
+
resetSuccessful: 'Reset successfully',
|
|
121
|
+
dragColumnOrderMessage: 'Supports dragging to change column order',
|
|
122
|
+
selectAll: 'Select All',
|
|
123
|
+
viewImage: 'View Image',
|
|
124
|
+
previewTitleWhenNotImg: 'Non picture format, preview in other ways',
|
|
125
|
+
refresh: 'Refresh',
|
|
126
|
+
open: 'Open',
|
|
127
|
+
fold: 'Fold',
|
|
128
|
+
},
|
|
129
|
+
departmentTree: {},
|
|
130
|
+
departmentTreeInline: {
|
|
131
|
+
pleaseEnterDepartmentName: 'Please Enter Department Name',
|
|
132
|
+
name: 'Department Name',
|
|
133
|
+
code: 'Department Code',
|
|
134
|
+
removeDepartment: 'Remove Department',
|
|
135
|
+
selectedDept: 'Selected Departments',
|
|
136
|
+
namePath: 'Name Path',
|
|
137
|
+
},
|
|
138
|
+
// 用户树
|
|
139
|
+
departmentUserTree: {
|
|
140
|
+
pleaseEnterUserInformation: 'Please Enter User Information',
|
|
141
|
+
selectedPeople: 'Selected People',
|
|
142
|
+
searchFieldUserName: 'Name',
|
|
143
|
+
searchFieldLoginName: 'Login Name',
|
|
144
|
+
searchFieldEmail: 'Email',
|
|
145
|
+
searchFieldTelephone: 'Telephone',
|
|
146
|
+
searchFieldJobNumber: 'Job Number',
|
|
147
|
+
searchFieldHonorificName: 'Honorific',
|
|
148
|
+
},
|
|
149
|
+
// 嵌入用户树
|
|
150
|
+
departmentUserTreeInline: {
|
|
151
|
+
name: 'Name',
|
|
152
|
+
department: 'Department',
|
|
153
|
+
branch: 'Branch',
|
|
154
|
+
removeUser: 'Remove User',
|
|
155
|
+
email: 'Email',
|
|
156
|
+
loginName: 'Login Name',
|
|
157
|
+
superiorDeptNameFullPath: 'Department full path'
|
|
158
|
+
},
|
|
159
|
+
// 工作组树
|
|
160
|
+
workgroupTree: {
|
|
161
|
+
allTeamMembers: 'All Team Members',
|
|
162
|
+
name: 'Workgroup Name',
|
|
163
|
+
code: 'Workgroup Code',
|
|
164
|
+
removeWorkgroup: 'Remove Workgroup',
|
|
165
|
+
workingGroupName: 'Working Group Name',
|
|
166
|
+
workingGroupNumber: 'Working Group Number',
|
|
167
|
+
workgroupDescription: 'Workgroup Description',
|
|
168
|
+
},
|
|
169
|
+
// 流程按钮组件。save、submit等属性名不能随便改,和后台的ButtonType枚举名保持一致
|
|
170
|
+
workflowButton: {
|
|
171
|
+
save: 'Save',
|
|
172
|
+
submit: 'Submit',
|
|
173
|
+
approve: 'Approve',
|
|
174
|
+
refuse: 'Refuse',
|
|
175
|
+
agreement: 'Agree',
|
|
176
|
+
oppose: 'Opposition',
|
|
177
|
+
kiken: 'Abstention',
|
|
178
|
+
get_back_button: 'Retrieve',
|
|
179
|
+
copy: 'Copy',
|
|
180
|
+
draw: 'Draw',
|
|
181
|
+
abandon_draw: 'Give Up Draw',
|
|
182
|
+
add_sign: 'Additional Signature',
|
|
183
|
+
remove_sign: 'Reduction Of Signature',
|
|
184
|
+
signoff: 'Sign For',
|
|
185
|
+
assign: 'Hand over',
|
|
186
|
+
assign_task: 'Transfer',
|
|
187
|
+
readed: 'Readed',
|
|
188
|
+
export_report: 'Export Report',
|
|
189
|
+
draw_dept_task: 'Draw Department',
|
|
190
|
+
abandon_draw_dept_task: 'Give Up Draw Department',
|
|
191
|
+
},
|
|
192
|
+
// 流转历史文本组件
|
|
193
|
+
workflowHistoryList: {
|
|
194
|
+
specailText: 'specail',
|
|
195
|
+
index: 'Index',
|
|
196
|
+
taskName: 'Task Name',
|
|
197
|
+
operation: 'Operation',
|
|
198
|
+
opinion: 'Opinion',
|
|
199
|
+
processStart: 'Process Start',
|
|
200
|
+
processEnd: 'Process End',
|
|
201
|
+
process_start: '[{1}] process start',
|
|
202
|
+
prcoess_end: '[{1}] process End',
|
|
203
|
+
force_end_process:
|
|
204
|
+
'{key_1}forced to end the process, and the task of [{key_2}] was canceled',
|
|
205
|
+
history_jump: 'Process {key_3} to [{key_1}], [{key_2}] task cancelled',
|
|
206
|
+
history_back: '{key_1} returned to task,process returned to [{key_2}]',
|
|
207
|
+
history_removesign: '{key_1} minus [{key_2}]',
|
|
208
|
+
history_changetransactor_and_delegate:
|
|
209
|
+
'{key_1} changed the handler [{key_2}] to [{key_3}], [{key_4}] delegated the task to [{key_5}]',
|
|
210
|
+
history_changetransactor: '{key_1} changed handler [{key_2}] to [{key_3}]',
|
|
211
|
+
history_addsign: '{key_1} sign [{key_2}]',
|
|
212
|
+
history_addtransactor: '{key_1} add handler [{key_2}]',
|
|
213
|
+
history_removetransactor: '{key_1} decrease handler [{key_2}]',
|
|
214
|
+
history_delegate_and_assign:
|
|
215
|
+
'{key_1} assigned tasks to [{key_2}], [{key_3}] delegated tasks to [{key_4}]',
|
|
216
|
+
history_assign: '{key_1} assigned task to [{key_2}]',
|
|
217
|
+
transfer: '{key_1} transferred to [{key_2}]',
|
|
218
|
+
history_complete_transfer:
|
|
219
|
+
'{key_1} execute [{key_2}] operation and canceled the task of other receivers [{key_3}]',
|
|
220
|
+
history_delegate_receive: '{key_1} retracts the task entrusted to [{key_2}]',
|
|
221
|
+
history_delegate: '{key_1} has delegated task [{key_2}] to [{key_3}]',
|
|
222
|
+
history_quit_transfer:
|
|
223
|
+
'{key_1} Resignation, has transferred task [{key_2}] to [{key_3}',
|
|
224
|
+
history_change_job_transfer:
|
|
225
|
+
'{key_1} Change job,has transferred task [{key_2}] to [{key_3}',
|
|
226
|
+
commonButtonOperation: '{key_1} execute [{key_2}] operation',
|
|
227
|
+
history_draw_task:
|
|
228
|
+
'{key_1} received the task and cancelled the task of the candidate [{key_2}]',
|
|
229
|
+
history_abandon_draw:
|
|
230
|
+
'{key_1} gives up the task and restores the task of candidate [{key_2}]',
|
|
231
|
+
create_copy_task: '{key_1} The task was copied to [{key_2}',
|
|
232
|
+
toDoText: 'Todo',
|
|
233
|
+
operator: 'Operator',
|
|
234
|
+
operatorLg: 'Operator Login Name',
|
|
235
|
+
operatorDept: 'Operator Dept',
|
|
236
|
+
operationTime: 'Operation Time',
|
|
237
|
+
history_draw_dept_task: '{key_1} Received tasks from department [{key_2}]',
|
|
238
|
+
history_abandon_draw_dept_task:
|
|
239
|
+
'{key_1} Abandon the task of receiving department [{key_2}]',
|
|
240
|
+
},
|
|
241
|
+
gateway: {
|
|
242
|
+
timeout: 'Interface call timeout',
|
|
243
|
+
callFailed: 'Interface call failed',
|
|
244
|
+
},
|
|
245
|
+
// 九宫格列表组件
|
|
246
|
+
superNineGrid: {
|
|
247
|
+
add: 'Create',
|
|
248
|
+
},
|
|
249
|
+
fsUpload: {
|
|
250
|
+
upload: 'Upload',
|
|
251
|
+
download: 'Download',
|
|
252
|
+
delete: 'Delete',
|
|
253
|
+
preview: 'Preview',
|
|
254
|
+
name: 'Name',
|
|
255
|
+
picture: 'Picture',
|
|
256
|
+
operating: 'Operating',
|
|
257
|
+
uploadSucceeded: 'Upload succeeded',
|
|
258
|
+
theNumberOfUploadsExceedsTheLimitTheLimitIs:
|
|
259
|
+
'The number of uploads exceeds the limit. The limit is',
|
|
260
|
+
},
|
|
261
|
+
messageVideo: {
|
|
262
|
+
attemptingToIdentify: 'Attempting to identify',
|
|
263
|
+
callingRearCamera: 'Calling rear camera',
|
|
264
|
+
identificationFailed: 'Identification failed',
|
|
265
|
+
},
|
|
266
|
+
IntervalSelection: {
|
|
267
|
+
year: 'year',
|
|
268
|
+
quarter: 'quarter',
|
|
269
|
+
auxiliary: 'auxiliary word for ordinal numbers',
|
|
270
|
+
week: 'week',
|
|
271
|
+
},
|
|
272
|
+
imatrixUIPromptMessage: {
|
|
273
|
+
NoContent: 'No content',
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
export default en
|
package/src/index.js
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
// 依次导入组件库的各个组件
|
|
2
|
+
// import Breadcrumb from '../packages/breadcrumb'
|
|
3
|
+
// import DepartmentTree from '../packages/department-tree'
|
|
4
|
+
// import Hamburger from '../packages/hamburger'
|
|
5
|
+
// import SvgIcon from '../packages/svg-icon'
|
|
6
|
+
// import SuperGrid from '../packages/super-grid'
|
|
7
|
+
// import DepartmentUserTree from '../packages/department-user-tree'
|
|
8
|
+
// import WorkgroupTree from '../packages/workgroup-tree'
|
|
9
|
+
// import WorkgroupUserTree from '../packages/workgroup-user-tree'
|
|
10
|
+
// import InlineDepartmentTree from '../packages/department-tree-inline'
|
|
11
|
+
// import InlineDepartmentUserTree from '../packages/department-user-tree-inline'
|
|
12
|
+
// import InlineWorkgroupTree from '../packages/workgroup-tree-inline'
|
|
13
|
+
// import InlineWorkgroupUserTree from '../packages/workgroup-user-tree-inline'
|
|
14
|
+
// import WorkflowButton from '../packages/workflow-button'
|
|
15
|
+
// import WorkflowHistoryList from '../packages/workflow-history-list'
|
|
16
|
+
import PreventReclick from '../packages/directives/prevent-reclick'
|
|
17
|
+
// import exportPlugin from '../packages/export-data/index'
|
|
18
|
+
// import ValidCode from '../packages/valid-code'
|
|
19
|
+
import customPlugin from '../packages/plugins/index'
|
|
20
|
+
// import RemoveUser from '../packages/remove-user'
|
|
21
|
+
// import RemoveDepartment from '../packages/remove-department'
|
|
22
|
+
// import RemoveWorkgroup from '../packages/remove-workgroup'
|
|
23
|
+
// import OrganizationInput from '../packages/organization-input'
|
|
24
|
+
// import SuperNineGrid from '../packages/super-nine-grid'
|
|
25
|
+
// import DynamicSourceSelect from '../packages/dynamic-source-select'
|
|
26
|
+
// import FsUpload from '../packages/fs-upload'
|
|
27
|
+
// import ScanCodeInput from '../packages/scan-code-input'
|
|
28
|
+
// import FsPreview from '../packages/fs-preview'
|
|
29
|
+
// import FsUploadList from '../packages/fs-upload-list'
|
|
30
|
+
import { openPage } from './utils/jump-page-utils'
|
|
31
|
+
// import YearRangePicker from '../packages/year-range-picker'
|
|
32
|
+
// import MultipartUpload from '../packages/multipart-upload'
|
|
33
|
+
// import RichEditor from '../packages/rich-editor'
|
|
34
|
+
// import SecretInfo from '../packages/secret-info'
|
|
35
|
+
import plugins from '../packages/plugins/index'
|
|
36
|
+
import permission from './directives/permission'
|
|
37
|
+
|
|
38
|
+
// 定义 install 方法,接收 Vue 作为参数。如果使用 use 注册插件,则所有的组件都将被注册
|
|
39
|
+
const install = function (Vue) {
|
|
40
|
+
window.$vueApp.directive('prevent-reclick', PreventReclick)
|
|
41
|
+
permission.install(Vue)
|
|
42
|
+
window.$vueApp.use(customPlugin)
|
|
43
|
+
window.$vueApp.use(plugins)
|
|
44
|
+
if (install.installed) return
|
|
45
|
+
// components.map(component => Vue.component(component.name, component))
|
|
46
|
+
// components.forEach(component => {
|
|
47
|
+
// Vue.component(component.name, component)
|
|
48
|
+
// })
|
|
49
|
+
// 将弹出页面方法注册到window对象上
|
|
50
|
+
window['$plateform_openPage'] = openPage
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
// 判断是否是直接引入vue的js文件,即全局引用可自动安装所有组件
|
|
54
|
+
if (typeof window !== 'undefined' && window.Vue) {
|
|
55
|
+
install(window.Vue)
|
|
56
|
+
}
|
|
57
|
+
// 按需引入
|
|
58
|
+
// export {
|
|
59
|
+
// Breadcrumb,
|
|
60
|
+
// DepartmentTree,
|
|
61
|
+
// Hamburger,
|
|
62
|
+
// SvgIcon,
|
|
63
|
+
// SuperGrid,
|
|
64
|
+
// DepartmentUserTree,
|
|
65
|
+
// WorkgroupTree,
|
|
66
|
+
// WorkgroupUserTree,
|
|
67
|
+
// InlineDepartmentTree,
|
|
68
|
+
// InlineDepartmentUserTree,
|
|
69
|
+
// InlineWorkgroupTree,
|
|
70
|
+
// InlineWorkgroupUserTree,
|
|
71
|
+
// WorkflowButton,
|
|
72
|
+
// WorkflowHistoryList,
|
|
73
|
+
// ValidCode,
|
|
74
|
+
// RemoveUser,
|
|
75
|
+
// RemoveDepartment,
|
|
76
|
+
// RemoveWorkgroup,
|
|
77
|
+
// OrganizationInput,
|
|
78
|
+
// SuperNineGrid,
|
|
79
|
+
// DynamicSourceSelect,
|
|
80
|
+
// FsUpload,
|
|
81
|
+
// ScanCodeInput,
|
|
82
|
+
// FsPreview,
|
|
83
|
+
// FsUploadList,
|
|
84
|
+
// YearRangePicker,
|
|
85
|
+
// MultipartUpload,
|
|
86
|
+
// RichEditor,
|
|
87
|
+
// SecretInfo
|
|
88
|
+
// }
|
|
89
|
+
|
|
90
|
+
export default {
|
|
91
|
+
// 导出的对象必须具有 install,才能被 Vue.use() 方法安装
|
|
92
|
+
install,
|
|
93
|
+
}
|
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
import NProgress from 'nprogress' // Progress 进度条
|
|
2
|
+
import 'nprogress/nprogress.css' // Progress 进度条样式
|
|
3
|
+
import { getToken, setToken } from './utils/auth' // 验权
|
|
4
|
+
import store from './store'
|
|
5
|
+
import router, { errorRouterMap } from './router'
|
|
6
|
+
NProgress.configure({ showSpinner: false }) // NProgress Configuration
|
|
7
|
+
import { ElMessage as Message } from 'element-plus'
|
|
8
|
+
import * as Vue from 'vue'
|
|
9
|
+
import authApi from './utils/auth-api'
|
|
10
|
+
|
|
11
|
+
import {cacheAllLanguagesUtil, getLocaleByLang, cacheCurrentLanguageUtil} from './utils/common-util'
|
|
12
|
+
|
|
13
|
+
// 首次加载业务系统时,获得用户的语言
|
|
14
|
+
function initUserLanguage() {
|
|
15
|
+
return new Promise((resolve, reject) => {
|
|
16
|
+
cacheCurrentLanguageUtil(window.$http).then((lang) => {
|
|
17
|
+
const locale = getLocaleByLang(lang)
|
|
18
|
+
// i18n.locale = locale // 关键语句
|
|
19
|
+
window.$locale = locale
|
|
20
|
+
resolve()
|
|
21
|
+
})
|
|
22
|
+
})
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
// 首次加载业务系统时,缓存所有语言
|
|
26
|
+
function cacheAllLanguages() {
|
|
27
|
+
return cacheAllLanguagesUtil(window.$http)
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
const whiteList = [
|
|
31
|
+
'/login',
|
|
32
|
+
'/update-password',
|
|
33
|
+
'/forget-password',
|
|
34
|
+
'/reset-password',
|
|
35
|
+
'/redirect',
|
|
36
|
+
] // 不重定向白名单
|
|
37
|
+
|
|
38
|
+
let devpJWTKey = '_devpJWT'
|
|
39
|
+
let runDevpJWTKey = '_runDevpJWT'
|
|
40
|
+
let currentRoleKey = '_CURRENT_ROLE'
|
|
41
|
+
let runCurrentRoleKey = '_RUN_CURRENT_ROLE'
|
|
42
|
+
router.beforeEach((to, from, next) => {
|
|
43
|
+
NProgress.start()
|
|
44
|
+
console.log('router.beforeEach-to=', to)
|
|
45
|
+
console.log('router.beforeEach-from=', from)
|
|
46
|
+
// console.log('router.beforeEach-to.path=', to.path)
|
|
47
|
+
console.log('router.beforeEach-to.query=', to.query)
|
|
48
|
+
if (to.query && to.query[devpJWTKey]) {
|
|
49
|
+
console.log('router.beforeEach-to.query[_devpJWT])=', to.query[devpJWTKey])
|
|
50
|
+
// setToken(to.query[devpJWTKey])
|
|
51
|
+
authApi.setSessionCache(runDevpJWTKey, to.query[devpJWTKey])
|
|
52
|
+
}
|
|
53
|
+
if (to.query && to.query[currentRoleKey]) {
|
|
54
|
+
console.log('router.beforeEach-to.query[_CURRENT_ROLE])=', to.query[currentRoleKey])
|
|
55
|
+
authApi.setSessionCache(runCurrentRoleKey, to.query[currentRoleKey])
|
|
56
|
+
}
|
|
57
|
+
let token
|
|
58
|
+
// 是否是开发环境功能
|
|
59
|
+
let isDevp = false
|
|
60
|
+
if(authApi.getSessionCache(runDevpJWTKey)) {
|
|
61
|
+
// setToken(authApi.getSessionCache(runDevpJWTKey))
|
|
62
|
+
token = authApi.getSessionCache(runDevpJWTKey)
|
|
63
|
+
console.log('router.beforeEach-authApi.getSessionCache(_runDevpJWT)=', authApi.getSessionCache(runDevpJWTKey))
|
|
64
|
+
isDevp = true
|
|
65
|
+
}
|
|
66
|
+
if(!token) {
|
|
67
|
+
token = getToken()
|
|
68
|
+
}
|
|
69
|
+
console.log('router.beforeEach-token=', token)
|
|
70
|
+
// console.log('router.beforeEach-to.query.JWT=', to.query.JWT)
|
|
71
|
+
if (!token && to.query && to.query.JWT) {
|
|
72
|
+
token = to.query.JWT
|
|
73
|
+
if (token) {
|
|
74
|
+
// 微信小程序web-view直接访问路径时使用?将JWT传过来
|
|
75
|
+
setToken(token)
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
if (!token && to.query && to.query.jwt) {
|
|
79
|
+
token = to.query.jwt
|
|
80
|
+
if (token) {
|
|
81
|
+
// 微信小程序web-view直接访问路径时使用?将JWT传过来
|
|
82
|
+
setToken(token)
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
if (to.query && to.query._systemName_) {
|
|
86
|
+
// 表示需要设置浏览器页签名
|
|
87
|
+
window.top.document.title = to.query._systemName_
|
|
88
|
+
}
|
|
89
|
+
// console.log('router.beforeEach-getToken()=', token)
|
|
90
|
+
// 表示需要显示菜单。为了控制是否需要走获得有权限的菜单集合的接口。单点登录跳转到表单页面时不需要请求菜单,提高页面显示速度。
|
|
91
|
+
let isNeedMenu
|
|
92
|
+
if (to.query && to.query._isNeedMenu_) {
|
|
93
|
+
isNeedMenu = to.query._isNeedMenu_
|
|
94
|
+
}
|
|
95
|
+
if (isNeedMenu !== undefined && isNeedMenu !== null && isNeedMenu === 'false') {
|
|
96
|
+
isNeedMenu = false
|
|
97
|
+
} else {
|
|
98
|
+
isNeedMenu = true
|
|
99
|
+
}
|
|
100
|
+
console.log('iMatrix-router.beforeEach2-isNeedMenu==', isNeedMenu)
|
|
101
|
+
if (
|
|
102
|
+
([
|
|
103
|
+
'/update-password',
|
|
104
|
+
'/forget-password',
|
|
105
|
+
'/reset-password',
|
|
106
|
+
'/redirect',
|
|
107
|
+
].indexOf(to.path) === -1 ||
|
|
108
|
+
store.getters.whiteList.indexOf(to.path) !== -1) &&
|
|
109
|
+
token
|
|
110
|
+
) {
|
|
111
|
+
if (to.path === '/login') {
|
|
112
|
+
next({ path: '/', query: to.query })
|
|
113
|
+
NProgress.done() // if current page is dashboard will not trigger afterEach hook, so manually handle it
|
|
114
|
+
} else {
|
|
115
|
+
console.log('router.beforeEach-to.path!=login')
|
|
116
|
+
if (store.getters.name === '') {
|
|
117
|
+
// 表示刷新了页面(例如点击了一级菜单)后,会重新走该方法
|
|
118
|
+
console.log('router.beforeEach-store.getters.name === ""')
|
|
119
|
+
store
|
|
120
|
+
.dispatch('isLoginTimeOut')
|
|
121
|
+
.then((result) => {
|
|
122
|
+
if (result === true) {
|
|
123
|
+
store.dispatch('clearToken').then(() => {
|
|
124
|
+
next({ path: '/', replace: true })
|
|
125
|
+
NProgress.done()
|
|
126
|
+
})
|
|
127
|
+
} else {
|
|
128
|
+
store
|
|
129
|
+
.dispatch('getCurrentUser')
|
|
130
|
+
.then((user) => {
|
|
131
|
+
return new Promise((resolve, reject) => {
|
|
132
|
+
initUserLanguage().then(()=>{
|
|
133
|
+
resolve(user)
|
|
134
|
+
})
|
|
135
|
+
})
|
|
136
|
+
}).then((user)=>{
|
|
137
|
+
return new Promise((resolve, reject) => {
|
|
138
|
+
cacheAllLanguages().then(()=>{
|
|
139
|
+
resolve(user)
|
|
140
|
+
})
|
|
141
|
+
})
|
|
142
|
+
}).then((user)=>{
|
|
143
|
+
console.log('router.beforeEach-getCurrentUser')
|
|
144
|
+
const devpRoleCodes = authApi.getSessionCache(runCurrentRoleKey)
|
|
145
|
+
if(isDevp && devpRoleCodes){
|
|
146
|
+
// 表示是开发环境JWT
|
|
147
|
+
return store.dispatch(
|
|
148
|
+
'getDevPlatformPermissions',
|
|
149
|
+
devpRoleCodes
|
|
150
|
+
)
|
|
151
|
+
} else {
|
|
152
|
+
return store.dispatch(
|
|
153
|
+
'getCurrentUserPermissions',
|
|
154
|
+
user.loginName
|
|
155
|
+
)
|
|
156
|
+
}
|
|
157
|
+
})
|
|
158
|
+
.then((permissions) => {
|
|
159
|
+
return store.dispatch('generateRoutes', permissions)
|
|
160
|
+
})
|
|
161
|
+
.then(() => {
|
|
162
|
+
if (isNeedMenu) {
|
|
163
|
+
// 需要显示左侧菜单
|
|
164
|
+
console.log('iMatrix-router.beforeEach2-getPermissionMenus')
|
|
165
|
+
return store.dispatch('getPermissionMenus', window.$vueApp.config.globalProperties.currentSystem)
|
|
166
|
+
} else {
|
|
167
|
+
return new Promise((resolve, reject) => {
|
|
168
|
+
resolve()
|
|
169
|
+
})
|
|
170
|
+
}
|
|
171
|
+
})
|
|
172
|
+
.then(() => {
|
|
173
|
+
// 根据roles权限生成可访问的路由表
|
|
174
|
+
console.log(
|
|
175
|
+
'router.beforeEach-generateRoutes==to=',
|
|
176
|
+
to,
|
|
177
|
+
',from=',
|
|
178
|
+
from
|
|
179
|
+
)
|
|
180
|
+
store.getters.protectedRouters.forEach(item =>{
|
|
181
|
+
router.addRoute(item)
|
|
182
|
+
})
|
|
183
|
+
// 404等错误路由一定要放到受权限保护的路由之后
|
|
184
|
+
// router.addRoutes(errorRouterMap)
|
|
185
|
+
window.sessionStorage.setItem(
|
|
186
|
+
new Date().getTime() + '-name=null-from~~toPath',
|
|
187
|
+
from.path + '~~' + to.path
|
|
188
|
+
)
|
|
189
|
+
next({ ...to, replace: true })
|
|
190
|
+
})
|
|
191
|
+
.catch((err) => {
|
|
192
|
+
store.dispatch('clearToken').then(() => {
|
|
193
|
+
Message.error(
|
|
194
|
+
err || 'Verification failed, please login again'
|
|
195
|
+
)
|
|
196
|
+
next({ path: '/' })
|
|
197
|
+
})
|
|
198
|
+
})
|
|
199
|
+
}
|
|
200
|
+
})
|
|
201
|
+
.catch((err) => {
|
|
202
|
+
store.dispatch('clearToken').then(() => {
|
|
203
|
+
Message.error(err || 'Verification failed, please login again')
|
|
204
|
+
next({ path: '/' })
|
|
205
|
+
})
|
|
206
|
+
})
|
|
207
|
+
} else {
|
|
208
|
+
console.log(
|
|
209
|
+
'router.beforeEach-store.getters.name ==',
|
|
210
|
+
store.getters.name
|
|
211
|
+
)
|
|
212
|
+
if (isNeedMenu) {
|
|
213
|
+
// 需要显示左侧菜单
|
|
214
|
+
let systemCode = window.$vueApp.config.globalProperties.currentSystem
|
|
215
|
+
if (!systemCode && to.query && to.query.customSystem) {
|
|
216
|
+
systemCode = to.query.customSystem
|
|
217
|
+
}
|
|
218
|
+
return store.dispatch('getPermissionMenus', systemCode).then(() => {
|
|
219
|
+
next()
|
|
220
|
+
})
|
|
221
|
+
} else {
|
|
222
|
+
next()
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
} else {
|
|
227
|
+
if (
|
|
228
|
+
whiteList.indexOf(to.path) !== -1 ||
|
|
229
|
+
store.getters.whiteList.indexOf(to.path) !== -1
|
|
230
|
+
) {
|
|
231
|
+
next()
|
|
232
|
+
} else {
|
|
233
|
+
// 必须使用to.fullPath,fullPath是带有参数的,to.path没有参数,会导致跳转到的页面参数丢失
|
|
234
|
+
next(`/login?redirect=${to.fullPath}`) // 否则全部重定向到登录页
|
|
235
|
+
NProgress.done()
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
})
|
|
239
|
+
|
|
240
|
+
router.afterEach(() => {
|
|
241
|
+
NProgress.done() // 结束Progress
|
|
242
|
+
})
|
package/src/plugins.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as Vue from 'vue'
|
|
2
|
+
|
|
3
|
+
import 'normalize.css/normalize.css' // A modern alternative to CSS resets
|
|
4
|
+
import './styles/index.scss' // global css
|
|
5
|
+
|
|
6
|
+
// import ElementUI from 'element-plus'
|
|
7
|
+
// import 'element-ui/lib/theme-chalk/index.css'
|
|
8
|
+
// import locale from 'element-ui/lib/locale/lang/zh-CN' // lang i18n
|
|
9
|
+
|
|
10
|
+
// import SuperUI from 'imatrix-ui'
|
|
11
|
+
// import 'imatrix-ui/lib/super-ui.css'
|
|
12
|
+
|
|
13
|
+
import 'imatrix-ui/src/permission' // permission control
|
|
14
|
+
// import permission from 'imatrix-ui/src/directives/permission'
|
|
15
|
+
|
|
16
|
+
// window.$vueApp.use(ElementUI, { locale })
|
|
17
|
+
// window.$vueApp.use(SuperUI)
|
|
18
|
+
// permission.install(window.$vueApp)
|