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