119 lines
2.5 KiB
JavaScript
119 lines
2.5 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 getBatchControlShareList(landId) {
|
|
return request({
|
|
url: `/system/irrigateScenario/getBatchControlShareList/${landId}`,
|
|
method: 'get',
|
|
})
|
|
}
|
|
|
|
// 保存批量控制分享
|
|
export function saveBatchControlShare(data) {
|
|
return request({
|
|
url: '/system/irrigateScenario/saveBatchControlShare',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
|
|
|
|
// 查询轮灌-轮灌方案 列表
|
|
export function list(query) {
|
|
return request({
|
|
url: '/system/irrigateScenario/list',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
// 新增轮灌-轮灌方案
|
|
export function saveIrrigateScenario(data) {
|
|
return request({
|
|
url: '/system/irrigateScenario/saveIrrigateScenario',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 查询轮灌-轮灌方案 详细
|
|
export function getIrrigateScenario(id) {
|
|
return request({
|
|
url: '/system/irrigateScenario/getInfo/' + id,
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 禁用轮灌-轮灌方案(逻辑)
|
|
export function disabled(id) {
|
|
return request({
|
|
url: `/system/irrigateScenario/disabled/${id}`,
|
|
method: 'delete'
|
|
})
|
|
}
|
|
|
|
// 启用轮灌-轮灌方案(逻辑)
|
|
export function enable(id) {
|
|
return request({
|
|
url: `/system/irrigateScenario/enable/${id}`,
|
|
method: 'delete'
|
|
})
|
|
} |