hrp-ui-base 1.0.1 → 1.0.3
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/dist/components.cjs +1 -1
- package/dist/components.es.js +3595 -1224
- package/dist/index.cjs +1 -1
- package/dist/index.es.js +100 -67
- package/dist/style.css +1 -1
- package/package.json +16 -4
- package/packages/approval-process/.eslintrc +7 -0
- package/packages/approval-process/README.md +130 -0
- package/packages/approval-process/index.ts +65 -0
- package/packages/approval-process/package.json +17 -0
- package/packages/approval-process/packages/components/choose-member/BO/departBo.ts +8 -0
- package/packages/approval-process/packages/components/choose-member/BO/memberBo.ts +14 -0
- package/packages/approval-process/packages/components/choose-member/BO/role.svg +1 -0
- package/packages/approval-process/packages/components/choose-member/BO/roleBo.ts +16 -0
- package/packages/approval-process/packages/components/choose-member/index.vue +497 -0
- package/packages/approval-process/packages/components/choose-member/styles/common.scss +134 -0
- package/packages/approval-process/packages/components/comment/assets/avatar.svg +1 -0
- package/packages/approval-process/packages/components/comment/assets/download.svg +4 -0
- package/packages/approval-process/packages/components/comment/assets/mp3.svg +11 -0
- package/packages/approval-process/packages/components/comment/assets/mp4.svg +11 -0
- package/packages/approval-process/packages/components/comment/assets/other.svg +11 -0
- package/packages/approval-process/packages/components/comment/assets/pdf.svg +11 -0
- package/packages/approval-process/packages/components/comment/assets/ppt.svg +11 -0
- package/packages/approval-process/packages/components/comment/assets/preview.svg +4 -0
- package/packages/approval-process/packages/components/comment/assets/remove.png +0 -0
- package/packages/approval-process/packages/components/comment/assets/word.svg +11 -0
- package/packages/approval-process/packages/components/comment/assets/xls.svg +11 -0
- package/packages/approval-process/packages/components/comment/index.vue +843 -0
- package/packages/approval-process/packages/components/comment/modules/previewMp.vue +54 -0
- package/packages/approval-process/packages/components/comment/styles/comment-style.scss +304 -0
- package/packages/approval-process/packages/components/image-cropper/index.vue +202 -0
- package/packages/approval-process/packages/components/sign/index.vue +766 -0
- package/packages/approval-process/packages/components/sign/modules/full-screen-sign.vue +20 -0
- package/packages/approval-process/packages/components/urge-dialog/index.vue +121 -0
- package/packages/approval-process/packages/components/vue-esign/index.vue +289 -0
- package/packages/approval-process/packages/flow/approve-component/approve-success.vue +82 -0
- package/packages/approval-process/packages/flow/approve-component/route-params-error.vue +49 -0
- package/packages/approval-process/packages/flow/approve-component/submit-success.vue +59 -0
- package/packages/approval-process/packages/flow/examine-approve-itr.vue +978 -0
- package/packages/approval-process/packages/flow/examine-approve.vue +1065 -0
- package/packages/approval-process/packages/flow/form-component/associated-approval-form/README.md +38 -0
- package/packages/approval-process/packages/flow/form-component/associated-approval-form/assets/avatar.svg +1 -0
- package/packages/approval-process/packages/flow/form-component/associated-approval-form/index.vue +159 -0
- package/packages/approval-process/packages/flow/form-component/associated-approval-form/modules/associated-approval-form-mobile.vue +297 -0
- package/packages/approval-process/packages/flow/form-component/associated-approval-form/modules/associated-approval-form-pc.vue +314 -0
- package/packages/approval-process/packages/flow/form-component/associated-approval-form/style/curd-area-mobile.scss +110 -0
- package/packages/approval-process/packages/flow/form-component/associated-approval-form/style/curd-area.scss +96 -0
- package/packages/approval-process/packages/flow/form-component/associated-approval-form/style/out-put.scss +48 -0
- package/packages/approval-process/packages/flow/form-component/show-sign.vue +27 -0
- package/packages/approval-process/packages/flow/styles/common.scss +134 -0
- package/packages/approval-process/packages/flow/styles/examine-approve-pc.scss +465 -0
- package/packages/approval-process/packages/flow/styles/examine-approve-phone.scss +293 -0
- package/packages/approval-process/packages/flow/styles/submit-approve-pc.scss +379 -0
- package/packages/approval-process/packages/flow/styles/submit-approve-phone.scss +337 -0
- package/packages/approval-process/packages/flow/submit-approve-itr.vue +623 -0
- package/packages/approval-process/packages/flow/submit-approve.vue +628 -0
- package/packages/approval-process/packages/flow/systemCom/BO/departBo.ts +8 -0
- package/packages/approval-process/packages/flow/systemCom/BO/memberBo.ts +14 -0
- package/packages/approval-process/packages/flow/systemCom/BO/role.svg +1 -0
- package/packages/approval-process/packages/flow/systemCom/BO/roleBo.ts +16 -0
- package/packages/approval-process/packages/flow/systemCom/choose-depart.vue +399 -0
- package/packages/approval-process/packages/flow/systemCom/choose-member-phone.vue +515 -0
- package/packages/approval-process/packages/flow/systemCom/choose-member.vue +565 -0
- package/packages/approval-process/packages/flow/systemCom/choose-role.vue +301 -0
- package/packages/approval-process/packages/styles/common.scss +134 -0
- package/packages/approval-process/packages/styles/flex-common.scss +118 -0
- package/packages/approval-process/packages/styles/flexCommon.scss +73 -0
- package/packages/approval-process/packages/styles/main.css +216 -0
- package/packages/approval-process/packages/styles/router-page.scss +371 -0
- package/packages/approval-process/packages/styles/style-set.ts +207 -0
- package/packages/approval-process/packages/types.d.ts +4 -0
- package/packages/approval-process/packages/utils/base.ts +15 -0
- package/packages/approval-process/packages/utils/crypto.ts +67 -0
- package/packages/approval-process/packages/utils/ddUtils.ts +56 -0
- package/packages/approval-process/packages/utils/debounce.ts +36 -0
- package/packages/approval-process/packages/utils/des.js +1107 -0
- package/packages/approval-process/packages/utils/download.ts +38 -0
- package/packages/approval-process/packages/utils/editor.ts +37 -0
- package/packages/approval-process/packages/utils/getEnv.ts +36 -0
- package/packages/approval-process/packages/utils/os.ts +20 -0
- package/packages/approval-process/packages/utils/path-util.ts +31 -0
- package/packages/approval-process/packages/utils/routerUtil.ts +304 -0
- package/packages/approval-process/packages/utils/string-utils.ts +13 -0
- package/packages/approval-process/packages/utils/throttle.ts +44 -0
- package/packages/approval-process/packages/utils/validate.ts +92 -0
- package/packages/approval-process/packages/utils/ws.ts +218 -0
- package/packages/approval-process/tsconfig.json +72 -0
- package/packages/approval-process/vite.config.ts +56 -0
- package/src/api/bms/flow/FlowCommentController.ts +50 -0
- package/src/api/bms/flow/FlowInstanceController.ts +167 -0
- package/src/api/bms/flow/FlowProcessController.ts +55 -0
- package/src/api/bms/flow/FlowSheetController.ts +27 -0
- package/src/api/bms/flow/FlowSignController.ts +76 -0
- package/src/api/bms/flow/bo/AssociatedApprovalBO.ts +15 -0
- package/src/api/bms/flow/bo/AssociatedApprovalVO.ts +35 -0
- package/src/api/bms/flow/bo/AuditBaseInfo.ts +39 -0
- package/src/api/bms/flow/bo/ButtonVo.ts +7 -0
- package/src/api/bms/flow/bo/DingCallbackBo.ts +13 -0
- package/src/api/bms/flow/bo/FlowCommentBO.ts +12 -0
- package/src/api/bms/flow/bo/FlowCommentVO.ts +23 -0
- package/src/api/bms/flow/bo/FlowInstanceBO.ts +14 -0
- package/src/api/bms/flow/bo/FlowNodeVO.ts +24 -0
- package/src/api/bms/flow/bo/FlowNoticeBO.ts +17 -0
- package/src/api/bms/flow/bo/FlowProcessBO.ts +13 -0
- package/src/api/bms/flow/bo/FlowProcessVO.ts +9 -0
- package/src/api/bms/flow/bo/FlowReplyVO.ts +23 -0
- package/src/api/bms/flow/bo/FlowSheetVO.ts +16 -0
- package/src/api/bms/flow/bo/InstanceBackBO.ts +9 -0
- package/src/api/bms/flow/bo/InstanceNodeBO.ts +13 -0
- package/src/api/bms/flow/bo/InstanceNodeVO.ts +21 -0
- package/src/api/bms/flow/bo/NodeShowVo.ts +19 -0
- package/src/api/bms/flow/bo/ReviewBO.ts +11 -0
- package/src/api/bms/flow/bo/SheetSearchBO.ts +11 -0
- package/src/api/bms/flow/bo/SystemVO.ts +7 -0
- package/src/api/bms/flow/bo/TransmitBO.ts +9 -0
- package/src/api/bms/flow/bo/UrgeFlowBO.ts +7 -0
- package/src/api/bms/flow/bo/UserBaseInfoVo.ts +13 -0
- package/src/api/bms/flow/bo/UserInfoVo.ts +44 -0
- package/src/api/bms/flow/bo/UserResultVo.ts +17 -0
- package/src/api/bms/flow/bo/ValueMapBo.ts +7 -0
- package/src/api/bms/home/HomeController.ts +106 -0
- package/src/api/bms/home/bo/CollectedMenuBo.ts +9 -0
- package/src/api/bms/home/bo/DeptBaseVo.ts +9 -0
- package/src/api/bms/home/bo/DomainVO.ts +13 -0
- package/src/api/bms/home/bo/FunPermission.ts +17 -0
- package/src/api/bms/home/bo/GroupVO.ts +10 -0
- package/src/api/bms/home/bo/HomeMenu.ts +22 -0
- package/src/api/bms/home/bo/HomeMenuVo.ts +11 -0
- package/src/api/bms/home/bo/PersonalizationBo.ts +17 -0
- package/src/api/bms/home/bo/PersonalizationVo.ts +19 -0
- package/src/api/bms/home/bo/PhoneMenu.ts +14 -0
- package/src/api/bms/home/bo/SearchMenuVo.ts +10 -0
- package/src/api/bms/home/bo/UserBaseInfoVo.ts +11 -0
- package/src/api/hrms/dept/bo/DeptBaseVo.ts +6 -0
- package/src/api/hrms/dept/bo/DeptTreeVo.ts +23 -0
- package/src/api/hrms/dept/bo/DeptUserVo.ts +9 -0
- package/src/api/hrms/dept/bo/DeptUsersVo.ts +10 -0
- package/src/api/hrms/dept/bo/DeptVo.ts +19 -0
- package/src/api/hrms/dept/bo/UserBaseInfoVo.ts +8 -0
- package/src/api/hrms/dept/deptController.ts +100 -0
- package/src/api/hrms/role/bo/RoleBaseVo.ts +6 -0
- package/src/api/hrms/role/bo/RoleGroupVo.ts +11 -0
- package/src/api/hrms/role/bo/RoleVo.ts +22 -0
- package/src/api/hrms/role/roleController.ts +19 -0
- package/src/api/hrms/user/bo/UserBaseInfoVo.ts +11 -0
- package/src/api/hrms/user/bo/UserCardVO.ts +14 -0
- package/src/api/hrms/user/bo/UserDeptBO.ts +13 -0
- package/src/api/hrms/user/bo/UserRoleBO.ts +11 -0
- package/src/api/hrms/user/bo/UserVO.ts +23 -0
- package/src/api/hrms/user/userController.ts +86 -0
- package/src/api/notice/NoticeController.ts +73 -0
- package/src/api/notice/bo/NoticePageBO.ts +24 -0
- package/src/api/notice/bo/NoticeVO.ts +31 -0
- package/src/api/work-order-pc/flow/Bo/ValueMapBo.ts +7 -0
- package/src/api/work-order-pc/flow/ItrFlowProcessController.ts +42 -0
- package/src/api/work-order-pc/flow/Vo/FlowNodeVO.ts +24 -0
- package/src/api/work-order-pc/flow/Vo/UserInfoVo.ts +44 -0
- package/src/assets/layout/avatar-default.svg +6 -0
- package/src/assets/layout/collect-active.svg +7 -0
- package/src/assets/layout/collect-default.svg +7 -0
- package/src/assets/layout/download-active.svg +8 -0
- package/src/assets/layout/download-default.svg +8 -0
- package/src/assets/layout/export-dark.svg +7 -0
- package/src/assets/layout/export-default.svg +7 -0
- package/src/assets/layout/font-active.svg +6 -0
- package/src/assets/layout/font-default.svg +6 -0
- package/src/assets/layout/help-active.svg +10 -0
- package/src/assets/layout/help-default.svg +10 -0
- package/src/assets/layout/home-active.svg +6 -0
- package/src/assets/layout/home.svg +6 -0
- package/src/assets/layout/menu-expand.svg +6 -0
- package/src/assets/layout/menu-icon.png +0 -0
- package/src/assets/layout/menu-position-active.svg +6 -0
- package/src/assets/layout/menu-position-default.svg +6 -0
- package/src/assets/layout/message-active.svg +9 -0
- package/src/assets/layout/message-default.svg +9 -0
- package/src/assets/layout/moon.svg +8 -0
- package/src/assets/layout/router-all-dark.svg +11 -0
- package/src/assets/layout/router-all-default.svg +17 -0
- package/src/assets/layout/search-active.svg +20 -0
- package/src/assets/layout/search-default.svg +20 -0
- package/src/assets/layout/star-active.svg +1 -0
- package/src/assets/layout/star-default.svg +3 -0
- package/src/assets/layout/sun-active.svg +6 -0
- package/src/assets/layout/sun-default.svg +6 -0
- package/src/assets/layout/switch-moon.svg +3 -0
- package/src/assets/layout/switch-sun.svg +41 -0
- package/src/assets/layout/todo-active.svg +12 -0
- package/src/assets/layout/todo-default.svg +12 -0
- package/src/assets/layout/user-dark.svg +13 -0
- package/src/assets/layout/user-default.svg +13 -0
- package/src/assets/process/agree.png +0 -0
- package/src/assets/process/defaultAvatar.png +0 -0
- package/src/assets/process/drawer/departManagerJump.png +0 -0
- package/src/assets/process/drawer/manyLevel1close.svg +10 -0
- package/src/assets/process/drawer/manyLevel1open.svg +7 -0
- package/src/assets/process/drawer/manyLevel2close.svg +7 -0
- package/src/assets/process/drawer/manyLevel2open.svg +7 -0
- package/src/assets/process/inProcess.png +0 -0
- package/src/assets/process/manyPeople.png +0 -0
- package/src/assets/process/manyPeople2.png +0 -0
- package/src/assets/process/reject.png +0 -0
- package/src/assets/process/revoke.png +0 -0
- package/src/components/annex-img-upload/index.vue +4 -4
- package/src/components/annex-img-upload/modules/previewMp.vue +1 -1
- package/src/components/annex-upload/index.vue +4 -4
- package/src/components/annex-upload/modules/previewMp.vue +1 -1
- package/src/components/annex-upload-weijian/index.vue +4 -4
- package/src/components/annex-upload-weijian/modules/previewMp.vue +1 -1
- package/src/components/base-layout/index.vue +198 -0
- package/src/components/layout/SysHeader.vue +90 -0
- package/src/components/layout/SysHeaderLeft.vue +116 -0
- package/src/components/layout/SysHeaderRight.vue +112 -0
- package/src/components/layout/SysHeaderTabs.vue +289 -0
- package/src/components/layout/components/avatar-component.vue +77 -0
- package/src/components/layout/components/dark-component.vue +82 -0
- package/src/components/layout/components/download-component.vue +49 -0
- package/src/components/layout/components/font-size-component.vue +66 -0
- package/src/components/layout/components/menu-position-component.vue +97 -0
- package/src/components/layout/components/message-component.vue +64 -0
- package/src/components/layout/components/todo-component.vue +55 -0
- package/src/components/layout/index.ts +24 -0
- package/src/components/layout/message/message-dictionary.ts +27 -0
- package/src/components/layout/message/message-icon//345/205/250/351/203/250/351/200/232/347/237/245-/350/223/235.svg +8 -0
- package/src/components/layout/message/message-icon//345/205/250/351/203/250/351/200/232/347/237/245-/351/273/221.svg +8 -0
- package/src/components/layout/message/message-icon//345/205/250/351/203/250/351/200/232/347/237/245.svg +8 -0
- package/src/components/layout/message/message-icon//345/205/254/345/221/212/351/200/232/347/237/245-/350/223/235.svg +12 -0
- package/src/components/layout/message/message-icon//345/205/254/345/221/212/351/200/232/347/237/245-/351/273/221.svg +12 -0
- package/src/components/layout/message/message-icon//345/205/254/345/221/212/351/200/232/347/237/245.svg +12 -0
- package/src/components/layout/message/message-icon//345/256/241/346/211/271/351/200/232/347/237/245-/350/223/235.svg +8 -0
- package/src/components/layout/message/message-icon//345/256/241/346/211/271/351/200/232/347/237/245-/351/273/221.svg +8 -0
- package/src/components/layout/message/message-icon//345/256/241/346/211/271/351/200/232/347/237/245.svg +8 -0
- package/src/components/layout/message/message-icon//345/257/274/345/207/272/351/200/232/347/237/245-/350/223/235.svg +13 -0
- package/src/components/layout/message/message-icon//345/257/274/345/207/272/351/200/232/347/237/245-/351/273/221.svg +13 -0
- package/src/components/layout/message/message-icon//345/257/274/345/207/272/351/200/232/347/237/245.svg +13 -0
- package/src/components/layout/message/message-icon//346/234/252/350/257/273/351/200/232/347/237/245-/350/223/235.svg +11 -0
- package/src/components/layout/message/message-icon//346/234/252/350/257/273/351/200/232/347/237/245-/351/273/221.svg +11 -0
- package/src/components/layout/message/message-icon//346/234/252/350/257/273/351/200/232/347/237/245.svg +11 -0
- package/src/components/layout/message/message-icon//347/251/272/347/212/266/346/200/201.svg +17 -0
- package/src/components/layout/message/message-icon//347/263/273/347/273/237/351/200/232/347/237/245-/350/223/235.svg +13 -0
- package/src/components/layout/message/message-icon//347/263/273/347/273/237/351/200/232/347/237/245-/351/273/221.svg +13 -0
- package/src/components/layout/message/message-icon//347/263/273/347/273/237/351/200/232/347/237/245.svg +13 -0
- package/src/components/layout/message/message-notification-drawer.vue +529 -0
- package/src/components/layout/personalization-guide-dialog.vue +255 -0
- package/src/components/layout/sideMenu-global.scss +115 -0
- package/src/components/layout/sideMenu.scss +312 -0
- package/src/components/layout/sideMenu.vue +542 -0
- package/src/components/layout/sideMenuSonList.vue +185 -0
- package/src/components/layout/styles/icon.scss +72 -0
- package/src/components/layout/types.ts +98 -0
- package/src/components/list-search-content/components/search-date-range.vue +1 -1
- package/src/components/list-search-content/components/search-date-time-range.vue +1 -1
- package/src/components/list-search-content/components/search-date.vue +1 -1
- package/src/components/list-search-content/components/search-input-number.vue +1 -1
- package/src/components/list-search-content/components/search-input.vue +1 -1
- package/src/components/list-search-content/components/search-multiple_select.vue +1 -1
- package/src/components/list-search-content/components/search-select.vue +1 -1
- package/src/components/list-search-content/index.vue +6 -6
- package/src/components/list-search-content/modules/add-views-package-dialog.vue +3 -3
- package/src/components/list-search-content/modules/search-condition-area.vue +2 -2
- package/src/components/list-search-content/modules/views-package-manage-dialog.vue +5 -5
- package/src/components.ts +19 -4
- package/src/index.ts +1 -0
- package/src/utils/dd-utils.ts +1 -1
- package/src/utils/get-dict.ts +2 -2
- package/src/utils/permit-utils.ts +2 -2
- package/src/api/bms/dict/bo/TotalDictSearchBO.ts +0 -8
- package/src/api/bms/file/FileExportController.ts +0 -18
- package/src/api/bms/file/bo/FileExportVO.ts +0 -17
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*功能权限点对象
|
|
3
|
+
**/
|
|
4
|
+
export default class FunPermission {
|
|
5
|
+
//
|
|
6
|
+
funId: string = "";
|
|
7
|
+
//
|
|
8
|
+
funName: string = "";
|
|
9
|
+
//
|
|
10
|
+
funPage: string = "";
|
|
11
|
+
//
|
|
12
|
+
title: string = "";
|
|
13
|
+
//
|
|
14
|
+
userIdSet: string[] = [];
|
|
15
|
+
//
|
|
16
|
+
specialPermission: Boolean = false;
|
|
17
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
**/
|
|
4
|
+
import HomeMenu from "./HomeMenu";
|
|
5
|
+
export default class {
|
|
6
|
+
//菜单id
|
|
7
|
+
menuId: string = "";
|
|
8
|
+
//菜单名称
|
|
9
|
+
menuName: string = "";
|
|
10
|
+
//菜单图标
|
|
11
|
+
icon: string = "";
|
|
12
|
+
//菜单链接
|
|
13
|
+
url: string = "";
|
|
14
|
+
// 归属系统
|
|
15
|
+
funSystem: string = "";
|
|
16
|
+
//菜单面包屑名称
|
|
17
|
+
breadcrumbName: string = "";
|
|
18
|
+
//是否收藏z
|
|
19
|
+
collected: Boolean = false;
|
|
20
|
+
//菜单子菜单
|
|
21
|
+
children: HomeMenu[] = [];
|
|
22
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
**/
|
|
4
|
+
export default class PersonalizationBo {
|
|
5
|
+
/** 字体大小 small medium large */
|
|
6
|
+
fontSize: "small"| "medium"| "large" = "medium";
|
|
7
|
+
/**白天/黑夜不能为空 day night */
|
|
8
|
+
dayOrNight: "day" | "night" = "day";
|
|
9
|
+
/**是否跟随系统 */
|
|
10
|
+
followSystem: boolean = true;
|
|
11
|
+
/** 是否开启新手引导 */
|
|
12
|
+
noviceGuide: boolean = true;
|
|
13
|
+
/** 是否折叠 */
|
|
14
|
+
navigationBar: boolean = false;
|
|
15
|
+
/** 菜单栏位置 top 顶部 left 左侧 */
|
|
16
|
+
menuPosition: "top" | "left" = "top";
|
|
17
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
**/
|
|
4
|
+
import PersonalizationBo from "./PersonalizationBo";
|
|
5
|
+
import UserBaseInfoVo from "./UserBaseInfoVo";
|
|
6
|
+
import DeptBaseVo from "./DeptBaseVo";
|
|
7
|
+
export default class PersonalizationVo {
|
|
8
|
+
//
|
|
9
|
+
personalizationBo: PersonalizationBo = new PersonalizationBo();
|
|
10
|
+
//
|
|
11
|
+
userBaseInfoVo: UserBaseInfoVo = new UserBaseInfoVo();
|
|
12
|
+
//
|
|
13
|
+
deptBaseVoList: DeptBaseVo[] = [];
|
|
14
|
+
|
|
15
|
+
/** 租户id */
|
|
16
|
+
tenantId: string = "";
|
|
17
|
+
/** 租户name */
|
|
18
|
+
tenantName: string = "";
|
|
19
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import DeptTreeVo from "./DeptTreeVo";
|
|
2
|
+
export default class {
|
|
3
|
+
// 后端没备注 - 前端自己维护的 子部门
|
|
4
|
+
childrenDept: DeptTreeVo[] = [];
|
|
5
|
+
// 部门id
|
|
6
|
+
deptId: string = "";
|
|
7
|
+
// 部门名字
|
|
8
|
+
deptName: string = "";
|
|
9
|
+
// 状态
|
|
10
|
+
flag: boolean = false;
|
|
11
|
+
// 领导人
|
|
12
|
+
leaderUserName: string = "";
|
|
13
|
+
// 部门数量
|
|
14
|
+
deptUserCount: number = 0;
|
|
15
|
+
// 领导人
|
|
16
|
+
leader: string = "";
|
|
17
|
+
// 角色
|
|
18
|
+
role: string = "";
|
|
19
|
+
// 头像
|
|
20
|
+
avatar: string = "";
|
|
21
|
+
// 节点类型:DEPT-部门,USER-人员
|
|
22
|
+
type: string = "";
|
|
23
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import DeptVo from "./DeptVo";
|
|
2
|
+
|
|
3
|
+
export default class {
|
|
4
|
+
deptId: string = "";
|
|
5
|
+
|
|
6
|
+
//@Schema(description = "部门名")
|
|
7
|
+
deptName: string = "";
|
|
8
|
+
|
|
9
|
+
//@Schema(description = "部门父级id")
|
|
10
|
+
parentId: string = "";
|
|
11
|
+
|
|
12
|
+
//@Schema(description = "部门领导名字")
|
|
13
|
+
leaderName: string = "";
|
|
14
|
+
|
|
15
|
+
//@Schema(description = "成员人数")
|
|
16
|
+
membership: number = 0;
|
|
17
|
+
|
|
18
|
+
children: DeptVo[] = [];
|
|
19
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import HttpUtil from "../../../utils/HttpUtil";
|
|
2
|
+
import type { ResponseBean } from "../../index";
|
|
3
|
+
import DeptBaseVo from "../../hrms/dept/bo/DeptBaseVo";
|
|
4
|
+
import DeptVo from "../../hrms/dept/bo/DeptVo";
|
|
5
|
+
import DeptTreeVo from "../../hrms/dept/bo/DeptTreeVo";
|
|
6
|
+
import DeptUsersVo from "../../hrms/dept/bo/DeptUsersVo";
|
|
7
|
+
import DeptUserVo from "../../hrms/dept/bo/DeptUserVo";
|
|
8
|
+
// import DeptController from "hrp-ui-base/api/hrms/dept/deptController"
|
|
9
|
+
export default class DeptController {
|
|
10
|
+
// 模糊查询部门列表
|
|
11
|
+
static getDeptListByDeptName(
|
|
12
|
+
deptName: string
|
|
13
|
+
): Promise<ResponseBean<DeptBaseVo[]>> {
|
|
14
|
+
return HttpUtil.get("/hrms/human-resources/organization-manage/organization-manage/dept/get-dept-list-by-dept-name", {
|
|
15
|
+
deptName,
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
// 获得某一部门的下一级部门
|
|
19
|
+
static getDeptListByParentId(
|
|
20
|
+
deptId: string
|
|
21
|
+
): Promise<ResponseBean<DeptVo[]>> {
|
|
22
|
+
return HttpUtil.get("/hrms/human-resources/organization-manage/organization-manage/dept/get-dept-list-by-parent-id", {
|
|
23
|
+
deptId,
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
// 获得某一部门的下一级部门-------带版本
|
|
27
|
+
static getDeptListByParentIdAndVersion(
|
|
28
|
+
deptId: string, version: string
|
|
29
|
+
): Promise<ResponseBean<DeptVo[]>> {
|
|
30
|
+
return HttpUtil.get("/hrms/human-resources/organization-manage/organization-manage/dept/get-dept-list-by-parent-id-and-version", {
|
|
31
|
+
deptId,
|
|
32
|
+
version
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
// 获得所有部门(树状)
|
|
36
|
+
static getDeptTreeByManager(): Promise<ResponseBean<DeptTreeVo[]>> {
|
|
37
|
+
return HttpUtil.get("/hrms/human-resources/organization-manage/organization-manage/dept/get-dept-tree-by-manager");
|
|
38
|
+
}
|
|
39
|
+
// 获得所有部门(树状)
|
|
40
|
+
static getDeptTreeDetail(): Promise<ResponseBean<DeptTreeVo[]>> {
|
|
41
|
+
return HttpUtil.get("/hrms/human-resources/organization-manage/organization-manage/dept/get-dept-tree-detail");
|
|
42
|
+
}
|
|
43
|
+
// 获得所有部门(树状)
|
|
44
|
+
static getDeptTreeDetailTree(): Promise<ResponseBean<DeptTreeVo[]>> {
|
|
45
|
+
return HttpUtil.get("/hrms/human-resources/organization-manage/organization-manage/dept/get-dept-tree-detail-tree");
|
|
46
|
+
}
|
|
47
|
+
// 获得某一部门的下一级部门以及人员
|
|
48
|
+
static getDeptUserListByParentId(
|
|
49
|
+
deptId: string
|
|
50
|
+
): Promise<ResponseBean<DeptUserVo>> {
|
|
51
|
+
return HttpUtil.get("/hrms/human-resources/organization-manage/organization-manage/dept/get-dept-user-list-by-parent-id", { deptId });
|
|
52
|
+
}
|
|
53
|
+
// 获得当前登录人所在部门
|
|
54
|
+
static getDeptListByLocal(): Promise<ResponseBean<DeptVo[]>> {
|
|
55
|
+
return HttpUtil.get("/hrms/human-resources/organization-manage/organization-manage/dept/get-dept-list-by-local");
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
// 获得人员所在部门
|
|
59
|
+
static getDeptListByUserId(userId: string): Promise<ResponseBean<DeptVo[]>> {
|
|
60
|
+
return HttpUtil.get("/hrms/human-resources/organization-manage/organization-manage/dept/get-dept-list-by-user-id", { userId });
|
|
61
|
+
}
|
|
62
|
+
// 获得人员所在部门历史
|
|
63
|
+
static getDeptListByUserIdHistory(userId: string): Promise<ResponseBean<DeptVo[]>> {
|
|
64
|
+
return HttpUtil.get("/hrms/human-resources/organization-manage/organization-manage/dept/get-dept-list-by-user-id-history", { userId });
|
|
65
|
+
}
|
|
66
|
+
// 树形返回部门列表
|
|
67
|
+
static buildDeptTreeSelect(): Promise<ResponseBean<DeptVo[]>> {
|
|
68
|
+
return HttpUtil.get("/hrms/human-resources/organization-manage/organization-manage/dept/build-dept-tree-select");
|
|
69
|
+
}
|
|
70
|
+
// 获得部门的下一级部门以及对应部门的人员
|
|
71
|
+
static getDeptListAndUserByParentId(
|
|
72
|
+
deptId: string
|
|
73
|
+
): Promise<ResponseBean<DeptUsersVo[]>> {
|
|
74
|
+
return HttpUtil.get("/hrms/human-resources/organization-manage/organization-manage/dept/get-dept-list-and-user-by-parent-id", { deptId });
|
|
75
|
+
}
|
|
76
|
+
// 获得当前人员管理的部门
|
|
77
|
+
static getDeptListByManager(): Promise<ResponseBean<DeptVo[]>> {
|
|
78
|
+
return HttpUtil.get("/hrms/human-resources/organization-manage/organization-manage/dept/get-dept-list-by-manager");
|
|
79
|
+
}
|
|
80
|
+
// 获得所有部门列表
|
|
81
|
+
static selectDeptIdListByCorpId(): Promise<ResponseBean<string[]>> {
|
|
82
|
+
return HttpUtil.get("/hrms/human-resources/organization-manage/organization-manage/dept/select-dept-id-list-by-corp-id");
|
|
83
|
+
}
|
|
84
|
+
// 根据部门id集合获得多个部门信息
|
|
85
|
+
static getDeptListByIds(
|
|
86
|
+
deptIds: string[]
|
|
87
|
+
): Promise<ResponseBean<DeptBaseVo[]>> {
|
|
88
|
+
return HttpUtil.postJson("/hrms/human-resources/organization-manage/organization-manage/dept/get-dept-list-by-ids", deptIds);
|
|
89
|
+
}
|
|
90
|
+
// 获得租户所有部门信息
|
|
91
|
+
static getAllDeptInfo(
|
|
92
|
+
): Promise<ResponseBean<{ id: string, name: string }[]>> {
|
|
93
|
+
return HttpUtil.get("/hrms/human-resources/organization-manage/organization-manage/dept/get-all-dept-info");
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
// 生成邀请码
|
|
97
|
+
static generateInvitationCode(): Promise<ResponseBean<string>> {
|
|
98
|
+
return HttpUtil.get("/hrms/human-resources/organization-manage/organization-manage/dept/generate-invitation-code");
|
|
99
|
+
}
|
|
100
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export default class {
|
|
2
|
+
/** description = "角色名")*/
|
|
3
|
+
roleName: string = "";
|
|
4
|
+
|
|
5
|
+
/** description = "角色id")*/
|
|
6
|
+
roleId: string = "";
|
|
7
|
+
|
|
8
|
+
/**description = "角色组id") */
|
|
9
|
+
roleGroupId: string = "";
|
|
10
|
+
|
|
11
|
+
/** description = "角色组名称")*/
|
|
12
|
+
roleGroupName: string = "";
|
|
13
|
+
|
|
14
|
+
/** description = "群组id")*/
|
|
15
|
+
groupId: string = "";
|
|
16
|
+
|
|
17
|
+
/** description = "群组名")*/
|
|
18
|
+
groupName: string = "";
|
|
19
|
+
|
|
20
|
+
/** description = "区分角色组和角色的标志")*/
|
|
21
|
+
flag: string = "";
|
|
22
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import HttpUtil from "../../../utils/HttpUtil";
|
|
2
|
+
import type { ResponseBean, ResponseBeanList, ResponseBeanTablePage, TableQueryCriteriaVO } from "../../index";
|
|
3
|
+
|
|
4
|
+
import RoleBaseVo from "../../hrms/role/bo/RoleBaseVo";
|
|
5
|
+
import RoleGroupVo from "../../hrms/role/bo/RoleGroupVo";
|
|
6
|
+
// import RoleController from "hrp-ui-base/api/hrms/role/roleController"
|
|
7
|
+
|
|
8
|
+
export default class RoleController {
|
|
9
|
+
// 根据角色名模糊查角色信息
|
|
10
|
+
static selectRoleByName(name: string): Promise<ResponseBean<RoleBaseVo[]>> {
|
|
11
|
+
return HttpUtil.get("/hrms/human-resources/organization-manage/organization-manage/role/select-role-by-name", {
|
|
12
|
+
name,
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
// 获得下级角色组(包含角色)
|
|
16
|
+
static getRoleGroupListNew(): Promise<ResponseBean<RoleGroupVo[]>> {
|
|
17
|
+
return HttpUtil.get("/hrms/human-resources/organization-manage/organization-manage/role/get-role-group-list-new");
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export default class UserCardVO {
|
|
2
|
+
/**机构名称 */
|
|
3
|
+
orgName: string = "";
|
|
4
|
+
/**姓名 */
|
|
5
|
+
userName: string = "";
|
|
6
|
+
/**岗位 */
|
|
7
|
+
jobName: string = "";
|
|
8
|
+
/**部门 */
|
|
9
|
+
deptName: string = "";
|
|
10
|
+
/**直属主管 */
|
|
11
|
+
managerName: string = "";
|
|
12
|
+
/**入职时间 */
|
|
13
|
+
hireDate: string = "";
|
|
14
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**用户角色信息 */
|
|
2
|
+
export default class {
|
|
3
|
+
// 用户id
|
|
4
|
+
userId: string = "";
|
|
5
|
+
|
|
6
|
+
// 用户名称
|
|
7
|
+
userName: string = "";
|
|
8
|
+
|
|
9
|
+
// 头像
|
|
10
|
+
avatar: string = "";
|
|
11
|
+
|
|
12
|
+
// 部门
|
|
13
|
+
deptName: string = "";
|
|
14
|
+
|
|
15
|
+
// 角色名称
|
|
16
|
+
roleName: string = "";
|
|
17
|
+
|
|
18
|
+
// 手机号
|
|
19
|
+
phone: string = "";
|
|
20
|
+
|
|
21
|
+
// 管理范围
|
|
22
|
+
manageScope: string = "";
|
|
23
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import HttpUtil from "../../../utils/HttpUtil";
|
|
2
|
+
import type { ResponseBean, ResponseBeanList, ResponseBeanTablePage, TableQueryCriteriaVO } from "../../index";
|
|
3
|
+
|
|
4
|
+
import UserBaseInfoVo from "../../hrms/user/bo/UserBaseInfoVo";
|
|
5
|
+
import UserDeptBO from "../../hrms/user/bo/UserDeptBO";
|
|
6
|
+
import UserVO from "../../hrms/user/bo/UserVO";
|
|
7
|
+
import UserRoleBO from "../../hrms/user/bo/UserRoleBO";
|
|
8
|
+
import UserCardVO from "./bo/UserCardVO";
|
|
9
|
+
// import UserController from "hrp-ui-base/api/hrms/user/userController"
|
|
10
|
+
|
|
11
|
+
export default class UserController {
|
|
12
|
+
// 根据用户名模糊查用户基础信息
|
|
13
|
+
static selectUserByName(
|
|
14
|
+
name: string
|
|
15
|
+
): Promise<ResponseBean<UserBaseInfoVo[]>> {
|
|
16
|
+
return HttpUtil.get("/hrms/human-resources/organization-manage/organization-manage/user/select-user-by-name", {
|
|
17
|
+
name,
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
// 根据部门id获取部门负责人
|
|
21
|
+
static getDeptManageByDeptId(
|
|
22
|
+
deptId: string
|
|
23
|
+
): Promise<ResponseBean<UserBaseInfoVo[]>> {
|
|
24
|
+
return HttpUtil.get("/hrms/human-resources/organization-manage/organization-manage/user/get-dept-manage-by-dept-id", { deptId });
|
|
25
|
+
}
|
|
26
|
+
// 根据部门id获得部门人员信息
|
|
27
|
+
static getUserInfoListByDeptId(
|
|
28
|
+
deptId: string
|
|
29
|
+
): Promise<ResponseBean<UserBaseInfoVo[]>> {
|
|
30
|
+
return HttpUtil.get("/hrms/human-resources/organization-manage/organization-manage/user/get-user-info-list-by-dept-id", { deptId });
|
|
31
|
+
}
|
|
32
|
+
// 根据部门id获得部门人员信息
|
|
33
|
+
static getUserDetailPageByDeptId(
|
|
34
|
+
userDeptBO: UserDeptBO
|
|
35
|
+
): Promise<ResponseBeanList<UserVO[]>> {
|
|
36
|
+
return HttpUtil.postJson(
|
|
37
|
+
"/hrms/human-resources/organization-manage/organization-manage/user/get-user-detail-page-by-dept-id",
|
|
38
|
+
userDeptBO
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
// 根据角色组id查询用户信息
|
|
43
|
+
static selectPageUserListByRole(
|
|
44
|
+
userRoleBO: UserRoleBO
|
|
45
|
+
): Promise<ResponseBeanList<UserVO[]>> {
|
|
46
|
+
return HttpUtil.postJson("/hrms/human-resources/organization-manage/organization-manage/user/select-page-user-list-by-role", userRoleBO);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
// 获得人员列表中对应人员信息----不包含已离职
|
|
50
|
+
static getLivingUserListByIds(
|
|
51
|
+
userIds: string[]
|
|
52
|
+
): Promise<ResponseBean<UserBaseInfoVo[]>> {
|
|
53
|
+
return HttpUtil.postJson("/hrms/human-resources/organization-manage/organization-manage/user/get-living-user-list-by-ids", userIds);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
// 获得人员角色列表中对应在职人员信息
|
|
57
|
+
static getUserListByRoleIds(
|
|
58
|
+
roleIds: string[]
|
|
59
|
+
): Promise<ResponseBean<UserBaseInfoVo[]>> {
|
|
60
|
+
return HttpUtil.postJson("/hrms/human-resources/organization-manage/organization-manage/user/get-user-list-by-role-ids", roleIds);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
// 所有人员列表
|
|
64
|
+
static getUserList(
|
|
65
|
+
): Promise<ResponseBean<UserBaseInfoVo[]>> {
|
|
66
|
+
return HttpUtil.get("/hrms/human-resources/organization-manage/organization-manage/user/get-user-list",);
|
|
67
|
+
}
|
|
68
|
+
// 获得历史所有人员基本信息
|
|
69
|
+
static getHistoryUserInfo(
|
|
70
|
+
): Promise<ResponseBean<UserBaseInfoVo[]>> {
|
|
71
|
+
return HttpUtil.get("/hrms/human-resources/organization-manage/organization-manage/user/get-history-user-info",);
|
|
72
|
+
}
|
|
73
|
+
// 获得人员卡片信息
|
|
74
|
+
static getUserCardInfo(
|
|
75
|
+
userId: string
|
|
76
|
+
): Promise<ResponseBean<UserCardVO>> {
|
|
77
|
+
return HttpUtil.get("/hrms/human-resources/organization-manage/organization-manage/user/get-user-card-info", {userId});
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
// 根据部门id获取部门负责人
|
|
81
|
+
static performanceGetManagerByDeptId(
|
|
82
|
+
deptId: string
|
|
83
|
+
): Promise<ResponseBean<UserBaseInfoVo[]>> {
|
|
84
|
+
return HttpUtil.get("/hrms/human-resources/organization-manage/organization-manage/user/performance-get-manager-by-dept-id", { deptId });
|
|
85
|
+
}
|
|
86
|
+
}
|