From de7df1d489bdad38dcbeb78d74cad8e3bfa09e3d Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期五, 27 九月 2024 16:59:34 +0800
Subject: [PATCH] #

---
 zy-acs-flow/src/page/agv/AgvCard.jsx |   23 +++++++++++++++++++++--
 1 files changed, 21 insertions(+), 2 deletions(-)

diff --git a/zy-acs-flow/src/page/agv/AgvCard.jsx b/zy-acs-flow/src/page/agv/AgvCard.jsx
index 371f758..b96f4d2 100644
--- a/zy-acs-flow/src/page/agv/AgvCard.jsx
+++ b/zy-acs-flow/src/page/agv/AgvCard.jsx
@@ -18,7 +18,7 @@
     const createPath = useCreatePath();
     const record = useRecordContext(props);
     if (!record) return null;
-    console.log(record);
+
     return (
         <Link
             to={createPath({
@@ -37,6 +37,20 @@
                     flexDirection: 'column',
                     justifyContent: 'space-between',
                     padding: '1em',
+                    ...(!record.online && {
+                        animation: 'cardBorderPulse 2s infinite',
+                        '@keyframes cardBorderPulse': {
+                            '0%': {
+                                boxShadow: '0 0 2px 1px rgba(255, 0, 0, 0.1)',
+                            },
+                            '50%': {
+                                boxShadow: '0 0 3px 2px rgba(255, 0, 0, 0.3)',
+                            },
+                            '100%': {
+                                boxShadow: '0 0 2px 1px rgba(255, 0, 0, 0.1)',
+                            },
+                        },
+                    })
                 }}
                 elevation={elevation}
             >
@@ -58,7 +72,12 @@
                 <Box display="flex" flexDirection="column" alignItems="center">
                     <AgvAvatar />
                     <Box textAlign="center" marginTop={2}>
-                        <Typography variant="subtitle2">
+                        <Typography
+                            variant="subtitle2"
+                            color="textSecondary"
+                            component="div"
+                            sx={{ fontWeight: 'bold' }}
+                        >
                             {record.agvStatus}
                         </Typography>
                         <Typography variant="overline" sx={{ opacity: .7 }}>

--
Gitblit v1.9.1