提交 | 用户 | 时间
|
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) => { |
373c50
|
21 |
return request.get({ url: '/xmcpms/device/runTime/page', params }) |
5cc1d9
|
22 |
} |
D |
23 |
|
|
24 |
// 查询RunTime列表 |
|
25 |
export const getPointList = (params: RunTimePageReqVO) => { |
373c50
|
26 |
return request.get({ url: '/xmcpms/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) => { |
373c50
|
36 |
return request.post({ url: '/xmcpms/device/runTime/create', data }) |
5cc1d9
|
37 |
} |
D |
38 |
|
|
39 |
// 修改RunTime |
|
40 |
export const updateRunTime = (data: RunTimeVO) => { |
373c50
|
41 |
return request.put({ url: '/xmcpms/device/runTime/update', data }) |
5cc1d9
|
42 |
} |
D |
43 |
|
|
44 |
// 删除RunTime |
|
45 |
export const deleteRunTime = (id: number) => { |
373c50
|
46 |
return request.delete({ url: '/xmcpms/device/runTime/delete?id=' + id }) |
5cc1d9
|
47 |
} |
D |
48 |
|
|
49 |
//导出RunTimeList |
|
50 |
export const exportRunTime = (params) => { |
373c50
|
51 |
return request.download({ url: '/xmcpms/device/runTime/export', params }) |
5cc1d9
|
52 |
} |
D |
53 |
|
|
54 |
// 下载用户导入模板 |
|
55 |
export const importPointTemplate = () => { |
373c50
|
56 |
return request.download({ url: '/xmcpms/device/runTime/get-import-template' }) |
5cc1d9
|
57 |
} |