Compare commits

..

No commits in common. "097089d048db23fb8364a6d976d0628f1c306221" and "943e759060a3bb32b2fbe678eb138ecc44316695" have entirely different histories.

1 changed files with 19 additions and 7 deletions

View File

@ -150,16 +150,28 @@ function Schedules(props) {
if (day !== 0) {//
let sDate = day.toString().length === 1 ? "0" + day.toString() : day.toString();
let iUseDate = Number(mutsUseYearMonth + sDate);
if (scheduleList.length > 0 || sDate === "01") {//
if (scheduleList.length > 0) {//
return (
<td key={keyIdx++}>
<Link to={{pathname: URL.ADMIN_SCHEDULE_CREATE}} state={{iUseDate : mutsUseYearMonth + sDate + "000000"}} className="day" key={keyIdx++}>{day}</Link><br />
{
<div>
<div>오후 03:00 [P] 해양경찰청</div>
<div>오후 05:00 [P] 미팅...</div>
</div>
scheduleList.map((schedule, scheduleIdx) => {
let iBeginDate = Number(schedule.schdulBgnde.substring(0, 8));
let iEndDate = Number(schedule.schdulEndde.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}}
state={{schdulId : schedule.schdulId}}
key={keyIdx++}>{schedule.schdulNm}
</Link>
<br />
</>
);
} else return <></>
})
}
</td>
);
@ -287,7 +299,7 @@ function Schedules(props) {
</tr>
</thead>
<tbody>
{true && calendarTag}
{calendarTag}
</tbody>
</table>
</div>