feat: 관리자 - 위원회관리 - 위원회 일정관리 추가 건
parent
1f20255dd9
commit
201698ccd9
|
|
@ -30,3 +30,6 @@ yarn-error.log*
|
|||
|
||||
# code
|
||||
.history
|
||||
|
||||
# Develop environment
|
||||
.env.development.local
|
||||
|
|
@ -18,8 +18,8 @@ function Schedules(props) {
|
|||
console.log("EgovAdminScheduleList [location] : ", location);
|
||||
|
||||
const DATE = new Date();
|
||||
//const TODAY = new Date(DATE.getFullYear(), DATE.getMonth(), DATE.getDate());
|
||||
const TODAY = new Date(2023, 2, DATE.getDate());
|
||||
const TODAY = new Date(DATE.getFullYear(), DATE.getMonth(), DATE.getDate());
|
||||
//const TODAY = new Date(2023, 2, DATE.getDate());
|
||||
|
||||
const [searchCondition, setSearchCondition] = useState(location.state?.searchCondition || { schdulSe: '', year: TODAY.getFullYear(), month: TODAY.getMonth(), date: TODAY.getDate() });
|
||||
const [calendarTag, setCalendarTag] = useState([]);
|
||||
|
|
@ -160,18 +160,14 @@ function Schedules(props) {
|
|||
scheduleList.map((schedule, scheduleIdx) => {
|
||||
let test = schedule.evt_start_dt.replace('-','');
|
||||
console.log( test );
|
||||
let iBeginDate = Number(schedule.evt_start_dt.replace('-','').substring(0, 8));
|
||||
let iEndDate = Number(schedule.evt_end_dt.replace('-','').substring(0, 8));
|
||||
|
||||
/*
|
||||
let iBeginDate = Number(schedule.schdulBgnde.substring(0, 8));
|
||||
let iEndDate = Number(schedule.schdulEndde.substring(0, 8));
|
||||
let iBeginDate = Number(schedule.evt_start_dt.substring(0, 8));
|
||||
let iEndDate = Number(schedule.evt_end_dt.substring(0, 8));
|
||||
innerConsole("scheduleList ", day, scheduleIdx, iBeginDate, iUseDate, iEndDate, iUseDate >= iBeginDate && iUseDate <= iEndDate);
|
||||
innerConsole("schedule.schdulId ", schedule.schdulId);
|
||||
if (iUseDate >= iBeginDate && iUseDate <= iEndDate) {
|
||||
return (
|
||||
<>
|
||||
<Link to={{pathname: URL.ADMIN_SCHEDULE_DETAIL}}
|
||||
<Link to={{pathname: URL.ADMIN__COMMITTEE__SCHEDULES__DETAIL}}
|
||||
state={{schdulId: schedule.schdulId}}
|
||||
key={keyIdx++}>{schedule.schdulNm}
|
||||
</Link>
|
||||
|
|
@ -179,9 +175,6 @@ function Schedules(props) {
|
|||
</>
|
||||
);
|
||||
} else return <></>
|
||||
*/
|
||||
|
||||
return <></>
|
||||
})
|
||||
}
|
||||
</td>
|
||||
|
|
|
|||
Loading…
Reference in New Issue