From 7f70cb15d035f0c233b9e62b9e43aa985317c908 Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期一, 04 十一月 2024 10:22:45 +0800 Subject: [PATCH] # --- zy-acs-flow/src/page/jam/JamList.jsx | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/zy-acs-flow/src/page/jam/JamList.jsx b/zy-acs-flow/src/page/jam/JamList.jsx index e29392b..8711523 100644 --- a/zy-acs-flow/src/page/jam/JamList.jsx +++ b/zy-acs-flow/src/page/jam/JamList.jsx @@ -49,6 +49,7 @@ import ConfirmButton from "../components/ConfirmButton"; import CloseIcon from '@mui/icons-material/Close'; import request from '@/utils/request'; +import { red } from '@mui/material/colors'; const StyledDatagrid = styled(DatagridConfigurable)(({ theme }) => ({ '& .css-1vooibu-MuiSvgIcon-root': { @@ -284,7 +285,7 @@ <FunctionField label="table.field.jam.duration" cellClassName="duration" render={record => ( <> {((record.duration > 6000)) - ? <span style={{ color: 'red', fontWeight: 'bold' }}>{record.duration}</span> + ? <span style={{ color: red[700], fontWeight: 'bold' }}>{record.duration}</span> : <span>{record.duration || "-"}</span> } ms -- Gitblit v1.9.1