test: 관리자 위원회 관리 / 위원회 일정 관리에 달력 일정 표시 테스트

thkim
thkim 2023-12-28 17:05:35 +09:00
parent de9edc41ee
commit 18f3f729c1
1 changed files with 7 additions and 19 deletions

View File

@ -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>