fix: 行动方案库统计卡片—补全API+overdue计算
This commit is contained in:
@@ -79,6 +79,14 @@ export const okrTemplateApi = {
|
||||
applyTemplate: (id: number, data: any) => api.post(`/okr-templates/${id}/apply`, data),
|
||||
}
|
||||
|
||||
export const okrApi = {
|
||||
list: (params?: any) => api.get('/okr', { params }),
|
||||
get: (id: number) => api.get(`/okr/${id}`),
|
||||
create: (data: any) => api.post('/okr', data),
|
||||
update: (id: number) => api.patch(`/okr/${id}`),
|
||||
decomposition: (id: number) => api.get(`/okr/${id}/decomposition`),
|
||||
}
|
||||
|
||||
export const dataApi = {
|
||||
importExcel: (file: File, qs?: string) => {
|
||||
const form = new FormData()
|
||||
@@ -140,6 +148,7 @@ export const actionPlanApi = {
|
||||
update: (id: number, data: any) => api.put(`/action-plans/${id}`, data),
|
||||
delete: (id: number) => api.delete(`/action-plans/${id}`),
|
||||
cosoChecklist: (params?: any) => api.get('/action-plans/coso-checklist', { params }),
|
||||
stats: () => api.get('/action-plans/stats'),
|
||||
}
|
||||
|
||||
export const budgetApi = {
|
||||
|
||||
Reference in New Issue
Block a user