From 010ce04ba6e27f2bd603cec692d2695d7a8a3c1f Mon Sep 17 00:00:00 2001 From: web <candymxq888@outlook.com> Date: 星期三, 07 五月 2025 08:38:18 +0800 Subject: [PATCH] fix:修改水温深度监测 --- src/api/facility/point.js | 23 ++++++++--------------- 1 files changed, 8 insertions(+), 15 deletions(-) diff --git a/src/api/facility/point.js b/src/api/facility/point.js index 72128db..db5afd1 100644 --- a/src/api/facility/point.js +++ b/src/api/facility/point.js @@ -29,18 +29,6 @@ method: 'post' }); }, - stop: (id) => { - return publicRequest({ - url: `/waterMonitoryPoint/stop?id=${id}`, - method: 'post' - }); - }, - enable: (id) => { - return publicRequest({ - url: `/waterMonitoryPoint/enable?id=${id}`, - method: 'post' - }); - }, search: (data) => { return publicRequest({ url: '/waterMonitoryPoint/search', @@ -48,12 +36,17 @@ data }); }, - getList: (data) => { + get: (id) => { return publicRequest({ - url: `/waterMonitoryPoint/getList`, + url: `/waterMonitoryPoint/get?id=${id}`, method: 'get', - data }); }, + getParentPoint: () => { + return publicRequest({ + url: 'waterMonitoryPoint/getListTree', + method: 'get', + }) + } }; } -- Gitblit v1.9.3