47 lines
978 B
JavaScript
47 lines
978 B
JavaScript
import request from '@/utils/request'
|
|
|
|
// 查询出水口树
|
|
export function getList(id) {
|
|
return request({
|
|
url: '/system/controlInterface/list/' + id,
|
|
method: 'get'
|
|
})
|
|
}
|
|
// 基站刷新
|
|
export function stationRefresh(data) {
|
|
return request({
|
|
url: '/system/operation/deviceStation/refresh',
|
|
method: "post",
|
|
data: data
|
|
})
|
|
}
|
|
// 阀门刷新
|
|
export function valveRefresh(data) {
|
|
return request({
|
|
url: '/system/operation/deviceValve/refresh',
|
|
method: "post",
|
|
data: data
|
|
})
|
|
}
|
|
// 阀门控制
|
|
export function valveControl(data) {
|
|
return request({
|
|
url: '/system/operation/deviceValve/control',
|
|
method: "post",
|
|
data: data
|
|
})
|
|
}
|
|
// 一键刷新
|
|
export function refreshAllValve(id) {
|
|
return request({
|
|
url: '/system/controlInterface/refreshAllValve/' + id,
|
|
method: 'get'
|
|
})
|
|
}
|
|
// 刷新控制中的阀门
|
|
export function refreshControllingValve(id) {
|
|
return request({
|
|
url: '/system/controlInterface/refreshControllingValve/' + id,
|
|
method: 'get'
|
|
})
|
|
} |