From 7f70cb15d035f0c233b9e62b9e43aa985317c908 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期一, 04 十一月 2024 10:22:45 +0800
Subject: [PATCH] #

---
 zy-acs-flow/src/page/mission/MissionColumn.jsx |   18 ++++++++++++------
 1 files changed, 12 insertions(+), 6 deletions(-)

diff --git a/zy-acs-flow/src/page/mission/MissionColumn.jsx b/zy-acs-flow/src/page/mission/MissionColumn.jsx
index 5e9cf38..f2b6981 100644
--- a/zy-acs-flow/src/page/mission/MissionColumn.jsx
+++ b/zy-acs-flow/src/page/mission/MissionColumn.jsx
@@ -1,9 +1,14 @@
 import { Droppable } from '@hello-pangea/dnd';
 import { Box, Stack, Typography } from '@mui/material';
-
+import {
+    useTranslate,
+    useTheme,
+} from 'react-admin';
 import { MissionCard } from './MissionCard';
 
 export const MissionColumn = ({ stage, missions, }) => {
+    const theme = useTheme();
+    const translate = useTranslate();
 
     return (
         <Box
@@ -11,7 +16,7 @@
                 flex: 1,
                 paddingTop: '8px',
                 paddingBottom: '16px',
-                bgcolor: '#eaeaee',
+                bgcolor: theme[0] === 'dark' ? '#303030' : '#eaeaee',
                 '&:first-of-type': {
                     paddingLeft: '5px',
                     borderTopLeftRadius: 5,
@@ -23,16 +28,17 @@
             }}
         >
             <Stack alignItems="center">
-                <Typography variant="subtitle1">
-                    1
-                    {/* {findDealLabel(dealStages, stage)} */}
+                <Typography variant="body1" sx={{
+                    // fontWeight: 'bold'
+                }}>
+                    {translate(`page.mission.enums.posType.${stage}`)}
                 </Typography>
                 <Typography
                     variant="subtitle1"
                     color="text.secondary"
                     fontSize="small"
                 >
-                    2
+                    {missions.length}
                 </Typography>
             </Stack>
             <Droppable droppableId={stage}>

--
Gitblit v1.9.1