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,494 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<el-container style="height: 395px">
|
|
4
|
+
<el-aside width="350px">
|
|
5
|
+
<el-container style="height: 390px">
|
|
6
|
+
<el-header style="text-align: right; font-size: 12px; height: 35px">
|
|
7
|
+
<el-autocomplete
|
|
8
|
+
v-model="filterText"
|
|
9
|
+
:fetch-suggestions="querySearch"
|
|
10
|
+
:placeholder="
|
|
11
|
+
$t('departmentTreeInline.pleaseEnterDepartmentName')
|
|
12
|
+
"
|
|
13
|
+
class="inline-input inline-input-custom"
|
|
14
|
+
size="default"
|
|
15
|
+
@select="handleSelect"
|
|
16
|
+
@keyup.enter="clickSearch"
|
|
17
|
+
>
|
|
18
|
+
<template v-slot:append>
|
|
19
|
+
<el-button
|
|
20
|
+
:icon="ElIconSearch"
|
|
21
|
+
size="default"
|
|
22
|
+
@click="clickSearch"
|
|
23
|
+
/>
|
|
24
|
+
</template>
|
|
25
|
+
</el-autocomplete>
|
|
26
|
+
</el-header>
|
|
27
|
+
<el-main style="padding: 10px">
|
|
28
|
+
<div
|
|
29
|
+
v-if="!searchValue"
|
|
30
|
+
style="
|
|
31
|
+
padding-top: 5px;
|
|
32
|
+
overflow: auto;
|
|
33
|
+
width: 100%;
|
|
34
|
+
display: inline-block !important;
|
|
35
|
+
"
|
|
36
|
+
>
|
|
37
|
+
<el-tree
|
|
38
|
+
ref="deparmentTree"
|
|
39
|
+
:filter-node-method="filterNode"
|
|
40
|
+
:load="loadNode"
|
|
41
|
+
:props="defaultProps"
|
|
42
|
+
:show-checkbox="true"
|
|
43
|
+
check-strictly
|
|
44
|
+
lazy
|
|
45
|
+
node-key="id"
|
|
46
|
+
@check="handleCheckNode"
|
|
47
|
+
@check-change="handleCheckChange"
|
|
48
|
+
@node-expand="handleNodeExpand"
|
|
49
|
+
@node-click="handleNodeClick"
|
|
50
|
+
>
|
|
51
|
+
<template #default="{ node, data }">
|
|
52
|
+
<span>
|
|
53
|
+
<el-icon>
|
|
54
|
+
<Menu v-if="node.data.id === -1 || node.data.branch"/>
|
|
55
|
+
<Tickets v-else-if="node.data.id === -2 || node.data.id === -3"/>
|
|
56
|
+
<Calendar v-else/>
|
|
57
|
+
</el-icon>
|
|
58
|
+
<span :title="node.label">
|
|
59
|
+
{{ node.label }}
|
|
60
|
+
</span>
|
|
61
|
+
</span>
|
|
62
|
+
</template>
|
|
63
|
+
</el-tree>
|
|
64
|
+
</div>
|
|
65
|
+
|
|
66
|
+
<div
|
|
67
|
+
v-if="searchValue && searchValue.length > 0"
|
|
68
|
+
style="height: 100%; overflow: hidden"
|
|
69
|
+
>
|
|
70
|
+
<user-result
|
|
71
|
+
:grid-data="searchResult"
|
|
72
|
+
:height="height"
|
|
73
|
+
:is-search-result="true"
|
|
74
|
+
:multiple="true"
|
|
75
|
+
:select-result="selectResult"
|
|
76
|
+
@addUser="selectUser"
|
|
77
|
+
/>
|
|
78
|
+
</div>
|
|
79
|
+
</el-main>
|
|
80
|
+
</el-container>
|
|
81
|
+
</el-aside>
|
|
82
|
+
|
|
83
|
+
<el-container>
|
|
84
|
+
<!-- <el-aside width="2px">
|
|
85
|
+
<table border="1px" cellpadding="0" cellspacing="0" style="height:100%;border-left-style:solid; border-bottom-style:none;border-right-style:none;border-top-style:none;border-left-color: #cccccc" />
|
|
86
|
+
</el-aside> -->
|
|
87
|
+
<el-main style="padding: 10px">
|
|
88
|
+
<div style="text-align: left; font-size: 16px">
|
|
89
|
+
{{ $t('departmentTreeInline.selectedDept') }}:
|
|
90
|
+
</div>
|
|
91
|
+
<div :style="'padding-top: 5px;height:90%;overflow: hidden;'">
|
|
92
|
+
<user-result
|
|
93
|
+
v-loading="isloading"
|
|
94
|
+
:grid-data="selectResult"
|
|
95
|
+
:height="height"
|
|
96
|
+
:is-search-result="false"
|
|
97
|
+
:multiple="true"
|
|
98
|
+
@removeUser="removeUser"
|
|
99
|
+
/>
|
|
100
|
+
</div>
|
|
101
|
+
</el-main>
|
|
102
|
+
</el-container>
|
|
103
|
+
</el-container>
|
|
104
|
+
</div>
|
|
105
|
+
</template>
|
|
106
|
+
|
|
107
|
+
<script>
|
|
108
|
+
import {Search as ElIconSearch} from '@element-plus/icons-vue'
|
|
109
|
+
import {$emit} from '../../utils/gogocodeTransfer'
|
|
110
|
+
import localStorage from '../../../src/utils/local-storage'
|
|
111
|
+
import utils from '../../utils/utils'
|
|
112
|
+
import departmentTreeService from './department-tree-service'
|
|
113
|
+
import UserResult from './search-result.vue'
|
|
114
|
+
import memoryCacheUtils from '../../utils/memory-cache-utils'
|
|
115
|
+
|
|
116
|
+
export default {
|
|
117
|
+
data() {
|
|
118
|
+
return {
|
|
119
|
+
filterText: '',
|
|
120
|
+
defaultProps: {
|
|
121
|
+
id: 'id',
|
|
122
|
+
label: 'showName',
|
|
123
|
+
children: 'childDepartments',
|
|
124
|
+
isLeaf: 'leaf',
|
|
125
|
+
},
|
|
126
|
+
searchParam: {
|
|
127
|
+
searchValue: null,
|
|
128
|
+
treeType: 'DEPARTMENT_TREE',
|
|
129
|
+
departmentInfo: null,
|
|
130
|
+
},
|
|
131
|
+
count: 0,
|
|
132
|
+
// 当前租户内是否包含分支机构。获得当前选中部门名称时,如果有分支,则需要将分支名称返回给用户,例如:部门1(分支1)
|
|
133
|
+
containBranch: false,
|
|
134
|
+
// 公司节点的id
|
|
135
|
+
tenantNodeId: -1,
|
|
136
|
+
// 用于保存所有查询出的节点id
|
|
137
|
+
allSearchNodeIds: [],
|
|
138
|
+
// 用于保存allSearchNodeIds中所有已加载子节点的id集合
|
|
139
|
+
allExpandNodeIds: [],
|
|
140
|
+
isClickNode: false,
|
|
141
|
+
// 查询的备选值
|
|
142
|
+
restaurants: [],
|
|
143
|
+
// 查询条件
|
|
144
|
+
searchValue: null,
|
|
145
|
+
searchStoreKey: 'searchDepartment',
|
|
146
|
+
// 单选时,选择的部门信息
|
|
147
|
+
selectNodeInfo: null,
|
|
148
|
+
// 公司根节点信息
|
|
149
|
+
tenantInfo: {},
|
|
150
|
+
searchResult: [],
|
|
151
|
+
selectResult: [],
|
|
152
|
+
// 控制右侧选择区的loading状态
|
|
153
|
+
isloading: false,
|
|
154
|
+
multiple: true,
|
|
155
|
+
memoryCacheKey: 'DEPARTMENT_MEMORY_KEY',
|
|
156
|
+
// 记忆选择数据, 搜索框获得焦点后,下拉显示最近选中的10个人,倒序排列,最后选中的在最上面显示。
|
|
157
|
+
memoryCacheData: [],
|
|
158
|
+
ElIconSearch,
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
name: 'InlineDepartmentMultiTree',
|
|
162
|
+
components: {
|
|
163
|
+
UserResult,
|
|
164
|
+
},
|
|
165
|
+
props: {
|
|
166
|
+
checkStrictly: {
|
|
167
|
+
type: Boolean,
|
|
168
|
+
default: false,
|
|
169
|
+
},
|
|
170
|
+
// 显示指定部门节点及其子节点,不传该属性,表示显示整个组织结构树
|
|
171
|
+
departmentInfo: {
|
|
172
|
+
type: Array,
|
|
173
|
+
default: null,
|
|
174
|
+
},
|
|
175
|
+
// 弹框的高度
|
|
176
|
+
height: {
|
|
177
|
+
type: String,
|
|
178
|
+
default: '300px',
|
|
179
|
+
},
|
|
180
|
+
// 多选部门树时,已选择部门id或部门名称或编码集合,多个之间以逗号隔开
|
|
181
|
+
selectDepartmentInfo: {
|
|
182
|
+
type: [String, Number],
|
|
183
|
+
default: null,
|
|
184
|
+
},
|
|
185
|
+
// 移除部门时,部门属性名称:id、name、code,默认是id
|
|
186
|
+
searchField: {
|
|
187
|
+
type: String,
|
|
188
|
+
default: 'id',
|
|
189
|
+
},
|
|
190
|
+
// 多选树时结果之间的分隔符,默认是逗号分隔
|
|
191
|
+
separator: {
|
|
192
|
+
type: String,
|
|
193
|
+
default: ',',
|
|
194
|
+
},
|
|
195
|
+
},
|
|
196
|
+
computed: {},
|
|
197
|
+
watch: {
|
|
198
|
+
filterText(val) {
|
|
199
|
+
if (!val) {
|
|
200
|
+
this.searchValue = val
|
|
201
|
+
// 清空查询内容时,重新加载整个树
|
|
202
|
+
if (this.departmentInfo && this.departmentInfo.length > 0) {
|
|
203
|
+
// 加载指定部门时,展开公司节点
|
|
204
|
+
this.loadPointDepartments()
|
|
205
|
+
} else {
|
|
206
|
+
// 加载整个组织结构树时,展开公司节点
|
|
207
|
+
this.loadDepartment(this.tenantNodeId)
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
},
|
|
212
|
+
created() {
|
|
213
|
+
this.initSelectDepts(
|
|
214
|
+
this.searchField,
|
|
215
|
+
this.selectDepartmentInfo,
|
|
216
|
+
this.separator
|
|
217
|
+
).then((selectUsers) => {
|
|
218
|
+
if (selectUsers) {
|
|
219
|
+
this.selectResult = selectUsers
|
|
220
|
+
}
|
|
221
|
+
})
|
|
222
|
+
},
|
|
223
|
+
mounted() {
|
|
224
|
+
var searchDepartment = localStorage.getObject(this.searchStoreKey)
|
|
225
|
+
if (searchDepartment) {
|
|
226
|
+
this.restaurants = searchDepartment
|
|
227
|
+
} else {
|
|
228
|
+
this.restaurants = []
|
|
229
|
+
}
|
|
230
|
+
this.getMemoryCacheData('department')
|
|
231
|
+
},
|
|
232
|
+
methods: {
|
|
233
|
+
...utils,
|
|
234
|
+
...departmentTreeService,
|
|
235
|
+
...memoryCacheUtils,
|
|
236
|
+
filterNode(value, data, node) {
|
|
237
|
+
if (!value) {
|
|
238
|
+
return true
|
|
239
|
+
} else {
|
|
240
|
+
return data.name.indexOf(value) !== -1
|
|
241
|
+
}
|
|
242
|
+
},
|
|
243
|
+
// 选中当前节点及其子节点
|
|
244
|
+
checkedNodeAndChildren(data) {
|
|
245
|
+
// 取消选中状态时,保持节点是展开的状态,不要折叠
|
|
246
|
+
// this.$refs.deparmentTree.store.nodesMap[data.id].expanded = true
|
|
247
|
+
let department = data
|
|
248
|
+
if (data.data) {
|
|
249
|
+
department = JSON.parse(data.data)
|
|
250
|
+
}
|
|
251
|
+
this.selectUser(null, department)
|
|
252
|
+
// 获得所有应该选中的节点
|
|
253
|
+
this.$refs.deparmentTree.setChecked(data.id, true)
|
|
254
|
+
const childDepartments = data.childDepartments
|
|
255
|
+
if (childDepartments && !this.checkStrictly) {
|
|
256
|
+
// 递归设置子子节点的选中状态
|
|
257
|
+
childDepartments.forEach((nodeData) => {
|
|
258
|
+
this.checkedNodeAndChildren(nodeData)
|
|
259
|
+
})
|
|
260
|
+
}
|
|
261
|
+
},
|
|
262
|
+
// 取消当前节点的子节点的选中状态
|
|
263
|
+
cancelChildCheckedNodes(data) {
|
|
264
|
+
const department = JSON.parse(data.data)
|
|
265
|
+
this.selectResult = this.removeRow(this.selectResult, department)
|
|
266
|
+
if (data.id !== this.tenantNodeId) {
|
|
267
|
+
// 如果当前节点不是公司节点,需要将公司节点的选中状态去掉
|
|
268
|
+
this.$refs.deparmentTree.setChecked(this.tenantNodeId, false)
|
|
269
|
+
}
|
|
270
|
+
const childDepartments = data.childDepartments
|
|
271
|
+
if (childDepartments && !this.checkStrictly) {
|
|
272
|
+
childDepartments.forEach((nodeData) => {
|
|
273
|
+
// 取消节点的选中状态
|
|
274
|
+
this.$refs.deparmentTree.setChecked(nodeData.id, false)
|
|
275
|
+
// 递归取消子子节点的选中状态
|
|
276
|
+
this.cancelChildCheckedNodes(nodeData)
|
|
277
|
+
})
|
|
278
|
+
}
|
|
279
|
+
},
|
|
280
|
+
handleCheckChange(data, checked, indeterminate) {
|
|
281
|
+
},
|
|
282
|
+
handleNodeExpand(data, node, nodeTree) {
|
|
283
|
+
},
|
|
284
|
+
handleNodeClick(data, node, nodeTree) {
|
|
285
|
+
// 多选部门树时,处理点击节点事件
|
|
286
|
+
this.clickNodeWhenMultiple(data)
|
|
287
|
+
},
|
|
288
|
+
// 多选树时,点击节点处理复选框的选中状态
|
|
289
|
+
clickNodeWhenMultiple(data) {
|
|
290
|
+
var checkedKeys = []
|
|
291
|
+
if (this.$refs.deparmentTree) {
|
|
292
|
+
checkedKeys = this.$refs.deparmentTree.getCheckedKeys()
|
|
293
|
+
}
|
|
294
|
+
if (checkedKeys && checkedKeys.indexOf(data.id) > -1) {
|
|
295
|
+
// 表示当前节点是选中状态,则需要取消其选中状态
|
|
296
|
+
// 取消当前节点的勾选状态
|
|
297
|
+
this.$refs.deparmentTree.setChecked(data.id, false)
|
|
298
|
+
// 取消当前节点的子节点的勾选状态
|
|
299
|
+
if (!this.checkStrictly) {
|
|
300
|
+
this.cancelChildCheckedNodes(data)
|
|
301
|
+
}
|
|
302
|
+
// 取消选中状态时,保持节点是展开的状态,不要折叠
|
|
303
|
+
this.$refs.deparmentTree.store.nodesMap[data.id].expanded = true
|
|
304
|
+
} else {
|
|
305
|
+
// 表示当前节点不是选中的状态,需要勾选该节点
|
|
306
|
+
if (data.nodeType && data.nodeType === 'DEPARTMENT' && data.data) {
|
|
307
|
+
// 表示当前选中的节点是部门
|
|
308
|
+
const department = JSON.parse(data.data)
|
|
309
|
+
this.selectUser(null, department)
|
|
310
|
+
}
|
|
311
|
+
this.$refs.deparmentTree.setChecked(data.id, true)
|
|
312
|
+
// 点击树节点时添加并展开节点会走loadNode方法,因为设置了树组件的expand-on-click-node属性为true
|
|
313
|
+
const children = data.childDepartments
|
|
314
|
+
if (children && children.length > 0) {
|
|
315
|
+
// 表示加载过该节点,直接选中即可
|
|
316
|
+
if (!this.checkStrictly) {
|
|
317
|
+
this.checkedNodeAndChildren(data)
|
|
318
|
+
}
|
|
319
|
+
} else {
|
|
320
|
+
// 表示没有加载过该节点,是首次加载,需要走后台
|
|
321
|
+
// 会走loadNode方法,因为设置了树组件的expand-on-click-node属性为true
|
|
322
|
+
this.isClickNode = true
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
},
|
|
326
|
+
isDepartmentNode(data) {
|
|
327
|
+
// 当前节点不是公司节点,也不是分支机构节点,表示是部门节点
|
|
328
|
+
return (
|
|
329
|
+
data.id !== this.tenantNodeId &&
|
|
330
|
+
data.nodeType &&
|
|
331
|
+
data.nodeType === 'DEPARTMENT' &&
|
|
332
|
+
!data.branch
|
|
333
|
+
)
|
|
334
|
+
},
|
|
335
|
+
selectDepartment() {
|
|
336
|
+
// 是否需要显示提示框,默认不显示
|
|
337
|
+
var showTip = false
|
|
338
|
+
var leafSelectNodeInfo = {
|
|
339
|
+
ids: [],
|
|
340
|
+
names: [],
|
|
341
|
+
codes: [],
|
|
342
|
+
zhNames: [],
|
|
343
|
+
enNames: [],
|
|
344
|
+
departments: [],
|
|
345
|
+
}
|
|
346
|
+
if (this.selectResult.length === 0) {
|
|
347
|
+
// 没有选择任何节点
|
|
348
|
+
showTip = true
|
|
349
|
+
} else {
|
|
350
|
+
for (var i = 0; i < this.selectResult.length; i++) {
|
|
351
|
+
var userData = this.selectResult[i]
|
|
352
|
+
// 不存在该用户则放到结果集合中,去掉重复使用
|
|
353
|
+
leafSelectNodeInfo.ids.push(userData.id)
|
|
354
|
+
leafSelectNodeInfo.codes.push(userData.code)
|
|
355
|
+
if (userData.enName) {
|
|
356
|
+
leafSelectNodeInfo.enNames.push(userData.enName)
|
|
357
|
+
} else {
|
|
358
|
+
leafSelectNodeInfo.enNames.push('')
|
|
359
|
+
}
|
|
360
|
+
if (userData.department) {
|
|
361
|
+
leafSelectNodeInfo.departments.push(userData.department)
|
|
362
|
+
} else {
|
|
363
|
+
leafSelectNodeInfo.departments.push(userData)
|
|
364
|
+
}
|
|
365
|
+
const name = userData.showName
|
|
366
|
+
leafSelectNodeInfo.names.push(name)
|
|
367
|
+
leafSelectNodeInfo.zhNames.push(userData.name)
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
if (leafSelectNodeInfo.ids.length > 0) {
|
|
371
|
+
leafSelectNodeInfo.containBranch = this.containBranch
|
|
372
|
+
$emit(this, 'result', leafSelectNodeInfo)
|
|
373
|
+
} else {
|
|
374
|
+
showTip = true
|
|
375
|
+
}
|
|
376
|
+
if (showTip) {
|
|
377
|
+
this.$alert(
|
|
378
|
+
this.$t('imatrixUIMessage.pleaseSelectDepartment'),
|
|
379
|
+
this.$t('imatrixUIMessage.tips'),
|
|
380
|
+
{
|
|
381
|
+
confirmButtonText: this.$t('imatrixUIPublicModel.sure'),
|
|
382
|
+
}
|
|
383
|
+
)
|
|
384
|
+
}
|
|
385
|
+
},
|
|
386
|
+
// 是否选中了公司节点
|
|
387
|
+
isSelectTenantNode(dataId) {
|
|
388
|
+
return (
|
|
389
|
+
dataId === this.tenantNodeId &&
|
|
390
|
+
(!this.departmentInfo || this.departmentInfo.length === 0)
|
|
391
|
+
)
|
|
392
|
+
},
|
|
393
|
+
// 给节点添加自定义图标
|
|
394
|
+
// renderContent(h, {node, data, store}) {
|
|
395
|
+
// var className
|
|
396
|
+
// if (node.data.id === -1 || node.data.branch) {
|
|
397
|
+
// // node.id ===-1表示公司节点,node.branch表示是分支机构节点
|
|
398
|
+
// className = 'Menu'
|
|
399
|
+
// } else if (node.data.id === -2 || node.data.id === -3) {
|
|
400
|
+
// // node.id ===-2表示集团公司无部门用户节点,node.id ===-3表示是分支机构无部门用户节点
|
|
401
|
+
// className = 'Tickets'
|
|
402
|
+
// } else {
|
|
403
|
+
// // 表示是部门节点
|
|
404
|
+
// className = 'Date'
|
|
405
|
+
// }
|
|
406
|
+
// return h(
|
|
407
|
+
// 'span',
|
|
408
|
+
// h('el-icon', h(className)),
|
|
409
|
+
// h('span', {title: node.label}, node.label)
|
|
410
|
+
// )
|
|
411
|
+
// // return (
|
|
412
|
+
// // `<span>
|
|
413
|
+
// // <i class={className}></i>
|
|
414
|
+
// // <span title={node.label}>{node.label}</span>
|
|
415
|
+
// // </span>`
|
|
416
|
+
// // )
|
|
417
|
+
// },
|
|
418
|
+
// 将查询结果中指定用户添加到已选择用户集合中
|
|
419
|
+
selectUser(index, dept) {
|
|
420
|
+
// if (!this.isContainAllUser()) {
|
|
421
|
+
const containUsers = this.selectResult.filter(this.filterDept(dept))
|
|
422
|
+
if (containUsers && containUsers.length === 0) {
|
|
423
|
+
// 如果已选结果中不包含当前用户,则添加
|
|
424
|
+
// 将查询结果中的用户复制到已选择用户集合中
|
|
425
|
+
dept.tenantCode = this.tenantInfo.code
|
|
426
|
+
dept.tenantName = this.tenantInfo.tenantName
|
|
427
|
+
this.selectResult.push(dept)
|
|
428
|
+
// 搜索选中记忆
|
|
429
|
+
this.setMemoryCacheData(dept, 'department')
|
|
430
|
+
}
|
|
431
|
+
// } else {
|
|
432
|
+
// this.alertByAllUser()
|
|
433
|
+
// }
|
|
434
|
+
},
|
|
435
|
+
// 判断用户是否存在的过滤器
|
|
436
|
+
filterDept(queryDept) {
|
|
437
|
+
return (dept) => {
|
|
438
|
+
return dept.id === queryDept.id
|
|
439
|
+
}
|
|
440
|
+
},
|
|
441
|
+
filterDeptNode(queryDept) {
|
|
442
|
+
return (deptNodeId) => {
|
|
443
|
+
return deptNodeId + '' === queryDept.id + ''
|
|
444
|
+
}
|
|
445
|
+
},
|
|
446
|
+
// 从已选择用户集合中移除指定用户,并添加到查询结果集合中
|
|
447
|
+
removeUser(index, dept) {
|
|
448
|
+
// 表示是在组织结构树页面,需要将树的人员节点的选中状态去掉
|
|
449
|
+
if (dept.nodeId) {
|
|
450
|
+
const nodeId = dept.nodeId
|
|
451
|
+
if (this.$refs.deparmentTree && nodeId) {
|
|
452
|
+
this.$refs.deparmentTree.setChecked(nodeId, false)
|
|
453
|
+
}
|
|
454
|
+
} else {
|
|
455
|
+
if (this.$refs.deparmentTree) {
|
|
456
|
+
// 通过查询结果添加的用户,在返回到组织结构树时,也选中了该用户,在移除该用户时,需要去掉复选框的选中状态
|
|
457
|
+
const checkedKeys = this.$refs.deparmentTree.getCheckedKeys()
|
|
458
|
+
const currentCheckedUserNodeIds = checkedKeys.filter(
|
|
459
|
+
this.filterDeptNode(dept)
|
|
460
|
+
)
|
|
461
|
+
if (currentCheckedUserNodeIds.length > 0) {
|
|
462
|
+
// 表示当前用户是选中的状态,需要去掉
|
|
463
|
+
currentCheckedUserNodeIds.forEach((userNodeId) => {
|
|
464
|
+
this.$refs.deparmentTree.setChecked(userNodeId, false)
|
|
465
|
+
})
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
this.selectResult = this.removeRow(this.selectResult, dept)
|
|
470
|
+
if (!this.selectResult || this.selectResult.length === 0) {
|
|
471
|
+
// 已选结果面板没有内容,则左侧树节点也不要有选中节点了
|
|
472
|
+
if (this.$refs.deparmentTree) {
|
|
473
|
+
this.$refs.deparmentTree.setCheckedKeys([])
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
},
|
|
477
|
+
},
|
|
478
|
+
emits: ['result'],
|
|
479
|
+
}
|
|
480
|
+
</script>
|
|
481
|
+
|
|
482
|
+
<style>
|
|
483
|
+
.searchResult {
|
|
484
|
+
color: red;
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
.inline-input-custom {
|
|
488
|
+
width: 90%;
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
.el-autocomplete-suggestion.el-popper {
|
|
492
|
+
min-width: 300px;
|
|
493
|
+
}
|
|
494
|
+
</style>
|