This commit is contained in:
Iruka 2025-01-24 12:00:18 +08:00
parent 1449771944
commit e3feb21166
2 changed files with 20 additions and 2 deletions

View File

@ -57,6 +57,23 @@ export function saveBatchControlAngle(groupId) {
})
}
// 查询轮灌-轮灌方案 列表
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
})
}
// 查询轮灌-轮灌方案 列表
@ -99,4 +116,4 @@ export function enable(id) {
url: `/system/irrigateScenario/enable/${id}`,
method: 'delete'
})
}
}

View File

@ -75,7 +75,8 @@
mounted() {},
methods: {
queryList() {
isApi.getBatchControlList(this.landId).then(res => {
isApi.getBatchControlShareList(this.landId).then(res => {
console.error(res);
if (res.data) {
this.$refs.paging.completeByTotal(res.data.groups || []);
} else {