파일 업로드기능 완료
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -61,9 +61,22 @@
|
||||
<span :class="scoreColorClass(scoreStates[member.participantId + '-' + n], scoresProxy[member.participantId + '-' + n], member.handicap)"
|
||||
class="score-hc-value score-status-text"
|
||||
:key="scoreStates[member.participantId + '-' + n] + '-' + scoresProxy[member.participantId + '-' + n]">
|
||||
{{ (scoresProxy[member.participantId + '-' + n] !== undefined && scoresProxy[member.participantId + '-' + n] !== '') ?
|
||||
Number(scoresProxy[member.participantId + '-' + n]) + (Number(member.handicap) || 0) : ''
|
||||
}}
|
||||
{{ (() => {
|
||||
const key = member.participantId + '-' + n;
|
||||
let score = scoresProxy[key];
|
||||
if (score === undefined || score === null || score === '') score = member.scores?.[n-1]?.score ?? 0;
|
||||
score = Number(score) || 0;
|
||||
// 핸디캡 우선순위: scoresProxy -handicap > member.scores[n-1]?.handicap > member.handicap
|
||||
let gameHandicap = null;
|
||||
if (scoresProxy[key + '-handicap'] !== undefined) {
|
||||
gameHandicap = Number(scoresProxy[key + '-handicap']) || 0;
|
||||
} else if (member.scores && member.scores[n-1] && typeof member.scores[n-1].handicap !== 'undefined') {
|
||||
gameHandicap = Number(member.scores[n-1].handicap) || 0;
|
||||
} else {
|
||||
gameHandicap = Number(member.handicap) || 0;
|
||||
}
|
||||
return score !== '' ? score + gameHandicap : '';
|
||||
})() }}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user