fix: 修复选手列表重复问题 - 只查询registrationStatus=0的选手信息记录
根本原因:报名时会创建新的registrationStatus=1参赛记录,而查询选手列表时没有过滤,导致显示重复 解决方案:在查询选手列表时添加registrationStatus=0参数,只查询选手信息库
This commit is contained in:
@@ -109,7 +109,8 @@ export default {
|
|||||||
const res = await athleteAPI.getAthleteList({
|
const res = await athleteAPI.getAthleteList({
|
||||||
current: 1,
|
current: 1,
|
||||||
size: 100,
|
size: 100,
|
||||||
createUser: userInfo.userId
|
createUser: userInfo.userId,
|
||||||
|
registrationStatus: 0 // Only query player info records
|
||||||
})
|
})
|
||||||
|
|
||||||
let list = []
|
let list = []
|
||||||
|
|||||||
@@ -428,7 +428,8 @@ export default {
|
|||||||
const res = await athleteAPI.getAthleteList({
|
const res = await athleteAPI.getAthleteList({
|
||||||
current: 1,
|
current: 1,
|
||||||
size: 100,
|
size: 100,
|
||||||
createUser: userInfo.userId
|
createUser: userInfo.userId,
|
||||||
|
registrationStatus: 0 // Only query player info records, not registration records
|
||||||
})
|
})
|
||||||
|
|
||||||
let list = res.records || (Array.isArray(res) ? res : [])
|
let list = res.records || (Array.isArray(res) ? res : [])
|
||||||
|
|||||||
Reference in New Issue
Block a user