本体三支柱: 科目↔KPI↔OKR三层互联 + 追溯链API + OKR详情页签

- 新表 kpi_subject_map(89映射/24KPI) / objective_kpi(3O×5KPI) / krs(3O×3KR)
- GET /api/cma/ontology/trace?objective_id=N O→KPI→科目逐层追溯
- GET /api/cma/ontology/objectives 三层链路概览
- OkrDetail.vue 新增本体追溯链页签(KR目标/当前值 + KPI→科目标签流)
- 含并发已上线未提交的KPI多粒度列(target_monthly/quarterly/yearly)
- 回归: pytest 409 passed
This commit is contained in:
Hermes CI Fix
2026-08-19 22:58:10 +08:00
parent 0b305e3ab3
commit bd9c70ea05
7 changed files with 601 additions and 6 deletions
+6
View File
@@ -95,6 +95,12 @@ export const okrApi = {
api.post(`/okr/${okrId}/decomposition/milestones/generate`, { kr_id: krId }),
}
// ── 本体三支柱追溯链 (科目↔KPI↔OKR) ──
export const ontologyApi = {
trace: (objectiveId: number) => api.get('/ontology/trace', { params: { objective_id: objectiveId } }),
objectives: (params?: any) => api.get('/ontology/objectives', { params }),
}
export const dataApi = {
importExcel: (file: File, qs?: string) => {
const form = new FormData()