|  |  |  | 
|---|
|  |  |  | 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': { | 
|---|
|  |  |  | 
|---|
|  |  |  | </ReferenceField> | 
|---|
|  |  |  | <ReferenceField source="jamSeg" label="table.field.jam.jamSeg" reference="segment" link={false} sortable={false}> | 
|---|
|  |  |  | <FunctionField render={(record) => { | 
|---|
|  |  |  | return <>{record.groupId} ({record.serial})</> | 
|---|
|  |  |  | return <>{record.uuid} ({record.serial})</> | 
|---|
|  |  |  | }} /> | 
|---|
|  |  |  | </ReferenceField> | 
|---|
|  |  |  | <ReferenceField source="jamCode" label="table.field.jam.jamCode" reference="code" link={false} sortable={false}> | 
|---|
|  |  |  | 
|---|
|  |  |  | </ReferenceField> | 
|---|
|  |  |  | <ReferenceField source="avoSeg" label="table.field.jam.avoSeg" reference="segment" link={false} sortable={false}> | 
|---|
|  |  |  | <FunctionField render={(record) => { | 
|---|
|  |  |  | return <>{record.groupId} ({record.serial})</> | 
|---|
|  |  |  | return <>{record.uuid} ({record.serial})</> | 
|---|
|  |  |  | }} /> | 
|---|
|  |  |  | </ReferenceField> | 
|---|
|  |  |  | <ReferenceField source="avoCode" label="table.field.jam.avoCode" reference="code" link={false} sortable={false}> | 
|---|
|  |  |  | 
|---|
|  |  |  | <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 | 
|---|