From 1bc33546a044cbc84dd9595c19dbcd9a4e309fc9 Mon Sep 17 00:00:00 2001
From: vincentlu <t1341870251@gmail.com>
Date: 星期六, 10 一月 2026 14:06:10 +0800
Subject: [PATCH] #

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

diff --git a/zy-acs-flow/src/map/http.js b/zy-acs-flow/src/map/http.js
index 27de2c1..4754b48 100644
--- a/zy-acs-flow/src/map/http.js
+++ b/zy-acs-flow/src/map/http.js
@@ -430,3 +430,50 @@
     }
     return null;
 }
+
+export const updateAreaData = async (payload = {}) => {
+    try {
+        const res = await request.post('/map/area/update', payload);
+        const { code, msg, data } = res.data;
+        if (code === 200) {
+            notify.success(msg);
+            return data;
+        }
+        notify.error(msg);
+    } catch (error) {
+        notify.error(error.message);
+        console.error(error.message);
+    }
+    return null;
+};
+
+export const removeArea = async (id) => {
+    try {
+        const res = await request.post('/map/area/remove', { id });
+        const { code, msg } = res.data;
+        if (code === 200) {
+            notify.success(msg);
+            return true;
+        }
+        notify.error(msg);
+    } catch (error) {
+        notify.error(error.message);
+        console.error(error.message);
+    }
+    return false;
+};
+
+export const fetchAgvListAll = async () => {
+    try {
+        const res = await request.post('/agv/list', {});
+        const { code, msg, data } = res.data;
+        if (code === 200) {
+            return data || [];
+        }
+        notify.error(msg);
+    } catch (error) {
+        notify.error(error.message);
+        console.error(error.message);
+    }
+    return [];
+}

--
Gitblit v1.9.1