个人项目只展示当前出场人
This commit is contained in:
parent
81b40a27d8
commit
7a1b2ab46d
@ -352,6 +352,10 @@ public class JudgeScoringController : IDynamicApiController
|
|||||||
var scoreSheetAllowsEditing = submitted == null || correction != null;
|
var scoreSheetAllowsEditing = submitted == null || correction != null;
|
||||||
var canEdit = stageAllowsScoring && scoreSheetAllowsEditing;
|
var canEdit = stageAllowsScoring && scoreSheetAllowsEditing;
|
||||||
var members = await LoadMemberNamesAsync(entry, ctx.Scope);
|
var members = await LoadMemberNamesAsync(entry, ctx.Scope);
|
||||||
|
// 个人项目以参赛记录解析出的当前运动员为准,兼容历史出场快照误存单位名的情况。
|
||||||
|
var participantName = ctx.Scope == ScoreScope.Personal && members.Count == 1
|
||||||
|
? members[0]
|
||||||
|
: DisplayParticipantName(entry, ctx.Scope);
|
||||||
var venue = await _venueRepository.GetFirstAsync(x => x.Id == ctx.Session.VenueId);
|
var venue = await _venueRepository.GetFirstAsync(x => x.Id == ctx.Session.VenueId);
|
||||||
var nextVersion = (submitted?.SheetVersion ?? 0) + 1;
|
var nextVersion = (submitted?.SheetVersion ?? 0) + 1;
|
||||||
|
|
||||||
@ -382,7 +386,7 @@ public class JudgeScoringController : IDynamicApiController
|
|||||||
entry.GroupName,
|
entry.GroupName,
|
||||||
venue?.VenueName ?? "-"),
|
venue?.VenueName ?? "-"),
|
||||||
EntryNo = entry.EntryNo,
|
EntryNo = entry.EntryNo,
|
||||||
ParticipantName = DisplayParticipantName(entry, ctx.Scope),
|
ParticipantName = participantName,
|
||||||
MemberNames = members,
|
MemberNames = members,
|
||||||
JudgeRole = assignment.JudgeRole,
|
JudgeRole = assignment.JudgeRole,
|
||||||
JudgeRoleType = roleType,
|
JudgeRoleType = roleType,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user