From 196ad66f41fe77fff13b15b05095dc7661251a5d Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期五, 18 十月 2024 13:27:28 +0800
Subject: [PATCH] #

---
 zy-acs-flow/src/map/insight/agv/AgvMain.jsx |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/zy-acs-flow/src/map/insight/agv/AgvMain.jsx b/zy-acs-flow/src/map/insight/agv/AgvMain.jsx
index 0b120da..f507cd5 100644
--- a/zy-acs-flow/src/map/insight/agv/AgvMain.jsx
+++ b/zy-acs-flow/src/map/insight/agv/AgvMain.jsx
@@ -10,6 +10,7 @@
     Button,
     Divider,
     Stack,
+    useTheme,
 } from '@mui/material';
 import AgvThree from './AgvThree';
 import { getAgvInfo } from '../../http';
@@ -77,6 +78,7 @@
 
 const AgvMain = (props) => {
     const { data, curAgvNo, setCurAgvNo } = props;
+    const theme = useTheme();
     const translate = useTranslate();
     const containerRef = useRef();
     const [loading, setLoading] = useState(true);
@@ -107,6 +109,10 @@
         }
         return endThree;
     }, [info]);
+
+    const handleReset = () => {
+        alert(1)
+    }
 
     return (
         <Box display="flex" height="100%">
@@ -173,10 +179,10 @@
                             <Stack spacing={2} mt={2}>
                                 <ConfirmButton
                                     label="page.map.action.reset"
-                                    color="info"
+                                    color="primary"
                                     variant="contained"
                                     onConfirm={() => {
-                                        alert(1)
+                                        handleReset();
                                     }}
                                 />
                                 {info && (
@@ -198,8 +204,6 @@
 }
 
 const KeyValuePair = ({ label, value, bool }) => {
-    console.log({ label, value, bool });
-
     return (
         <>
             <Stack direction="row" alignItems="center" spacing={1} sx={{ mb: 1 }}>

--
Gitblit v1.9.1