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 | 9 +++++++--
1 files changed, 7 insertions(+), 2 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 34b7a6b..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.loc.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: (
@@ -46,7 +51,7 @@
tabList={[
{
key: 'view',
- tab: intl.formatMessage({ id: 'map.drawer.shelf.view.title', defaultMessage: '搴撲綅淇℃伅' }),
+ tab: intl.formatMessage({ id: 'map.drawer.shuttle.view.title', defaultMessage: '绌挎杞︿俊鎭�' }),
},
{
key: 'json',
--
Gitblit v1.9.1