skyouc
2025-03-25 c46191d359fb8dcf9ea875d16200eff4fa8cad79
rsf-admin/src/page/system/role/AssignPermissions.jsx
@@ -2,6 +2,7 @@
import {
    useTranslate,
    useNotify,
    TextInput
} from 'react-admin';
import { Box, Button, Card, Stack, CardContent, Skeleton } from '@mui/material';
import { SimpleTreeView, TreeItem, RichTreeView, useTreeViewApiRef } from '@mui/x-tree-view';
@@ -36,7 +37,7 @@
            })
        }
        const http = async () => {
            const res = await request.post('/menu' + '/tree', {});
            const res = await request.post('/menu' + '/tree', { condition: '' });
            if (res?.data?.code === 200) {
                const transformData = transformTree(res.data.data);
                setTreeData(transformData);
@@ -191,9 +192,20 @@
                            </Button>
                        </Box>
                        <Box sx={{
                            display: 'flex',
                            justifyContent: 'flex-start'
                        }}>
                            <Button startIcon={<SaveIcon />} variant="contained" onClick={handleSave}>
                                {translate('ra.action.save')}
                            </Button>
                        </Box>
                        <Box sx={{
                            height: 480,
                            minWidth: 290,
                            overflow: 'auto',
                            marginTop: '10px',
                            padding: 1,
                            borderBottom: '1px solid background.paper',
                            borderRadius: '4px',
@@ -223,14 +235,7 @@
                        </Box>
                    </Box>
                    <Box sx={{
                        display: 'flex',
                        justifyContent: 'flex-start'
                    }}>
                        <Button startIcon={<SaveIcon />} variant="contained" onClick={handleSave}>
                            {translate('ra.action.save')}
                        </Button>
                    </Box>
                </CardContent>
            </Card>
        </>