|
|
@@ -182,7 +182,7 @@ const PublicNoticeDetail_GLD = () => { |
|
|
|
} else if (getStatus == "notAccepted") { |
|
|
|
onNotAcceptClick(getReason); |
|
|
|
} else if (getStatus == "resubmit") { |
|
|
|
onReSubmitClick(); |
|
|
|
onReSubmitClick(getReason); |
|
|
|
} else if (getStatus == "publish") { |
|
|
|
onPublishClick(); |
|
|
|
} |
|
|
@@ -278,22 +278,33 @@ const PublicNoticeDetail_GLD = () => { |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
const onReSubmitClick = () => { |
|
|
|
const onReSubmitClick = (reason) => { |
|
|
|
if (params.id > 0) { |
|
|
|
axios.get(`${SET_PUBLIC_NOTICE_STATUS_RESUBMIT}/${params.id}`) |
|
|
|
.then((response) => { |
|
|
|
if (response.status === 204) { |
|
|
|
setOpen(false); |
|
|
|
handleClose(); |
|
|
|
// location.reload(); |
|
|
|
loadApplicationDetail() |
|
|
|
notifySaveSuccess() |
|
|
|
} |
|
|
|
}) |
|
|
|
.catch(error => { |
|
|
|
console.log(error); |
|
|
|
return false; |
|
|
|
}); |
|
|
|
HttpUtils.post({ |
|
|
|
url: `${SET_PUBLIC_NOTICE_STATUS_RESUBMIT}/${params.id}`, |
|
|
|
params: reason, |
|
|
|
onSuccess: function () { |
|
|
|
setOpen(false); |
|
|
|
handleClose(); |
|
|
|
// location.reload(); |
|
|
|
loadApplicationDetail() |
|
|
|
notifySaveSuccess() |
|
|
|
} |
|
|
|
}); |
|
|
|
// axios.post(`${SET_PUBLIC_NOTICE_STATUS_RESUBMIT}/${params.id}`) |
|
|
|
// .then((response) => { |
|
|
|
// if (response.status === 204) { |
|
|
|
// setOpen(false); |
|
|
|
// handleClose(); |
|
|
|
// // location.reload(); |
|
|
|
// loadApplicationDetail() |
|
|
|
// notifySaveSuccess() |
|
|
|
// } |
|
|
|
// }) |
|
|
|
// .catch(error => { |
|
|
|
// console.log(error); |
|
|
|
// return false; |
|
|
|
// }); |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|