实验报告导出

master
yujialong 1 month ago
parent ea02b0c2ae
commit cec85a91dc
  1. 2
      .env
  2. 6
      src/api/system.ts

@ -2,7 +2,7 @@ VITE_APP_TITLE=金融产品设计及数字化营销沙盘
VITE_PORT=9520
# VITE_PROXY=http://192.168.31.125:8080
VITE_PUBLIC_PATH=./
# VITE_BASE_API=http://192.168.31.51:9000
# VITE_BASE_API=http://192.168.31.217:9000
VITE_BASE_API=https://www.occupationlab.com
VITE_I18N_LOCALE=zh-cn
VITE_I18N_FALLBACK_LOCALE=zh-cn

@ -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;

Loading…
Cancel
Save