From 85e3287d028a8a393e7e7739b3c5eedee6b3904b Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期四, 28 三月 2024 16:52:02 +0800
Subject: [PATCH] #

---
 zy-asrs-flow/src/pages/map/drawer/index.jsx       |    4 +++-
 zy-asrs-flow/src/pages/map/drawer/shelf/index.jsx |    1 +
 zy-asrs-flow/src/pages/map/index.jsx              |    1 +
 zy-asrs-flow/src/pages/map/drawer/shelf/view.jsx  |    3 +++
 4 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/zy-asrs-flow/src/pages/map/drawer/index.jsx b/zy-asrs-flow/src/pages/map/drawer/index.jsx
index e1f0218..4b7b1e3 100644
--- a/zy-asrs-flow/src/pages/map/drawer/index.jsx
+++ b/zy-asrs-flow/src/pages/map/drawer/index.jsx
@@ -15,7 +15,7 @@
 const MapDrawer = (props) => {
     const intl = useIntl();
     const { styles } = useStyles();
-    const { curSprite } = props;
+    const { curSprite, curFloor } = props;
 
     const handleCancel = () => {
         props.onCancel();
@@ -45,6 +45,7 @@
                     <>
                         <ShelfDrawer
                             curSprite={curSprite}
+                            curFloor={curFloor}
                         />
                     </>
                 )}
@@ -52,6 +53,7 @@
                     <>
                         <ShuttleDrawer
                             curSprite={curSprite}
+                            curFloor={curFloor}
                         />
                     </>
                 )}
diff --git a/zy-asrs-flow/src/pages/map/drawer/shelf/index.jsx b/zy-asrs-flow/src/pages/map/drawer/shelf/index.jsx
index 8174366..835dced 100644
--- a/zy-asrs-flow/src/pages/map/drawer/shelf/index.jsx
+++ b/zy-asrs-flow/src/pages/map/drawer/shelf/index.jsx
@@ -20,6 +20,7 @@
         view: (
             <ShelfView
                 data={props.curSprite.data}
+                curFloor={props.curFloor}
             />
         ),
         json: (
diff --git a/zy-asrs-flow/src/pages/map/drawer/shelf/view.jsx b/zy-asrs-flow/src/pages/map/drawer/shelf/view.jsx
index ca147d5..28ccc3b 100644
--- a/zy-asrs-flow/src/pages/map/drawer/shelf/view.jsx
+++ b/zy-asrs-flow/src/pages/map/drawer/shelf/view.jsx
@@ -56,6 +56,9 @@
     }
 
     useEffect(() => {
+
+        console.log(props.data.no + '-' + props.curFloor);
+
         setLoading(true);
         endThree();
         setTimeout(() => {
diff --git a/zy-asrs-flow/src/pages/map/index.jsx b/zy-asrs-flow/src/pages/map/index.jsx
index 42904f1..03d7388 100644
--- a/zy-asrs-flow/src/pages/map/index.jsx
+++ b/zy-asrs-flow/src/pages/map/index.jsx
@@ -432,6 +432,7 @@
             <MapDrawer
                 open={drawerVisible}
                 curSprite={curSprite}
+                curFloor={curFloor}
                 refCurr={mapRef.current}
                 onCancel={() => {
                     setCurSPrite(null);

--
Gitblit v1.9.1