diff --git a/.vscode/settings.json b/.vscode/settings.json index a9ddf8c..f9ac897 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,5 +1,6 @@ { "cSpell.words": [ + "Analyse", "CHNFACTOR", "CHNPACTOR", "Chns", diff --git a/frontend/src/api/plan/plan.ts b/frontend/src/api/plan/plan.ts index 03901a5..497fcbc 100644 --- a/frontend/src/api/plan/plan.ts +++ b/frontend/src/api/plan/plan.ts @@ -84,4 +84,8 @@ export const generateDevReport = (params: Device.ReqDevReportParams) => { // 装置检测报告下载 export const downloadDevData = (params: Device.ReqDevReportParams) => { return http.download(`/report/downloadReport`, params) -} \ No newline at end of file +} + +export const staticsAnalyse = (planId: string) => { + return http.download(`/adPlan/analyse?planId=${planId}`) +} diff --git a/frontend/src/views/plan/planList/index.vue b/frontend/src/views/plan/planList/index.vue index ab6e731..b294b76 100644 --- a/frontend/src/views/plan/planList/index.vue +++ b/frontend/src/views/plan/planList/index.vue @@ -68,7 +68,7 @@ import ImportExcel from "@/components/ImportExcel/index.vue"; import {useDownload} from "@/hooks/useDownload"; import {getTestConfig } from '@/api/system/base/index' import {type Base } from '@/api/system/base/interface' -import { getBoundPqDevList } from '@/api/plan/plan.ts' +import { getBoundPqDevList ,staticsAnalyse} from '@/api/plan/plan.ts' // defineOptions({ // name: 'planList' @@ -395,6 +395,8 @@ const showDeviceOpen = (row: Partial = {}) => { const myDict = new Map(); const statisticalAnalysis = async (row: Partial = {}) => { + await staticsAnalyse(row.id) + // const response = await getTestConfig() as unknown as Base.ResTestConfig // const maxTime= response.data.maxTime//检测最大次数 // const dev = await getBoundPqDevList({ 'planId': row.id })