选煤厂生产管理平台前端代码
dongyukun
2024-12-12 73d7500457564a3f5b1aae94ef18fd295e9f4f9c
src/api/prod/prodAccident.ts
@@ -10,40 +10,40 @@
// 查询ProdAccident列表
export const getProdAccidentPage = (params: ProdAccidentPageReqVO) => {
  return request.get({ url: '/xmcpms/work/prodAccident/page', params })
  return request.get({ url: '/xmcpms/prod/work/prodAccident/page', params })
}
// 查询ProdAccident列表
export const getPointList = (params: ProdAccidentPageReqVO) => {
  return request.get({ url: '/xmcpms/work/prodAccident/list', params })
  return request.get({ url: '/xmcpms/prod/work/prodAccident/list', params })
}
// 查询ProdAccident详情
export const getProdAccident = (id: number) => {
  return request.get({ url: `/xmcpms/prod/work/prodAccident/info/${id}`})
  return request.get({ url: `/xmcpms/prod/prod/work/prodAccident/info/${id}`})
}
// 新增ProdAccident
export const createProdAccident = (data: ProdAccidentVO) => {
  return request.post({ url: '/xmcpms/work/prodAccident/create', data })
  return request.post({ url: '/xmcpms/prod/work/prodAccident/create', data })
}
// 修改ProdAccident
export const updateProdAccident = (data: ProdAccidentVO) => {
  return request.put({ url: '/xmcpms/work/prodAccident/update', data })
  return request.put({ url: '/xmcpms/prod/work/prodAccident/update', data })
}
// 删除ProdAccident
export const deleteProdAccident = (id: number) => {
  return request.delete({ url: '/xmcpms/work/prodAccident/delete?id=' + id })
  return request.delete({ url: '/xmcpms/prod/work/prodAccident/delete?id=' + id })
}
//导出ProdAccidentList
export const exportProdAccident = (params) => {
  return request.download({ url: '/xmcpms/work/prodAccident/export', params })
  return request.download({ url: '/xmcpms/prod/work/prodAccident/export', params })
}
// 下载用户导入模板
export const importPointTemplate = () => {
  return request.download({ url: '/xmcpms/work/prodAccident/get-import-template' })
  return request.download({ url: '/xmcpms/prod/work/prodAccident/get-import-template' })
}