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:
co-authored by
factory-droid[bot]
parent
73784808a7
commit
b3b59b8ce4
@@ -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
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user