#
luxiaotao1123
2024-09-18 55234d83d82c9777ec4bf15570259c0c3fc09631
#
3个文件已修改
1个文件已添加
43 ■■■■■ 已修改文件
zy-acs-flow/src/i18n/en.js 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-acs-flow/src/i18n/zh.js 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-acs-flow/src/page/loc/InitButton.jsx 30 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-acs-flow/src/page/loc/LocList.jsx 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
zy-acs-flow/src/i18n/en.js
@@ -495,6 +495,11 @@
                errDesc: "error",
            },
        }
    },
    page: {
        loc: {
            init: 'INITIALIZE'
        }
    }
};
zy-acs-flow/src/i18n/zh.js
@@ -494,6 +494,11 @@
                errDesc: "异常",
            },
        }
    },
    page: {
        loc: {
            init: '初始化'
        }
    }
};
zy-acs-flow/src/page/loc/InitButton.jsx
New file
@@ -0,0 +1,30 @@
import * as React from 'react';
import {
    Button
} from 'react-admin';
const InitButton = (props) => {
    const {
        onClick,
        label,
        icon,
        ...rest
    } = props;
    return (
        <Button
            label={label}
            onClick={handleClick}
            {...sanitizeRestProps(rest)}
        >
            {icon}
        </Button>
    );
};
const sanitizeRestProps = ({
    resource,
    ...rest
}) => rest;
export default InitButton;
zy-acs-flow/src/page/loc/LocList.jsx
@@ -42,6 +42,8 @@
import MyField from "../components/MyField";
import { PAGE_DRAWER_WIDTH, OPERATE_MODE } from '@/config/setting';
import * as Common from '@/utils/common';
import InitButton from "./InitButton";
import RepartitionIcon from '@mui/icons-material/Repartition';
const StyledDatagrid = styled(DatagridConfigurable)(({ theme }) => ({
    '& .css-1vooibu-MuiSvgIcon-root': {
@@ -120,6 +122,7 @@
                actions={(
                    <TopToolbar>
                        <FilterButton />
                        <InitButton label='page.loc.init' icon={<RepartitionIcon />} />
                        <MyCreateButton onClick={() => { setCreateDialog(true) }} />
                        <SelectColumnsButton preferenceKey='loc' />
                        <MyExportButton />