This commit is contained in:
@@ -149,6 +149,41 @@
|
||||
<!-- Loaded via JS -->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- 评分细项(仅评委和嘉宾可见) -->
|
||||
<div id="scoreDetailsSection" style="display: none;" class="bg-gradient-to-br from-gray-50 to-blue-50 rounded-xl p-5 border border-gray-200 shadow-sm">
|
||||
<h4 class="text-lg font-bold text-gray-900 mb-4 flex items-center"><i class="fas fa-chart-bar mr-2 text-indigo-500"></i>评分明细</h4>
|
||||
<div class="grid grid-cols-2 gap-4">
|
||||
<div class="bg-white rounded-lg p-3 border border-gray-100 shadow-sm">
|
||||
<div class="flex items-center justify-between mb-1">
|
||||
<span class="text-xs font-semibold text-gray-500 uppercase">评委评分</span>
|
||||
<i class="fas fa-user-tie text-blue-400 text-sm"></i>
|
||||
</div>
|
||||
<span id="judgeScoreValue" class="text-2xl font-bold text-blue-600">--</span>
|
||||
</div>
|
||||
<div class="bg-white rounded-lg p-3 border border-gray-100 shadow-sm">
|
||||
<div class="flex items-center justify-between mb-1">
|
||||
<span class="text-xs font-semibold text-gray-500 uppercase">选手互评分</span>
|
||||
<i class="fas fa-users text-green-400 text-sm"></i>
|
||||
</div>
|
||||
<span id="peerScoreValue" class="text-2xl font-bold text-green-600">--</span>
|
||||
</div>
|
||||
<div class="bg-white rounded-lg p-3 border border-gray-100 shadow-sm">
|
||||
<div class="flex items-center justify-between mb-1">
|
||||
<span class="text-xs font-semibold text-gray-500 uppercase">AI评分</span>
|
||||
<i class="fas fa-robot text-purple-400 text-sm"></i>
|
||||
</div>
|
||||
<span id="aiScoreValue" class="text-2xl font-bold text-purple-600">--</span>
|
||||
</div>
|
||||
<div class="bg-white rounded-lg p-3 border border-gray-100 shadow-sm">
|
||||
<div class="flex items-center justify-between mb-1">
|
||||
<span class="text-xs font-semibold text-gray-500 uppercase">最终平均分</span>
|
||||
<i class="fas fa-star text-yellow-400 text-sm"></i>
|
||||
</div>
|
||||
<span id="finalScoreValue" class="text-2xl font-bold text-yellow-600">--</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Right Column: Grading -->
|
||||
@@ -601,6 +636,18 @@ async function viewProject(id) {
|
||||
).join('') : '<div class="text-center text-gray-400 py-4 text-sm">暂无历史评语</div>';
|
||||
document.getElementById('modalHistoryComments').innerHTML = historyHtml;
|
||||
|
||||
// 渲染评分细项(仅评委和嘉宾可见)
|
||||
const scoreDetailsSection = document.getElementById('scoreDetailsSection');
|
||||
if (data.score_details) {
|
||||
scoreDetailsSection.style.display = 'block';
|
||||
document.getElementById('judgeScoreValue').innerText = data.score_details.judge_score !== null ? data.score_details.judge_score : '--';
|
||||
document.getElementById('peerScoreValue').innerText = data.score_details.peer_score !== null ? data.score_details.peer_score : '--';
|
||||
document.getElementById('aiScoreValue').innerText = data.score_details.ai_score !== null ? data.score_details.ai_score : '--';
|
||||
document.getElementById('finalScoreValue').innerText = data.score_details.final_score !== null ? data.score_details.final_score : '--';
|
||||
} else {
|
||||
scoreDetailsSection.style.display = 'none';
|
||||
}
|
||||
|
||||
// Render Score Inputs
|
||||
const dimensionsHtml = data.dimensions.map(d => `
|
||||
<div class="bg-white p-3 rounded-lg border border-gray-200" data-dimension-id="${d.id}" data-max-score="${d.max_score}" data-weight="${d.weight}">
|
||||
|
||||
Reference in New Issue
Block a user