|
|
|
@ -10,7 +10,11 @@ export const getDetailById = async (id: number | string): Promise<any> => (await |
|
|
|
|
export const getCompetition = async (id: number | string): Promise<any> => (await axios.post(`/competition/competition/management/getCompetition?competitionId=${id}`)).data; |
|
|
|
|
export const reportDetail = async (id: number | string): Promise<any> => (await axios.get(`/occupationlab/occupationlab/achievement/reportDetail?reportId=${id}`)).data; |
|
|
|
|
export const exportBankExperimentReport = async (data: Record<string, any>): Promise<any> => |
|
|
|
|
(await axios.post('/occupationlab/occupationlab/achievement/exportBankExperimentReport', data)).data; |
|
|
|
|
( |
|
|
|
|
await axios.post('/occupationlab/occupationlab/achievement/exportBankExperimentReport', data, { |
|
|
|
|
responseType: 'blob', |
|
|
|
|
}) |
|
|
|
|
).data; |
|
|
|
|
export const updateReport = async (data: Record<string, any>): Promise<any> => (await axios.post('/occupationlab/occupationlab/achievement/updateReport', data)).data; |
|
|
|
|
export const editExperimentalData = async (data: Record<string, any>): Promise<any> => |
|
|
|
|
(await axios.post('/occupationlab/occupationlab/experimentalReport/editExperimentalData', data)).data; |
|
|
|
|