파일 업로드기능 완료

This commit is contained in:
2025-06-03 19:10:07 +09:00
parent e609a8ce52
commit eb0addf4e3
20 changed files with 4501 additions and 27 deletions
@@ -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>