#
Junjie
2024-03-28 0817793961918c1123328bca9a78ca29d95738b8
zy-asrs-flow/src/pages/map/drawer/index.jsx
@@ -5,6 +5,8 @@
import * as Utils from '../utils'
import ShelfDrawer from './shelf';
import AgvDrawer from './agv';
import PointDrawer from './point'
import ShuttleDrawer from './shuttle'
const useStyles = createStyles(({ token, css }) => {
@@ -28,6 +30,9 @@
                rootStyle={{ position: "absolute" }}
                mask={false}
                width={600}
                style={{
                    opacity: 1
                }}
                extra={
                    <Space>
                        <Button onClick={handleCancel}>
@@ -43,6 +48,20 @@
                        />
                    </>
                )}
                {props.curSprite?.data?.type === Utils.SENSOR_TYPE.SHUTTLE && (
                    <>
                        <ShuttleDrawer
                            curSprite={curSprite}
                        />
                    </>
                )}
                {props.curSprite?.data?.type === Utils.SENSOR_TYPE.POINT && (
                    <>
                        <PointDrawer
                            curSprite={curSprite}
                        />
                    </>
                )}
                {props.curSprite?.data?.type === Utils.SENSOR_TYPE.AGV && (
                    <>
                        <AgvDrawer