crm-数据权限:完善团队成员公共组件

(cherry picked from commit 19a0a83054)
This commit is contained in:
puhui999
2023-11-22 15:44:42 +08:00
committed by shizhong
parent b78421a31e
commit 6da65b76d0
5 changed files with 47 additions and 62 deletions

View File

@ -6,9 +6,9 @@ export interface PermissionVO {
bizType: number | undefined // Crm 类型
bizId: number | undefined // Crm 类型数据编号
level: number | undefined // 权限级别
deptName?: string // 部门名称 // 岗位名称数组 TODO @puhui999数组
deptName?: string // 部门名称
nickname?: string // 用户昵称
postNames?: string // 岗位名称数组 TODO @puhui999数组
postNames?: string[] // 岗位名称数组
createTime?: Date
}
@ -19,7 +19,7 @@ export const getPermissionList = async (params) => {
// 新增团队成员
export const createPermission = async (data: PermissionVO) => {
return await request.post({ url: `/crm/permission/add`, data })
return await request.post({ url: `/crm/permission/create`, data })
}
// 修改团队成员权限级别