选煤厂生产管理平台前端代码
dongyukun
2024-12-11 c3134fc7e80387bd042bc6054b1d1a151524ba39
提交 | 用户 | 时间
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) => {
c3134f 21   return request.get({ url: '/xmcpms/order-prod/device/runTime/page', params })
5cc1d9 22 }
D 23
24 // 查询RunTime列表
25 export const getPointList = (params: RunTimePageReqVO) => {
c3134f 26   return request.get({ url: '/xmcpms/order-prod/device/runTime/list', params })
5cc1d9 27 }
D 28
29 // 查询RunTime详情
30 export const getRunTime = (id: number) => {
0b04a1 31   return request.get({ url: `/xmcpms/prod/device/runTime/info/${id}`})
5cc1d9 32 }
D 33
34 // 新增RunTime
35 export const createRunTime = (data: RunTimeVO) => {
c3134f 36   return request.post({ url: '/xmcpms/order-prod/device/runTime/create', data })
5cc1d9 37 }
D 38
39 // 修改RunTime
40 export const updateRunTime = (data: RunTimeVO) => {
c3134f 41   return request.put({ url: '/xmcpms/order-prod/device/runTime/update', data })
5cc1d9 42 }
D 43
44 // 删除RunTime
45 export const deleteRunTime = (id: number) => {
c3134f 46   return request.delete({ url: '/xmcpms/order-prod/device/runTime/delete?id=' + id })
5cc1d9 47 }
D 48
49 //导出RunTimeList
50 export const exportRunTime = (params) => {
c3134f 51   return request.download({ url: '/xmcpms/order-prod/device/runTime/export', params })
5cc1d9 52 }
D 53
54 // 下载用户导入模板
55 export const importPointTemplate = () => {
c3134f 56   return request.download({ url: '/xmcpms/order-prod/device/runTime/get-import-template' })
5cc1d9 57 }