From ae3349d2ff53767b5bc9cb30e1bf7e15f9e814ee Mon Sep 17 00:00:00 2001 From: lrj <owen.stl@gmail.com> Date: 星期五, 03 十月 2025 20:45:44 +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