feat : 优化指定用户时该用户的矩阵状态检查

This commit is contained in:
2024-07-03 01:44:28 +08:00
parent 0d7c303397
commit d2ddf378bf
4 changed files with 102 additions and 71 deletions

View File

@@ -56,8 +56,8 @@ export const getUserDetail = (userId) => {
// 操作
export const operate = (data, type) => {
// console.log(type ,'type');
if(data.userId && type !== '0') return editUser(data)
else if(type == '0') return editUserOA(data)
if (data.userId && type !== '0') return editUser(data)
else if (type == '0') return editUserOA(data)
return addUser(data)
}
@@ -186,16 +186,23 @@ export const unbindAllUserByPost = (postId) => {
})
}
export const bindAccount=(data)=>{
export const bindAccount = (data) => {
return request({
url: '/admin/mosr/user/bind/account',
method: 'post',
data
})
}
export const getBindAccount=(userId)=>{
export const getBindAccount = (userId) => {
return request({
url: `/admin/mosr/user/bind/account/info/${userId}`,
method: 'get'
})
}
export const checkMatrix = (userId) => {
return request({
url: `/admin/mosr/user/matrix?userId=` + userId,
method: 'get'
})
}