2024-11-27 18:46:21 +08:00
|
|
|
import request from '@/utils/request'
|
|
|
|
|
|
|
|
// 查询出水口树
|
2025-01-16 15:36:52 +08:00
|
|
|
export function getList(id) {
|
|
|
|
return request({
|
|
|
|
url: '/system/controlInterface/list/' + id,
|
|
|
|
method: 'get'
|
|
|
|
})
|
2024-11-27 18:46:21 +08:00
|
|
|
}
|
|
|
|
// 基站刷新
|
2025-01-16 15:36:52 +08:00
|
|
|
export function stationRefresh(data) {
|
|
|
|
return request({
|
|
|
|
url: '/system/operation/deviceStation/refresh',
|
|
|
|
method: "post",
|
|
|
|
data: data
|
|
|
|
})
|
2024-11-27 18:46:21 +08:00
|
|
|
}
|
|
|
|
// 阀门刷新
|
2025-01-16 15:36:52 +08:00
|
|
|
export function valveRefresh(data) {
|
|
|
|
return request({
|
|
|
|
url: '/system/operation/deviceValve/refresh',
|
|
|
|
method: "post",
|
|
|
|
data: data
|
|
|
|
})
|
2024-11-27 18:46:21 +08:00
|
|
|
}
|
|
|
|
// 阀门控制
|
2025-01-16 15:36:52 +08:00
|
|
|
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'
|
|
|
|
})
|
2025-02-11 16:26:35 +08:00
|
|
|
}
|
|
|
|
// 刷新控制中的阀门
|
|
|
|
export function refreshControllingValve(id) {
|
|
|
|
return request({
|
|
|
|
url: '/system/controlInterface/refreshControllingValve/' + id,
|
|
|
|
method: 'get'
|
|
|
|
})
|
2024-11-27 18:46:21 +08:00
|
|
|
}
|