From b352221d2a2f4a8e8a1f9a12dda54fa32a8f7e4e Mon Sep 17 00:00:00 2001
From: zjj <3272660260@qq.com>
Date: 星期六, 22 六月 2024 14:44:46 +0800
Subject: [PATCH] #

---
 zy-asrs-flow/src/pages/map/drawer/lift/index.jsx |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/zy-asrs-flow/src/pages/map/drawer/lift/index.jsx b/zy-asrs-flow/src/pages/map/drawer/lift/index.jsx
index 518b67b..8b38b83 100644
--- a/zy-asrs-flow/src/pages/map/drawer/lift/index.jsx
+++ b/zy-asrs-flow/src/pages/map/drawer/lift/index.jsx
@@ -12,15 +12,16 @@
     const { curSprite, curFloor } = props;
 
     const [activeTabKey, setActiveTabKey] = useState('view');
-
     const [curNo, setCurNo] = React.useState(''); // just used to modify the drawer title
 
     useEffect(() => {
         if (!curSprite) {
             return
         }
-        props.setDrawerTitle(intl.formatMessage({ id: 'map.loc.no', defaultMessage: '搴撲綅鍙�' }) + ': ' + curNo);
-    }, [curNo]);
+        const deviceNo = curSprite?.data?.liftNo;
+        props.setDrawerTitle(intl.formatMessage({ id: 'map.lift.no', defaultMessage: '鎻愬崌鏈哄彿' }) + ': ' + deviceNo);
+        setCurNo(deviceNo)
+    }, [curSprite]);
 
     const contentList = {
         view: (
@@ -47,7 +48,7 @@
                 tabList={[
                     {
                         key: 'view',
-                        tab: intl.formatMessage({ id: 'map.drawer.shelf.view.title', defaultMessage: '搴撲綅淇℃伅' }),
+                        tab: intl.formatMessage({ id: 'map.drawer.lift.view.title', defaultMessage: '鎻愬崌鏈轰俊鎭�' }),
                     },
                     {
                         key: 'json',

--
Gitblit v1.9.1