From 8f36a203bbee6c74c6531331a7cf00572120bfab Mon Sep 17 00:00:00 2001 From: web <candymxq888@outlook.com> Date: 星期日, 27 四月 2025 17:28:59 +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