device.js
660 Bytes
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
import service from "../axios"
import deviceUrls from "../urls/device"
export default {
// 下载设备模板
downDevice(data) {
return service({
url: deviceUrls.downDevice,
method: 'POST',
data
})
},
// 设备列表
fetchDeviceList(data) {
return service({
url: deviceUrls.deviceList,
method: 'POST',
data
})
},
// autoUpDate
autoUpDate(data) {
return service({
url: deviceUrls.autoUpDate,
method: 'POST',
data
})
},
// 设备列表
stopUpdate(data) {
return service({
url: deviceUrls.stopUpdate,
method: 'POST',
data
})
},
}