From 3845999a338b696f62f76b217bb871d5e759b37b Mon Sep 17 00:00:00 2001
From: Junjie <xjj@123>
Date: 星期日, 07 四月 2024 16:56:41 +0800
Subject: [PATCH] #
---
zy-asrs-flow/src/pages/map/drawer/index.jsx | 25 ++++++++++++++++++++++---
1 files changed, 22 insertions(+), 3 deletions(-)
diff --git a/zy-asrs-flow/src/pages/map/drawer/index.jsx b/zy-asrs-flow/src/pages/map/drawer/index.jsx
index 0662017..17ac267 100644
--- a/zy-asrs-flow/src/pages/map/drawer/index.jsx
+++ b/zy-asrs-flow/src/pages/map/drawer/index.jsx
@@ -6,6 +6,7 @@
import ShelfDrawer from './shelf';
import AgvDrawer from './agv';
import PointDrawer from './point'
+import ShuttleDrawer from './shuttle'
const useStyles = createStyles(({ token, css }) => {
@@ -14,7 +15,13 @@
const MapDrawer = (props) => {
const intl = useIntl();
const { styles } = useStyles();
- const { curSprite } = props;
+ const { curSprite, curFloor } = props;
+
+ const [drawerTitle, setDrawerTitle] = useState('');
+
+ useEffect(() => {
+
+ }, [props.curSprite]);
const handleCancel = () => {
props.onCancel();
@@ -23,14 +30,15 @@
return (
<>
<Drawer
+ title={drawerTitle}
open={props.open}
onClose={handleCancel}
getContainer={props.refCurr}
rootStyle={{ position: "absolute" }}
mask={false}
- width={600}
+ width={window.innerWidth * 0.35}
style={{
- opacity: .8
+ opacity: 1
}}
extra={
<Space>
@@ -44,6 +52,17 @@
<>
<ShelfDrawer
curSprite={curSprite}
+ curFloor={curFloor}
+ setDrawerTitle={setDrawerTitle}
+ />
+ </>
+ )}
+ {props.curSprite?.data?.type === Utils.SENSOR_TYPE.SHUTTLE && (
+ <>
+ <ShuttleDrawer
+ curSprite={curSprite}
+ curFloor={curFloor}
+ setDrawerTitle={setDrawerTitle}
/>
</>
)}
--
Gitblit v1.9.1