From 4ad3a6e5540c5ca9d6042fc2fb7d72fa18c49c15 Mon Sep 17 00:00:00 2001
From: zhang <zc857179121@qq.com>
Date: 星期三, 06 八月 2025 12:51:48 +0800
Subject: [PATCH] 保存一个版本
---
zy-acs-flow/src/page/mission/MissionColumn.jsx | 15 +++++++++++----
1 files changed, 11 insertions(+), 4 deletions(-)
diff --git a/zy-acs-flow/src/page/mission/MissionColumn.jsx b/zy-acs-flow/src/page/mission/MissionColumn.jsx
index 702bafb..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,8 +28,10 @@
}}
>
<Stack alignItems="center">
- <Typography variant="subtitle1">
- {stage}
+ <Typography variant="body1" sx={{
+ // fontWeight: 'bold'
+ }}>
+ {translate(`page.mission.enums.posType.${stage}`)}
</Typography>
<Typography
variant="subtitle1"
--
Gitblit v1.9.1