From 6e651b1f0d6fd30af28b6c2aa44b76495c6e01fa Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期一, 18 三月 2024 15:22:27 +0800
Subject: [PATCH] #

---
 zy-asrs-flow/src/pages/map/drawer/agv/index.jsx   |   30 ++++++++++++++++++++++++++++++
 zy-asrs-flow/src/pages/map/drawer/index.jsx       |   16 +++++++++++++++-
 zy-asrs-flow/src/pages/map/drawer/shelf/index.jsx |    2 +-
 3 files changed, 46 insertions(+), 2 deletions(-)

diff --git a/zy-asrs-flow/src/pages/map/drawer/agv/index.jsx b/zy-asrs-flow/src/pages/map/drawer/agv/index.jsx
new file mode 100644
index 0000000..cb3a98d
--- /dev/null
+++ b/zy-asrs-flow/src/pages/map/drawer/agv/index.jsx
@@ -0,0 +1,30 @@
+import React, { useState, useRef, useEffect } from 'react';
+import { Drawer, Space, Button } from 'antd';
+import { FormattedMessage, useIntl, useModel } from '@umijs/max';
+import { createStyles } from 'antd-style';
+import * as Utils from '../../utils'
+import Http from '@/utils/http';
+
+const useStyles = createStyles(({ token, css }) => {
+
+})
+
+const AgvDrawer = (props) => {
+    const intl = useIntl();
+    const { styles } = useStyles();
+
+    const handleCancel = () => {
+        props.onCancel();
+    };
+
+    const handleOk = () => {
+    }
+
+    return (
+        <>
+        <h1>Agv</h1>
+        </>
+    )
+}
+
+export default AgvDrawer;
\ No newline at end of file
diff --git a/zy-asrs-flow/src/pages/map/drawer/index.jsx b/zy-asrs-flow/src/pages/map/drawer/index.jsx
index ef13169..1026da8 100644
--- a/zy-asrs-flow/src/pages/map/drawer/index.jsx
+++ b/zy-asrs-flow/src/pages/map/drawer/index.jsx
@@ -5,6 +5,7 @@
 import * as Utils from '../utils'
 import Http from '@/utils/http';
 import ShelfDrawer from './shelf';
+import AgvDrawer from './agv';
 
 const useStyles = createStyles(({ token, css }) => {
 
@@ -41,7 +42,20 @@
                     </Space>
                 }
             >
-                {props.curSprite?.data?.uuid}
+                {props.curSprite?.data?.type === Utils.SENSOR_TYPE.SHELF && (
+                    <>
+                        <ShelfDrawer
+
+                        />
+                    </>
+                )}
+                {props.curSprite?.data?.type === Utils.SENSOR_TYPE.AGV && (
+                    <>
+                        <AgvDrawers
+
+                        />
+                    </>
+                )}
             </Drawer>
         </>
     )
diff --git a/zy-asrs-flow/src/pages/map/drawer/shelf/index.jsx b/zy-asrs-flow/src/pages/map/drawer/shelf/index.jsx
index 96493fb..d81d971 100644
--- a/zy-asrs-flow/src/pages/map/drawer/shelf/index.jsx
+++ b/zy-asrs-flow/src/pages/map/drawer/shelf/index.jsx
@@ -22,7 +22,7 @@
 
     return (
         <>
-        <h1>sad</h1>
+        <h1>Shelf</h1>
         </>
     )
 }

--
Gitblit v1.9.1