|
@ -48,8 +48,13 @@ export const deleteEquipmentMainPart = async (id: number) => { |
|
|
|
|
|
|
|
|
// 导出主要部件 Excel
|
|
|
// 导出主要部件 Excel
|
|
|
export const exportEquipmentMainPart = async (params) => { |
|
|
export const exportEquipmentMainPart = async (params) => { |
|
|
|
|
|
if (params.isSearch) { |
|
|
|
|
|
const data = {...params} |
|
|
|
|
|
return await request.downloadPost({ url: `/eam/equipment-main-part/export-excel-senior`, data }) |
|
|
|
|
|
}else{ |
|
|
return await request.download({ url: `/eam/equipment-main-part/export-excel`, params }) |
|
|
return await request.download({ url: `/eam/equipment-main-part/export-excel`, params }) |
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// 下载用户导入模板
|
|
|
// 下载用户导入模板
|
|
|
export const importTemplate = () => { |
|
|
export const importTemplate = () => { |
|
|