You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
99 lines
2.1 KiB
99 lines
2.1 KiB
import request from '@/utils/request'
|
|
|
|
// 获取区域树
|
|
export function FetchRegionTree(params) {
|
|
return request({
|
|
url: 'api/device/getRegionTree',
|
|
method: 'get',
|
|
params
|
|
})
|
|
}
|
|
|
|
// 设备列表
|
|
export function FetchinitDeviceInfoList(params) {
|
|
return request({
|
|
url: 'api/device/initDeviceInfoList',
|
|
method: 'get',
|
|
params
|
|
})
|
|
}
|
|
|
|
export function add(data) {
|
|
return request({
|
|
url: 'api/device/editDeviceInfo',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function edit(data) {
|
|
return request({
|
|
url: 'api/device/editDeviceInfo',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function del(data) {
|
|
return request({
|
|
url: 'api/device/delDeviceInfo',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
// 通过设备id获取设备详情
|
|
export function FetchDeviceById(params) {
|
|
return request({
|
|
url: 'api/device/getDeviceById',
|
|
method: 'get',
|
|
params
|
|
})
|
|
}
|
|
|
|
// 摄像头绑定书架
|
|
export function FetchDeviceShelfGridBinding(data) {
|
|
return request({
|
|
url: 'api/device/deviceShelfGridBinding',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
// 根据设备和条件获取已绑定书架
|
|
export function FetchBoundGridByDevice(params) {
|
|
return request({
|
|
url: 'api/device/getBoundGridByDevice',
|
|
method: 'get',
|
|
params
|
|
})
|
|
}
|
|
|
|
// 根据条件获取未绑定书架
|
|
export function FetchUnboundGrid(params) {
|
|
return request({
|
|
url: 'api/device/getUnboundGrid',
|
|
method: 'get',
|
|
params
|
|
})
|
|
}
|
|
|
|
// 根据摄像头信息获取摄像头状态2export function FetchBoundGridByDevice(params) {
|
|
export function FetchPingIP(params) {
|
|
return request({
|
|
url: 'api/queryDeviceAPI/pingIP',
|
|
method: 'get',
|
|
params
|
|
})
|
|
}
|
|
|
|
// 根据设备类别获取设备树
|
|
export function FetchDeviceTreeByType(params) {
|
|
return request({
|
|
url: 'api/device/getDeviceTreeByType',
|
|
method: 'get',
|
|
params
|
|
})
|
|
}
|
|
|
|
export default { add, edit, del, FetchRegionTree, FetchinitDeviceInfoList, FetchDeviceById, FetchDeviceShelfGridBinding, FetchBoundGridByDevice, FetchUnboundGrid, FetchPingIP, FetchDeviceTreeByType }
|