feat: 관리자 - 위원회관리 - 위원회 일정관리에서 날짜 오류 수정 건

관리자 - 위원회관리 - 위원회 일정관리에서 일정을 만들기 위해 특정 날짜를 선택 할 때, 자동완성되는 날짜가 선택된 날짜가 아닌 금일로 나타나는 버그 수정 건
thkim
thkim 2024-01-22 11:55:36 +09:00
parent 201698ccd9
commit 37616477ae
3 changed files with 10 additions and 7 deletions

View File

@ -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 <></>
})

View File

@ -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}});

View File

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