From 7c32ab19d3bf4c601212314a1617bbb51c5fdd2a Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期五, 29 三月 2024 16:01:36 +0800
Subject: [PATCH] #

---
 zy-asrs-flow/src/pages/map/drawer/shelf/index.jsx |   14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)

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..c08d937 100644
--- a/zy-asrs-flow/src/pages/map/drawer/shelf/index.jsx
+++ b/zy-asrs-flow/src/pages/map/drawer/shelf/index.jsx
@@ -14,17 +14,27 @@
 const ShelfDrawer = (props) => {
     const intl = useIntl();
     const { styles } = useStyles();
+    const { curSprite, curFloor } = props;
+
     const [activeTabKey, setActiveTabKey] = useState('view');
+
+    const locNo = curSprite.data.no + '-' + curFloor;
+
+    useEffect(() => {
+        props.setDrawerTitle(intl.formatMessage({ id: 'map.loc.no', defaultMessage: '搴撲綅鍙�' }) + ': ' + locNo);
+    }, [curSprite]);
 
     const contentList = {
         view: (
             <ShelfView
-                data={props.curSprite.data}
+                locNo={locNo}
+                data={curSprite.data}
+                curFloor={curFloor}
             />
         ),
         json: (
             <ShowJson
-                data={props.curSprite.data}
+                data={curSprite.data}
             />
         ),
     };

--
Gitblit v1.9.1