110 lines
2.1 KiB
JavaScript
110 lines
2.1 KiB
JavaScript
import request from '@/utils/request'
|
|
|
|
// 查询轮灌-轮灌方案 列表
|
|
export function getBatchControlList(landId) {
|
|
return request({
|
|
url: `/system/irrigateScenario/getBatchControlList/${landId}`,
|
|
method: 'get',
|
|
})
|
|
}
|
|
|
|
// 查询轮灌-轮灌方案 明细
|
|
export function getBatchControlInfo(id) {
|
|
return request({
|
|
url: `/system/irrigateScenario/getBatchControlInfo/${id}`,
|
|
method: 'get',
|
|
})
|
|
}
|
|
|
|
// 新增批量控制
|
|
export function saveBatchControl(data) {
|
|
return request({
|
|
url: '/system/irrigateScenario/saveBatchControl',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 删除批量控制
|
|
export function removeBatchControl(id) {
|
|
return request({
|
|
url: `/system/irrigateScenario/removeBatchControl/${id}`,
|
|
method: 'delete'
|
|
})
|
|
}
|
|
|
|
// 批量控制-开阀
|
|
export function batchControlExec(isMemory, groupId) {
|
|
return request({
|
|
url: `/system/irrigateScenario/batchControlExec/${isMemory}/${groupId}`,
|
|
method: 'get',
|
|
})
|
|
}
|
|
|
|
// 批量控制-关阀L
|
|
export function batchControlClose(groupId) {
|
|
return request({
|
|
url: `/system/irrigateScenario/batchControlClose/${groupId}`,
|
|
method: 'get',
|
|
})
|
|
}
|
|
|
|
// 批量控制-记忆
|
|
export function saveBatchControlAngle(groupId) {
|
|
return request({
|
|
url: `/system/irrigateScenario/saveBatchControlAngle/${groupId}`,
|
|
method: 'get',
|
|
})
|
|
}
|
|
|
|
|
|
|
|
// 查询轮灌-轮灌方案 列表
|
|
export function list(query) {
|
|
return request({
|
|
url: '/irrigate/irrigateScenario/list',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 查询轮灌-轮灌方案 详细
|
|
export function getIrrigateScenario(id) {
|
|
return request({
|
|
url: '/irrigate/irrigateScenario/' + id,
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 新增轮灌-轮灌方案
|
|
export function addIrrigateScenario(data) {
|
|
return request({
|
|
url: '/irrigate/irrigateScenario',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 修改轮灌-轮灌方案
|
|
export function updateIrrigateScenario(data) {
|
|
return request({
|
|
url: '/irrigate/irrigateScenario',
|
|
method: 'put',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 删除轮灌-轮灌方案
|
|
export function delIrrigateScenario(id) {
|
|
return request({
|
|
url: '/irrigate/irrigateScenario/' + id,
|
|
method: 'delete'
|
|
})
|
|
} |