Files
cma-management/frontend/src/api/orgApi.ts
T
Hermes CI Fix 3dddd36866 init: 管理会计OS初始代码
包含前后端完整代码:
- 前端:Vue3+Vite+ElementPlus
- 后端:FastAPI+SQLAlchemy
- 模块:驾驶舱/KPI/战略地图/预警/预算/成本/预测/改善行动
- 当前版本:v1.0.0
2026-05-28 17:32:22 +08:00

11 lines
373 B
TypeScript

import api from "./index"
export const orgApi = {
tree: () => api.get("/org/tree"),
list: () => api.get("/org/nodes"),
create: (data: any) => api.post("/org/nodes", data),
update: (id: number, data: any) => api.put(`/org/nodes/${id}`, data),
delete: (id: number) => api.delete(`/org/nodes/${id}`),
toggle: (id: number) => api.put(`/org/nodes/${id}/toggle`),
}