44 lines
1.6 KiB
TypeScript
44 lines
1.6 KiB
TypeScript
import request from '@/config/axios'
|
|
|
|
|
|
|
|
//分页查询设备列表 看板信息设备目前用的是这个
|
|
export const deviceInformationPage = async (params) => {
|
|
return await request.get({ url: `/system/device/information/page`, params })
|
|
}
|
|
//统计车辆待命-任务中-离线
|
|
export const robotInformationStatistics = async (data) => {
|
|
return await request.post({ url: `/system/robot/information/statistics`, data })
|
|
}
|
|
|
|
// 创建设备信息
|
|
export const deviceInformationCreate = async (data) => {
|
|
return await request.post({ url: `/system/device/information/create`, data })
|
|
}
|
|
// 编辑设备信息
|
|
export const deviceInformationUpdate = async (data) => {
|
|
return await request.put({ url: `/system/device/information/update`, data })
|
|
}
|
|
// 地图绑定设备
|
|
export const deviceInformationGet = async (params) => {
|
|
return await request.get({ url: `/system/device/information/get`, params })
|
|
}
|
|
|
|
//删除设备信息
|
|
export const deleteDeviceInformation = async (id: number) => {
|
|
return await request.delete({ url: `/system/device/information/delete?id=` + id })
|
|
}
|
|
// 获取设备列表
|
|
export const deviceNumber = async (params) => {
|
|
return await request.get({ url: `/system/device/information/deviceNumber`, params })
|
|
}
|
|
|
|
// 获取设备列表 新不分页
|
|
export const deviceGetInformationList = async (params) => {
|
|
return await request.get({ url: `/system/device/information/getInformationList`, params })
|
|
}
|
|
// 获取设备列表
|
|
export const getMapDeviceImageUrl = async (params) => {
|
|
return await request.get({ url: `/system/device/information/getMapImageUrl`, params })
|
|
}
|