From 375c18a6d2713ff19b22093eec57315992d8333f Mon Sep 17 00:00:00 2001
From: Codex Assistant <codex@example.com>
Date: 星期四, 06 十一月 2025 13:33:52 +0800
Subject: [PATCH] 增加评审下载
---
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