选煤厂生产管理平台前端代码
dongyukun
9 天以前 3a3fa4d07904aaaeb2ca79b6c57359fc1a2da843
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import request from '@/config/axios'
 
export interface RunTimeVO {
  id: string
  rq: string,
  bc: string,
  lsh: string,
  scxm: string,
  runTimeType: string,
  xss: number,
  fzs: number,
  bz: string
}
 
export interface RunTimePageReqVO extends PageParam {
 
}
 
// 查询RunTime列表
export const getRunTimePage = (params: RunTimePageReqVO) => {
  return request.get({ url: '/xmcpms/prod/device/runTime/page', params })
}
 
// 查询RunTime列表
export const getPointList = (params: RunTimePageReqVO) => {
  return request.get({ url: '/xmcpms/prod/device/runTime/list', params })
}
 
// 查询RunTime详情
export const getRunTime = (id: number) => {
  return request.get({ url: `/xmcpms/prod/device/runTime/info/${id}`})
}
 
// 新增RunTime
export const createRunTime = (data: RunTimeVO) => {
  return request.post({ url: '/xmcpms/prod/device/runTime/create', data })
}
 
// 修改RunTime
export const updateRunTime = (data: RunTimeVO) => {
  return request.put({ url: '/xmcpms/prod/device/runTime/update', data })
}
 
// 删除RunTime
export const deleteRunTime = (id: number) => {
  return request.delete({ url: '/xmcpms/prod/device/runTime/delete?id=' + id })
}
 
//导出RunTimeList
export const exportRunTime = (params) => {
  return request.download({ url: '/xmcpms/prod/device/runTime/export', params })
}
 
// 下载用户导入模板
export const importPointTemplate = () => {
  return request.download({ url: '/xmcpms/prod/device/runTime/get-import-template' })
}