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) {// 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 || sDate === "01") {// if (scheduleList.length > 0) {//
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 />
{ {
<div> scheduleList.map((schedule, scheduleIdx) => {
<div>오후 03:00 [P] 해양경찰청</div> let iBeginDate = Number(schedule.schdulBgnde.substring(0, 8));
<div>오후 05:00 [P] 미팅...</div> let iEndDate = Number(schedule.schdulEndde.substring(0, 8));
</div> 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> </td>
); );
@ -287,7 +299,7 @@ function Schedules(props) {
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
{true && calendarTag} {calendarTag}
</tbody> </tbody>
</table> </table>
</div> </div>