test: 관리자 위원회 관리 / 위원회 일정 관리에 달력 일정 표시 테스트
parent
de9edc41ee
commit
18f3f729c1
|
|
@ -150,28 +150,16 @@ function Schedules(props) {
|
||||||
if (day !== 0) {//당월 일별 구현
|
if (day !== 0) {//당월 일별 구현
|
||||||
let sDate = day.toString().length === 1 ? "0" + day.toString() : day.toString();
|
let sDate = day.toString().length === 1 ? "0" + day.toString() : day.toString();
|
||||||
let iUseDate = Number(mutsUseYearMonth + sDate);
|
let iUseDate = Number(mutsUseYearMonth + sDate);
|
||||||
if (scheduleList.length > 0) {//일정 있는 경우
|
if (scheduleList.length > 0 || sDate === "01") {//일정 있는 경우
|
||||||
return (
|
return (
|
||||||
<td key={keyIdx++}>
|
<td key={keyIdx++}>
|
||||||
<Link to={{pathname: URL.ADMIN_SCHEDULE_CREATE}} state={{iUseDate : mutsUseYearMonth + sDate + "000000"}} className="day" key={keyIdx++}>{day}</Link><br />
|
<Link to={{pathname: URL.ADMIN_SCHEDULE_CREATE}} state={{iUseDate : mutsUseYearMonth + sDate + "000000"}} className="day" key={keyIdx++}>{day}</Link><br />
|
||||||
{
|
{
|
||||||
scheduleList.map((schedule, scheduleIdx) => {
|
<div>
|
||||||
let iBeginDate = Number(schedule.schdulBgnde.substring(0, 8));
|
<div>오후 03:00 [P] 해양경찰청</div>
|
||||||
let iEndDate = Number(schedule.schdulEndde.substring(0, 8));
|
<div>오후 05:00 [P] 미팅...</div>
|
||||||
innerConsole("scheduleList ", day, scheduleIdx, iBeginDate, iUseDate, iEndDate, iUseDate >= iBeginDate && iUseDate <= iEndDate);
|
</div>
|
||||||
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>
|
</td>
|
||||||
);
|
);
|
||||||
|
|
@ -299,7 +287,7 @@ function Schedules(props) {
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{calendarTag}
|
{true && calendarTag}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue