fix : 공지사항 주정차관리 화면 반여

main
Lim Jonguk 3 years ago
parent 4182b06cb7
commit 90dacfbbec

@ -1,7 +1,20 @@
import { useEffect, useState } from 'react'; import { useEffect, useState } from 'react';
// material-ui // material-ui
import { Button, Divider, FormControl, FormControlLabel, Grid, InputAdornment, OutlinedInput, Radio, RadioGroup } from '@mui/material'; import {
Button,
Divider,
FormControl,
FormControlLabel,
FormLabel,
Grid,
InputAdornment,
MenuItem,
OutlinedInput,
Radio,
RadioGroup,
Select
} from '@mui/material';
// assets // assets
import { IconSearch } from '@tabler/icons'; import { IconSearch } from '@tabler/icons';
@ -92,19 +105,17 @@ const Board = () => {
<Grid item xs={12} lg={6}> <Grid item xs={12} lg={6}>
<Grid container spacing={1}> <Grid container spacing={1}>
<Grid item> <Grid item>
<FormControl> <Select id="category" name="reviewYear" defaultValue="ciTitle" onChange={(e) => setCategory(e.target.value)}>
<RadioGroup <MenuItem key="1" value="ciTitle">
row 제목
aria-label="category" </MenuItem>
name="row-radio-buttons-group" <MenuItem key="2" value="ciName">
value={category} 이름
onChange={(e) => setCategory(e.target.value)} </MenuItem>
> <MenuItem key="3" value="ciContents">
<FormControlLabel value="ciTitle" control={<Radio />} label="제목" /> 내용
<FormControlLabel value="ciName" control={<Radio />} label="이름" /> </MenuItem>
<FormControlLabel value="ciContents" control={<Radio />} label="내용" /> </Select>
</RadioGroup>
</FormControl>
</Grid> </Grid>
<Grid item> <Grid item>
<OutlinedInput <OutlinedInput

@ -19,7 +19,7 @@ const PublicBoard = () => {
const [totalCount, setTotalCount] = useState(0); const [totalCount, setTotalCount] = useState(0);
const [rowsState, setRowsState] = useState({ const [rowsState, setRowsState] = useState({
page: 0, page: 0,
pageSize: 5, pageSize: 10,
rows: [] rows: []
// loading: false // loading: false
}); });
@ -74,129 +74,6 @@ const PublicBoard = () => {
return ( return (
<MainCard> <MainCard>
<Grid container spacing={2} alignItems="center">
<Grid item xs={12} lg={4}>
<Grid container spacing={2} alignItems="center">
<Grid item xs={12} sm={3} lg={4} sx={{ pt: { xs: 2, sm: '0 !important' } }}>
<InputLabel horizontal sx={{ textAlign: { xs: 'left', sm: 'right' } }}>
Name :
</InputLabel>
</Grid>
<Grid item xs={12} sm={9} lg={8}>
<TextField fullWidth placeholder="Enter full name" />
</Grid>
</Grid>
</Grid>
<Grid item xs={12} lg={4}>
<Grid container spacing={2} alignItems="center">
<Grid item xs={12} sm={3} lg={4} sx={{ pt: { xs: 2, sm: '0 !important' } }}>
<InputLabel horizontal sx={{ textAlign: { xs: 'left', sm: 'right' } }}>
Email :
</InputLabel>
</Grid>
<Grid item xs={12} sm={9} lg={8}>
<TextField fullWidth placeholder="Enter email" />
</Grid>
</Grid>
</Grid>
<Grid item xs={12} lg={4}>
<Grid container spacing={2} alignItems="center">
<Grid item xs={12} sm={3} lg={4} sx={{ pt: { xs: 2, sm: '0 !important' } }}>
<InputLabel horizontal sx={{ textAlign: { xs: 'left', sm: 'right' } }}>
Password :
</InputLabel>
</Grid>
<Grid item xs={12} sm={9} lg={8}>
<TextField
type="password"
fullWidth
placeholder="Enter Password"
InputProps={{
startAdornment: (
<InputAdornment position="start">
<LockTwoToneIcon />
</InputAdornment>
)
}}
/>
</Grid>
</Grid>
</Grid>
<Grid item xs={12} lg={4}>
<Grid container spacing={2} alignItems="center">
<Grid item xs={12} sm={3} lg={4} sx={{ pt: { xs: 2, sm: '0 !important' } }}>
<InputLabel horizontal sx={{ textAlign: { xs: 'left', sm: 'right' } }}>
Contact :
</InputLabel>
</Grid>
<Grid item xs={12} sm={9} lg={8}>
<TextField fullWidth placeholder="Enter contact number" />
{/* <FormHelperText>Please enter your contact</FormHelperText> */}
</Grid>
</Grid>
</Grid>
<Grid item xs={12} lg={4}>
<Grid container spacing={2} alignItems="center">
<Grid item xs={12} sm={3} lg={4} sx={{ pt: { xs: 2, sm: '0 !important' } }}>
<InputLabel horizontal sx={{ textAlign: { xs: 'left', sm: 'right' } }}>
Profile URL :
</InputLabel>
</Grid>
<Grid item xs={12} sm={9} lg={8}>
<TextField
fullWidth
placeholder="Please enter your Profile URL"
InputProps={{
endAdornment: (
<InputAdornment position="end">
<LinkTwoToneIcon />
</InputAdornment>
)
}}
/>
</Grid>
</Grid>
</Grid>
<Grid item xs={12} lg={4}>
<Grid container spacing={2} alignItems="center">
<Grid item xs={12} sm={3} lg={4} sx={{ pt: { xs: 2, sm: '0 !important' } }}>
<InputLabel horizontal sx={{ textAlign: { xs: 'left', sm: 'right' } }}>
Pincode :
</InputLabel>
</Grid>
<Grid item xs={12} sm={9} lg={8}>
<TextField fullWidth placeholder="Enter your postcode" />
</Grid>
</Grid>
</Grid>
<Grid item xs={12} lg={4}>
<Grid container spacing={2} alignItems="center">
<Grid item xs={12} sm={3} lg={4} sx={{ pt: { xs: 2, sm: '0 !important' } }}>
<InputLabel horizontal sx={{ textAlign: { xs: 'left', sm: 'right' } }}>
Address :
</InputLabel>
</Grid>
<Grid item xs={12} sm={9} lg={8}>
<TextField fullWidth placeholder="Enter your address" />
</Grid>
</Grid>
</Grid>
<Grid item xs={12} lg={4}>
<Grid container spacing={2} alignItems="center">
<Grid item xs={12} sm={3} lg={4} sx={{ pt: { xs: 2, sm: '0 !important' } }}>
<InputLabel horizontal sx={{ textAlign: { xs: 'left', sm: 'right' } }}>
User Type :
</InputLabel>
</Grid>
<Grid item xs={12} sm={9} lg={8}>
<RadioGroup aria-label="gender" name="controlled-radio-buttons-group">
<FormControlLabel value="female" control={<Radio />} label="Administrator" />
<FormControlLabel value="male" control={<Radio />} label="Author" />
</RadioGroup>
</Grid>
</Grid>
</Grid>
</Grid>
<Grid item xs={12}> <Grid item xs={12}>
<Divider /> <Divider />
</Grid> </Grid>

@ -8,6 +8,7 @@ import {
Divider, Divider,
FormControl, FormControl,
FormControlLabel, FormControlLabel,
FormLabel,
Grid, Grid,
InputAdornment, InputAdornment,
MenuItem, MenuItem,
@ -28,6 +29,7 @@ import MainCard from 'ui-component/cards/MainCard';
import MuiGridList from 'ui-component/MuiGridList'; import MuiGridList from 'ui-component/MuiGridList';
import { useTheme } from '@mui/material/styles'; import { useTheme } from '@mui/material/styles';
import AnimateButton from '../../../ui-component/extended/AnimateButton'; import AnimateButton from '../../../ui-component/extended/AnimateButton';
import InputLabel from '../../../ui-component/extended/Form/InputLabel';
const ParkingRegister = () => { const ParkingRegister = () => {
const theme = useTheme(); const theme = useTheme();
@ -43,6 +45,8 @@ const ParkingRegister = () => {
// loading: false // loading: false
}); });
const [spacing, setSpacing] = useState(2);
const columns = [ const columns = [
{ headerName: '심의차수', field: 'ciCode' }, { headerName: '심의차수', field: 'ciCode' },
{ headerName: '심사건수', field: 'ciContentno' }, { headerName: '심사건수', field: 'ciContentno' },
@ -82,7 +86,10 @@ const ParkingRegister = () => {
<Grid item xs={12} lg={6}> <Grid item xs={12} lg={6}>
<Grid container spacing={1}> <Grid container spacing={1}>
<Grid item> <Grid item>
<FormControl> <FormControl component="fieldset">
<FormLabel component="legend" required>
자료등록여부
</FormLabel>
<RadioGroup <RadioGroup
row row
aria-label="category" aria-label="category"

Loading…
Cancel
Save