调整统计分析功能

This commit is contained in:
caozehui
2025-02-17 16:26:23 +08:00
parent 370cd52774
commit ea203d0ccc
2 changed files with 3 additions and 3 deletions

View File

@@ -86,7 +86,7 @@ export const downloadDevData = (params: Device.ReqDevReportParams) => {
return http.download(`/report/downloadReport`, params) return http.download(`/report/downloadReport`, params)
} }
export const staticsAnalyse = (params: { planId: string }) => { export const staticsAnalyse = (params: { id: string[] }) => {
return http.download(`/adPlan/analyse?planId=${params.planId}`) return http.download('/adPlan/analyse', params)
} }

View File

@@ -395,7 +395,7 @@ const showDeviceOpen = (row: Partial<Plan.ReqPlan> = {}) => {
const myDict = new Map<string, any[]>(); const myDict = new Map<string, any[]>();
const statisticalAnalysis = async (row: Partial<Plan.ReqPlan> = {}) => { const statisticalAnalysis = async (row: Partial<Plan.ReqPlan> = {}) => {
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 response = await getTestConfig() as unknown as Base.ResTestConfig
// const maxTime= response.data.maxTime//检测最大次数 // const maxTime= response.data.maxTime//检测最大次数