From 537021950096e7042cb46852b6ca7baa129837a6 Mon Sep 17 00:00:00 2001
From: vincentlu <t1341870251@gmail.com>
Date: 星期一, 15 十二月 2025 17:15:20 +0800
Subject: [PATCH] #
---
zy-acs-flow/src/map/http.js | 32 ++++++++++++++++++++++++++++++++
1 files changed, 32 insertions(+), 0 deletions(-)
diff --git a/zy-acs-flow/src/map/http.js b/zy-acs-flow/src/map/http.js
index de50b3e..9f140df 100644
--- a/zy-acs-flow/src/map/http.js
+++ b/zy-acs-flow/src/map/http.js
@@ -431,6 +431,38 @@
return null;
}
+export const updateAreaData = async (payload = {}) => {
+ try {
+ const res = await request.post('/map/area/update', payload);
+ 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 removeArea = async (areaId) => {
+ try {
+ const res = await request.post('/map/area/remove', { areaId });
+ 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', {});
--
Gitblit v1.9.1