From d46b579b4bee0b7d4e7548e3637943618620eb96 Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期一, 07 十月 2024 08:04:30 +0800 Subject: [PATCH] # --- zy-acs-flow/src/page/mission/MissionCard.jsx | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/zy-acs-flow/src/page/mission/MissionCard.jsx b/zy-acs-flow/src/page/mission/MissionCard.jsx index 720eaca..2a7bdae 100644 --- a/zy-acs-flow/src/page/mission/MissionCard.jsx +++ b/zy-acs-flow/src/page/mission/MissionCard.jsx @@ -1,6 +1,6 @@ import { Draggable } from '@hello-pangea/dnd'; import { Box, Card, Typography, Avatar, Divider, Stack, Slider, useTheme } from '@mui/material'; -import { ReferenceField, useRedirect } from 'react-admin'; +import { ReferenceField, useRedirect, useTranslate } from 'react-admin'; import { blueGrey } from '@mui/material/colors'; import { styled } from '@mui/material/styles'; @@ -22,6 +22,7 @@ export const MissionCardContent = ({ provided, snapshot, mission, }) => { const theme = useTheme(); + const translate = useTranslate(); const redirect = useRedirect(); const handleClick = () => { redirect(`/mission/${mission.id}/show`, undefined, undefined, undefined, { @@ -64,16 +65,16 @@ <Box> <Stack direction="row" justifyContent="space-between" mb={1}> <Typography variant="caption" color="textSecondary"> - Backpack: {mission.backpack} + {translate('table.field.mission.backpack')} : {mission.backpack} </Typography> <Typography variant="caption" color="textPrimary"> - Code: {mission.currCode} + {translate('table.field.mission.code')}: {mission.currCode} </Typography> </Stack> <Divider orientation="horizontal" flexItem /> <Stack direction="row" justifyContent="space-between" > <Typography variant="overline"> - Task: [{mission.taskNos.join(',')}] + {translate('table.field.mission.task')}: [{mission.taskNos.join(',')}] </Typography> </Stack> <Stack pl={0.5} pr={0.5} direction="row" spacing={1} alignItems="center" mb={.6}> -- Gitblit v1.9.1