修正評審評分清單失敗問題
This commit is contained in:
@@ -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>
|
||||
|
Reference in New Issue
Block a user