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

This reverts commit d2ddf378bf.
This commit is contained in:
2024-07-03 01:45:10 +08:00
parent faaeb7be2b
commit b1ac328d9d
4 changed files with 71 additions and 102 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,23 +186,16 @@ 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'
})
}