diff --git a/frontend/src/api/plan/plan.ts b/frontend/src/api/plan/plan.ts index 497fcbc..62418db 100644 --- a/frontend/src/api/plan/plan.ts +++ b/frontend/src/api/plan/plan.ts @@ -86,6 +86,7 @@ export const downloadDevData = (params: Device.ReqDevReportParams) => { return http.download(`/report/downloadReport`, params) } -export const staticsAnalyse = (planId: string) => { - return http.download(`/adPlan/analyse?planId=${planId}`) +export const staticsAnalyse = (params: { planId: string }) => { + return http.download(`/adPlan/analyse?planId=${params.planId}`) } + diff --git a/frontend/src/views/plan/planList/index.vue b/frontend/src/views/plan/planList/index.vue index b294b76..bdda78f 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 = {}) => { - await staticsAnalyse(row.id) + useDownload(staticsAnalyse,row.name+'分析结果', {planId:row.id}, false,'.xlsx') // const response = await getTestConfig() as unknown as Base.ResTestConfig // const maxTime= response.data.maxTime//检测最大次数