Browse Source

筛选项导出添加

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

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

@ -48,8 +48,13 @@ export const deleteInspectionItem = async (id: number) => {
// 导出巡检项 Excel
export const exportInspectionItem = async (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 })
}
}
// 下载用户导入模板
export const importTemplate = () => {

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

@ -47,8 +47,14 @@ export const deleteSpotCheckItem = async (id: number) => {
// 导出点检项 Excel
export const exportSpotCheckItem = async (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 })
}
}
// 下载用户导入模板
export const importTemplate = () => {

Loading…
Cancel
Save