feat: 复盘结果持久化 — 大PDCA Act闭环(P1, yanxue-review-persistence)

- review_records表+模型(entity_id多租户)
- API: POST/GET/GET:id /maps/{id}/review-records
- 前端: MapReview 保存复盘结论弹窗+历史记录时间线(并发agent完成主体, 本项目补齐script逻辑)
- 验证: POST 200保存成功/GET列表/跨企业404/pytest 11 passed/构建部署
This commit is contained in:
Hermes CI Fix
2026-08-27 15:59:55 +08:00
parent fdc42d443d
commit 9f787e628b
5 changed files with 251 additions and 2 deletions
+7
View File
@@ -58,6 +58,13 @@ export const mapApi = {
createWithTemplate: (data: any) => api.post('/maps/create-with-template', data),
}
// 复盘记录持久化(大PDCA Act闭环 2026-08-27
export const reviewRecordApi = {
list: (mapId: number, params?: any) => api.get(`/maps/${mapId}/review-records`, { params }),
get: (mapId: number, id: number) => api.get(`/maps/${mapId}/review-records/${id}`),
create: (mapId: number, data: any) => api.post(`/maps/${mapId}/review-records`, data),
}
export const dashboardApi = {
summary: (role: string) => api.get('/dashboard/summary', { params: { role } }),
kpis: (params: any) => api.get('/dashboard/kpis', { params }),