From d835d1b51f832889929cdf69010034a30ef44d02 Mon Sep 17 00:00:00 2001
From: Junjie <xjj@123>
Date: 星期四, 17 十月 2024 13:57:29 +0800
Subject: [PATCH] #

---
 zy-asrs-flow/src/pages/map/drawer/shuttle/index.jsx |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/zy-asrs-flow/src/pages/map/drawer/shuttle/index.jsx b/zy-asrs-flow/src/pages/map/drawer/shuttle/index.jsx
index 472ee07..f7344e2 100644
--- a/zy-asrs-flow/src/pages/map/drawer/shuttle/index.jsx
+++ b/zy-asrs-flow/src/pages/map/drawer/shuttle/index.jsx
@@ -14,11 +14,15 @@
     const [activeTabKey, setActiveTabKey] = useState('view');
     const [curNo, setCurNo] = React.useState(''); // just used to modify the drawer title
 
+    props.setDrawerWidth(window.innerWidth * 0.4);
+
     useEffect(() => {
         if (!curSprite) {
             return
         }
-        props.setDrawerTitle(intl.formatMessage({ id: 'map.shuttle.no', defaultMessage: '绌挎杞﹀彿' }) + ': ' + curNo);
+        const deviceNo = curSprite?.data?.no;
+        props.setDrawerTitle(intl.formatMessage({ id: 'map.shuttle.no', defaultMessage: '绌挎杞﹀彿' }) + ': ' + deviceNo);
+        setCurNo(deviceNo)
     }, [curNo]);
 
     const contentList = {
@@ -27,6 +31,7 @@
                 curNo={curNo}
                 data={curSprite.data}
                 curFloor={curFloor}
+                refCurr={props.refCurr}
             />
         ),
         json: (

--
Gitblit v1.9.1