选煤厂生产管理平台前端代码
dongyukun
2024-12-12 373c500356889c6c0eac99a08dfa5a85bfe97c7d
src/api/prod/runTime.ts
@@ -18,12 +18,12 @@
// 查询RunTime列表
export const getRunTimePage = (params: RunTimePageReqVO) => {
  return request.get({ url: '/xmcpms/order-prod/device/runTime/page', params })
  return request.get({ url: '/xmcpms/device/runTime/page', params })
}
// 查询RunTime列表
export const getPointList = (params: RunTimePageReqVO) => {
  return request.get({ url: '/xmcpms/order-prod/device/runTime/list', params })
  return request.get({ url: '/xmcpms/device/runTime/list', params })
}
// 查询RunTime详情
@@ -33,25 +33,25 @@
// 新增RunTime
export const createRunTime = (data: RunTimeVO) => {
  return request.post({ url: '/xmcpms/order-prod/device/runTime/create', data })
  return request.post({ url: '/xmcpms/device/runTime/create', data })
}
// 修改RunTime
export const updateRunTime = (data: RunTimeVO) => {
  return request.put({ url: '/xmcpms/order-prod/device/runTime/update', data })
  return request.put({ url: '/xmcpms/device/runTime/update', data })
}
// 删除RunTime
export const deleteRunTime = (id: number) => {
  return request.delete({ url: '/xmcpms/order-prod/device/runTime/delete?id=' + id })
  return request.delete({ url: '/xmcpms/device/runTime/delete?id=' + id })
}
//导出RunTimeList
export const exportRunTime = (params) => {
  return request.download({ url: '/xmcpms/order-prod/device/runTime/export', params })
  return request.download({ url: '/xmcpms/device/runTime/export', params })
}
// 下载用户导入模板
export const importPointTemplate = () => {
  return request.download({ url: '/xmcpms/order-prod/device/runTime/get-import-template' })
  return request.download({ url: '/xmcpms/device/runTime/get-import-template' })
}