|
|
|
import request from '@/utils/request'
|
|
|
|
//总电表
|
|
|
|
export function getData(data) {
|
|
|
|
return request.get('/monitor/db/index/sel1/'+data)
|
|
|
|
}
|
|
|
|
export function getZdb(data) {
|
|
|
|
return request.get('/monitor/db/index/sel2/'+data)
|
|
|
|
}
|
|
|
|
//电热锅炉
|
|
|
|
export function getDrgl(data) {
|
|
|
|
return request.get('/monitor/drgl/index/sel1/'+data)
|
|
|
|
}
|
|
|
|
export function getDcgl(data) {
|
|
|
|
return request.get('/monitor/drgl/index/sel2/'+data)
|
|
|
|
}
|
|
|
|
//蓄热锅炉
|
|
|
|
export function getXrgl(data) {
|
|
|
|
return request.get('/monitor/xrgl/index/sel1/'+data)
|
|
|
|
}
|
|
|
|
export function getXcgl(data) {
|
|
|
|
return request.get('/monitor/xrgl/index/sel2/'+data)
|
|
|
|
}
|
|
|
|
//空气热源泵
|
|
|
|
export function getKqryb(data) {
|
|
|
|
return request.get('/monitor/kqyrb/index/sel1/'+data)
|
|
|
|
}
|
|
|
|
export function getKqyrb(data) {
|
|
|
|
return request.get('/monitor/kqyrb/index/sel2/'+data)
|
|
|
|
}
|
|
|
|
//发热电缆
|
|
|
|
export function getFrdl(data) {
|
|
|
|
return request.get('/monitor/frdl/index/sel1/'+data)
|
|
|
|
}
|
|
|
|
export function getFrld(data) {
|
|
|
|
return request.get('/monitor/frdl/index/sel2/'+data)
|
|
|
|
}
|
|
|
|
//温度传感器
|
|
|
|
export function getWdcgq(data) {
|
|
|
|
return request.get('/monitor/wdcgq/index/sel1/'+data)
|
|
|
|
}
|
|
|
|
//沙盘
|
|
|
|
export function getSp(data) {
|
|
|
|
return request.get('monitor/sp/index/sel1/'+data)
|
|
|
|
}
|
|
|
|
//策略管理
|
|
|
|
export function getXl() {
|
|
|
|
return request.get('system/cl/index/selMyscene')
|
|
|
|
}
|
|
|
|
export function getTb(data) {
|
|
|
|
return request.post('system/cl/index/list',data)
|
|
|
|
}
|
|
|
|
export function postNew(data) {
|
|
|
|
return request.post('system/cl/index',data)
|
|
|
|
}
|
|
|
|
export function postXg(data) {
|
|
|
|
return request.put('system/cl/index',data)
|
|
|
|
}
|
|
|
|
export function postDel(data) {
|
|
|
|
return request.post('system/cl/index/del',data)
|
|
|
|
}
|
|
|
|
//获取用户设备列表
|
|
|
|
export function getSb() {
|
|
|
|
return request.get('/monitor/db/index/selMydevices')
|
|
|
|
}
|