From a8e98d400e784df056e5ffb3228d859d6fef6b0f Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期六, 19 十月 2024 16:11:07 +0800
Subject: [PATCH] #

---
 zy-acs-flow/src/map/http.js |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/zy-acs-flow/src/map/http.js b/zy-acs-flow/src/map/http.js
index 5fa8812..f78cfe5 100644
--- a/zy-acs-flow/src/map/http.js
+++ b/zy-acs-flow/src/map/http.js
@@ -181,6 +181,24 @@
     })
 }
 
+export const getRouteList = async (zoneId, callback) => {
+    await request.post('/map/route/list', {
+        zoneId: zoneId,
+    }, {
+        headers: { 'Content-Type': 'application/x-www-form-urlencoded' }
+    }).then((res) => {
+        const { code, msg, data } = res.data;
+        if (code === 200) {
+            callback(data)
+        } else {
+            notify.error(msg);
+        }
+    }).catch((error) => {
+        notify.error(error.message);
+        console.error(error.message);
+    })
+}
+
 
 export const handleControlAgv = async (param, callback) => {
     await request.post('/handler/control/agv', param, {

--
Gitblit v1.9.1