选煤厂生产管理平台前端代码
dongyukun
2024-12-11 0b04a185a54444b72151eabf71164008712fb80d
src/api/prod/hourVolume.ts
@@ -25,40 +25,40 @@
// 查询HourVolume列表
export const getHourVolumePage = (params: HourVolumePageReqVO) => {
  return request.get({ url: '/prod/wash/hourVolume/page', params })
  return request.get({ url: '/xmcpms/prod/wash/hourVolume/page', params })
}
// 查询HourVolume列表
export const getPointList = (params: HourVolumePageReqVO) => {
  return request.get({ url: '/prod/wash/hourVolume/list', params })
  return request.get({ url: '/xmcpms/prod/wash/hourVolume/list', params })
}
// 查询HourVolume详情
export const getHourVolume = (id: number) => {
  return request.get({ url: `/prod/wash/hourVolume/info/${id}`})
  return request.get({ url: `/xmcpms/prod/wash/hourVolume/info/${id}`})
}
// 新增HourVolume
export const createHourVolume = (data: HourVolumeVO) => {
  return request.post({ url: '/prod/wash/hourVolume/create', data })
  return request.post({ url: '/xmcpms/prod/wash/hourVolume/create', data })
}
// 修改HourVolume
export const updateHourVolume = (data: HourVolumeVO) => {
  return request.put({ url: '/prod/wash/hourVolume/update', data })
  return request.put({ url: '/xmcpms/prod/wash/hourVolume/update', data })
}
// 删除HourVolume
export const deleteHourVolume = (id: number) => {
  return request.delete({ url: '/prod/wash/hourVolume/delete?id=' + id })
  return request.delete({ url: '/xmcpms/prod/wash/hourVolume/delete?id=' + id })
}
//导出HourVolumeList
export const exportHourVolume = (params) => {
  return request.download({ url: '/prod/wash/hourVolume/export', params })
  return request.download({ url: '/xmcpms/prod/wash/hourVolume/export', params })
}
// 下载用户导入模板
export const importPointTemplate = () => {
  return request.download({ url: '/prod/wash/hourVolume/get-import-template' })
  return request.download({ url: '/xmcpms/prod/wash/hourVolume/get-import-template' })
}