提交 | 用户 | 时间
|
fd2207
|
1 |
import request from '@/utils/request' |
懒 |
2 |
|
|
3 |
// 查询设备档案列表 |
|
4 |
export function listEquipmentArchives(query) { |
|
5 |
return request({ |
|
6 |
url: '/em/equipmentArchives/list', |
|
7 |
method: 'get', |
|
8 |
params: query |
|
9 |
}) |
|
10 |
} |
|
11 |
|
|
12 |
// 查询设备档案详细 |
|
13 |
export function getEquipmentArchives(id) { |
|
14 |
return request({ |
|
15 |
url: '/em/equipmentArchives/' + id, |
|
16 |
method: 'get' |
|
17 |
}) |
|
18 |
} |
|
19 |
|
|
20 |
// 新增设备档案 |
|
21 |
export function addEquipmentArchives(data) { |
|
22 |
return request({ |
|
23 |
url: '/em/equipmentArchives', |
|
24 |
method: 'post', |
|
25 |
data: data |
|
26 |
}) |
|
27 |
} |
|
28 |
|
|
29 |
// 修改设备档案 |
|
30 |
export function updateEquipmentArchives(data) { |
|
31 |
return request({ |
|
32 |
url: '/em/equipmentArchives', |
|
33 |
method: 'put', |
|
34 |
data: data |
|
35 |
}) |
|
36 |
} |
|
37 |
|
|
38 |
// 删除设备档案 |
|
39 |
export function delEquipmentArchives(id) { |
|
40 |
return request({ |
|
41 |
url: '/em/equipmentArchives/' + id, |
|
42 |
method: 'delete' |
|
43 |
}) |
|
44 |
} |