From e3feb2116664e90e1e4b1dfc4e9d6db85c8e47d2 Mon Sep 17 00:00:00 2001 From: Iruka <1017819588@qq.com> Date: Fri, 24 Jan 2025 12:00:18 +0800 Subject: [PATCH] . --- api/irrigate/irrigateScenario.js | 19 ++++++++++++++++++- pages/batch-control/share.vue | 3 ++- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/api/irrigate/irrigateScenario.js b/api/irrigate/irrigateScenario.js index a4cc5a8..bab587d 100644 --- a/api/irrigate/irrigateScenario.js +++ b/api/irrigate/irrigateScenario.js @@ -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' }) -} +} \ No newline at end of file diff --git a/pages/batch-control/share.vue b/pages/batch-control/share.vue index 1bc7746..c2c0ec3 100644 --- a/pages/batch-control/share.vue +++ b/pages/batch-control/share.vue @@ -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 {