|
@ -48,8 +48,13 @@ export const deleteBasicFaultType = async (id: number) => { |
|
|
|
|
|
|
|
|
// 导出故障类型 Excel
|
|
|
// 导出故障类型 Excel
|
|
|
export const exportBasicFaultType = async (params) => { |
|
|
export const exportBasicFaultType = async (params) => { |
|
|
|
|
|
if (params.isSearch) { |
|
|
|
|
|
const data = {...params} |
|
|
|
|
|
return await request.downloadPost({ url: `/eam/basic-fault-type/export-excel-senior`, data }) |
|
|
|
|
|
}else{ |
|
|
return await request.download({ url: `/eam/basic-fault-type/export-excel`, params }) |
|
|
return await request.download({ url: `/eam/basic-fault-type/export-excel`, params }) |
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// 下载用户导入模板
|
|
|
// 下载用户导入模板
|
|
|
export const importTemplate = () => { |
|
|
export const importTemplate = () => { |
|
|