import axios from '@/common/network/request.js'; //分页查询设备列表 export function getDevicePage(data) { return axios({ url: '/terminal/doPagedQuery', method: 'POST', params: { }, }) } //条件查询设备列表 export function getDeviceAll(productname) { return axios({ url: '/terminal/execute.do', method: 'POST', params: { 'lineName':productname, }, }) } //查询设备状态 export function getDeviceStatus(device_uuid) { return axios({ url: '/terminal/doLoadData.do', method: 'POST', params: { 'id':device_uuid }, }) } //查询设备图片 export function getDeviceImg(device_uuid) { return axios({ url: '/terminal/getImg.do', method: 'GET', params: { 'comid':device_uuid, 'imgnum':1 }, }) } //查询集中器中所有设备图表信息(正常和异常) export function getDeviceInfoEchart(data) { return axios({ url: '/terminal/getdeviceinfoechart.do', method: 'POST', params: { 'terminalId':data }, }) } //查询集中器中所有设备故障图表信息 export function getDeviceErrorEchart(data) { return axios({ url: '/terminal/getdeviceerrorechart.do', method: 'POST', params: { 'terminalId':data }, }) } //查询集中器中主照度传感器照度值 export function getIlluminanceinfoEchart(data) { return axios({ url: '/terminal/getIlluminanceinfoechart.do', method: 'POST', params: { 'id':data.terminalId, 'starttime':data.starttime, 'endtime':data.endtime, }, }) } //查询集中器中所有电能统计 export function getEnergyinfoEchart(data) { return axios({ url: '/terminal/getenergyinfoechart.do', method: 'POST', params: { 'id':data.terminalId, 'starttime':data.starttime, 'endtime':data.endtime, }, }) }