feat: 관리자 - 위원회관리 - 위원회 일정관리에서 날짜 오류 수정 건
관리자 - 위원회관리 - 위원회 일정관리에서 일정을 만들기 위해 특정 날짜를 선택 할 때, 자동완성되는 날짜가 선택된 날짜가 아닌 금일로 나타나는 버그 수정 건thkim
parent
201698ccd9
commit
37616477ae
|
|
@ -154,7 +154,7 @@ function Schedules(props) {
|
|||
if (scheduleList.length > 0) {//일정 있는 경우
|
||||
return (
|
||||
<td key={keyIdx++}>
|
||||
<Link to={{pathname: URL.ADMIN__COMMITTEE__SCHEDULES__CREATE}} state={{iUseDate: mutsUseYearMonth + sDate + "000000"}} className="day"
|
||||
<Link to={{pathname: URL.ADMIN__COMMITTEE__SCHEDULES__CREATE}} sss="test" state={{test: "ddfdf", iUseDate: mutsUseYearMonth + sDate + "000000"}} className="day"
|
||||
key={keyIdx++}>{day}</Link><br/>
|
||||
{
|
||||
scheduleList.map((schedule, scheduleIdx) => {
|
||||
|
|
@ -186,7 +186,7 @@ function Schedules(props) {
|
|||
key={keyIdx++}>{day}</Link><br/>
|
||||
</td>);
|
||||
}
|
||||
} else if (day === 0) {// 이전달/다음달 구현
|
||||
} else if (day === 0) {// 이전 달/다음 달 구현
|
||||
return (<td key={keyIdx++}></td>);
|
||||
} else return <></>
|
||||
})
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@ function SchedulesDetail(props) {
|
|||
console.log("====>>> Schdule delete= ", resp);
|
||||
if (Number(resp.resultCode) === Number(CODE.RCV_SUCCESS)) {
|
||||
alert("게시글이 삭제되었습니다.")
|
||||
navigate(URL.ADMIN_SCHEDULE ,{ replace: true });
|
||||
navigate(URL.ADMIN__COMMITTEE__SCHEDULES ,{ replace: true });
|
||||
} else {
|
||||
// alert("ERR : " + resp.message);
|
||||
navigate({pathname: URL.ERROR}, {state: {msg : resp.resultMessage}});
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ function SchedulesEdit(props) {
|
|||
const classes = useStyles();
|
||||
const [isShake, setShake] = useState(false);
|
||||
|
||||
|
||||
//${location.state?.schdulId
|
||||
|
||||
const getDateFourteenDigit = (date) => {
|
||||
return `${getYYYY_MM_DD(date).toString()} ${makeTwoDigit(date.getHours())}:${makeTwoDigit(date.getMinutes())}:${makeTwoDigit(date.getSeconds())}`;
|
||||
|
|
@ -139,8 +139,7 @@ function SchedulesEdit(props) {
|
|||
}
|
||||
}
|
||||
|
||||
const retrieveDetail = () => {
|
||||
|
||||
const retrieveDetail = () => {
|
||||
|
||||
EgovNet.requestFetch("/schedule/init",
|
||||
requestOptions,
|
||||
|
|
@ -153,7 +152,11 @@ function SchedulesEdit(props) {
|
|||
|
||||
if (modeInfo.mode === CODE.MODE_CREATE) {// 조회/등록이면 조회 안함
|
||||
setScheduleDetail({
|
||||
...scheduleDetail
|
||||
...scheduleDetail,
|
||||
schdulBgnde: location.state.iUseDate,
|
||||
schdulEndde: location.state.iUseDate,
|
||||
startDate: convertDate(location.state.iUseDate),
|
||||
endDate: convertDate(location.state.iUseDate),
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue