|
|
|
import request from '@/utils/request'
|
|
|
|
|
|
|
|
/** 获取设备*/
|
|
|
|
export function getDevice() {
|
|
|
|
return request.get('/control/manual/deviceStatusList')
|
|
|
|
}
|
|
|
|
/** 获取可控设备*/
|
|
|
|
export function getControlDeviceList() {
|
|
|
|
return request.get('/control/manual/controlDeviceList')
|
|
|
|
}
|
|
|
|
/** 获取调控日志列表*/
|
|
|
|
export function getControlLogList(data) {
|
|
|
|
return request.post('/control/manual/controlLogList',data)
|
|
|
|
}
|
|
|
|
/** 获取策略列表*/
|
|
|
|
export function getStrategyList() {
|
|
|
|
return request.get('/control/manual/strategyList')
|
|
|
|
}
|
|
|
|
/** 控制设备启停*/
|
|
|
|
export function getStartAndStop(data) {
|
|
|
|
return request.post('/control/manual/startAndStop',data)
|
|
|
|
}
|
|
|
|
/** 设置温度*/
|
|
|
|
export function getSetTemperature(data) {
|
|
|
|
return request.post('/control/manual/setTemperature',data)
|
|
|
|
}
|
|
|
|
/** 策略执行控制*/
|
|
|
|
export function getSenceControl(data) {
|
|
|
|
return request.post('/control/manual/senceControl',data)
|
|
|
|
}
|
|
|
|
/** 策略执行反馈*/
|
|
|
|
export function ControlInfo(data) {
|
|
|
|
return request.post('/analyse/nhdb/strategyRes?strategyCode='+data)
|
|
|
|
}
|