| | |
| | | } from 'react-admin'; |
| | | import { Box, Typography, Card, Stack, Button } from '@mui/material'; |
| | | import ContentCopyIcon from '@mui/icons-material/ContentCopy'; |
| | | import PlaylistAddIcon from '@mui/icons-material/PlaylistAdd'; |
| | | import { styled } from '@mui/material/styles'; |
| | | import BasStationCreate from "./BasStationCreate"; |
| | | import BasStationInitModal from "./BasStationInitModal"; |
| | | import BasStationPanel from "./BasStationPanel"; |
| | | import EmptyData from "../../components/EmptyData"; |
| | | import MyCreateButton from "../../components/MyCreateButton"; |
| | |
| | | const [areaFieldDialog, setAreaFieldDialog] = useState(false); |
| | | const [areaFieldDialog2, setAreaFieldDialog2] = useState(false); |
| | | const [copyRecord, setCopyRecord] = useState(null); |
| | | const [initDialogOpen, setInitDialogOpen] = useState(false); |
| | | return ( |
| | | <Box display="flex"> |
| | | <List |
| | |
| | | <TopToolbar> |
| | | <FilterButton /> |
| | | <MyCreateButton onClick={() => { setCreateDialog(true) }} /> |
| | | <Button |
| | | variant="text" |
| | | color="primary" |
| | | size="small" |
| | | startIcon={<PlaylistAddIcon />} |
| | | onClick={() => setInitDialogOpen(true)} |
| | | sx={{ ml: 1 }} |
| | | > |
| | | {translate('toolbar.siteInit')} |
| | | </Button> |
| | | <SelectColumnsButton preferenceKey='basStation' /> |
| | | <MyExportButton /> |
| | | </TopToolbar> |
| | |
| | | copyRecord={copyRecord} |
| | | onClose={() => setCopyRecord(null)} |
| | | /> |
| | | |
| | | <BasStationInitModal |
| | | open={initDialogOpen} |
| | | setOpen={setInitDialogOpen} |
| | | /> |
| | | <PageDrawer |
| | | title='BasStation Detail' |
| | | drawerVal={drawerVal} |