From ddbaf5651abf7890d1e68e4cfbde66e3e2fefba2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B4=BE=E5=90=8C=E5=AD=A6?= Date: Fri, 29 Aug 2025 15:09:05 +0800 Subject: [PATCH] =?UTF-8?q?UPDATE:=20=E5=8B=BE=E9=80=89=E8=A2=AB=E6=A3=80?= =?UTF-8?q?=E8=AE=BE=E5=A4=87=E4=B8=8B=E8=BD=BD=E6=A3=80=E6=B5=8B=E7=BB=93?= =?UTF-8?q?=E6=9E=9C=E6=95=B0=E6=8D=AE=E7=AD=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/api/plan/plan.ts | 4 ++-- .../plan/planList/components/childrenPlan.vue | 17 +++++++++++------ .../plan/planList/components/planPopup.vue | 6 +----- frontend/src/views/plan/planList/index.vue | 11 ----------- 4 files changed, 14 insertions(+), 24 deletions(-) diff --git a/frontend/src/api/plan/plan.ts b/frontend/src/api/plan/plan.ts index 3361f39..a1bcbd8 100644 --- a/frontend/src/api/plan/plan.ts +++ b/frontend/src/api/plan/plan.ts @@ -136,8 +136,8 @@ export const importSubPlan = (params: Plan.ResPlan) => { // 导出计划检测结果数据 -export const exportPlanCheckData = (params: Plan.ResPlan) => { - return http.download(`/adPlan/exportPlanCheckData?planId=${params.id}&report=1`) +export const exportPlanCheckData = (params: any) => { + return http.download(`/adPlan/exportPlanCheckData?planId=${params.id}&devIds=${params.devIds}&report=${params.report}`) } // 导入子检测计划检测结果数据 diff --git a/frontend/src/views/plan/planList/components/childrenPlan.vue b/frontend/src/views/plan/planList/components/childrenPlan.vue index 25c5a8a..b7d8c43 100644 --- a/frontend/src/views/plan/planList/components/childrenPlan.vue +++ b/frontend/src/views/plan/planList/components/childrenPlan.vue @@ -57,9 +57,10 @@ type="primary" icon="Download" v-auth.plan="'import_subplan'" - @click="exportPlanCheckResultData" + @click="exportPlanCheckResultData(scope.selectedListIds)" + :disabled="!scope.isSelected" > - 导出检测结果 + 数据下载 { useDownload(exportSubPlan, `${subPlanFormContent.name}_子计划元信息`, params, false, '.zip') ) } -const exportPlanCheckResultData = async () => { +const exportPlanCheckResultData = async (selectedListIds: string[]) => { const params = { - id: planFormContent.value.id + id: planFormContent.value.id, + report: 1, + devIds: selectedListIds.join(',') } - ElMessageBox.confirm(`确认导出${planFormContent.value.name}计划检测结果?`, '温馨提示', { type: 'warning' }).then( - () => useDownload(exportPlanCheckData, `${planFormContent.value.name}_计划检测结果`, params, false, '.zip') + ElMessageBox.confirm(`确认下载【${planFormContent.value.name}】勾选的被检设备等信息?`, '温馨提示', { + type: 'warning' + }).then(() => + useDownload(exportPlanCheckData, `${planFormContent.value.name}_检测计划检测数据包`, params, false, '.zip') ) } diff --git a/frontend/src/views/plan/planList/components/planPopup.vue b/frontend/src/views/plan/planList/components/planPopup.vue index e8312eb..75f8582 100644 --- a/frontend/src/views/plan/planList/components/planPopup.vue +++ b/frontend/src/views/plan/planList/components/planPopup.vue @@ -13,7 +13,6 @@ -