From 052ee1f9c0b9e2bc8bbd4cf135ae45fed7422023 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期一, 28 十月 2024 10:36:28 +0800
Subject: [PATCH] #

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

diff --git a/zy-acs-flow/src/map/http.js b/zy-acs-flow/src/map/http.js
index 5fa8812..895a3b4 100644
--- a/zy-acs-flow/src/map/http.js
+++ b/zy-acs-flow/src/map/http.js
@@ -75,7 +75,7 @@
     mapContainer.children.forEach(child => {
         if (child.data?.uuid) {
             const { type, uuid, no, ...property } = child.data;
-            if (type !== DEVICE_TYPE.AGV && type !== DEVICE_TYPE.POINT) {
+            if (type !== DEVICE_TYPE.AGV && type !== DEVICE_TYPE.POINT && type !== DEVICE_TYPE.ROUTE) {
                 sprites.push({
                     // graph
                     positionX: child.position.x,
@@ -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