Browse Source

筛选项导出添加

master_hella_20240701
ljlong_2630 6 months ago
parent
commit
e98baf8d52
  1. 7
      src/api/eam/inspectionItem/index.ts
  2. 8
      src/api/eam/spotCheckItem/index.ts

7
src/api/eam/inspectionItem/index.ts

@ -48,7 +48,12 @@ export const deleteInspectionItem = async (id: number) => {
// 导出巡检项 Excel
export const exportInspectionItem = async (params) => {
return await request.download({ url: `/eam/basic/inspection-item/export-excel`, params })
if (params.isSearch) {
const data = { ...params }
return await request.downloadPost({ url: `/eam/basic/inspection-item/export-excel-senior`, data })
} else {
return await request.download({ url: `/eam/basic/inspection-item/export-excel`, params })
}
}
// 下载用户导入模板

8
src/api/eam/spotCheckItem/index.ts

@ -47,7 +47,13 @@ export const deleteSpotCheckItem = async (id: number) => {
// 导出点检项 Excel
export const exportSpotCheckItem = async (params) => {
return await request.download({ url: `/eam/basic/spot-check-item/export-excel`, params })
if (params.isSearch) {
delete params.isSearch
const data = { ...params }
return await request.downloadPost({ url: `/eam/basic/spot-check-item/export-excel-senior`, data })
} else {
return await request.download({ url: `/eam/basic/spot-check-item/export-excel`, params })
}
}
// 下载用户导入模板

Loading…
Cancel
Save