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,309 @@
|
|
|
1
|
+
import * as Vue from 'vue'
|
|
2
|
+
import localStorage from '../../../src/utils/local-storage'
|
|
3
|
+
import { getI18n } from '../../../src/utils/util'
|
|
4
|
+
const departmentUserTreeMultiService = {
|
|
5
|
+
// 后台查询部门,并拼接树节点
|
|
6
|
+
filterAppendNodes(value) {
|
|
7
|
+
this.$http
|
|
8
|
+
.post(
|
|
9
|
+
window.$vueApp.config.globalProperties.baseAPI +
|
|
10
|
+
'/component/organization-trees/search-users',
|
|
11
|
+
this.searchParam
|
|
12
|
+
)
|
|
13
|
+
.then((result) => {
|
|
14
|
+
if (result) {
|
|
15
|
+
if (result.length === 0) {
|
|
16
|
+
this.searchResult = []
|
|
17
|
+
this.$message({
|
|
18
|
+
showClose: true,
|
|
19
|
+
type: 'error',
|
|
20
|
+
message: getI18n().t('imatrixUIMessage.queryResultIsEmpty'),
|
|
21
|
+
})
|
|
22
|
+
return
|
|
23
|
+
}
|
|
24
|
+
this.searchResult = result
|
|
25
|
+
} else {
|
|
26
|
+
if (result.length === 0) {
|
|
27
|
+
this.$message({
|
|
28
|
+
showClose: true,
|
|
29
|
+
type: 'error',
|
|
30
|
+
message: getI18n().t('imatrixUIMessage.queryResultIsEmpty'),
|
|
31
|
+
})
|
|
32
|
+
return
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
})
|
|
36
|
+
},
|
|
37
|
+
querySearch(queryString, cb) {
|
|
38
|
+
if (!this.filterText && this.filterText.length === 0) {
|
|
39
|
+
this.memorySearch(queryString, cb)
|
|
40
|
+
} else {
|
|
41
|
+
this.search(this.filterText)
|
|
42
|
+
cb([])
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
handleSelect(item) {
|
|
46
|
+
// this.handleSelectUtil(item, localStorage)
|
|
47
|
+
// 查询最新用户信息替换,缓存为历史数据 数据库可能发生变化
|
|
48
|
+
this.$http
|
|
49
|
+
.get(
|
|
50
|
+
window.$vueApp.config.globalProperties.baseAPI +
|
|
51
|
+
'/api/users?loginName=' +
|
|
52
|
+
item.loginName
|
|
53
|
+
)
|
|
54
|
+
.then((userDTO) => {
|
|
55
|
+
if (userDTO !== null) {
|
|
56
|
+
for (const dtoKey in userDTO) {
|
|
57
|
+
if (item.hasOwnProperty(dtoKey)) {
|
|
58
|
+
item[dtoKey] = userDTO[dtoKey]
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
this.filterText = ''
|
|
63
|
+
this.searchValue = ''
|
|
64
|
+
this.selectUser(-1, item)
|
|
65
|
+
this.setMemoryCacheData(item, 'departmentUser')
|
|
66
|
+
})
|
|
67
|
+
},
|
|
68
|
+
search(value) {
|
|
69
|
+
this.searchValue = value
|
|
70
|
+
let mySearchValue = value
|
|
71
|
+
if (mySearchValue) {
|
|
72
|
+
mySearchValue = mySearchValue.trim()
|
|
73
|
+
}
|
|
74
|
+
this.searchParam.searchValue = mySearchValue
|
|
75
|
+
this.searchParam.departmentInfo = this.departmentInfo
|
|
76
|
+
// this.searchParam.userField = this.searchField
|
|
77
|
+
// 后台查询部门,并拼接树节点
|
|
78
|
+
this.filterAppendNodes(value)
|
|
79
|
+
},
|
|
80
|
+
// 点击查询按钮调用的方法
|
|
81
|
+
clickSearch() {
|
|
82
|
+
this.selectNodeInfo = null
|
|
83
|
+
this.storeSeachValue(localStorage, this.searchStoreKey, this.filterText)
|
|
84
|
+
this.search(this.filterText)
|
|
85
|
+
},
|
|
86
|
+
// 选中非叶子类型的部门节点时,首次加载该节点的子节点,需要动态加载该部门下的用户节点及子部门节点,并展开该部门,且选中用户节点
|
|
87
|
+
dynamicCheckedUserNodes(data) {
|
|
88
|
+
var param = {
|
|
89
|
+
parentId: data.id,
|
|
90
|
+
branchId: data.branchId,
|
|
91
|
+
needVirtualUser: this.isNeedVirtualUser,
|
|
92
|
+
}
|
|
93
|
+
this.$http
|
|
94
|
+
.post(
|
|
95
|
+
window.$vueApp.config.globalProperties.baseAPI +
|
|
96
|
+
'/component/organization-trees/department-users',
|
|
97
|
+
param
|
|
98
|
+
)
|
|
99
|
+
.then((result) => {
|
|
100
|
+
// 更新当前点击的节点的子节点
|
|
101
|
+
this.$refs.deparmentUserTree.updateKeyChildren(data.nodeId, result)
|
|
102
|
+
this.$refs.deparmentUserTree.store.nodesMap[data.nodeId].expanded = true
|
|
103
|
+
this.staticCheckedUserNodes(data)
|
|
104
|
+
})
|
|
105
|
+
},
|
|
106
|
+
// 初始化部门人员树
|
|
107
|
+
initLoadDepartment(parentId, node, resolve, checkedKeys, parentNodeId) {
|
|
108
|
+
var children = []
|
|
109
|
+
if (node.data && node.data.children) {
|
|
110
|
+
children = node.data.children
|
|
111
|
+
}
|
|
112
|
+
if (children && children.length > 0) {
|
|
113
|
+
// 表示加载过该父节点的子节点,只需重新更新一下
|
|
114
|
+
resolve(children)
|
|
115
|
+
// 表示当前展开的节点是选中状态,则应保持其选中状态,并选中其子节点
|
|
116
|
+
if (checkedKeys && checkedKeys.indexOf(parentNodeId) > -1) {
|
|
117
|
+
// 点击部门名称前的三角标识展开节点时,保持当前节点的选中状态
|
|
118
|
+
// 表示当前展开的节点是选中状态,则应保持其选中状态,并选中其子节点
|
|
119
|
+
this.checkedChildrenUserNodes(node.data, node.data.children)
|
|
120
|
+
}
|
|
121
|
+
} else {
|
|
122
|
+
// 表示没有加载过该父节点的子节点集合时
|
|
123
|
+
const param = {
|
|
124
|
+
parentId: parentId,
|
|
125
|
+
needVirtualUser: this.isNeedVirtualUser,
|
|
126
|
+
}
|
|
127
|
+
if (node.data) {
|
|
128
|
+
param.branchId = node.data.branchId
|
|
129
|
+
}
|
|
130
|
+
this.$http
|
|
131
|
+
.post(
|
|
132
|
+
window.$vueApp.config.globalProperties.baseAPI +
|
|
133
|
+
'/component/organization-trees/department-users',
|
|
134
|
+
param
|
|
135
|
+
)
|
|
136
|
+
.then((data) => {
|
|
137
|
+
resolve(data)
|
|
138
|
+
// 更新当前点击的节点的子节点,必须加该方法,否则会导致子节点无法选中
|
|
139
|
+
this.$refs.deparmentUserTree.updateKeyChildren(parentNodeId, data)
|
|
140
|
+
if (parentId === 0) {
|
|
141
|
+
// 初始化树时,展开公司节点
|
|
142
|
+
const tenantData = data[0].data
|
|
143
|
+
this.tenantInfo = JSON.parse(tenantData)
|
|
144
|
+
this.containBranch = data[0].containBranch
|
|
145
|
+
if (this.departmentInfo && this.departmentInfo.length > 0) {
|
|
146
|
+
// 加载指定部门时,展开公司节点
|
|
147
|
+
this.loadPointDepartments()
|
|
148
|
+
} else {
|
|
149
|
+
// 加载整个组织结构树时,展开公司节点
|
|
150
|
+
this.loadDepartment(this.tenantNodeId, this.tenantNodeId + '')
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
if (this.isClickNode) {
|
|
154
|
+
// 点击当前节点时,加载树节点时
|
|
155
|
+
// 注意不是点击复选框时
|
|
156
|
+
this.isClickNode = false
|
|
157
|
+
this.staticCheckedUserNodes(node.data)
|
|
158
|
+
} else {
|
|
159
|
+
// 表示是点击三角展开节点时
|
|
160
|
+
if (checkedKeys && checkedKeys.indexOf(parentNodeId) > -1) {
|
|
161
|
+
// 点击部门名称前的三角标识展开节点时,保持当前节点的选中状态
|
|
162
|
+
// 表示当前展开的节点是选中状态,则应保持其选中状态,并选中其子节点
|
|
163
|
+
this.checkedChildrenUserNodes(node.data, node.data.children)
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
})
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
// 加载当前节点的子节点
|
|
170
|
+
loadDepartment(parentId, parentNodeId, isSearch, searchValue) {
|
|
171
|
+
const param = {
|
|
172
|
+
parentId: parentId,
|
|
173
|
+
needVirtualUser: this.isNeedVirtualUser,
|
|
174
|
+
}
|
|
175
|
+
this.$http
|
|
176
|
+
.post(
|
|
177
|
+
window.$vueApp.config.globalProperties.baseAPI +
|
|
178
|
+
'/component/organization-trees/department-users',
|
|
179
|
+
param
|
|
180
|
+
)
|
|
181
|
+
.then((children) => {
|
|
182
|
+
this.$refs.deparmentUserTree.updateKeyChildren(parentNodeId, children)
|
|
183
|
+
if (this.$refs.deparmentUserTree.store.nodesMap[parentNodeId]) {
|
|
184
|
+
this.$refs.deparmentUserTree.store.nodesMap[parentNodeId].expanded =
|
|
185
|
+
true
|
|
186
|
+
}
|
|
187
|
+
if (isSearch) {
|
|
188
|
+
// 查询时处理
|
|
189
|
+
if (this.allExpandNodeIds.indexOf(parentNodeId) === -1) {
|
|
190
|
+
// allExpandNodeIds集合中是否包含当前parentId节点id
|
|
191
|
+
this.allExpandNodeIds.push(parentNodeId)
|
|
192
|
+
}
|
|
193
|
+
if (this.allExpandNodeIds.length === this.allSearchNodeIds.length) {
|
|
194
|
+
// 表示所有节点已展开,执行树的过滤方法
|
|
195
|
+
this.$refs.deparmentUserTree.filter(searchValue)
|
|
196
|
+
this.allExpandNodeIds = []
|
|
197
|
+
this.allSearchNodeIds = []
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
})
|
|
201
|
+
},
|
|
202
|
+
// 加载指定部门节点
|
|
203
|
+
loadPointDepartments() {
|
|
204
|
+
this.$http
|
|
205
|
+
.post(
|
|
206
|
+
window.$vueApp.config.globalProperties.baseAPI +
|
|
207
|
+
'/component/organization-trees/point-department-users',
|
|
208
|
+
this.departmentInfo
|
|
209
|
+
)
|
|
210
|
+
.then((children) => {
|
|
211
|
+
this.$refs.deparmentUserTree.updateKeyChildren(
|
|
212
|
+
this.tenantNodeId,
|
|
213
|
+
children
|
|
214
|
+
)
|
|
215
|
+
if (this.$refs.deparmentUserTree.store.nodesMap[this.tenantNodeId]) {
|
|
216
|
+
this.$refs.deparmentUserTree.store.nodesMap[
|
|
217
|
+
this.tenantNodeId
|
|
218
|
+
].expanded = true
|
|
219
|
+
}
|
|
220
|
+
})
|
|
221
|
+
},
|
|
222
|
+
getChildrenDepartmentUsers(childrenDepartmentIds) {
|
|
223
|
+
return new Promise((resolve, reject) => {
|
|
224
|
+
this.$http
|
|
225
|
+
.post(
|
|
226
|
+
window.$vueApp.config.globalProperties.baseAPI +
|
|
227
|
+
'/component/organization-trees/user-in-departments',
|
|
228
|
+
childrenDepartmentIds
|
|
229
|
+
)
|
|
230
|
+
.then((users) => {
|
|
231
|
+
resolve(users)
|
|
232
|
+
})
|
|
233
|
+
})
|
|
234
|
+
},
|
|
235
|
+
// 根据指定用户信息获得用户集合
|
|
236
|
+
getSelectUsers(searchField, selectUserInfo, separator) {
|
|
237
|
+
return new Promise((resolve, reject) => {
|
|
238
|
+
if (!searchField) {
|
|
239
|
+
resolve([])
|
|
240
|
+
} else if (!selectUserInfo) {
|
|
241
|
+
resolve([])
|
|
242
|
+
} else {
|
|
243
|
+
window.$vueApp.config.globalProperties.$http
|
|
244
|
+
.get(
|
|
245
|
+
window.$vueApp.config.globalProperties.baseAPI +
|
|
246
|
+
'/component/organization-trees/select-users?searchField=' +
|
|
247
|
+
searchField +
|
|
248
|
+
'&selectUserInfo=' +
|
|
249
|
+
selectUserInfo +
|
|
250
|
+
'&separator=' +
|
|
251
|
+
separator
|
|
252
|
+
)
|
|
253
|
+
.then((users) => {
|
|
254
|
+
resolve(users)
|
|
255
|
+
})
|
|
256
|
+
.catch((error) => {
|
|
257
|
+
reject(error)
|
|
258
|
+
})
|
|
259
|
+
}
|
|
260
|
+
})
|
|
261
|
+
},
|
|
262
|
+
// 部门人员树选中了组织结构树的根节点
|
|
263
|
+
packageAllUser() {
|
|
264
|
+
// 表示集合中不存在该用户,则封装该用户
|
|
265
|
+
const tenantNodeId = -1
|
|
266
|
+
var allUser = {
|
|
267
|
+
id: tenantNodeId,
|
|
268
|
+
name: '所有用户',
|
|
269
|
+
}
|
|
270
|
+
return allUser
|
|
271
|
+
},
|
|
272
|
+
// 工作组人员树选中了组织结构树的根节点
|
|
273
|
+
packageAllWgUser() {
|
|
274
|
+
// 表示集合中不存在该用户,则封装该用户
|
|
275
|
+
const tenantNodeId = -1
|
|
276
|
+
var allUser = {
|
|
277
|
+
id: tenantNodeId,
|
|
278
|
+
name: '所有工作组人员',
|
|
279
|
+
}
|
|
280
|
+
return allUser
|
|
281
|
+
},
|
|
282
|
+
initSelectUsers(searchField, selectUserInfo, separator) {
|
|
283
|
+
return new Promise((resolve, reject) => {
|
|
284
|
+
const selectDepts = []
|
|
285
|
+
if (selectUserInfo) {
|
|
286
|
+
if (selectUserInfo === '所有用户') {
|
|
287
|
+
// 表示已选择所有用户
|
|
288
|
+
selectDepts.push(this.packageAllUser())
|
|
289
|
+
resolve(selectDepts)
|
|
290
|
+
} else if (selectUserInfo === '所有工作组人员') {
|
|
291
|
+
selectDepts.push(this.packageAllWgUser())
|
|
292
|
+
resolve(selectDepts)
|
|
293
|
+
} else {
|
|
294
|
+
// 表示不是选择的所有用户
|
|
295
|
+
this.getSelectUsers(searchField, selectUserInfo, separator)
|
|
296
|
+
.then((users) => {
|
|
297
|
+
resolve(users)
|
|
298
|
+
})
|
|
299
|
+
.catch((error) => {
|
|
300
|
+
reject(error)
|
|
301
|
+
})
|
|
302
|
+
}
|
|
303
|
+
} else {
|
|
304
|
+
resolve(selectDepts)
|
|
305
|
+
}
|
|
306
|
+
})
|
|
307
|
+
},
|
|
308
|
+
}
|
|
309
|
+
export default departmentUserTreeMultiService
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import { $on, $off, $once, $emit } from '../../utils/gogocodeTransfer'
|
|
2
|
+
import * as Vue from 'vue'
|
|
3
|
+
import localStorage from '../../../src/utils/local-storage'
|
|
4
|
+
import { getI18n } from '../../../src/utils/util'
|
|
5
|
+
const departmentUserTreeSingleService = {
|
|
6
|
+
// 后台查询部门,并拼接树节点
|
|
7
|
+
filterAppendNodes(value) {
|
|
8
|
+
this.$http
|
|
9
|
+
.post(
|
|
10
|
+
window.$vueApp.config.globalProperties.baseAPI +
|
|
11
|
+
'/component/organization-trees/search-users',
|
|
12
|
+
this.searchParam
|
|
13
|
+
)
|
|
14
|
+
.then((result) => {
|
|
15
|
+
if (result) {
|
|
16
|
+
this.searchResult = result
|
|
17
|
+
if (result.length === 0) {
|
|
18
|
+
this.searchResult = []
|
|
19
|
+
this.$message({
|
|
20
|
+
showClose: true,
|
|
21
|
+
type: 'error',
|
|
22
|
+
message: getI18n().t('imatrixUIMessage.queryResultIsEmpty'),
|
|
23
|
+
})
|
|
24
|
+
return
|
|
25
|
+
}
|
|
26
|
+
} else {
|
|
27
|
+
this.searchResult = []
|
|
28
|
+
if (result.length === 0) {
|
|
29
|
+
this.$message({
|
|
30
|
+
showClose: true,
|
|
31
|
+
type: 'error',
|
|
32
|
+
message: getI18n().t('imatrixUIMessage.queryResultIsEmpty'),
|
|
33
|
+
})
|
|
34
|
+
return
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
})
|
|
38
|
+
},
|
|
39
|
+
querySearch(queryString, cb) {
|
|
40
|
+
if (!this.filterText && this.filterText.length === 0) {
|
|
41
|
+
this.memorySearch(queryString, cb)
|
|
42
|
+
} else {
|
|
43
|
+
this.search(this.filterText)
|
|
44
|
+
cb([])
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
handleSelect(item) {
|
|
48
|
+
// this.handleSelectUtil(item, localStorage)
|
|
49
|
+
// 查询最新用户信息替换,缓存为历史数据 数据库可能发生变化
|
|
50
|
+
this.$http
|
|
51
|
+
.get(
|
|
52
|
+
window.$vueApp.config.globalProperties.baseAPI +
|
|
53
|
+
'/api/users?loginName=' +
|
|
54
|
+
item.loginName
|
|
55
|
+
)
|
|
56
|
+
.then((userDTO) => {
|
|
57
|
+
if (userDTO !== null) {
|
|
58
|
+
for (const dtoKey in userDTO) {
|
|
59
|
+
if (item.hasOwnProperty(dtoKey)) {
|
|
60
|
+
item[dtoKey] = userDTO[dtoKey]
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
this.filterText = ''
|
|
65
|
+
this.searchValue = ''
|
|
66
|
+
this.packageSelectResult(item)
|
|
67
|
+
this.setMemoryCacheData(item, 'departmentUser')
|
|
68
|
+
// 关闭弹窗
|
|
69
|
+
$emit(this, 'result', this.selectNodeInfo)
|
|
70
|
+
})
|
|
71
|
+
},
|
|
72
|
+
search(value) {
|
|
73
|
+
this.searchValue = value
|
|
74
|
+
let mySearchValue = value
|
|
75
|
+
if (mySearchValue) {
|
|
76
|
+
mySearchValue = mySearchValue.trim()
|
|
77
|
+
}
|
|
78
|
+
this.searchParam.searchValue = mySearchValue
|
|
79
|
+
this.searchParam.departmentInfo = this.departmentInfo
|
|
80
|
+
// this.searchParam.userField = this.searchField
|
|
81
|
+
// 后台查询部门,并拼接树节点
|
|
82
|
+
this.filterAppendNodes(value)
|
|
83
|
+
},
|
|
84
|
+
// 点击查询按钮调用的方法
|
|
85
|
+
clickSearch() {
|
|
86
|
+
this.selectNodeInfo = null
|
|
87
|
+
this.storeSeachValue(localStorage, this.searchStoreKey, this.filterText)
|
|
88
|
+
this.search(this.filterText)
|
|
89
|
+
},
|
|
90
|
+
// 初始化部门人员树
|
|
91
|
+
initLoadDepartment(parentId, node, resolve, checkedKeys, parentNodeId) {
|
|
92
|
+
var children = []
|
|
93
|
+
if (node.data && node.data.children) {
|
|
94
|
+
children = node.data.children
|
|
95
|
+
}
|
|
96
|
+
if (children && children.length > 0) {
|
|
97
|
+
// 表示加载过该父节点的子节点,只需重新更新一下
|
|
98
|
+
resolve(children)
|
|
99
|
+
// 表示当前展开的节点是选中状态,则应保持其选中状态,并选中其子节点
|
|
100
|
+
if (checkedKeys && checkedKeys.indexOf(parentNodeId) > -1) {
|
|
101
|
+
// 点击部门名称前的三角标识展开节点时,保持当前节点的选中状态
|
|
102
|
+
// 表示当前展开的节点是选中状态,则应保持其选中状态,并选中其子节点
|
|
103
|
+
this.checkedChildrenUserNodes(node.data, node.data.children)
|
|
104
|
+
}
|
|
105
|
+
} else {
|
|
106
|
+
// 表示没有加载过该父节点的子节点集合时
|
|
107
|
+
const param = {
|
|
108
|
+
parentId: parentId,
|
|
109
|
+
needVirtualUser: this.isNeedVirtualUser,
|
|
110
|
+
}
|
|
111
|
+
if (node.data) {
|
|
112
|
+
param.branchId = node.data.branchId
|
|
113
|
+
}
|
|
114
|
+
this.$http
|
|
115
|
+
.post(
|
|
116
|
+
window.$vueApp.config.globalProperties.baseAPI +
|
|
117
|
+
'/component/organization-trees/department-users',
|
|
118
|
+
param
|
|
119
|
+
)
|
|
120
|
+
.then((data) => {
|
|
121
|
+
resolve(data)
|
|
122
|
+
// 更新当前点击的节点的子节点,必须加该方法,否则会导致子节点无法选中
|
|
123
|
+
this.$refs.deparmentUserTree.updateKeyChildren(parentNodeId, data)
|
|
124
|
+
if (parentId === 0) {
|
|
125
|
+
// 初始化树时,展开公司节点
|
|
126
|
+
const tenantData = data[0].data
|
|
127
|
+
this.tenantInfo = JSON.parse(tenantData)
|
|
128
|
+
this.containBranch = data[0].containBranch
|
|
129
|
+
if (this.departmentInfo && this.departmentInfo.length > 0) {
|
|
130
|
+
// 加载指定部门时,展开公司节点
|
|
131
|
+
this.loadPointDepartments(this)
|
|
132
|
+
} else {
|
|
133
|
+
// 加载整个组织结构树时,展开公司节点
|
|
134
|
+
this.loadDepartment(this.tenantNodeId, this.tenantNodeId + '')
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
})
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
loadDepartment(parentId, parentNodeId, isSearch, searchValue) {
|
|
141
|
+
const param = {
|
|
142
|
+
parentId: parentId,
|
|
143
|
+
needVirtualUser: this.isNeedVirtualUser,
|
|
144
|
+
}
|
|
145
|
+
this.$http
|
|
146
|
+
.post(
|
|
147
|
+
window.$vueApp.config.globalProperties.baseAPI +
|
|
148
|
+
'/component/organization-trees/department-users',
|
|
149
|
+
param
|
|
150
|
+
)
|
|
151
|
+
.then((children) => {
|
|
152
|
+
if (this.$refs.deparmentUserTree) {
|
|
153
|
+
this.$refs.deparmentUserTree.updateKeyChildren(parentNodeId, children)
|
|
154
|
+
if (this.$refs.deparmentUserTree.store.nodesMap[parentNodeId]) {
|
|
155
|
+
this.$refs.deparmentUserTree.store.nodesMap[parentNodeId].expanded = true
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
})
|
|
159
|
+
},
|
|
160
|
+
loadPointDepartments() {
|
|
161
|
+
this.$http
|
|
162
|
+
.post(
|
|
163
|
+
window.$vueApp.config.globalProperties.baseAPI +
|
|
164
|
+
'/component/organization-trees/point-department-users',
|
|
165
|
+
this.departmentInfo
|
|
166
|
+
)
|
|
167
|
+
.then((children) => {
|
|
168
|
+
this.$refs.deparmentUserTree.updateKeyChildren(
|
|
169
|
+
this.tenantNodeId,
|
|
170
|
+
children
|
|
171
|
+
)
|
|
172
|
+
if (this.$refs.deparmentUserTree.store.nodesMap[this.tenantNodeId]) {
|
|
173
|
+
this.$refs.deparmentUserTree.store.nodesMap[
|
|
174
|
+
this.tenantNodeId
|
|
175
|
+
].expanded = true
|
|
176
|
+
}
|
|
177
|
+
})
|
|
178
|
+
},
|
|
179
|
+
}
|
|
180
|
+
export default departmentUserTreeSingleService
|