|
@ -49,7 +49,12 @@ export const deleteBasicFaultCause = async (id: number) => { |
|
|
|
|
|
|
|
|
// 导出故障原因 Excel
|
|
|
// 导出故障原因 Excel
|
|
|
export const exportBasicFaultCause = async (params) => { |
|
|
export const exportBasicFaultCause = async (params) => { |
|
|
|
|
|
if (params.isSearch) { |
|
|
|
|
|
const data = {...params} |
|
|
|
|
|
return await request.downloadPost({ url: `/eam/basic-fault-cause/export-excel-senior`, data }) |
|
|
|
|
|
}else{ |
|
|
return await request.download({ url: `/eam/basic-fault-cause/export-excel`, params }) |
|
|
return await request.download({ url: `/eam/basic-fault-cause/export-excel`, params }) |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
// 下载用户导入模板
|
|
|
// 下载用户导入模板
|
|
|