From 915d80766dd8e0157e9b9510b3634ed758eb5c5a Mon Sep 17 00:00:00 2001
From: Codex Assistant <codex@example.com>
Date: 星期日, 05 十月 2025 14:45:58 +0800
Subject: [PATCH] feat: 新增员工审核入口与审核页面

---
 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