From 2d410989d32380d31ae3fe6d42aa3b3ba9e09d00 Mon Sep 17 00:00:00 2001
From: lrj <owen.stl@gmail.com>
Date: 星期五, 03 十月 2025 22:13:29 +0800
Subject: [PATCH] UI优化和bug修复: 1.调整小程序消息列表图标样式 2.优化web端比赛晋级页面布局 3.修复小程序消息列表日期显示问题

---
 web/src/api/projectReview.js |   42 +++++++++++++++++++++++++++++++++++++-----
 1 files changed, 37 insertions(+), 5 deletions(-)

diff --git a/web/src/api/projectReview.js b/web/src/api/projectReview.js
index c668f3b..1002038 100644
--- a/web/src/api/projectReview.js
+++ b/web/src/api/projectReview.js
@@ -54,6 +54,7 @@
       activityName
       projectName
       description
+      stageId
       submissionFiles {
         id
         name
@@ -100,12 +101,31 @@
     currentJudgeRating(activityPlayerId: $activityPlayerId) {
       id
       totalScore
-      comments
-      ratingItems {
-        itemId
-        itemName
+      status
+      remark
+      items {
+        ratingItemId
+        ratingItemName
         score
-        maxScore
+        weightedScore
+      }
+    }
+  }
+`
+
+// 鑾峰彇鎸囧畾璇勫鐨勮瘎鍒嗘槑缁�
+const GET_JUDGE_RATING_DETAIL_QUERY = `
+  query GetJudgeRatingDetail($activityPlayerId: ID!, $judgeId: ID!) {
+    judgeRatingDetail(activityPlayerId: $activityPlayerId, judgeId: $judgeId) {
+      id
+      totalScore
+      status
+      remark
+      items {
+        ratingItemId
+        ratingItemName
+        score
+        weightedScore
       }
     }
   }
@@ -258,6 +278,18 @@
 }
 
 /**
+ * 鑾峰彇鎸囧畾璇勫鐨勮瘎鍒嗘槑缁�
+ */
+export const getJudgeRatingDetail = async (activityPlayerId, judgeId) => {
+  try {
+    const result = await graphqlRequest(GET_JUDGE_RATING_DETAIL_QUERY, { activityPlayerId, judgeId })
+    return result.data.judgeRatingDetail
+  } catch (error) {
+    throw new Error(error.message || '鑾峰彇璇勫璇勫垎鏄庣粏澶辫触')
+  }
+}
+
+/**
  * 鎻愪氦璇勫垎
  */
 export const submitRating = async (ratingInput) => {

--
Gitblit v1.8.0