From bec58fa7fe4fae2deac88200d8d939e12ec8a08f Mon Sep 17 00:00:00 2001
From: lrj <owen.stl@gmail.com>
Date: 星期五, 03 十月 2025 22:26:39 +0800
Subject: [PATCH] 修复小程序WXS日期显示问题并重新设计【我的】页面
---
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