| | |
| | | import { formatDistance } from 'date-fns'; |
| | | import request from '@/utils/request'; |
| | | import { useTheme } from '@mui/material/styles'; |
| | | import { getTaskStsColor } from '@/utils/common'; |
| | | import { getTaskStsColor } from '@/utils/color-util'; |
| | | import ListEmptyTip from "../../components/ListEmptyTip"; |
| | | |
| | | const TaskItem = ({ record, now }) => { |
| | | const translate = useTranslate(); |
| | | const theme = useTheme(); |
| | | console.log(record); |
| | | |
| | | return ( |
| | | <> |
| | |
| | | |
| | | ) |
| | | })} |
| | | |
| | | {currCount < total && ( |
| | | <Button |
| | | onClick={() => |
| | |
| | | </List> |
| | | </Box> |
| | | ) : ( |
| | | <Typography> |
| | | no data found |
| | | </Typography> |
| | | <ListEmptyTip /> |
| | | )} |
| | | |
| | | </> |