fix: api/index.ts补templateApi导出(KPIList.bak依赖)
This commit is contained in:
@@ -52,6 +52,15 @@ export const dashboardApi = {
|
|||||||
predict: (params?: any) => api.get('/dashboard/predict', { params }),
|
predict: (params?: any) => api.get('/dashboard/predict', { params }),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export const templateApi = {
|
||||||
|
list: (params?: any) => api.get('/templates', { params }),
|
||||||
|
get: (id: number) => api.get(`/templates/${id}`),
|
||||||
|
instantiate: (id: number, data: any) => api.post(`/templates/${id}/instantiate`, data),
|
||||||
|
create: (data: any) => api.post('/templates', data),
|
||||||
|
update: (id: number, data: any) => api.put(`/templates/${id}`, data),
|
||||||
|
delete: (id: number) => api.delete(`/templates/${id}`),
|
||||||
|
}
|
||||||
|
|
||||||
export const dataApi = {
|
export const dataApi = {
|
||||||
importExcel: (file: File) => {
|
importExcel: (file: File) => {
|
||||||
const form = new FormData()
|
const form = new FormData()
|
||||||
|
|||||||
Reference in New Issue
Block a user