33 lines
742 B
JavaScript
33 lines
742 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
|
|
})
|
|
} |