diff --git a/frontend/src/api/plan/plan.ts b/frontend/src/api/plan/plan.ts index 62418db..9fcd542 100644 --- a/frontend/src/api/plan/plan.ts +++ b/frontend/src/api/plan/plan.ts @@ -86,7 +86,7 @@ export const downloadDevData = (params: Device.ReqDevReportParams) => { return http.download(`/report/downloadReport`, params) } -export const staticsAnalyse = (params: { planId: string }) => { - return http.download(`/adPlan/analyse?planId=${params.planId}`) +export const staticsAnalyse = (params: { id: string[] }) => { + return http.download('/adPlan/analyse', params) } diff --git a/frontend/src/views/plan/planList/index.vue b/frontend/src/views/plan/planList/index.vue index bdda78f..b9c009b 100644 --- a/frontend/src/views/plan/planList/index.vue +++ b/frontend/src/views/plan/planList/index.vue @@ -395,7 +395,7 @@ const showDeviceOpen = (row: Partial = {}) => { const myDict = new Map(); const statisticalAnalysis = async (row: Partial = {}) => { - useDownload(staticsAnalyse,row.name+'分析结果', {planId:row.id}, false,'.xlsx') + useDownload(staticsAnalyse,'分析结果', [row.id], false,'.xlsx') // const response = await getTestConfig() as unknown as Base.ResTestConfig // const maxTime= response.data.maxTime//检测最大次数