jsy-app/api/controlInterface.js

33 lines
742 B
JavaScript
Raw Normal View History

2024-11-27 18:46:21 +08:00
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
})
}