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:
@@ -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 }),
|
||||
|
||||
Reference in New Issue
Block a user