Compare commits

..

No commits in common. "31dcd0ebca60f5d10c60354ad767c593a66efd6b" and "c374154f0f84e8254f19162e301b9d3f2ca0f387" have entirely different histories.

4 changed files with 5 additions and 14 deletions

View File

@ -61,14 +61,6 @@ export const userV2List = (data) => {
data,
})
}
// 过滤测试数据的erp用户接口
export const userV2List2 = (data) => {
return request({
url: '/api/v1/group/erp/users',
method: 'POST',
data,
})
}
export const groupCreateDept = (data) => {
return request({

View File

@ -884,7 +884,7 @@ const handleConfirm = async () => {
departmentIds: allCheckedList.value.map((v) => v.ID),
status: 'notactive',
})
if (res.code == 200 && res.data?.data?.length) {
if (res.status == 0 && res.data?.data?.length) {
res.data?.data.forEach((v) => {
// ID
if (!listT.some((item) => item.ID === v.ID)) {
@ -1035,7 +1035,7 @@ const getCurrentMembers = async (depItem) => {
return
}
const res = await getDepMembers(params)
if (res.code === 200) {
if (res.status === 0) {
currentMembers.value = res?.data?.data?.length
? res.data.data.map((v) => {
return {

View File

@ -404,7 +404,7 @@ const getCurrentMembers = async (depItem) => {
departmentId: depItem.ID,
status: 'notactive',
})
if (res.code === 200) {
if (res.status === 0) {
currentMembers.value = res.data.data.length
? res.data.data.map((v) => {
return {
@ -628,7 +628,7 @@ const handleConfirm = async () => {
departmentIds: allCheckedList.value.map((v) => v.ID),
status: 'notactive',
})
if (res.code == 200 && res.data?.data?.length) {
if (res.status == 0 && res.data?.data?.length) {
res.data?.data.forEach((v) => {
listT.push(v)
})

View File

@ -13,7 +13,6 @@ import {
departmentV2TreeAll2,
userHasPermission,
userV2List,
userV2List2,
v2TreePositionByDepartment,
} from '@/api/deps/index.js'
import { useAuth } from '@/store/auth'
@ -89,7 +88,7 @@ export const useGroupTypeStore = createGlobalState(() => {
}
const getDepMembers = async (param) => {
const res = await userV2List2(param)
const res = await userV2List(param)
return res
}