feat(judgeInvite): add project assignment editing feature

- Add edit projects button in judge invite list
- Add edit projects dialog with project multi-select
- Add updateInviteProjects API method
- Fix: load project list before opening edit dialog

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
This commit is contained in:
Z-WICK
2026-01-05 15:08:04 +08:00
co-authored by factory-droid[bot]
parent 73784808a7
commit b3b59b8ce4
2 changed files with 121 additions and 0 deletions
+14
View File
@@ -264,3 +264,17 @@ export const getInviteByJudge = (competitionId, judgeId) => {
params: { competitionId, judgeId }
})
}
/**
* 更新邀请的项目分配
* @param {Object} data - 更新参数
* @param {Number} data.inviteId - 邀请ID
* @param {String} data.projects - 项目列表(JSON字符串)
*/
export const updateInviteProjects = (data) => {
return request({
url: '/api/martial/judgeInvite/updateProjects',
method: 'put',
data
})
}