feat: 심의등록 저장 반영
parent
e5de6c5462
commit
20eeb80c0b
@ -1,15 +1,16 @@
|
|||||||
// const URL = process.env.NODE_ENV !== 'development' ? process.env.REACT_APP_API_URL : ''
|
// const URL = process.env.NODE_ENV !== 'development' ? process.env.REACT_APP_API_URL : ''
|
||||||
// console.log(process.env.NODE_ENV)
|
// console.log(process.env.NODE_ENV)
|
||||||
export const LOGIN_URL = '/api/v1/ctgy/account/login';
|
export const LOGIN_URL = '/api/v1/ctgy/account/login';
|
||||||
export const CMM_CODE_LIST_URL = '/api/v1/biz/cmm/combo';
|
export const GET_CMM_CODE_LIST = '/api/v1/biz/cmm/combo';
|
||||||
|
|
||||||
// 공지사항
|
// 공지사항
|
||||||
export const PUBLIC_BOARD_LIST_URL = '/api/v1/ctgy/pboard';
|
export const GET_PUBLIC_BOARD_LIST = '/api/v1/ctgy/pboard';
|
||||||
|
|
||||||
// 게시판
|
// 게시판
|
||||||
export const BOARD_LIST_URL = '/api/v1/ctgy/board';
|
export const GET_BOARD_LIST = '/api/v1/ctgy/board';
|
||||||
|
|
||||||
// 주정차 의견 진술
|
// 주정차 의견 진술
|
||||||
export const PARKING_SIMSA_LIST_URL = '/api/v1/ctgy/parking';
|
export const GET_PARKING_SIMSA_LIST = '/api/v1/ctgy/parking';
|
||||||
export const PARKING_SIMSA_DETAILS_LIST_URL = '/api/v1/ctgy/parking/details';
|
export const GET_PARKING_SIMSA_DETAILS_LIST = '/api/v1/ctgy/parking/details';
|
||||||
export const PARKING_SIMSA_TARGET_LIST_URL = '/api/v1/ctgy/parking/target';
|
export const GET_PARKING_SIMSA_TARGET_LIST = '/api/v1/ctgy/parking/target';
|
||||||
|
export const SAVE_PARKING_SIMSA_TARGET = '/api/v1/ctgy/parking/target';
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
export const ACCESS_TOKEN_NAME = 'accessToken';
|
export const ACCESS_TOKEN_NAME = 'accessToken';
|
||||||
export const REFRESH_TOKEN_NAME = 'accessToken';
|
export const REFRESH_TOKEN_NAME = 'refreshToken';
|
||||||
export const AUTH_HEADER_NAME = 'Authorization';
|
export const AUTH_HEADER_NAME = 'Authorization';
|
||||||
|
@ -0,0 +1,65 @@
|
|||||||
|
// import React from 'react';
|
||||||
|
|
||||||
|
import format from 'date-fns/format';
|
||||||
|
import koLocale from 'date-fns/locale/ko';
|
||||||
|
|
||||||
|
import TextField from '@mui/material/TextField';
|
||||||
|
import DateAdapter from '@mui/lab/AdapterDateFns';
|
||||||
|
// import DateAdapter from '@mui/lab/AdapterDayjs';
|
||||||
|
// import DateAdapter from '@mui/lab/AdapterLuxon';
|
||||||
|
// import DateAdapter from '@mui/lab/AdapterMoment';
|
||||||
|
import LocalizationProvider from '@mui/lab/LocalizationProvider';
|
||||||
|
import { DatePicker, TimePicker, DateTimePicker } from '@mui/lab';
|
||||||
|
import NumberFormat from 'react-number-format';
|
||||||
|
|
||||||
|
const MuiDateTimePicker = ({ label, date, setDate }) => (
|
||||||
|
// <LocalizationProvider dateAdapter={DateAdapter} locale={koLocale}>
|
||||||
|
<DateTimePicker
|
||||||
|
// size="small"
|
||||||
|
renderInput={(props) => <TextField fullWidth {...props} />}
|
||||||
|
label={label}
|
||||||
|
value={date}
|
||||||
|
inputFormat="yyyy-MM-dd HH:mm:ss"
|
||||||
|
mask="____-__-__ __:__:__"
|
||||||
|
onChange={(newValue) => {
|
||||||
|
setDate(newValue);
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
// </LocalizationProvider>
|
||||||
|
);
|
||||||
|
|
||||||
|
const MuiDatePicker = ({ label, date, setDate }) => (
|
||||||
|
<LocalizationProvider dateAdapter={DateAdapter} locale={koLocale}>
|
||||||
|
<DatePicker
|
||||||
|
// size="small"
|
||||||
|
renderInput={(props) => <TextField fullWidth {...props} />}
|
||||||
|
label={label}
|
||||||
|
value={date}
|
||||||
|
inputFormat="yyyy-MM-dd"
|
||||||
|
mask="____-__-__"
|
||||||
|
onChange={(newValue) => {
|
||||||
|
setDate(newValue);
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</LocalizationProvider>
|
||||||
|
);
|
||||||
|
|
||||||
|
const MuiTimePicker = ({ label, date, setDate }) => (
|
||||||
|
<LocalizationProvider dateAdapter={DateAdapter} locale={koLocale}>
|
||||||
|
<TimePicker
|
||||||
|
size="small"
|
||||||
|
views={['hours']}
|
||||||
|
renderInput={(props) => <TextField fullWidth {...props} />}
|
||||||
|
// renderInput={(props) => <NumberFormat customInput={TextField} fullWidth {...props} format="##" />}
|
||||||
|
label={label}
|
||||||
|
value={date}
|
||||||
|
inputFormat="HH"
|
||||||
|
mask="__"
|
||||||
|
onChange={(newValue) => {
|
||||||
|
setDate(newValue);
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</LocalizationProvider>
|
||||||
|
);
|
||||||
|
|
||||||
|
export { MuiDateTimePicker, MuiDatePicker, MuiTimePicker };
|
Loading…
Reference in New Issue