#
luxiaotao1123
2024-10-17 633d32d4fed310709eebb286f789c9178a65404a
#
2个文件已修改
12 ■■■■■ 已修改文件
zy-acs-flow/src/map/insight/BoolValueIcon.jsx 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-acs-flow/src/map/insight/agv/AgvMain.jsx 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-acs-flow/src/map/insight/BoolValueIcon.jsx
@@ -1,12 +1,14 @@
import React from 'react';
import { CheckCircle, Cancel } from '@mui/icons-material';
import { useTheme } from '@mui/material';
import { Check, Close } from '@mui/icons-material';
import { green, red } from '@mui/material/colors';
const BoolValueIcon = ({ value }) => {
    const theme = useTheme();
    return value ? (
        <CheckCircle style={{ color: green[500] }} />
        <Check style={{ color: theme.palette.primary.main, fontSize: '24px' }} />
    ) : (
        <Cancel style={{ color: red[500] }} />
        <Close style={{ color: theme.palette.error.main, fontSize: '24px' }} />
    );
};
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);
@@ -173,7 +175,7 @@
                            <Stack spacing={2} mt={2}>
                                <ConfirmButton
                                    label="page.map.action.reset"
                                    color="info"
                                    color="primary"
                                    variant="contained"
                                    onConfirm={() => {
                                        alert(1)