From 6d519474e44855682043d3c40db2c86a6822caca Mon Sep 17 00:00:00 2001 From: lrj <owen.stl@gmail.com> Date: 星期三, 24 九月 2025 19:37:59 +0800 Subject: [PATCH] 修改员工和评委的设置 --- web/src/api/player.js | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/web/src/api/player.js b/web/src/api/player.js index 1006ec6..a1ada54 100644 --- a/web/src/api/player.js +++ b/web/src/api/player.js @@ -16,16 +16,16 @@ } const GET_APPLICATIONS = ` - query GetApplications($name: String, $page: Int, $size: Int) { - activityPlayerApplications(name: $name, page: $page, size: $size) { + query GetApplications($name: String, $activityId: ID, $page: Int, $size: Int) { + activityPlayerApplications(name: $name, activityId: $activityId, page: $page, size: $size) { id playerName activityName phone applyTime state } } ` export const PlayerApi = { - getApplications: async (name, page, size) => { - const data = await graphqlRequest(GET_APPLICATIONS, { name, page, size }) + getApplications: async (name, activityId, page, size) => { + const data = await graphqlRequest(GET_APPLICATIONS, { name, activityId, page, size }) return data.activityPlayerApplications || [] } } \ No newline at end of file -- Gitblit v1.8.0