From 96747dd8a534a10cd950b720e23ebf97e42fa2d3 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期四, 21 三月 2024 14:15:48 +0800
Subject: [PATCH] #

---
 zy-asrs-flow/src/pages/map/utils.js |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/zy-asrs-flow/src/pages/map/utils.js b/zy-asrs-flow/src/pages/map/utils.js
index ce6acf7..efd533d 100644
--- a/zy-asrs-flow/src/pages/map/utils.js
+++ b/zy-asrs-flow/src/pages/map/utils.js
@@ -329,6 +329,7 @@
 }
 
 export const fetchMapData = async (curFloor) => {
+    console.log(curFloor);
     clearMapData();
     await Http.doPostPromise('api/map/list', { floor: curFloor }, (res) => {
         const mapItemList = res.data.itemList;
@@ -370,7 +371,7 @@
 
 }
 
-export const saveMapData = async (intl) => {
+export const saveMapData = async (intl, floor) => {
     if (!mapContainer) {
         return;
     }
@@ -397,7 +398,10 @@
     })
 
     const closeLoading = message.loading({ content: intl.formatMessage({ id: 'common.loading.api.message', defaultMessage: '绛夊緟鏈嶅姟鍣�......' }), duration: API_TIMEOUT });
-    await Http.doPostPromise('api/map/save', { itemList: mapItemList }, (res) => {
+    await Http.doPostPromise('api/map/save', { 
+        itemList: mapItemList,
+        floor: floor
+     }, (res) => {
         closeLoading();
     }).catch((error) => {
         closeLoading();

--
Gitblit v1.9.1