From ea203d0ccc96840e31b895495afc8d4a37ae2a5e Mon Sep 17 00:00:00 2001 From: caozehui <2427765068@qq.com> Date: Mon, 17 Feb 2025 16:26:23 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E7=BB=9F=E8=AE=A1=E5=88=86?= =?UTF-8?q?=E6=9E=90=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/api/plan/plan.ts | 4 ++-- frontend/src/views/plan/planList/index.vue | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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//检测最大次数