From d305580602cce0bef8a0f548578b5f26f97da826 Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期二, 24 九月 2024 10:30:07 +0800 Subject: [PATCH] # --- zy-acs-flow/src/page/bus/BusList.jsx | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/zy-acs-flow/src/page/bus/BusList.jsx b/zy-acs-flow/src/page/bus/BusList.jsx index f0284c5..1669223 100644 --- a/zy-acs-flow/src/page/bus/BusList.jsx +++ b/zy-acs-flow/src/page/bus/BusList.jsx @@ -33,7 +33,7 @@ FunctionField, Pagination, } from 'react-admin'; -import { Box, Typography, Card, Chip } from '@mui/material'; +import { Box, Typography, Button, Chip } from '@mui/material'; import { styled } from '@mui/material/styles'; import BusCreate from "./BusCreate"; import BusPanel from "./BusPanel"; @@ -46,6 +46,7 @@ import * as Common from '@/utils/common'; import BusListAside from "./BusListAside"; import { getBusStsColor } from '@/utils/color-util'; +import CancelIcon from '@mui/icons-material/Cancel'; const StyledDatagrid = styled(DatagridConfigurable)(({ theme }) => ({ '& .css-1vooibu-MuiSvgIcon-root': { @@ -67,7 +68,7 @@ whiteSpace: 'nowrap', }, '& .opt': { - width: 80 + width: 120 }, })); @@ -164,8 +165,9 @@ {/* <BooleanField source="statusBool" label="common.field.status" sortable={false} /> */} <TextField source="memo" label="common.field.memo" sortable={false} emptyText="-" /> <FunctionField label="common.field.opt" cellClassName="opt" render={record => ( - (record.busSts === 15) && ( - <DeleteButton label="" sx={{ padding: '1px', fontSize: '.75rem' }} mutationMode={OPERATE_MODE} /> + (record.busSts === 15 || true) && ( + // <DeleteButton label="" sx={{ padding: '1px', fontSize: '.75rem' }} mutationMode={OPERATE_MODE} /> + <Button size="small" color="error" startIcon={<CancelIcon />} sx={{ padding: '1px', fontSize: '.75rem' }}>cancel</Button> ) )} /> </StyledDatagrid> -- Gitblit v1.9.1