From 1d918f33350aa9b323480bcb0e32d43821903b29 Mon Sep 17 00:00:00 2001 From: sjl <1716605279@qq.com> Date: Fri, 14 Feb 2025 11:44:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/settings.json | 1 + frontend/src/api/plan/plan.ts | 6 +++++- frontend/src/views/plan/planList/index.vue | 4 +++- 3 files changed, 9 insertions(+), 2 deletions(-) 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 })