| | |
| | | <Box display="flex" alignItems="center" mb={1.5}> |
| | | <Avatar |
| | | sx={{ |
| | | width: 30, |
| | | height: 30, |
| | | width: 40, |
| | | height: 28, |
| | | bgcolor: theme.palette.primary.main, |
| | | }} |
| | | variant="rounded" |
| | | > |
| | | {mission.agv} |
| | | </Avatar> |
| | |
| | | '& .column-name': { |
| | | }, |
| | | '& .opt': { |
| | | width: 120 |
| | | width: 130 |
| | | }, |
| | | })); |
| | | |
| | |
| | | <DateField source="createTime" label="common.field.createTime" showTime /> |
| | | <BooleanField source="statusBool" label="common.field.status" sortable={false} /> |
| | | <TextField source="memo" label="common.field.memo" sortable={false} /> |
| | | {(filterValues.state === 'WAITING' || filterValues.state === 'RUNNING') && ( |
| | | <FunctionField label="common.field.opt" cellClassName="opt" render={record => ( |
| | | <> |
| | | <ConfirmButton |
| | | label="common.action.deprecate" |
| | | size="small" |
| | | color="error" |
| | | startIcon={<ClearIcon />} |
| | | sx={{ |
| | | padding: '1px', |
| | | fontSize: '.75rem', |
| | | '& .MuiButton-startIcon': { |
| | | marginRight: '2px' |
| | | }, |
| | | }} |
| | | data={record.id} |
| | | onConfirm={() => { |
| | | handleDeprecate(record.id); |
| | | }} |
| | | /> |
| | | </> |
| | | )} /> |
| | | )} |
| | | {( |
| | | filterValues.state === 'INIT' |
| | | || filterValues.state === 'WAITING' |
| | | || filterValues.state === 'RUNNING' |
| | | ) && ( |
| | | <FunctionField label="common.field.opt" cellClassName="opt" render={record => ( |
| | | <> |
| | | <ConfirmButton |
| | | label="common.action.deprecate" |
| | | size="small" |
| | | color="inherit" |
| | | startIcon={<ClearIcon />} |
| | | sx={{ |
| | | padding: '1px', |
| | | fontSize: '.75rem', |
| | | '& .MuiButton-startIcon': { |
| | | marginRight: '2px' |
| | | }, |
| | | }} |
| | | data={record.id} |
| | | onConfirm={() => { |
| | | handleDeprecate(record.id); |
| | | }} |
| | | /> |
| | | </> |
| | | )} /> |
| | | )} |
| | | </StyledDatagrid> |
| | | </> |
| | | )} |