From a19a20ddd826df494d8150393c37dcdbcb89a743 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B4=BE=E5=90=8C=E5=AD=A6?= Date: Mon, 25 Aug 2025 11:02:07 +0800 Subject: [PATCH 1/2] =?UTF-8?q?ADD:=E5=AF=BC=E5=85=A5=E6=A3=80=E6=B5=8B?= =?UTF-8?q?=E8=AE=A1=E5=88=92=E6=A3=80=E6=B5=8B=E7=BB=93=E6=9E=9C=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/api/plan/plan.ts | 13 +++++-- frontend/src/components/ImportZip/index.vue | 8 +--- .../plan/planList/components/childrenPlan.vue | 37 +++++++++++++++++-- frontend/src/views/plan/planList/index.vue | 2 +- 4 files changed, 45 insertions(+), 15 deletions(-) diff --git a/frontend/src/api/plan/plan.ts b/frontend/src/api/plan/plan.ts index b768f6e..5e41b70 100644 --- a/frontend/src/api/plan/plan.ts +++ b/frontend/src/api/plan/plan.ts @@ -1,7 +1,7 @@ -import type {Plan} from './interface' +import type { Plan } from './interface' import http from '@/api' -import type {ErrorSystem} from '../device/interface/error' -import type {Device} from '../device/interface/device' +import type { ErrorSystem } from '../device/interface/error' +import type { Device } from '../device/interface/device' /** * @name 检测计划管理模块 @@ -130,7 +130,7 @@ export const exportSubPlan = (params: Plan.ResPlan) => { } // 导入子检测计划 -export const importSubPlan = (params: Device.ReqPqDevParams) => { +export const importSubPlan = (params: Plan.ResPlan) => { return http.upload(`/adPlan/importSubPlan`, params) } @@ -138,4 +138,9 @@ export const importSubPlan = (params: Device.ReqPqDevParams) => { // 导出计划检测结果数据 export const exportPlanCheckData = (params: Plan.ResPlan) => { return http.download(`/adPlan/exportPlanCheckData?planId=${params.id}`) +} + +// 导入子检测计划检测结果数据 +export const importSubPlanCheckData = (params: Plan.ResPlan) => { + return http.upload(`/adPlan/importSubPlanCheckData`, params) } \ No newline at end of file diff --git a/frontend/src/components/ImportZip/index.vue b/frontend/src/components/ImportZip/index.vue index df10b3c..f5e99a6 100644 --- a/frontend/src/components/ImportZip/index.vue +++ b/frontend/src/components/ImportZip/index.vue @@ -1,11 +1,5 @@ \ No newline at end of file +} + +// 对外映射 +defineExpose({ open }) +const props = defineProps<{ + refreshTable: (() => Promise) | undefined +}>() + \ No newline at end of file