From ebd770f986b57b63c496f29cbac6036ccf5c4e91 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期五, 20 九月 2024 13:52:59 +0800
Subject: [PATCH] #
---
zy-acs-flow/src/page/agv/AgvCard.jsx | 32 ++++++++++++++++++++++----------
1 files changed, 22 insertions(+), 10 deletions(-)
diff --git a/zy-acs-flow/src/page/agv/AgvCard.jsx b/zy-acs-flow/src/page/agv/AgvCard.jsx
index 59766f6..6e695e8 100644
--- a/zy-acs-flow/src/page/agv/AgvCard.jsx
+++ b/zy-acs-flow/src/page/agv/AgvCard.jsx
@@ -1,6 +1,6 @@
import * as React from 'react';
import { useState } from 'react';
-import { Paper, Typography, Box } from '@mui/material';
+import { Paper, Typography, Box, Chip, Stack } from '@mui/material';
import ContactsIcon from '@mui/icons-material/AccountCircle';
import DealIcon from '@mui/icons-material/MonetizationOn';
import {
@@ -10,8 +10,9 @@
Link,
useResourceContext,
} from 'react-admin';
-
+import PulseSignal from '../components/PulseSignal';
import { AgvAvatar } from './AgvAvatar';
+import { red } from '@mui/material/colors';
export const AgvCard = (props) => {
const resource = useResourceContext();
@@ -44,19 +45,30 @@
}}
elevation={elevation}
>
+ <Box display="flex" flexDirection="row" alignItems="center" justifyContent='space-between'>
+ <PulseSignal
+ flag={true}
+ />
+ <Typography variant="caption" >
+ vol:
+ <Box
+ component={"span"}
+ sx={{
+ color: record.vol < record.chargeLine ? red[400] : 'inherit'
+ }}>
+ {record.vol}
+ </Box>
+ </Typography>
+ </Box>
<Box display="flex" flexDirection="column" alignItems="center">
<AgvAvatar />
<Box textAlign="center" marginTop={1}>
<Typography variant="subtitle2">
- {record.uuid}
+ {record.agvStatus}
</Typography>
- <SelectField
- color="textSecondary"
- source="uuid"
- choices={[
- { id: '1', name: 'sad' }
- ]}
- />
+ <Typography variant="overline" sx={{ opacity: .7 }}>
+ code: {record.code}
+ </Typography>
</Box>
</Box>
<Box display="flex" justifyContent="space-around" width="100%">
--
Gitblit v1.9.1