diff --git a/frontend/src/api/task.ts b/frontend/src/api/task.ts index 63cdd91..27a4f2f 100644 --- a/frontend/src/api/task.ts +++ b/frontend/src/api/task.ts @@ -535,3 +535,38 @@ export const rejectByReceivingLeader = (taskId: number, reason: string) => { return request.post(`/tasks/${taskId}/reject-receiving`, { reason }) } +// ==================== 子任务组审核相关 ==================== + +/** + * 子任务组信息 + */ +export interface TaskGroup { + groupId: number + mainTaskId: number + mainTaskTitle: string + mainTaskNo: string + items: TaskItem[] + totalScore: number +} + +/** + * 获取待审核的子任务组列表 + */ +export const getPendingApprovalTaskGroups = () => { + return request.get('/tasks/items/pending-approval-groups') +} + +/** + * 审核通过子任务组 + */ +export const approveTaskGroup = (groupId: number, data: { assignedReceiverId?: number; comment?: string }) => { + return request.post(`/tasks/items/groups/${groupId}/approve`, data) +} + +/** + * 驳回子任务组 + */ +export const rejectTaskGroup = (groupId: number, reason: string) => { + return request.post(`/tasks/items/groups/${groupId}/reject`, { reason }) +} + diff --git a/frontend/src/components/NotificationBell.vue b/frontend/src/components/NotificationBell.vue index 33a8cde..38d6718 100644 --- a/frontend/src/components/NotificationBell.vue +++ b/frontend/src/components/NotificationBell.vue @@ -10,8 +10,8 @@ > @@ -263,20 +263,26 @@ onUnmounted(() => {