#
luxiaotao1123
2024-09-18 be777b4600c3cf130ab71bff551be067820d4647
#
3个文件已修改
23 ■■■■ 已修改文件
zy-acs-flow/src/i18n/en.js 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-acs-flow/src/i18n/zh.js 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-acs-flow/src/page/components/EmptyData.jsx 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-acs-flow/src/i18n/en.js
@@ -67,7 +67,12 @@
        security: 'Security',
    },
    create: {
        title: 'Create'
        title: 'Create',
        empty: {
            title: 'Data Empty',
            desc: 'Please Create Data First',
            button: 'Create Data',
        },
    },
    update: {
        title: 'Update'
zy-acs-flow/src/i18n/zh.js
@@ -67,7 +67,12 @@
        security: '安全设置',
    },
    create: {
        title: '添加'
        title: '添加',
        empty: {
            title: '暂无数据',
            desc: '请先添加数据',
            button: '添加数据'
        },
    },
    update: {
        title: '修改'
zy-acs-flow/src/page/components/EmptyData.jsx
@@ -3,10 +3,11 @@
import { HotTub } from '@mui/icons-material';
import { useNavigate } from 'react-router-dom';
import MyCreateButton from './MyCreateButton';
import { useTranslate } from 'react-admin';
const NotFound = ({ children, onClick, btnMsg }) => {
    const navigate = useNavigate();
    const translate = useTranslate();
    return (
        <Box
            display="flex"
@@ -23,14 +24,14 @@
                opacity: .5,
                mt: 2
            }}>
                Data Empty
                {translate('create.empty.title')}
            </Typography>
            <Typography variant="subtitle1" gutterBottom sx={{
                fontSize: '1em',
                opacity: .5,
                mt: 2
            }}>
                Please Create Data First
                {translate('create.empty.desc')}
            </Typography>
            {children}
            {!children && (
@@ -43,7 +44,7 @@
                        mt: 2
                    }}
                >
                    {btnMsg || 'Create Data'}
                    {btnMsg || translate('create.empty.button')}
                </Button>
            )}
        </Box>