feat: 驱动因子计划 — 模式切换+行业包+敏感性分析

This commit is contained in:
Hermes CI Fix
2026-07-22 12:58:04 +08:00
parent 66554fb7fa
commit 2923e54366
8 changed files with 932 additions and 1 deletions
+15
View File
@@ -199,6 +199,21 @@ export const deviationPushApi = {
getMapNodes: (mapId: number) => api.get(`/deviation-push/map-nodes/${mapId}`),
}
export const driverBudgetApi = {
// 驱动因子模式切换
getMode: () => api.get('/budget/driver/mode'),
setMode: (data: any) => api.post('/budget/driver/mode', data),
// 行业包
getIndustries: () => api.get('/budget/driver/industries'),
getTemplates: (params?: any) => api.get('/budget/driver/templates', { params }),
// 驱动因子计算
calculate: (data: any) => api.post('/budget/driver/calculate', data),
// 敏感性分析
sensitivity: (data: any) => api.post('/budget/driver/sensitivity', data),
// 历史记录
getHistory: (params?: any) => api.get('/budget/driver/history', { params }),
}
export const budgetGenerateApi = {
getCandidates: () => api.get('/budget/kpi-budget-candidates'),
generateFromKpis: (data: any) => api.post('/budget/generate-from-kpis', data),