修正評審評分清單失敗問題

This commit is contained in:
2025-09-21 01:30:26 +08:00
parent 049b53fa43
commit a36ab3c98d
17 changed files with 251 additions and 274 deletions

View File

@@ -63,7 +63,7 @@ export default function JudgeScoringPage() {
try {
// 獲取評審的評分任務
const response = await fetch(`/api/judge/scoring-tasks?judgeId=${judgeId}`)
const response = await fetch(`/api/judge/scoring-tasks?judgeId=${judgeId}&competitionId=0fffae9a-9539-11f0-b5d9-6e36c63cdb98`)
const data = await response.json()
if (data.success) {
@@ -89,7 +89,7 @@ export default function JudgeScoringPage() {
const loadCompetitionRules = async () => {
try {
// 使用正確的競賽ID
const response = await fetch('/api/competitions/be47d842-91f1-11f0-8595-bd825523ae01/rules')
const response = await fetch('/api/competitions/0fffae9a-9539-11f0-b5d9-6e36c63cdb98/rules')
const data = await response.json()
if (data.success) {
@@ -169,7 +169,7 @@ export default function JudgeScoringPage() {
participantType: 'app',
scores: scores,
comments: comments.trim(),
competitionId: 'be47d842-91f1-11f0-8595-bd825523ae01', // 正確的競賽ID
competitionId: '0fffae9a-9539-11f0-b5d9-6e36c63cdb98', // 正確的競賽ID
isEdit: selectedItem.status === "completed", // 如果是重新評分,標記為編輯模式
recordId: selectedItem.status === "completed" ? selectedItem.id : null
})
@@ -298,11 +298,6 @@ export default function JudgeScoringPage() {
</>
)}
</Button>
<div className="text-center text-sm text-gray-500">
<p>ID範例j1, j2, j3, j4, j5</p>
<p>judge2024</p>
</div>
</CardContent>
</Card>
</div>