| | |
| | | Tooltip, |
| | | Button, |
| | | Chip, |
| | | LinearProgress, |
| | | } from '@mui/material'; |
| | | import { Add, Edit, Delete } from '@mui/icons-material'; |
| | | import KeyboardArrowDownIcon from '@mui/icons-material/KeyboardArrowDown'; |
| | |
| | | import request from '@/utils/request'; |
| | | import DeptEdit from './MenuEdit'; |
| | | import * as Icons from '@mui/icons-material'; |
| | | |
| | | |
| | | const RESOURCE = 'menu'; |
| | | const TITLE = 'menu.menu'; |
| | |
| | | const refresh = useRefresh(); |
| | | const [deleteOne] = useDelete(); |
| | | |
| | | const [treeData, setTreeData] = React.useState([]); |
| | | const [treeData, setTreeData] = React.useState(null); |
| | | const [filter, setFilter] = React.useState(""); |
| | | const [createDialog, setCreateDialog] = React.useState(false); |
| | | const [editRecord, setEditRecord] = React.useState(null); |
| | |
| | | </Button> |
| | | </Box> |
| | | </Box> |
| | | <Card> |
| | | <Card sx={{ |
| | | position: 'relative', |
| | | }}> |
| | | {!treeData && ( |
| | | <LinearProgress |
| | | sx={{ |
| | | height: "3px", |
| | | position: 'absolute', |
| | | top: 0, |
| | | left: 0, |
| | | right: 0, |
| | | }} |
| | | /> |
| | | )} |
| | | <TableContainer component={Paper}> |
| | | <Table size="small"> |
| | | <TableHead> |