From 819ffe3eeac0fc5c80e3e2a0ce662e3143120cd0 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期二, 19 三月 2024 13:18:14 +0800
Subject: [PATCH] #

---
 zy-asrs-flow/src/pages/map/drawer/index.jsx |   38 ++++++++++++++++++++++++++++++--------
 1 files changed, 30 insertions(+), 8 deletions(-)

diff --git a/zy-asrs-flow/src/pages/map/drawer/index.jsx b/zy-asrs-flow/src/pages/map/drawer/index.jsx
index 66c9a25..0662017 100644
--- a/zy-asrs-flow/src/pages/map/drawer/index.jsx
+++ b/zy-asrs-flow/src/pages/map/drawer/index.jsx
@@ -3,7 +3,9 @@
 import { FormattedMessage, useIntl, useModel } from '@umijs/max';
 import { createStyles } from 'antd-style';
 import * as Utils from '../utils'
-import Http from '@/utils/http';
+import ShelfDrawer from './shelf';
+import AgvDrawer from './agv';
+import PointDrawer from './point'
 
 const useStyles = createStyles(({ token, css }) => {
 
@@ -12,13 +14,11 @@
 const MapDrawer = (props) => {
     const intl = useIntl();
     const { styles } = useStyles();
+    const { curSprite } = props;
 
     const handleCancel = () => {
         props.onCancel();
     };
-
-    const handleOk = () => {
-    }
 
     return (
         <>
@@ -29,17 +29,39 @@
                 rootStyle={{ position: "absolute" }}
                 mask={false}
                 width={600}
+                style={{
+                    opacity: .8
+                }}
                 extra={
                     <Space>
                         <Button onClick={handleCancel}>
                             <FormattedMessage id='common.cancel' defaultMessage='鍙栨秷' />
                         </Button>
-                        <Button onClick={handleOk} type="primary">
-                            <FormattedMessage id='common.submit' defaultMessage='淇濆瓨' />
-                        </Button>
                     </Space>
                 }
-            />
+            >
+                {props.curSprite?.data?.type === Utils.SENSOR_TYPE.SHELF && (
+                    <>
+                        <ShelfDrawer
+                            curSprite={curSprite}
+                        />
+                    </>
+                )}
+                {props.curSprite?.data?.type === Utils.SENSOR_TYPE.POINT && (
+                    <>
+                        <PointDrawer
+                            curSprite={curSprite}
+                        />
+                    </>
+                )}
+                {props.curSprite?.data?.type === Utils.SENSOR_TYPE.AGV && (
+                    <>
+                        <AgvDrawer
+                            curSprite={curSprite}
+                        />
+                    </>
+                )}
+            </Drawer>
         </>
     )
 }

--
Gitblit v1.9.1