包含前后端完整代码: - 前端:Vue3+Vite+ElementPlus - 后端:FastAPI+SQLAlchemy - 模块:驾驶舱/KPI/战略地图/预警/预算/成本/预测/改善行动 - 当前版本:v1.0.0
11 lines
373 B
TypeScript
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`),
|
|
}
|