From 201698ccd957ea374490d71a06fce7b408a0089f Mon Sep 17 00:00:00 2001 From: thkim Date: Mon, 22 Jan 2024 10:28:36 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EA=B4=80=EB=A6=AC=EC=9E=90=20-=20?= =?UTF-8?q?=EC=9C=84=EC=9B=90=ED=9A=8C=EA=B4=80=EB=A6=AC=20-=20=EC=9C=84?= =?UTF-8?q?=EC=9B=90=ED=9A=8C=20=EC=9D=BC=EC=A0=95=EA=B4=80=EB=A6=AC=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80=20=EA=B1=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../.gitignore | 3 +++ .../src/pages/admin/committee/Schedules.jsx | 17 +++++------------ 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/egovframe-template-simple-react-contribution/.gitignore b/egovframe-template-simple-react-contribution/.gitignore index 18ee28c..7a0ffae 100644 --- a/egovframe-template-simple-react-contribution/.gitignore +++ b/egovframe-template-simple-react-contribution/.gitignore @@ -30,3 +30,6 @@ yarn-error.log* # code .history + +# Develop environment +.env.development.local \ No newline at end of file diff --git a/egovframe-template-simple-react-contribution/src/pages/admin/committee/Schedules.jsx b/egovframe-template-simple-react-contribution/src/pages/admin/committee/Schedules.jsx index 584340b..6cb7e7e 100644 --- a/egovframe-template-simple-react-contribution/src/pages/admin/committee/Schedules.jsx +++ b/egovframe-template-simple-react-contribution/src/pages/admin/committee/Schedules.jsx @@ -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 ( <> - {schedule.schdulNm} @@ -179,9 +175,6 @@ function Schedules(props) { ); } else return <> - */ - - return <> }) }