diff --git a/src/service/api/project-shared.ts b/src/service/api/project-shared.ts index b36cc28..15b730c 100644 --- a/src/service/api/project-shared.ts +++ b/src/service/api/project-shared.ts @@ -499,7 +499,7 @@ export function normalizeTeamLoad(response: TeamLoadResponse): Api.Project.TeamL export function normalizeMyWorklogWeek(response: MyWorklogWeekResponse): Api.Project.MyWorklogWeekResult { return { weekStart: response.weekStart ?? '', - dailyHours: response.dailyHours ?? [0, 0, 0, 0, 0], + dailyHours: response.dailyHours ?? [0, 0, 0, 0, 0, 0, 0], distribution: (response.distribution ?? []).map(item => ({ ...normalizeWorklogDistributionItem(item), hours: typeof item.hours === 'number' ? item.hours : 0 @@ -513,6 +513,7 @@ export function normalizeTeamWorklogWeek(response: TeamWorklogWeekResponse): Api members: (response.members ?? []).map(member => ({ userId: normalizeStringId(member.userId), userNickname: member.userNickname ?? '', + overtimeHours: typeof member.overtimeHours === 'number' ? member.overtimeHours : 0, items: (member.items ?? []).map(item => ({ ...normalizeWorklogDistributionItem(item), hours: typeof item.hours === 'number' ? item.hours : 0 diff --git a/src/typings/api/project.d.ts b/src/typings/api/project.d.ts index 6e087a7..73a1626 100644 --- a/src/typings/api/project.d.ts +++ b/src/typings/api/project.d.ts @@ -491,7 +491,7 @@ declare namespace Api { interface MyWorklogWeekResult { /** 归一后的周一日期 YYYY-MM-DD */ weekStart: string; - /** 周一~周五逐日工时(固定 5 元素;均摊推算值,周末份额归周五) */ + /** 周一~周日逐日工时(固定 7 元素;按周填报时仅均摊到工作日,周末单天工时保留在周末当天) */ dailyHours: number[]; /** 本周工时按归属分布,hours 降序 */ distribution: WorklogDistributionItem[]; @@ -502,6 +502,7 @@ declare namespace Api { userId: string; userNickname: string; items: WorklogDistributionItem[]; + overtimeHours: number; } /** 工作台「团队工时周聚合」响应(GET /project/project/me/team-worklog-week;周标准工时后端不返回,前端落常量 35) */ diff --git a/src/views/infra/log-management/api-access-log/index.vue b/src/views/infra/log-management/api-access-log/index.vue index ef23cf9..be27873 100644 --- a/src/views/infra/log-management/api-access-log/index.vue +++ b/src/views/infra/log-management/api-access-log/index.vue @@ -1,7 +1,12 @@