From 2f6a13a77c3ceb4312297d68d61c50815b52f08f Mon Sep 17 00:00:00 2001 From: zhaoyiran Date: Thu, 22 May 2025 14:52:51 +0800 Subject: [PATCH] =?UTF-8?q?SBBJ-982=E8=AE=BE=E5=A4=87=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E5=AF=BC=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/eam/device/deviceInspectionMain/index.ts | 8 +++++++- src/views/eam/device/deviceinspectionjob/index.vue | 4 ++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/api/eam/device/deviceInspectionMain/index.ts b/src/api/eam/device/deviceInspectionMain/index.ts index 2330bb9..3f4d3b9 100644 --- a/src/api/eam/device/deviceInspectionMain/index.ts +++ b/src/api/eam/device/deviceInspectionMain/index.ts @@ -49,7 +49,13 @@ export const deleteDeviceInspectionMain = async (id: number) => { // 导出检修工单主 Excel export const exportDeviceInspectionMain = async (params) => { - return await request.download({ url: `/eam/device-inspection-job-main/export-excel`, params }) + params.type = 'DEVICE' + if (params.isSearch) { + const data = {...params} + return await request.downloadPost({ url: `/eam/device-inspection-job-main/export-excel-senior`, data }) + } else { + return await request.download({ url: `/eam/device-inspection-job-main/export-excel`, params }) + } } // 下载用户导入模板 diff --git a/src/views/eam/device/deviceinspectionjob/index.vue b/src/views/eam/device/deviceinspectionjob/index.vue index 7bfbb9a..b3d1ef3 100644 --- a/src/views/eam/device/deviceinspectionjob/index.vue +++ b/src/views/eam/device/deviceinspectionjob/index.vue @@ -222,7 +222,7 @@ const judgeHasAddFunc = () => { const HeadButttondata = [ defaultButtons.defaultAddBtn({ hasPermi:'eam:device-inspection-job-main:create'}), // 新增 // defaultButtons.defaultImportBtn({ hasPermi:'eam:device-inspection-job-main:import'}), // 导入 - // defaultButtons.defaultExportBtn({ hasPermi:'eam:device-inspection-job-main:export'}), // 导出 + defaultButtons.defaultExportBtn(null), // 导出 defaultButtons.defaultFreshBtn(null), // 刷新 defaultButtons.defaultFilterBtn(null), // 筛选 defaultButtons.defaultSetBtn(null), // 设置 @@ -394,7 +394,7 @@ const handleExport = async () => { // 发起导出 exportLoading.value = true const data = await DeviceInspectionMainApi.exportDeviceInspectionMain(tableObject.params) - download.excel(data, '检修工单主.xlsx') + download.excel(data, '检修工单.xlsx') } catch { } finally { exportLoading.value = false