hrp-ui-base 1.4.7 → 1.4.8
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 +51 -51
- package/dist/components.cjs +1 -1
- package/dist/components.es.js +25 -25
- package/dist/style.css +1 -1
- package/package.json +101 -101
- package/packages/approval-process/.eslintrc +6 -6
- package/packages/approval-process/README.md +22 -22
- package/packages/approval-process/index.ts +65 -65
- package/packages/approval-process/package.json +17 -17
- package/packages/approval-process/packages/components/choose-member/BO/departBo.ts +8 -8
- package/packages/approval-process/packages/components/choose-member/BO/memberBo.ts +14 -14
- package/packages/approval-process/packages/components/choose-member/BO/roleBo.ts +16 -16
- package/packages/approval-process/packages/components/choose-member/index.vue +496 -496
- package/packages/approval-process/packages/components/choose-member/styles/common.scss +133 -133
- package/packages/approval-process/packages/components/comment/assets/download.svg +4 -4
- package/packages/approval-process/packages/components/comment/assets/mp3.svg +11 -11
- package/packages/approval-process/packages/components/comment/assets/mp4.svg +11 -11
- package/packages/approval-process/packages/components/comment/assets/other.svg +11 -11
- package/packages/approval-process/packages/components/comment/assets/pdf.svg +11 -11
- package/packages/approval-process/packages/components/comment/assets/ppt.svg +11 -11
- package/packages/approval-process/packages/components/comment/assets/preview.svg +4 -4
- package/packages/approval-process/packages/components/comment/assets/word.svg +11 -11
- package/packages/approval-process/packages/components/comment/assets/xls.svg +11 -11
- package/packages/approval-process/packages/components/comment/index.vue +843 -843
- package/packages/approval-process/packages/components/comment/modules/previewMp.vue +53 -53
- package/packages/approval-process/packages/components/comment/styles/comment-style.scss +303 -303
- package/packages/approval-process/packages/components/image-cropper/index.vue +202 -202
- package/packages/approval-process/packages/components/sign/index.vue +766 -766
- package/packages/approval-process/packages/components/sign/modules/full-screen-sign.vue +19 -19
- package/packages/approval-process/packages/components/urge-dialog/index.vue +120 -120
- package/packages/approval-process/packages/components/vue-esign/index.vue +289 -289
- package/packages/approval-process/packages/flow/approve-component/approve-success.vue +81 -81
- package/packages/approval-process/packages/flow/approve-component/route-params-error.vue +48 -48
- package/packages/approval-process/packages/flow/approve-component/submit-success.vue +58 -58
- package/packages/approval-process/packages/flow/examine-approve-itr.vue +978 -978
- package/packages/approval-process/packages/flow/examine-approve.vue +1065 -1065
- package/packages/approval-process/packages/flow/form-component/associated-approval-form/README.md +38 -38
- package/packages/approval-process/packages/flow/form-component/associated-approval-form/index.vue +158 -158
- package/packages/approval-process/packages/flow/form-component/associated-approval-form/modules/associated-approval-form-mobile.vue +297 -297
- package/packages/approval-process/packages/flow/form-component/associated-approval-form/modules/associated-approval-form-pc.vue +314 -314
- package/packages/approval-process/packages/flow/form-component/associated-approval-form/style/curd-area-mobile.scss +109 -109
- package/packages/approval-process/packages/flow/form-component/associated-approval-form/style/curd-area.scss +95 -95
- package/packages/approval-process/packages/flow/form-component/associated-approval-form/style/out-put.scss +47 -47
- package/packages/approval-process/packages/flow/form-component/show-sign.vue +27 -27
- package/packages/approval-process/packages/flow/styles/common.scss +133 -133
- package/packages/approval-process/packages/flow/styles/examine-approve-pc.scss +465 -465
- package/packages/approval-process/packages/flow/styles/examine-approve-phone.scss +292 -292
- package/packages/approval-process/packages/flow/styles/submit-approve-pc.scss +379 -379
- package/packages/approval-process/packages/flow/styles/submit-approve-phone.scss +336 -336
- package/packages/approval-process/packages/flow/submit-approve-itr.vue +622 -622
- package/packages/approval-process/packages/flow/submit-approve.vue +627 -627
- package/packages/approval-process/packages/flow/systemCom/BO/departBo.ts +8 -8
- package/packages/approval-process/packages/flow/systemCom/BO/memberBo.ts +14 -14
- package/packages/approval-process/packages/flow/systemCom/BO/roleBo.ts +16 -16
- package/packages/approval-process/packages/flow/systemCom/choose-depart.vue +398 -398
- package/packages/approval-process/packages/flow/systemCom/choose-member-phone.vue +514 -514
- package/packages/approval-process/packages/flow/systemCom/choose-member.vue +564 -564
- package/packages/approval-process/packages/flow/systemCom/choose-role.vue +300 -300
- package/packages/approval-process/packages/styles/common.scss +133 -133
- package/packages/approval-process/packages/styles/flex-common.scss +117 -117
- package/packages/approval-process/packages/styles/flexCommon.scss +72 -72
- package/packages/approval-process/packages/styles/main.css +216 -216
- package/packages/approval-process/packages/styles/router-page.scss +370 -370
- package/packages/approval-process/packages/styles/style-set.ts +207 -207
- package/packages/approval-process/packages/types.d.ts +3 -3
- package/packages/approval-process/packages/utils/base.ts +15 -15
- package/packages/approval-process/packages/utils/crypto.ts +66 -66
- package/packages/approval-process/packages/utils/ddUtils.ts +56 -56
- package/packages/approval-process/packages/utils/debounce.ts +35 -35
- package/packages/approval-process/packages/utils/des.js +1107 -1107
- package/packages/approval-process/packages/utils/download.ts +38 -38
- package/packages/approval-process/packages/utils/editor.ts +36 -36
- package/packages/approval-process/packages/utils/getEnv.ts +36 -36
- package/packages/approval-process/packages/utils/os.ts +20 -20
- package/packages/approval-process/packages/utils/path-util.ts +31 -31
- package/packages/approval-process/packages/utils/routerUtil.ts +304 -304
- package/packages/approval-process/packages/utils/string-utils.ts +13 -13
- package/packages/approval-process/packages/utils/throttle.ts +44 -44
- package/packages/approval-process/packages/utils/validate.ts +92 -92
- package/packages/approval-process/packages/utils/ws.ts +218 -218
- package/packages/approval-process/tsconfig.json +72 -72
- package/packages/approval-process/vite.config.ts +56 -56
- package/src/api/bms/dict/bo/DictConfigBO.ts +23 -23
- package/src/api/bms/dict/bo/DictConfigBaseVO.ts +24 -24
- package/src/api/bms/dict/bo/DictConfigSearchBO.ts +12 -12
- package/src/api/bms/dict/bo/DictImportBO.ts +6 -6
- package/src/api/bms/dict/bo/DictVO.ts +21 -21
- package/src/api/bms/dict/bo/PageBaseVO.ts +8 -8
- package/src/api/bms/dict/bo/TotalDictBO.ts +11 -11
- package/src/api/bms/dict/bo/TotalDictPageVO.ts +17 -17
- package/src/api/bms/dict/dict-controller.ts +78 -78
- package/src/api/bms/file/FileExportController.ts +19 -19
- package/src/api/bms/file/FileUploadController.ts +131 -131
- package/src/api/bms/file/bo/FileBaseInfo.ts +13 -13
- package/src/api/bms/file/bo/FileExportVO.ts +17 -17
- package/src/api/bms/file/bo/FilePreviewVO.ts +8 -8
- package/src/api/bms/file/bo/FileUploadInfo.ts +22 -22
- package/src/api/bms/file/bo/FileUrlVO.ts +10 -10
- package/src/api/bms/file/bo/StsTokenVO.ts +20 -20
- package/src/api/bms/flow/FlowCommentController.ts +50 -50
- package/src/api/bms/flow/FlowInstanceController.ts +179 -179
- package/src/api/bms/flow/FlowProcessController.ts +55 -55
- package/src/api/bms/flow/FlowSheetController.ts +27 -27
- package/src/api/bms/flow/FlowSignController.ts +76 -76
- package/src/api/bms/flow/bo/AssociatedApprovalBO.ts +15 -15
- package/src/api/bms/flow/bo/AssociatedApprovalVO.ts +35 -35
- package/src/api/bms/flow/bo/AuditBaseInfo.ts +39 -39
- package/src/api/bms/flow/bo/ButtonVo.ts +7 -7
- package/src/api/bms/flow/bo/DingCallbackBo.ts +13 -13
- package/src/api/bms/flow/bo/FlowCommentBO.ts +12 -12
- package/src/api/bms/flow/bo/FlowCommentVO.ts +23 -23
- package/src/api/bms/flow/bo/FlowInstanceBO.ts +14 -14
- package/src/api/bms/flow/bo/FlowNodeVO.ts +24 -24
- package/src/api/bms/flow/bo/FlowNoticeBO.ts +17 -17
- package/src/api/bms/flow/bo/FlowProcessBO.ts +13 -13
- package/src/api/bms/flow/bo/FlowProcessVO.ts +9 -9
- package/src/api/bms/flow/bo/FlowReplyVO.ts +23 -23
- package/src/api/bms/flow/bo/FlowSheetVO.ts +16 -16
- package/src/api/bms/flow/bo/InstanceBackBO.ts +9 -9
- package/src/api/bms/flow/bo/InstanceNodeBO.ts +13 -13
- package/src/api/bms/flow/bo/InstanceNodeVO.ts +21 -21
- package/src/api/bms/flow/bo/NodeShowVo.ts +19 -19
- package/src/api/bms/flow/bo/ReviewBO.ts +11 -11
- package/src/api/bms/flow/bo/SheetSearchBO.ts +11 -11
- package/src/api/bms/flow/bo/SystemVO.ts +7 -7
- package/src/api/bms/flow/bo/TransmitBO.ts +9 -9
- package/src/api/bms/flow/bo/UrgeFlowBO.ts +7 -7
- package/src/api/bms/flow/bo/UserBaseInfoVo.ts +13 -13
- package/src/api/bms/flow/bo/UserInfoVo.ts +44 -44
- package/src/api/bms/flow/bo/UserResultVo.ts +17 -17
- package/src/api/bms/flow/bo/ValueMapBo.ts +7 -7
- package/src/api/bms/home/HomeController.ts +106 -106
- package/src/api/bms/home/bo/CollectedMenuBo.ts +9 -9
- package/src/api/bms/home/bo/DeptBaseVo.ts +9 -9
- package/src/api/bms/home/bo/DomainVO.ts +13 -13
- package/src/api/bms/home/bo/FunPermission.ts +17 -17
- package/src/api/bms/home/bo/GroupVO.ts +10 -10
- package/src/api/bms/home/bo/HomeMenu.ts +22 -22
- package/src/api/bms/home/bo/HomeMenuVo.ts +11 -11
- package/src/api/bms/home/bo/PersonalizationBo.ts +17 -17
- package/src/api/bms/home/bo/PersonalizationVo.ts +19 -19
- package/src/api/bms/home/bo/PhoneMenu.ts +14 -14
- package/src/api/bms/home/bo/SearchMenuVo.ts +10 -10
- package/src/api/bms/home/bo/UserBaseInfoVo.ts +11 -11
- package/src/api/bms/permission-manage/PermissionController.ts +133 -133
- package/src/api/bms/permission-manage/bo/DataScopeConfig.ts +17 -17
- package/src/api/bms/permission-manage/bo/DataScopePoint.ts +15 -15
- package/src/api/bms/permission-manage/bo/DeptBaseVo.ts +9 -9
- package/src/api/bms/permission-manage/bo/FunPermissionConfig.ts +18 -18
- package/src/api/bms/permission-manage/bo/FunPointVo.ts +9 -9
- package/src/api/bms/permission-manage/bo/PermissionGroupBo.ts +11 -11
- package/src/api/bms/permission-manage/bo/PermissionGroupMemberVo.ts +18 -18
- package/src/api/bms/permission-manage/bo/PermissionGroupPageVo.ts +17 -17
- package/src/api/bms/permission-manage/bo/PermissionGroupVo.ts +17 -17
- package/src/api/bms/permission-manage/bo/RoleBaseVo.ts +9 -9
- package/src/api/bms/permission-manage/bo/TheFirstStepVo.ts +13 -13
- package/src/api/bms/permission-manage/bo/TheSecondStepVo.ts +14 -14
- package/src/api/bms/permission-manage/bo/UserBaseInfoVo.ts +11 -11
- package/src/api/bms/tabulation/TabulationController.ts +78 -78
- package/src/api/bms/tabulation/bo/FieldConditionBO.ts +10 -10
- package/src/api/bms/tabulation/bo/FieldConditionVO.ts +10 -10
- package/src/api/bms/tabulation/bo/OperateButtonVO.ts +9 -9
- package/src/api/bms/tabulation/bo/PersonViewVO.ts +33 -33
- package/src/api/bms/tabulation/bo/SearchVO.ts +33 -33
- package/src/api/bms/tabulation/bo/TabulationBO.ts +14 -14
- package/src/api/bms/tabulation/bo/ViewSortBO.ts +7 -7
- package/src/api/bms/tabulation/bo/ViewVO.ts +12 -12
- package/src/api/common/FileBaseInfo.ts +10 -10
- package/src/api/common/ResponseBean.ts +9 -9
- package/src/api/common/ResponseBeanList.ts +15 -15
- package/src/api/common/ResponseBeanTablePage.ts +21 -21
- package/src/api/common/TableQueryCriteriaVO.ts +10 -10
- package/src/api/common/bo/PageResult.ts +22 -22
- package/src/api/hrms/dept/bo/DeptBaseVo.ts +6 -6
- package/src/api/hrms/dept/bo/DeptTreeVo.ts +23 -23
- package/src/api/hrms/dept/bo/DeptUserVo.ts +9 -9
- package/src/api/hrms/dept/bo/DeptUsersVo.ts +10 -10
- package/src/api/hrms/dept/bo/DeptVo.ts +19 -19
- package/src/api/hrms/dept/bo/UserBaseInfoVo.ts +7 -7
- package/src/api/hrms/dept/deptController.ts +100 -100
- package/src/api/hrms/role/bo/RoleBaseVo.ts +6 -6
- package/src/api/hrms/role/bo/RoleGroupVo.ts +11 -11
- package/src/api/hrms/role/bo/RoleVo.ts +22 -22
- package/src/api/hrms/role/roleController.ts +19 -19
- package/src/api/hrms/user/bo/UserBaseInfoVo.ts +11 -11
- package/src/api/hrms/user/bo/UserCardVO.ts +13 -13
- package/src/api/hrms/user/bo/UserDeptBO.ts +13 -13
- package/src/api/hrms/user/bo/UserRoleBO.ts +11 -11
- package/src/api/hrms/user/bo/UserVO.ts +23 -23
- package/src/api/hrms/user/userController.ts +86 -86
- package/src/api/index.ts +9 -9
- package/src/api/notice/NoticeController.ts +73 -73
- package/src/api/notice/bo/NoticePageBO.ts +24 -24
- package/src/api/notice/bo/NoticeVO.ts +31 -31
- package/src/api/work-order-pc/flow/Bo/ValueMapBo.ts +7 -7
- package/src/api/work-order-pc/flow/ItrFlowProcessController.ts +41 -41
- package/src/api/work-order-pc/flow/Vo/FlowNodeVO.ts +24 -24
- package/src/api/work-order-pc/flow/Vo/UserInfoVo.ts +44 -44
- package/src/assets/layout/avatar-default.svg +6 -6
- package/src/assets/layout/collect-active.svg +7 -7
- package/src/assets/layout/collect-default.svg +7 -7
- package/src/assets/layout/download-active.svg +8 -8
- package/src/assets/layout/download-default.svg +8 -8
- package/src/assets/layout/export-dark.svg +7 -7
- package/src/assets/layout/export-default.svg +7 -7
- package/src/assets/layout/font-active.svg +6 -6
- package/src/assets/layout/font-default.svg +6 -6
- package/src/assets/layout/help-active.svg +10 -10
- package/src/assets/layout/help-default.svg +10 -10
- package/src/assets/layout/home-active.svg +6 -6
- package/src/assets/layout/home.svg +6 -6
- package/src/assets/layout/menu-expand.svg +6 -6
- package/src/assets/layout/menu-position-active.svg +6 -6
- package/src/assets/layout/menu-position-default.svg +6 -6
- package/src/assets/layout/message-active.svg +9 -9
- package/src/assets/layout/message-default.svg +9 -9
- package/src/assets/layout/moon.svg +8 -8
- package/src/assets/layout/router-all-dark.svg +11 -11
- package/src/assets/layout/router-all-default.svg +17 -17
- package/src/assets/layout/search-active.svg +20 -20
- package/src/assets/layout/search-default.svg +20 -20
- package/src/assets/layout/star-default.svg +3 -3
- package/src/assets/layout/sun-active.svg +6 -6
- package/src/assets/layout/sun-default.svg +6 -6
- package/src/assets/layout/switch-moon.svg +3 -3
- package/src/assets/layout/switch-sun.svg +41 -41
- package/src/assets/layout/todo-active.svg +12 -12
- package/src/assets/layout/todo-default.svg +12 -12
- package/src/assets/layout/user-dark.svg +13 -13
- package/src/assets/layout/user-default.svg +13 -13
- package/src/assets/no-permiss-dark.svg +16 -16
- package/src/assets/no-permiss-day.svg +16 -16
- package/src/assets/process/drawer/manyLevel1close.svg +9 -9
- package/src/assets/process/drawer/manyLevel1open.svg +6 -6
- package/src/assets/process/drawer/manyLevel2close.svg +6 -6
- package/src/assets/process/drawer/manyLevel2open.svg +6 -6
- package/src/assets/table-delete/table-delete.svg +2 -2
- package/src/components/annex-img-upload/assets/download.svg +4 -4
- package/src/components/annex-img-upload/assets/mp3.svg +11 -11
- package/src/components/annex-img-upload/assets/mp4.svg +11 -11
- package/src/components/annex-img-upload/assets/other.svg +11 -11
- package/src/components/annex-img-upload/assets/pdf.svg +11 -11
- package/src/components/annex-img-upload/assets/ppt.svg +11 -11
- package/src/components/annex-img-upload/assets/preview.svg +4 -4
- package/src/components/annex-img-upload/assets/word.svg +11 -11
- package/src/components/annex-img-upload/assets/xls.svg +11 -11
- package/src/components/annex-img-upload/index.vue +609 -609
- package/src/components/annex-img-upload/modules/previewMp.vue +53 -53
- package/src/components/annex-upload/assets/download.svg +4 -4
- package/src/components/annex-upload/assets/mp3.svg +11 -11
- package/src/components/annex-upload/assets/mp4.svg +11 -11
- package/src/components/annex-upload/assets/other.svg +11 -11
- package/src/components/annex-upload/assets/pdf.svg +11 -11
- package/src/components/annex-upload/assets/ppt.svg +11 -11
- package/src/components/annex-upload/assets/preview.svg +4 -4
- package/src/components/annex-upload/assets/word.svg +11 -11
- package/src/components/annex-upload/assets/xls.svg +11 -11
- package/src/components/annex-upload/index.vue +800 -800
- package/src/components/annex-upload/modules/previewMp.vue +53 -53
- package/src/components/annex-upload-weijian/assets/download.svg +4 -4
- package/src/components/annex-upload-weijian/assets/mp3.svg +11 -11
- package/src/components/annex-upload-weijian/assets/mp4.svg +11 -11
- package/src/components/annex-upload-weijian/assets/other.svg +11 -11
- package/src/components/annex-upload-weijian/assets/pdf.svg +11 -11
- package/src/components/annex-upload-weijian/assets/ppt.svg +11 -11
- package/src/components/annex-upload-weijian/assets/preview.svg +4 -4
- package/src/components/annex-upload-weijian/assets/word.svg +11 -11
- package/src/components/annex-upload-weijian/assets/xls.svg +11 -11
- package/src/components/annex-upload-weijian/index.vue +772 -772
- package/src/components/annex-upload-weijian/modules/previewMp.vue +53 -53
- package/src/components/base-layout/index.vue +199 -199
- package/src/components/button.vue +14 -14
- package/src/components/layout/ApprovalCenterDrawer.vue +231 -231
- package/src/components/layout/ExportCenterDrawer.vue +164 -164
- package/src/components/layout/LayoutContainer.vue +542 -542
- package/src/components/layout/SysHeader.vue +90 -90
- package/src/components/layout/SysHeaderLeft.vue +114 -114
- package/src/components/layout/SysHeaderRight.vue +112 -112
- package/src/components/layout/SysHeaderTabs.vue +289 -289
- package/src/components/layout/components/avatar-component.vue +77 -77
- package/src/components/layout/components/dark-component.vue +82 -82
- package/src/components/layout/components/download-component.vue +49 -49
- package/src/components/layout/components/font-size-component.vue +66 -66
- package/src/components/layout/components/menu-position-component.vue +97 -97
- package/src/components/layout/components/message-component.vue +64 -64
- package/src/components/layout/components/todo-component.vue +55 -55
- package/src/components/layout/index.ts +34 -34
- package/src/components/layout/message/message-dictionary.ts +27 -27
- package/src/components/layout/message/message-icon//345/205/250/351/203/250/351/200/232/347/237/245-/350/223/235.svg +8 -8
- package/src/components/layout/message/message-icon//345/205/250/351/203/250/351/200/232/347/237/245-/351/273/221.svg +8 -8
- package/src/components/layout/message/message-icon//345/205/250/351/203/250/351/200/232/347/237/245.svg +8 -8
- package/src/components/layout/message/message-icon//345/205/254/345/221/212/351/200/232/347/237/245-/350/223/235.svg +12 -12
- package/src/components/layout/message/message-icon//345/205/254/345/221/212/351/200/232/347/237/245-/351/273/221.svg +12 -12
- package/src/components/layout/message/message-icon//345/205/254/345/221/212/351/200/232/347/237/245.svg +12 -12
- package/src/components/layout/message/message-icon//345/256/241/346/211/271/351/200/232/347/237/245-/350/223/235.svg +8 -8
- package/src/components/layout/message/message-icon//345/256/241/346/211/271/351/200/232/347/237/245-/351/273/221.svg +8 -8
- package/src/components/layout/message/message-icon//345/256/241/346/211/271/351/200/232/347/237/245.svg +8 -8
- package/src/components/layout/message/message-icon//345/257/274/345/207/272/351/200/232/347/237/245-/350/223/235.svg +13 -13
- package/src/components/layout/message/message-icon//345/257/274/345/207/272/351/200/232/347/237/245-/351/273/221.svg +13 -13
- package/src/components/layout/message/message-icon//345/257/274/345/207/272/351/200/232/347/237/245.svg +13 -13
- package/src/components/layout/message/message-icon//346/234/252/350/257/273/351/200/232/347/237/245-/350/223/235.svg +11 -11
- package/src/components/layout/message/message-icon//346/234/252/350/257/273/351/200/232/347/237/245-/351/273/221.svg +11 -11
- package/src/components/layout/message/message-icon//346/234/252/350/257/273/351/200/232/347/237/245.svg +11 -11
- package/src/components/layout/message/message-icon//347/251/272/347/212/266/346/200/201.svg +17 -17
- package/src/components/layout/message/message-icon//347/263/273/347/273/237/351/200/232/347/237/245-/350/223/235.svg +13 -13
- package/src/components/layout/message/message-icon//347/263/273/347/273/237/351/200/232/347/237/245-/351/273/221.svg +13 -13
- package/src/components/layout/message/message-icon//347/263/273/347/273/237/351/200/232/347/237/245.svg +13 -13
- package/src/components/layout/message/message-notification-drawer.vue +533 -533
- package/src/components/layout/personal-sign/ImageCropper.vue +187 -187
- package/src/components/layout/personal-sign/PersonalSignDialog.vue +658 -658
- package/src/components/layout/personalization-guide-dialog.vue +255 -255
- package/src/components/layout/plugin.ts +32 -32
- package/src/components/layout/sideMenu-global.scss +115 -115
- package/src/components/layout/sideMenu.scss +312 -312
- package/src/components/layout/sideMenu.vue +541 -541
- package/src/components/layout/sideMenuSonList.vue +185 -185
- package/src/components/layout/stores/index.ts +5 -5
- package/src/components/layout/stores/useLayoutConfigStore.ts +231 -231
- package/src/components/layout/stores/useLayoutMenuStore.ts +232 -232
- package/src/components/layout/stores/useLayoutNoticeStore.ts +77 -77
- package/src/components/layout/stores/useLayoutTabsStore.ts +367 -367
- package/src/components/layout/styles/icon.scss +72 -72
- package/src/components/layout/types.ts +98 -98
- package/src/components/layout/utils/redirect.ts +144 -144
- package/src/components/list-search-content/components/index.ts +11 -11
- package/src/components/list-search-content/components/search-date-range.vue +74 -74
- package/src/components/list-search-content/components/search-date-time-range.vue +48 -48
- package/src/components/list-search-content/components/search-date.vue +97 -97
- package/src/components/list-search-content/components/search-input-number.vue +59 -59
- package/src/components/list-search-content/components/search-input.vue +46 -46
- package/src/components/list-search-content/components/search-multiple_select.vue +69 -69
- package/src/components/list-search-content/components/search-select.vue +64 -64
- package/src/components/list-search-content/index.vue +803 -803
- package/src/components/list-search-content/modules/add-views-package-dialog.vue +147 -147
- package/src/components/list-search-content/modules/search-condition-area.vue +252 -252
- package/src/components/list-search-content/modules/views-package-manage-dialog.vue +265 -265
- package/src/components/switch.vue +16 -16
- package/src/components.ts +67 -67
- package/src/enum/system/StorageEnum.ts +4 -4
- package/src/global.d.ts +19 -19
- package/src/index.ts +4 -4
- package/src/init.ts +37 -37
- package/src/styles/common.scss +133 -133
- package/src/styles/flex-common.scss +117 -117
- package/src/styles/flexCommon.scss +72 -72
- package/src/styles/main.css +277 -277
- package/src/styles/router-page.scss +370 -370
- package/src/styles/style-set.ts +809 -809
- package/src/utils/HttpUtil.ts +427 -427
- package/src/utils/base.ts +47 -47
- package/src/utils/cell-style.ts +11 -11
- package/src/utils/crypto.ts +98 -98
- package/src/utils/dd-utils.ts +157 -157
- package/src/utils/debounce.ts +35 -35
- package/src/utils/debounceleading.ts +48 -48
- package/src/utils/download.ts +38 -38
- package/src/utils/exitLogin.ts +58 -58
- package/src/utils/filter-key.ts +4 -4
- package/src/utils/formatter-handler.ts +12 -12
- package/src/utils/get-dict.ts +26 -26
- package/src/utils/get-env.ts +36 -36
- package/src/utils/login-path.ts +35 -35
- package/src/utils/path-utils.ts +31 -31
- package/src/utils/permit-utils.ts +68 -68
- package/src/utils/router-utils.ts +321 -321
- package/src/utils/string-utils.ts +166 -166
- package/src/utils/style-set.ts +750 -750
- package/src/utils/throttle.ts +62 -62
- package/src/utils/transform-data.ts +31 -31
- package/src/utils/validate.ts +92 -92
- package/src/utils/ws.ts +218 -218
- package/src/utils/wujie-son.ts +50 -50
- package/src/utils.ts +24 -24
|
@@ -1,515 +1,515 @@
|
|
|
1
|
-
<!-- 选择人员-手机端 - 多选 - 单选 -->
|
|
2
|
-
<template>
|
|
3
|
-
<el-icon class="iconBoxForSubmitAdd" @click="changePopShow(true)" v-if="props.submitAdd">
|
|
4
|
-
<Plus />
|
|
5
|
-
</el-icon>
|
|
6
|
-
<div @click="changePopShow(true)" class="triggerArea flexRowStart" :style="props.submitAdd ? { padding: 0 } : {}"
|
|
7
|
-
v-if="!props.submitAdd">
|
|
8
|
-
<div class="triggerItem" v-for="(item, index) in checkedMember" :key="index"
|
|
9
|
-
v-if="checkedMember && checkedMember.length > 0 && !props.abbreviate && !props.submitAdd">
|
|
10
|
-
{{ item.userName }}
|
|
11
|
-
</div>
|
|
12
|
-
<div v-else-if="checkedMember && checkedMember.length > 0 && props.abbreviate && !props.submitAdd"
|
|
13
|
-
class="abbreviateItem flexRowCenter">
|
|
14
|
-
{{ `已选择(${checkedMember.length})` }}<el-icon style="font-size:16px;">
|
|
15
|
-
<UserFilled />
|
|
16
|
-
</el-icon>
|
|
17
|
-
</div>
|
|
18
|
-
|
|
19
|
-
<div v-else>请选择人员</div>
|
|
20
|
-
</div>
|
|
21
|
-
<van-popup v-model:show="popupShow" closeable position="bottom"
|
|
22
|
-
:style="{ height: '70%', 'z-index': '8888', position: 'fixed', bottom: props.posBottom || props.posBottom == 0 ? props.posBottom + 'px' : '50px', left: 0, right: 0 }">
|
|
23
|
-
<div class="popupBox flexColumnStart">
|
|
24
|
-
<div class="popupBoxHeader">选择成员:</div>
|
|
25
|
-
<div class="popupBoxContent">
|
|
26
|
-
<div class="popCheckedItemBox">
|
|
27
|
-
当前已选:
|
|
28
|
-
<div class="flexRowStartCenter" style="flex-wrap: wrap;">
|
|
29
|
-
<div class="chooseItem flexRowStartCenter" v-for="(item, index) in checkedMember" :key="item.userId">
|
|
30
|
-
<img :src="item.avatar" alt="" v-if="item.avatar">
|
|
31
|
-
<img src="hrp-ui-base/assets/process/defaultAvatar.png" alt="" v-if="!item.avatar">
|
|
32
|
-
<div class="chooseItemName">{{ item.userName }}</div>
|
|
33
|
-
<el-icon class="chooseItemIcon" @click="deleteCheckedItem(index)">
|
|
34
|
-
<Close />
|
|
35
|
-
</el-icon>
|
|
36
|
-
</div>
|
|
37
|
-
</div>
|
|
38
|
-
</div>
|
|
39
|
-
<div class="companyNameBox flexRowStart">
|
|
40
|
-
<span v-for="(nameItem, nameIndex) in namebox" :key="nameIndex" class="companyNameBoxName"
|
|
41
|
-
@click="goPointLevel(nameItem, nameIndex)">
|
|
42
|
-
{{ nameItem.name }}
|
|
43
|
-
<span v-if="nameIndex != namebox.length - 1" class="companyNameBoxSymbol">
|
|
44
|
-
/
|
|
45
|
-
</span>
|
|
46
|
-
</span>
|
|
47
|
-
</div>
|
|
48
|
-
<div class="popMemberList">
|
|
49
|
-
<el-checkbox-group v-model="checkedMember" @change="handleCheckedMemberChange" size="default"
|
|
50
|
-
class="flexColumnStart optionbox" v-if="multiple">
|
|
51
|
-
<div class="flexRowBetween" style="width:100%" v-for="(item, index) in departs" :key="item.deptId">
|
|
52
|
-
<el-checkbox :label="item" size="default" style="margin-bottom: 8px;font-size:18px;width: 340px;min-height:24px;max-height: 24px;
|
|
53
|
-
" disabled>
|
|
54
|
-
{{
|
|
55
|
-
item.deptName
|
|
56
|
-
}}
|
|
57
|
-
</el-checkbox>
|
|
58
|
-
<div style="width:100px;height:24px;font-size: 16px;line-height: 16px;cursor: pointer;"
|
|
59
|
-
class="flexRowStart" @click.stop="goNextLevel(item)">
|
|
60
|
-
<el-icon style="margin-right:4px;">
|
|
61
|
-
<Expand />
|
|
62
|
-
</el-icon>{{ '下级' }}
|
|
63
|
-
</div>
|
|
64
|
-
</div>
|
|
65
|
-
<div class="flexRowBetween" style="width:100%" v-for="(item, index) in members" :key="item.userId">
|
|
66
|
-
<el-checkbox :label="item" size="default" style="margin-bottom: 8px;font-size:18px;width: 340px;min-height:24px;max-height: 24px;
|
|
67
|
-
">
|
|
68
|
-
{{
|
|
69
|
-
item.userName
|
|
70
|
-
}}
|
|
71
|
-
</el-checkbox>
|
|
72
|
-
</div>
|
|
73
|
-
</el-checkbox-group>
|
|
74
|
-
<el-radio-group v-model="radioMemeber" @change="handleRadioMemberChange" size="default"
|
|
75
|
-
class="flexColumnStart optionbox" v-if="!multiple">
|
|
76
|
-
<div class="flexRowBetween" style="width:100%" v-for="(item, index) in departs" :key="item.deptId">
|
|
77
|
-
<el-radio :label="item" size="default"
|
|
78
|
-
style="margin-bottom: 8px;font-size:18px;width: 340px;min-height:24px;max-height: 24px;" disabled>
|
|
79
|
-
{{
|
|
80
|
-
item.deptName
|
|
81
|
-
}}
|
|
82
|
-
</el-radio>
|
|
83
|
-
<div style="width:100px;height:24px;font-size: 16px;line-height: 16px;cursor: pointer;"
|
|
84
|
-
class="flexRowStart" @click.stop="goNextLevel(item)">
|
|
85
|
-
<el-icon style="margin-right:4px;">
|
|
86
|
-
<Expand />
|
|
87
|
-
</el-icon>{{ '下级' }}
|
|
88
|
-
</div>
|
|
89
|
-
</div>
|
|
90
|
-
<div class="flexRowBetween" style="width:100%" v-for="(item, index) in members" :key="item.userId">
|
|
91
|
-
<el-radio :label="item" size="default"
|
|
92
|
-
style="margin-bottom: 8px;font-size:18px;width: 340px;min-height:24px;max-height: 24px;">
|
|
93
|
-
{{
|
|
94
|
-
item.userName
|
|
95
|
-
}}
|
|
96
|
-
</el-radio>
|
|
97
|
-
</div>
|
|
98
|
-
</el-radio-group>
|
|
99
|
-
</div>
|
|
100
|
-
</div>
|
|
101
|
-
<div class="popupButton flexRowCenter">
|
|
102
|
-
<van-button type="primary" style="margin-right:28px;width:30%" @click="saveDia">保存</van-button>
|
|
103
|
-
<van-button type="default" style="width:30%" @click="saveDia">关闭</van-button>
|
|
104
|
-
</div>
|
|
105
|
-
</div>
|
|
106
|
-
</van-popup>
|
|
107
|
-
</template>
|
|
108
|
-
<script lang="ts" setup>
|
|
109
|
-
import { reactive, ref, onMounted, shallowRef, toRefs, watch ,PropType} from 'vue'
|
|
110
|
-
import { Search, Watch } from '@element-plus/icons-vue'
|
|
111
|
-
import DeptController from "hrp-ui-base/api/hrms/dept/deptController";
|
|
112
|
-
import RoleController from "hrp-ui-base/api/hrms/role/roleController";
|
|
113
|
-
import UserController from "hrp-ui-base/api/hrms/user/userController";
|
|
114
|
-
|
|
115
|
-
import type { userBo, departBo, nameForSearchBo } from './BO/memberBo'
|
|
116
|
-
const props = defineProps({
|
|
117
|
-
modelValue: {
|
|
118
|
-
type:Array as PropType<any>
|
|
119
|
-
},
|
|
120
|
-
// 选择了那些审批人 具体的人名
|
|
121
|
-
multiple: {
|
|
122
|
-
type: Boolean,
|
|
123
|
-
default: true,
|
|
124
|
-
require: false
|
|
125
|
-
},
|
|
126
|
-
// 选择了N位审批人 ,缩略图
|
|
127
|
-
abbreviate: {
|
|
128
|
-
type: Boolean,
|
|
129
|
-
default: false,
|
|
130
|
-
require: false
|
|
131
|
-
},
|
|
132
|
-
// 显示add - 审批提交时
|
|
133
|
-
submitAdd: {
|
|
134
|
-
type: Boolean,
|
|
135
|
-
default: false,
|
|
136
|
-
require: false
|
|
137
|
-
},
|
|
138
|
-
posBottom: {
|
|
139
|
-
type: Number,
|
|
140
|
-
require: false,
|
|
141
|
-
default: 50
|
|
142
|
-
},
|
|
143
|
-
// 数据来源范围 全公司 指定成员 指定角色
|
|
144
|
-
dataSources: {
|
|
145
|
-
type: String,
|
|
146
|
-
default: 'all',
|
|
147
|
-
require: false
|
|
148
|
-
},
|
|
149
|
-
// 数据来源范围具体的条件 全公司 指定成员 指定角色
|
|
150
|
-
dataSourcesCondition: {
|
|
151
|
-
type: Array<string>,
|
|
152
|
-
default: [],
|
|
153
|
-
require: false
|
|
154
|
-
}
|
|
155
|
-
})
|
|
156
|
-
const emits = defineEmits(['update:modelValue', 'changeCheckMemberId', 'changeButtonShow'])
|
|
157
|
-
const { modelValue, multiple } = toRefs(props)
|
|
158
|
-
const popupShow = ref(false)
|
|
159
|
-
const changePopShow = (value: boolean) => {
|
|
160
|
-
popupShow.value = value
|
|
161
|
-
if (value) {
|
|
162
|
-
getList('1')
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
watch(() => { popupShow.value }, () => {
|
|
166
|
-
emits('changeButtonShow', !popupShow.value)
|
|
167
|
-
}, { deep: true })
|
|
168
|
-
watch(() => multiple.value, () => {
|
|
169
|
-
console.warn('多选改变了')
|
|
170
|
-
})
|
|
171
|
-
|
|
172
|
-
onMounted(() => {
|
|
173
|
-
console.log(props)
|
|
174
|
-
setTimeout(() => {
|
|
175
|
-
checkedMember.value = modelValue && modelValue.value ? modelValue.value : []
|
|
176
|
-
if (!multiple.value) {
|
|
177
|
-
console.log(checkedMember.value)
|
|
178
|
-
checkedMemberForRadio.value = checkedMember.value[0]
|
|
179
|
-
}
|
|
180
|
-
}, 500)
|
|
181
|
-
// getList('1')
|
|
182
|
-
})
|
|
183
|
-
/** 复制出的数据 */
|
|
184
|
-
const copyMembers = ref<userBo[]>([])
|
|
185
|
-
const getList = async (id: string) => {
|
|
186
|
-
if (props.dataSources == 'user') {
|
|
187
|
-
let userIds = <any>[]
|
|
188
|
-
if (props.dataSourcesCondition && props.dataSourcesCondition.length > 0) {
|
|
189
|
-
userIds = props.dataSourcesCondition
|
|
190
|
-
}
|
|
191
|
-
await UserController.getLivingUserListByIds(userIds).then((data) => {
|
|
192
|
-
console.log(data)
|
|
193
|
-
|
|
194
|
-
if (data.res) {
|
|
195
|
-
let arr = <any>[]
|
|
196
|
-
if (data.res.length > 0) {
|
|
197
|
-
data.res.forEach((item) => {
|
|
198
|
-
arr.push({ ...item, id: item.userId })
|
|
199
|
-
})
|
|
200
|
-
}
|
|
201
|
-
members.value = arr
|
|
202
|
-
copyMembers.value = JSON.parse(JSON.stringify(arr))
|
|
203
|
-
}
|
|
204
|
-
// if (data.res && data.res.deptVoList) {
|
|
205
|
-
// departs.value = data.res?.deptVoList
|
|
206
|
-
// }
|
|
207
|
-
// checkAll.value = false
|
|
208
|
-
})
|
|
209
|
-
} else if (props.dataSources == 'role') {
|
|
210
|
-
let roleIds = <any>[]
|
|
211
|
-
if (props.dataSourcesCondition && props.dataSourcesCondition.length > 0) {
|
|
212
|
-
roleIds = props.dataSourcesCondition
|
|
213
|
-
}
|
|
214
|
-
await UserController.getUserListByRoleIds(roleIds).then((data) => {
|
|
215
|
-
console.log(data)
|
|
216
|
-
if (data.res) {
|
|
217
|
-
let arr = <any>[]
|
|
218
|
-
if (data.res.length > 0) {
|
|
219
|
-
data.res.forEach((item) => {
|
|
220
|
-
arr.push({ ...item, id: item.userId })
|
|
221
|
-
})
|
|
222
|
-
}
|
|
223
|
-
members.value = arr
|
|
224
|
-
}
|
|
225
|
-
// if (data.res && data.res.userList) {
|
|
226
|
-
// let arr = <any>[]
|
|
227
|
-
// if (data.res.userList.length > 0) {
|
|
228
|
-
// data.res.userList.forEach((item) => {
|
|
229
|
-
// arr.push({ ...item, id: item.userId })
|
|
230
|
-
// })
|
|
231
|
-
// }
|
|
232
|
-
// members.value = arr
|
|
233
|
-
// }
|
|
234
|
-
// if (data.res && data.res.deptVoList) {
|
|
235
|
-
// departs.value = data.res?.deptVoList
|
|
236
|
-
// }
|
|
237
|
-
// checkAll.value = false
|
|
238
|
-
})
|
|
239
|
-
} else {
|
|
240
|
-
await DeptController.getDeptUserListByParentId(id).then((data) => {
|
|
241
|
-
if (data.res && data.res.userList) {
|
|
242
|
-
let arr = <any>[]
|
|
243
|
-
if (data.res.userList.length > 0) {
|
|
244
|
-
data.res.userList.forEach((item) => {
|
|
245
|
-
arr.push({ ...item, id: item.userId })
|
|
246
|
-
})
|
|
247
|
-
}
|
|
248
|
-
members.value = arr
|
|
249
|
-
}
|
|
250
|
-
if (data.res && data.res.deptVoList) {
|
|
251
|
-
departs.value = data.res?.deptVoList
|
|
252
|
-
}
|
|
253
|
-
checkAll.value = false
|
|
254
|
-
})
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
const dialogVisible = ref(false)
|
|
258
|
-
const searchContent = ref('')
|
|
259
|
-
const checkAll = ref(false)
|
|
260
|
-
const isIndeterminate = ref(false)
|
|
261
|
-
const checkedMember = ref<userBo[]>([])
|
|
262
|
-
let members = ref<userBo[]>([])
|
|
263
|
-
let departs = ref<departBo[]>([])
|
|
264
|
-
// 点击多选
|
|
265
|
-
|
|
266
|
-
const handleCheckAllChange = (val: boolean) => {
|
|
267
|
-
let copyMembers = JSON.parse(JSON.stringify(checkedMember.value))
|
|
268
|
-
for (let j = checkedMember.value.length - 1; j >= 0; j--) {
|
|
269
|
-
members.value.forEach((item, index) => {
|
|
270
|
-
if (item.userId == checkedMember.value[j].userId) {
|
|
271
|
-
console.log(item, checkedMember.value[j])
|
|
272
|
-
copyMembers.splice(j, 1)
|
|
273
|
-
}
|
|
274
|
-
})
|
|
275
|
-
}
|
|
276
|
-
if (val) {
|
|
277
|
-
members.value.forEach((item, index) => {
|
|
278
|
-
copyMembers.push(item)
|
|
279
|
-
})
|
|
280
|
-
}
|
|
281
|
-
checkedMember.value = copyMembers
|
|
282
|
-
// checkedMember.value = val ? members.value : []
|
|
283
|
-
isIndeterminate.value = false
|
|
284
|
-
}
|
|
285
|
-
const handleCheckedMemberChange = (value: any) => {
|
|
286
|
-
|
|
287
|
-
let chooseAllAll = true
|
|
288
|
-
let havaOneChoose = false
|
|
289
|
-
members.value.forEach((j, jndex) => {
|
|
290
|
-
let havaValue = false
|
|
291
|
-
value.forEach((i: any, index: number) => {
|
|
292
|
-
|
|
293
|
-
if (i.userId == j.userId) {
|
|
294
|
-
havaValue = true
|
|
295
|
-
havaOneChoose = true
|
|
296
|
-
}
|
|
297
|
-
})
|
|
298
|
-
if (!havaValue) {
|
|
299
|
-
chooseAllAll = false
|
|
300
|
-
}
|
|
301
|
-
})
|
|
302
|
-
console.log(value, chooseAllAll, havaOneChoose)
|
|
303
|
-
isIndeterminate.value = chooseAllAll ? false : havaOneChoose
|
|
304
|
-
checkAll.value = chooseAllAll
|
|
305
|
-
|
|
306
|
-
// let copyMembers = [...checkedMember]
|
|
307
|
-
// members.value.forEach((item,index)=>{
|
|
308
|
-
// value.forEach((id:string,idIndex:number)=>{
|
|
309
|
-
// if(item.userId == id){
|
|
310
|
-
|
|
311
|
-
// }
|
|
312
|
-
// })
|
|
313
|
-
// })
|
|
314
|
-
|
|
315
|
-
}
|
|
316
|
-
const radioMemeber = ref<any>()
|
|
317
|
-
const handleRadioMemberChange = (value: any) => {
|
|
318
|
-
console.log(value);
|
|
319
|
-
|
|
320
|
-
// @ts-ignore
|
|
321
|
-
checkedMember.value = [value]
|
|
322
|
-
}
|
|
323
|
-
const goSearch = () => {
|
|
324
|
-
|
|
325
|
-
}
|
|
326
|
-
const namebox = ref([{ name: '全部', id: '1' }])
|
|
327
|
-
const resetChoose = () => {
|
|
328
|
-
checkedMember.value.length = 0
|
|
329
|
-
checkedMemberForRadio.value = undefined
|
|
330
|
-
}
|
|
331
|
-
// 去下级
|
|
332
|
-
const goNextLevel = async (item: departBo) => {
|
|
333
|
-
await getList(item.deptId)
|
|
334
|
-
namebox.value.push({ id: item.deptId, name: item.deptName })
|
|
335
|
-
}
|
|
336
|
-
// 改变当前层级,点击部门名字
|
|
337
|
-
const goPointLevel = async (item: nameForSearchBo, index: number) => {
|
|
338
|
-
await getList(item.id)
|
|
339
|
-
namebox.value.splice(index + 1, namebox.value.length - index - 1)
|
|
340
|
-
}
|
|
341
|
-
const changeDigVis = async (value: boolean) => {
|
|
342
|
-
if (value) {
|
|
343
|
-
await getList('1')
|
|
344
|
-
}
|
|
345
|
-
dialogVisible.value = value
|
|
346
|
-
}
|
|
347
|
-
const cancelDia = () => {
|
|
348
|
-
console.log(checkedMemberForRadio.value)
|
|
349
|
-
checkedMember.value = modelValue && modelValue.value ? modelValue.value : []
|
|
350
|
-
if (!multiple.value) {
|
|
351
|
-
checkedMemberForRadio.value = checkedMember.value[0]
|
|
352
|
-
}
|
|
353
|
-
console.log(checkedMemberForRadio.value)
|
|
354
|
-
changeDigVis(false)
|
|
355
|
-
changePopShow(false)
|
|
356
|
-
}
|
|
357
|
-
const saveDia = () => {
|
|
358
|
-
let arr: Array<string> = []
|
|
359
|
-
|
|
360
|
-
checkedMember.value.forEach((item, index) => {
|
|
361
|
-
arr.push(item.userId)
|
|
362
|
-
})
|
|
363
|
-
emits('update:modelValue', checkedMember.value)
|
|
364
|
-
emits('changeCheckMemberId', arr)
|
|
365
|
-
changeDigVis(false)
|
|
366
|
-
|
|
367
|
-
changePopShow(false)
|
|
368
|
-
}
|
|
369
|
-
// 删除某个以选项
|
|
370
|
-
const deleteCheckedItem = (index: number) => {
|
|
371
|
-
checkedMember.value.splice(index, 1)
|
|
372
|
-
}
|
|
373
|
-
// 单选绑定的值
|
|
374
|
-
const checkedMemberForRadio = ref<userBo>()
|
|
375
|
-
// 改变单选时将值赋给checkedMember
|
|
376
|
-
const radioChanged = (value: userBo) => {
|
|
377
|
-
console.debug(value)
|
|
378
|
-
// let chooseItem = {}
|
|
379
|
-
// members.value.forEach(i => {
|
|
380
|
-
// if (i.userId == value) {
|
|
381
|
-
// chooseItem = i
|
|
382
|
-
// }
|
|
383
|
-
// })
|
|
384
|
-
// console.log(chooseItem)
|
|
385
|
-
checkedMember.value.length = 0
|
|
386
|
-
checkedMember.value.push(value)
|
|
387
|
-
}
|
|
388
|
-
watch(() => props.modelValue, () => {
|
|
389
|
-
console.warn('modelValue改变了')
|
|
390
|
-
checkedMember.value = modelValue && modelValue.value ? modelValue.value : []
|
|
391
|
-
if (!multiple.value) {
|
|
392
|
-
console.log(checkedMember.value)
|
|
393
|
-
checkedMemberForRadio.value = checkedMember.value[0]
|
|
394
|
-
}
|
|
395
|
-
})
|
|
396
|
-
defineExpose({
|
|
397
|
-
popupShow
|
|
398
|
-
})
|
|
399
|
-
</script>
|
|
400
|
-
<style lang="scss" scoped>
|
|
401
|
-
@use '../styles/common.scss';
|
|
402
|
-
|
|
403
|
-
.iconBoxForSubmitAdd {
|
|
404
|
-
border-radius: 6px;
|
|
405
|
-
background-color: #d8d8d8;
|
|
406
|
-
background-size: cover;
|
|
407
|
-
border-radius: 6px;
|
|
408
|
-
float: left;
|
|
409
|
-
height: 40px;
|
|
410
|
-
margin-right: 12px;
|
|
411
|
-
width: 40px;
|
|
412
|
-
overflow: hidden;
|
|
413
|
-
text-align: center;
|
|
414
|
-
line-height: 40px;
|
|
415
|
-
font-size: 28px;
|
|
416
|
-
color: #878f95;
|
|
417
|
-
}
|
|
418
|
-
|
|
419
|
-
.popupBox {
|
|
420
|
-
padding: 0 18px;
|
|
421
|
-
width: calc(100% - 0px);
|
|
422
|
-
height: 100%;
|
|
423
|
-
|
|
424
|
-
.popupBoxHeader {
|
|
425
|
-
height: 60px;
|
|
426
|
-
line-height: 60px;
|
|
427
|
-
font-size: 16px;
|
|
428
|
-
font-weight: bold;
|
|
429
|
-
}
|
|
430
|
-
|
|
431
|
-
.popupBoxContent {
|
|
432
|
-
height: calc(100% - 60px - 80px);
|
|
433
|
-
width: 100%;
|
|
434
|
-
overflow-y: auto;
|
|
435
|
-
}
|
|
436
|
-
|
|
437
|
-
.popupButton {
|
|
438
|
-
width: 100%;
|
|
439
|
-
height: 80px;
|
|
440
|
-
line-height: 80px;
|
|
441
|
-
}
|
|
442
|
-
}
|
|
443
|
-
|
|
444
|
-
.companyNameBox {
|
|
445
|
-
font-size: 18px;
|
|
446
|
-
line-height: 30px;
|
|
447
|
-
overflow: hidden;
|
|
448
|
-
// text-overflow: ellipsis;
|
|
449
|
-
white-space: nowrap;
|
|
450
|
-
overflow-x: auto;
|
|
451
|
-
width: 100%;
|
|
452
|
-
|
|
453
|
-
&Name {
|
|
454
|
-
color: #1890ff;
|
|
455
|
-
cursor: pointer;
|
|
456
|
-
}
|
|
457
|
-
|
|
458
|
-
&Symbol {
|
|
459
|
-
margin: 0 9px;
|
|
460
|
-
color: #a3a3a3
|
|
461
|
-
}
|
|
462
|
-
}
|
|
463
|
-
|
|
464
|
-
.triggerArea {
|
|
465
|
-
width: 100%;
|
|
466
|
-
min-height: 32px;
|
|
467
|
-
height: min-content;
|
|
468
|
-
border: 1px solid rgb(229, 230, 232);
|
|
469
|
-
padding: 8px;
|
|
470
|
-
|
|
471
|
-
.triggerItem {
|
|
472
|
-
margin-right: 8px;
|
|
473
|
-
margin-bottom: 3px;
|
|
474
|
-
display: inline-block;
|
|
475
|
-
overflow: hidden;
|
|
476
|
-
text-overflow: ellipsis;
|
|
477
|
-
white-space: nowrap;
|
|
478
|
-
color: #747677;
|
|
479
|
-
border-color: #cfd2d5;
|
|
480
|
-
background-color: #e5e6e8;
|
|
481
|
-
padding: 2px 12px;
|
|
482
|
-
cursor: pointer;
|
|
483
|
-
}
|
|
484
|
-
}
|
|
485
|
-
|
|
486
|
-
.optionbox {
|
|
487
|
-
width: 100%;
|
|
488
|
-
flex-grow: 0;
|
|
489
|
-
flex-shrink: 0;
|
|
490
|
-
flex-wrap: nowrap;
|
|
491
|
-
}
|
|
492
|
-
|
|
493
|
-
.chooseItem {
|
|
494
|
-
padding: 2px 6px;
|
|
495
|
-
margin: 0 10px 8px 0;
|
|
496
|
-
background-color: #f1f2f3;
|
|
497
|
-
height: 30px;
|
|
498
|
-
max-height: 30px;
|
|
499
|
-
|
|
500
|
-
img {
|
|
501
|
-
border-radius: 50%;
|
|
502
|
-
margin-right: 4px;
|
|
503
|
-
width: 16px;
|
|
504
|
-
height: 16px;
|
|
505
|
-
}
|
|
506
|
-
|
|
507
|
-
&Name {
|
|
508
|
-
margin-right: 8px;
|
|
509
|
-
}
|
|
510
|
-
|
|
511
|
-
&Icon {
|
|
512
|
-
cursor: pointer;
|
|
513
|
-
}
|
|
514
|
-
}
|
|
1
|
+
<!-- 选择人员-手机端 - 多选 - 单选 -->
|
|
2
|
+
<template>
|
|
3
|
+
<el-icon class="iconBoxForSubmitAdd" @click="changePopShow(true)" v-if="props.submitAdd">
|
|
4
|
+
<Plus />
|
|
5
|
+
</el-icon>
|
|
6
|
+
<div @click="changePopShow(true)" class="triggerArea flexRowStart" :style="props.submitAdd ? { padding: 0 } : {}"
|
|
7
|
+
v-if="!props.submitAdd">
|
|
8
|
+
<div class="triggerItem" v-for="(item, index) in checkedMember" :key="index"
|
|
9
|
+
v-if="checkedMember && checkedMember.length > 0 && !props.abbreviate && !props.submitAdd">
|
|
10
|
+
{{ item.userName }}
|
|
11
|
+
</div>
|
|
12
|
+
<div v-else-if="checkedMember && checkedMember.length > 0 && props.abbreviate && !props.submitAdd"
|
|
13
|
+
class="abbreviateItem flexRowCenter">
|
|
14
|
+
{{ `已选择(${checkedMember.length})` }}<el-icon style="font-size:16px;">
|
|
15
|
+
<UserFilled />
|
|
16
|
+
</el-icon>
|
|
17
|
+
</div>
|
|
18
|
+
|
|
19
|
+
<div v-else>请选择人员</div>
|
|
20
|
+
</div>
|
|
21
|
+
<van-popup v-model:show="popupShow" closeable position="bottom"
|
|
22
|
+
:style="{ height: '70%', 'z-index': '8888', position: 'fixed', bottom: props.posBottom || props.posBottom == 0 ? props.posBottom + 'px' : '50px', left: 0, right: 0 }">
|
|
23
|
+
<div class="popupBox flexColumnStart">
|
|
24
|
+
<div class="popupBoxHeader">选择成员:</div>
|
|
25
|
+
<div class="popupBoxContent">
|
|
26
|
+
<div class="popCheckedItemBox">
|
|
27
|
+
当前已选:
|
|
28
|
+
<div class="flexRowStartCenter" style="flex-wrap: wrap;">
|
|
29
|
+
<div class="chooseItem flexRowStartCenter" v-for="(item, index) in checkedMember" :key="item.userId">
|
|
30
|
+
<img :src="item.avatar" alt="" v-if="item.avatar">
|
|
31
|
+
<img src="hrp-ui-base/assets/process/defaultAvatar.png" alt="" v-if="!item.avatar">
|
|
32
|
+
<div class="chooseItemName">{{ item.userName }}</div>
|
|
33
|
+
<el-icon class="chooseItemIcon" @click="deleteCheckedItem(index)">
|
|
34
|
+
<Close />
|
|
35
|
+
</el-icon>
|
|
36
|
+
</div>
|
|
37
|
+
</div>
|
|
38
|
+
</div>
|
|
39
|
+
<div class="companyNameBox flexRowStart">
|
|
40
|
+
<span v-for="(nameItem, nameIndex) in namebox" :key="nameIndex" class="companyNameBoxName"
|
|
41
|
+
@click="goPointLevel(nameItem, nameIndex)">
|
|
42
|
+
{{ nameItem.name }}
|
|
43
|
+
<span v-if="nameIndex != namebox.length - 1" class="companyNameBoxSymbol">
|
|
44
|
+
/
|
|
45
|
+
</span>
|
|
46
|
+
</span>
|
|
47
|
+
</div>
|
|
48
|
+
<div class="popMemberList">
|
|
49
|
+
<el-checkbox-group v-model="checkedMember" @change="handleCheckedMemberChange" size="default"
|
|
50
|
+
class="flexColumnStart optionbox" v-if="multiple">
|
|
51
|
+
<div class="flexRowBetween" style="width:100%" v-for="(item, index) in departs" :key="item.deptId">
|
|
52
|
+
<el-checkbox :label="item" size="default" style="margin-bottom: 8px;font-size:18px;width: 340px;min-height:24px;max-height: 24px;
|
|
53
|
+
" disabled>
|
|
54
|
+
{{
|
|
55
|
+
item.deptName
|
|
56
|
+
}}
|
|
57
|
+
</el-checkbox>
|
|
58
|
+
<div style="width:100px;height:24px;font-size: 16px;line-height: 16px;cursor: pointer;"
|
|
59
|
+
class="flexRowStart" @click.stop="goNextLevel(item)">
|
|
60
|
+
<el-icon style="margin-right:4px;">
|
|
61
|
+
<Expand />
|
|
62
|
+
</el-icon>{{ '下级' }}
|
|
63
|
+
</div>
|
|
64
|
+
</div>
|
|
65
|
+
<div class="flexRowBetween" style="width:100%" v-for="(item, index) in members" :key="item.userId">
|
|
66
|
+
<el-checkbox :label="item" size="default" style="margin-bottom: 8px;font-size:18px;width: 340px;min-height:24px;max-height: 24px;
|
|
67
|
+
">
|
|
68
|
+
{{
|
|
69
|
+
item.userName
|
|
70
|
+
}}
|
|
71
|
+
</el-checkbox>
|
|
72
|
+
</div>
|
|
73
|
+
</el-checkbox-group>
|
|
74
|
+
<el-radio-group v-model="radioMemeber" @change="handleRadioMemberChange" size="default"
|
|
75
|
+
class="flexColumnStart optionbox" v-if="!multiple">
|
|
76
|
+
<div class="flexRowBetween" style="width:100%" v-for="(item, index) in departs" :key="item.deptId">
|
|
77
|
+
<el-radio :label="item" size="default"
|
|
78
|
+
style="margin-bottom: 8px;font-size:18px;width: 340px;min-height:24px;max-height: 24px;" disabled>
|
|
79
|
+
{{
|
|
80
|
+
item.deptName
|
|
81
|
+
}}
|
|
82
|
+
</el-radio>
|
|
83
|
+
<div style="width:100px;height:24px;font-size: 16px;line-height: 16px;cursor: pointer;"
|
|
84
|
+
class="flexRowStart" @click.stop="goNextLevel(item)">
|
|
85
|
+
<el-icon style="margin-right:4px;">
|
|
86
|
+
<Expand />
|
|
87
|
+
</el-icon>{{ '下级' }}
|
|
88
|
+
</div>
|
|
89
|
+
</div>
|
|
90
|
+
<div class="flexRowBetween" style="width:100%" v-for="(item, index) in members" :key="item.userId">
|
|
91
|
+
<el-radio :label="item" size="default"
|
|
92
|
+
style="margin-bottom: 8px;font-size:18px;width: 340px;min-height:24px;max-height: 24px;">
|
|
93
|
+
{{
|
|
94
|
+
item.userName
|
|
95
|
+
}}
|
|
96
|
+
</el-radio>
|
|
97
|
+
</div>
|
|
98
|
+
</el-radio-group>
|
|
99
|
+
</div>
|
|
100
|
+
</div>
|
|
101
|
+
<div class="popupButton flexRowCenter">
|
|
102
|
+
<van-button type="primary" style="margin-right:28px;width:30%" @click="saveDia">保存</van-button>
|
|
103
|
+
<van-button type="default" style="width:30%" @click="saveDia">关闭</van-button>
|
|
104
|
+
</div>
|
|
105
|
+
</div>
|
|
106
|
+
</van-popup>
|
|
107
|
+
</template>
|
|
108
|
+
<script lang="ts" setup>
|
|
109
|
+
import { reactive, ref, onMounted, shallowRef, toRefs, watch ,PropType} from 'vue'
|
|
110
|
+
import { Search, Watch } from '@element-plus/icons-vue'
|
|
111
|
+
import DeptController from "hrp-ui-base/api/hrms/dept/deptController";
|
|
112
|
+
import RoleController from "hrp-ui-base/api/hrms/role/roleController";
|
|
113
|
+
import UserController from "hrp-ui-base/api/hrms/user/userController";
|
|
114
|
+
|
|
115
|
+
import type { userBo, departBo, nameForSearchBo } from './BO/memberBo'
|
|
116
|
+
const props = defineProps({
|
|
117
|
+
modelValue: {
|
|
118
|
+
type:Array as PropType<any>
|
|
119
|
+
},
|
|
120
|
+
// 选择了那些审批人 具体的人名
|
|
121
|
+
multiple: {
|
|
122
|
+
type: Boolean,
|
|
123
|
+
default: true,
|
|
124
|
+
require: false
|
|
125
|
+
},
|
|
126
|
+
// 选择了N位审批人 ,缩略图
|
|
127
|
+
abbreviate: {
|
|
128
|
+
type: Boolean,
|
|
129
|
+
default: false,
|
|
130
|
+
require: false
|
|
131
|
+
},
|
|
132
|
+
// 显示add - 审批提交时
|
|
133
|
+
submitAdd: {
|
|
134
|
+
type: Boolean,
|
|
135
|
+
default: false,
|
|
136
|
+
require: false
|
|
137
|
+
},
|
|
138
|
+
posBottom: {
|
|
139
|
+
type: Number,
|
|
140
|
+
require: false,
|
|
141
|
+
default: 50
|
|
142
|
+
},
|
|
143
|
+
// 数据来源范围 全公司 指定成员 指定角色
|
|
144
|
+
dataSources: {
|
|
145
|
+
type: String,
|
|
146
|
+
default: 'all',
|
|
147
|
+
require: false
|
|
148
|
+
},
|
|
149
|
+
// 数据来源范围具体的条件 全公司 指定成员 指定角色
|
|
150
|
+
dataSourcesCondition: {
|
|
151
|
+
type: Array<string>,
|
|
152
|
+
default: [],
|
|
153
|
+
require: false
|
|
154
|
+
}
|
|
155
|
+
})
|
|
156
|
+
const emits = defineEmits(['update:modelValue', 'changeCheckMemberId', 'changeButtonShow'])
|
|
157
|
+
const { modelValue, multiple } = toRefs(props)
|
|
158
|
+
const popupShow = ref(false)
|
|
159
|
+
const changePopShow = (value: boolean) => {
|
|
160
|
+
popupShow.value = value
|
|
161
|
+
if (value) {
|
|
162
|
+
getList('1')
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
watch(() => { popupShow.value }, () => {
|
|
166
|
+
emits('changeButtonShow', !popupShow.value)
|
|
167
|
+
}, { deep: true })
|
|
168
|
+
watch(() => multiple.value, () => {
|
|
169
|
+
console.warn('多选改变了')
|
|
170
|
+
})
|
|
171
|
+
|
|
172
|
+
onMounted(() => {
|
|
173
|
+
console.log(props)
|
|
174
|
+
setTimeout(() => {
|
|
175
|
+
checkedMember.value = modelValue && modelValue.value ? modelValue.value : []
|
|
176
|
+
if (!multiple.value) {
|
|
177
|
+
console.log(checkedMember.value)
|
|
178
|
+
checkedMemberForRadio.value = checkedMember.value[0]
|
|
179
|
+
}
|
|
180
|
+
}, 500)
|
|
181
|
+
// getList('1')
|
|
182
|
+
})
|
|
183
|
+
/** 复制出的数据 */
|
|
184
|
+
const copyMembers = ref<userBo[]>([])
|
|
185
|
+
const getList = async (id: string) => {
|
|
186
|
+
if (props.dataSources == 'user') {
|
|
187
|
+
let userIds = <any>[]
|
|
188
|
+
if (props.dataSourcesCondition && props.dataSourcesCondition.length > 0) {
|
|
189
|
+
userIds = props.dataSourcesCondition
|
|
190
|
+
}
|
|
191
|
+
await UserController.getLivingUserListByIds(userIds).then((data) => {
|
|
192
|
+
console.log(data)
|
|
193
|
+
|
|
194
|
+
if (data.res) {
|
|
195
|
+
let arr = <any>[]
|
|
196
|
+
if (data.res.length > 0) {
|
|
197
|
+
data.res.forEach((item) => {
|
|
198
|
+
arr.push({ ...item, id: item.userId })
|
|
199
|
+
})
|
|
200
|
+
}
|
|
201
|
+
members.value = arr
|
|
202
|
+
copyMembers.value = JSON.parse(JSON.stringify(arr))
|
|
203
|
+
}
|
|
204
|
+
// if (data.res && data.res.deptVoList) {
|
|
205
|
+
// departs.value = data.res?.deptVoList
|
|
206
|
+
// }
|
|
207
|
+
// checkAll.value = false
|
|
208
|
+
})
|
|
209
|
+
} else if (props.dataSources == 'role') {
|
|
210
|
+
let roleIds = <any>[]
|
|
211
|
+
if (props.dataSourcesCondition && props.dataSourcesCondition.length > 0) {
|
|
212
|
+
roleIds = props.dataSourcesCondition
|
|
213
|
+
}
|
|
214
|
+
await UserController.getUserListByRoleIds(roleIds).then((data) => {
|
|
215
|
+
console.log(data)
|
|
216
|
+
if (data.res) {
|
|
217
|
+
let arr = <any>[]
|
|
218
|
+
if (data.res.length > 0) {
|
|
219
|
+
data.res.forEach((item) => {
|
|
220
|
+
arr.push({ ...item, id: item.userId })
|
|
221
|
+
})
|
|
222
|
+
}
|
|
223
|
+
members.value = arr
|
|
224
|
+
}
|
|
225
|
+
// if (data.res && data.res.userList) {
|
|
226
|
+
// let arr = <any>[]
|
|
227
|
+
// if (data.res.userList.length > 0) {
|
|
228
|
+
// data.res.userList.forEach((item) => {
|
|
229
|
+
// arr.push({ ...item, id: item.userId })
|
|
230
|
+
// })
|
|
231
|
+
// }
|
|
232
|
+
// members.value = arr
|
|
233
|
+
// }
|
|
234
|
+
// if (data.res && data.res.deptVoList) {
|
|
235
|
+
// departs.value = data.res?.deptVoList
|
|
236
|
+
// }
|
|
237
|
+
// checkAll.value = false
|
|
238
|
+
})
|
|
239
|
+
} else {
|
|
240
|
+
await DeptController.getDeptUserListByParentId(id).then((data) => {
|
|
241
|
+
if (data.res && data.res.userList) {
|
|
242
|
+
let arr = <any>[]
|
|
243
|
+
if (data.res.userList.length > 0) {
|
|
244
|
+
data.res.userList.forEach((item) => {
|
|
245
|
+
arr.push({ ...item, id: item.userId })
|
|
246
|
+
})
|
|
247
|
+
}
|
|
248
|
+
members.value = arr
|
|
249
|
+
}
|
|
250
|
+
if (data.res && data.res.deptVoList) {
|
|
251
|
+
departs.value = data.res?.deptVoList
|
|
252
|
+
}
|
|
253
|
+
checkAll.value = false
|
|
254
|
+
})
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
const dialogVisible = ref(false)
|
|
258
|
+
const searchContent = ref('')
|
|
259
|
+
const checkAll = ref(false)
|
|
260
|
+
const isIndeterminate = ref(false)
|
|
261
|
+
const checkedMember = ref<userBo[]>([])
|
|
262
|
+
let members = ref<userBo[]>([])
|
|
263
|
+
let departs = ref<departBo[]>([])
|
|
264
|
+
// 点击多选
|
|
265
|
+
|
|
266
|
+
const handleCheckAllChange = (val: boolean) => {
|
|
267
|
+
let copyMembers = JSON.parse(JSON.stringify(checkedMember.value))
|
|
268
|
+
for (let j = checkedMember.value.length - 1; j >= 0; j--) {
|
|
269
|
+
members.value.forEach((item, index) => {
|
|
270
|
+
if (item.userId == checkedMember.value[j].userId) {
|
|
271
|
+
console.log(item, checkedMember.value[j])
|
|
272
|
+
copyMembers.splice(j, 1)
|
|
273
|
+
}
|
|
274
|
+
})
|
|
275
|
+
}
|
|
276
|
+
if (val) {
|
|
277
|
+
members.value.forEach((item, index) => {
|
|
278
|
+
copyMembers.push(item)
|
|
279
|
+
})
|
|
280
|
+
}
|
|
281
|
+
checkedMember.value = copyMembers
|
|
282
|
+
// checkedMember.value = val ? members.value : []
|
|
283
|
+
isIndeterminate.value = false
|
|
284
|
+
}
|
|
285
|
+
const handleCheckedMemberChange = (value: any) => {
|
|
286
|
+
|
|
287
|
+
let chooseAllAll = true
|
|
288
|
+
let havaOneChoose = false
|
|
289
|
+
members.value.forEach((j, jndex) => {
|
|
290
|
+
let havaValue = false
|
|
291
|
+
value.forEach((i: any, index: number) => {
|
|
292
|
+
|
|
293
|
+
if (i.userId == j.userId) {
|
|
294
|
+
havaValue = true
|
|
295
|
+
havaOneChoose = true
|
|
296
|
+
}
|
|
297
|
+
})
|
|
298
|
+
if (!havaValue) {
|
|
299
|
+
chooseAllAll = false
|
|
300
|
+
}
|
|
301
|
+
})
|
|
302
|
+
console.log(value, chooseAllAll, havaOneChoose)
|
|
303
|
+
isIndeterminate.value = chooseAllAll ? false : havaOneChoose
|
|
304
|
+
checkAll.value = chooseAllAll
|
|
305
|
+
|
|
306
|
+
// let copyMembers = [...checkedMember]
|
|
307
|
+
// members.value.forEach((item,index)=>{
|
|
308
|
+
// value.forEach((id:string,idIndex:number)=>{
|
|
309
|
+
// if(item.userId == id){
|
|
310
|
+
|
|
311
|
+
// }
|
|
312
|
+
// })
|
|
313
|
+
// })
|
|
314
|
+
|
|
315
|
+
}
|
|
316
|
+
const radioMemeber = ref<any>()
|
|
317
|
+
const handleRadioMemberChange = (value: any) => {
|
|
318
|
+
console.log(value);
|
|
319
|
+
|
|
320
|
+
// @ts-ignore
|
|
321
|
+
checkedMember.value = [value]
|
|
322
|
+
}
|
|
323
|
+
const goSearch = () => {
|
|
324
|
+
|
|
325
|
+
}
|
|
326
|
+
const namebox = ref([{ name: '全部', id: '1' }])
|
|
327
|
+
const resetChoose = () => {
|
|
328
|
+
checkedMember.value.length = 0
|
|
329
|
+
checkedMemberForRadio.value = undefined
|
|
330
|
+
}
|
|
331
|
+
// 去下级
|
|
332
|
+
const goNextLevel = async (item: departBo) => {
|
|
333
|
+
await getList(item.deptId)
|
|
334
|
+
namebox.value.push({ id: item.deptId, name: item.deptName })
|
|
335
|
+
}
|
|
336
|
+
// 改变当前层级,点击部门名字
|
|
337
|
+
const goPointLevel = async (item: nameForSearchBo, index: number) => {
|
|
338
|
+
await getList(item.id)
|
|
339
|
+
namebox.value.splice(index + 1, namebox.value.length - index - 1)
|
|
340
|
+
}
|
|
341
|
+
const changeDigVis = async (value: boolean) => {
|
|
342
|
+
if (value) {
|
|
343
|
+
await getList('1')
|
|
344
|
+
}
|
|
345
|
+
dialogVisible.value = value
|
|
346
|
+
}
|
|
347
|
+
const cancelDia = () => {
|
|
348
|
+
console.log(checkedMemberForRadio.value)
|
|
349
|
+
checkedMember.value = modelValue && modelValue.value ? modelValue.value : []
|
|
350
|
+
if (!multiple.value) {
|
|
351
|
+
checkedMemberForRadio.value = checkedMember.value[0]
|
|
352
|
+
}
|
|
353
|
+
console.log(checkedMemberForRadio.value)
|
|
354
|
+
changeDigVis(false)
|
|
355
|
+
changePopShow(false)
|
|
356
|
+
}
|
|
357
|
+
const saveDia = () => {
|
|
358
|
+
let arr: Array<string> = []
|
|
359
|
+
|
|
360
|
+
checkedMember.value.forEach((item, index) => {
|
|
361
|
+
arr.push(item.userId)
|
|
362
|
+
})
|
|
363
|
+
emits('update:modelValue', checkedMember.value)
|
|
364
|
+
emits('changeCheckMemberId', arr)
|
|
365
|
+
changeDigVis(false)
|
|
366
|
+
|
|
367
|
+
changePopShow(false)
|
|
368
|
+
}
|
|
369
|
+
// 删除某个以选项
|
|
370
|
+
const deleteCheckedItem = (index: number) => {
|
|
371
|
+
checkedMember.value.splice(index, 1)
|
|
372
|
+
}
|
|
373
|
+
// 单选绑定的值
|
|
374
|
+
const checkedMemberForRadio = ref<userBo>()
|
|
375
|
+
// 改变单选时将值赋给checkedMember
|
|
376
|
+
const radioChanged = (value: userBo) => {
|
|
377
|
+
console.debug(value)
|
|
378
|
+
// let chooseItem = {}
|
|
379
|
+
// members.value.forEach(i => {
|
|
380
|
+
// if (i.userId == value) {
|
|
381
|
+
// chooseItem = i
|
|
382
|
+
// }
|
|
383
|
+
// })
|
|
384
|
+
// console.log(chooseItem)
|
|
385
|
+
checkedMember.value.length = 0
|
|
386
|
+
checkedMember.value.push(value)
|
|
387
|
+
}
|
|
388
|
+
watch(() => props.modelValue, () => {
|
|
389
|
+
console.warn('modelValue改变了')
|
|
390
|
+
checkedMember.value = modelValue && modelValue.value ? modelValue.value : []
|
|
391
|
+
if (!multiple.value) {
|
|
392
|
+
console.log(checkedMember.value)
|
|
393
|
+
checkedMemberForRadio.value = checkedMember.value[0]
|
|
394
|
+
}
|
|
395
|
+
})
|
|
396
|
+
defineExpose({
|
|
397
|
+
popupShow
|
|
398
|
+
})
|
|
399
|
+
</script>
|
|
400
|
+
<style lang="scss" scoped>
|
|
401
|
+
@use '../styles/common.scss';
|
|
402
|
+
|
|
403
|
+
.iconBoxForSubmitAdd {
|
|
404
|
+
border-radius: 6px;
|
|
405
|
+
background-color: #d8d8d8;
|
|
406
|
+
background-size: cover;
|
|
407
|
+
border-radius: 6px;
|
|
408
|
+
float: left;
|
|
409
|
+
height: 40px;
|
|
410
|
+
margin-right: 12px;
|
|
411
|
+
width: 40px;
|
|
412
|
+
overflow: hidden;
|
|
413
|
+
text-align: center;
|
|
414
|
+
line-height: 40px;
|
|
415
|
+
font-size: 28px;
|
|
416
|
+
color: #878f95;
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
.popupBox {
|
|
420
|
+
padding: 0 18px;
|
|
421
|
+
width: calc(100% - 0px);
|
|
422
|
+
height: 100%;
|
|
423
|
+
|
|
424
|
+
.popupBoxHeader {
|
|
425
|
+
height: 60px;
|
|
426
|
+
line-height: 60px;
|
|
427
|
+
font-size: 16px;
|
|
428
|
+
font-weight: bold;
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
.popupBoxContent {
|
|
432
|
+
height: calc(100% - 60px - 80px);
|
|
433
|
+
width: 100%;
|
|
434
|
+
overflow-y: auto;
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
.popupButton {
|
|
438
|
+
width: 100%;
|
|
439
|
+
height: 80px;
|
|
440
|
+
line-height: 80px;
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
.companyNameBox {
|
|
445
|
+
font-size: 18px;
|
|
446
|
+
line-height: 30px;
|
|
447
|
+
overflow: hidden;
|
|
448
|
+
// text-overflow: ellipsis;
|
|
449
|
+
white-space: nowrap;
|
|
450
|
+
overflow-x: auto;
|
|
451
|
+
width: 100%;
|
|
452
|
+
|
|
453
|
+
&Name {
|
|
454
|
+
color: #1890ff;
|
|
455
|
+
cursor: pointer;
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
&Symbol {
|
|
459
|
+
margin: 0 9px;
|
|
460
|
+
color: #a3a3a3
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
.triggerArea {
|
|
465
|
+
width: 100%;
|
|
466
|
+
min-height: 32px;
|
|
467
|
+
height: min-content;
|
|
468
|
+
border: 1px solid rgb(229, 230, 232);
|
|
469
|
+
padding: 8px;
|
|
470
|
+
|
|
471
|
+
.triggerItem {
|
|
472
|
+
margin-right: 8px;
|
|
473
|
+
margin-bottom: 3px;
|
|
474
|
+
display: inline-block;
|
|
475
|
+
overflow: hidden;
|
|
476
|
+
text-overflow: ellipsis;
|
|
477
|
+
white-space: nowrap;
|
|
478
|
+
color: #747677;
|
|
479
|
+
border-color: #cfd2d5;
|
|
480
|
+
background-color: #e5e6e8;
|
|
481
|
+
padding: 2px 12px;
|
|
482
|
+
cursor: pointer;
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
.optionbox {
|
|
487
|
+
width: 100%;
|
|
488
|
+
flex-grow: 0;
|
|
489
|
+
flex-shrink: 0;
|
|
490
|
+
flex-wrap: nowrap;
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
.chooseItem {
|
|
494
|
+
padding: 2px 6px;
|
|
495
|
+
margin: 0 10px 8px 0;
|
|
496
|
+
background-color: #f1f2f3;
|
|
497
|
+
height: 30px;
|
|
498
|
+
max-height: 30px;
|
|
499
|
+
|
|
500
|
+
img {
|
|
501
|
+
border-radius: 50%;
|
|
502
|
+
margin-right: 4px;
|
|
503
|
+
width: 16px;
|
|
504
|
+
height: 16px;
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
&Name {
|
|
508
|
+
margin-right: 8px;
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
&Icon {
|
|
512
|
+
cursor: pointer;
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
515
|
</style>
|