| | |
| | | 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 |
| | | } |
| | | } |
| | | } |
| | |
| | | } |
| | | |
| | | /** |
| | | * 获取指定评委的评分明细 |
| | | */ |
| | | 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) => { |