게시물관리 저장후 카테고리 반영되서 조회되도록 수정
parent
f09da411c0
commit
c7c8f80843
|
|
@ -13,7 +13,8 @@ import RichTextEditor from "../../../components/editor/RichTextEditor";
|
||||||
import AttachFile from "../../../components/file/AttachFile";
|
import AttachFile from "../../../components/file/AttachFile";
|
||||||
|
|
||||||
|
|
||||||
function AdminPostMgtEdit({props, reloadFunction}) {
|
function AdminPostMgtEdit({props, reloadFunction, searchCondition}) {
|
||||||
|
console.log("@@@ searchCondition : " + JSON.stringify(searchCondition));
|
||||||
console.group("AdminPostMgtEdit");
|
console.group("AdminPostMgtEdit");
|
||||||
console.log("[Start] AdminPostMgtEdit ------------------------------");
|
console.log("[Start] AdminPostMgtEdit ------------------------------");
|
||||||
console.log("AdminPostMgtEdit [props] : ", props);
|
console.log("AdminPostMgtEdit [props] : ", props);
|
||||||
|
|
@ -108,7 +109,7 @@ function AdminPostMgtEdit({props, reloadFunction}) {
|
||||||
(resp) => {
|
(resp) => {
|
||||||
if (Number(resp.resultCode) === Number(CODE.RCV_SUCCESS)) {
|
if (Number(resp.resultCode) === Number(CODE.RCV_SUCCESS)) {
|
||||||
alert("저장되었습니다.");
|
alert("저장되었습니다.");
|
||||||
reloadFunction();
|
reloadFunction(searchCondition);
|
||||||
} else if (Number(resp.resultCode) === Number(CODE.RCV_ERROR_AUTH)) {
|
} else if (Number(resp.resultCode) === Number(CODE.RCV_ERROR_AUTH)) {
|
||||||
console.log("토큰 갱신중.")
|
console.log("토큰 갱신중.")
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -131,7 +132,7 @@ function AdminPostMgtEdit({props, reloadFunction}) {
|
||||||
},
|
},
|
||||||
(resp) => {
|
(resp) => {
|
||||||
if (Number(resp.resultCode) === Number(CODE.RCV_SUCCESS)) {
|
if (Number(resp.resultCode) === Number(CODE.RCV_SUCCESS)) {
|
||||||
reloadFunction();
|
reloadFunction(searchCondition);
|
||||||
} else if (Number(resp.resultCode) === Number(CODE.RCV_ERROR_AUTH)) {
|
} else if (Number(resp.resultCode) === Number(CODE.RCV_ERROR_AUTH)) {
|
||||||
console.log("토큰 갱신중.")
|
console.log("토큰 갱신중.")
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
|
|
@ -122,7 +122,7 @@ function AdminPostMgtList(props) {
|
||||||
item = {};
|
item = {};
|
||||||
item.selectedBbsSeq = searchCondition.bbsSeq;
|
item.selectedBbsSeq = searchCondition.bbsSeq;
|
||||||
}
|
}
|
||||||
setModalBody(<AdminPostMgtEdit props={item} reloadFunction={(searchCondition) => retrieveList(searchCondition)}/>)
|
setModalBody(<AdminPostMgtEdit props={item} reloadFunction={(searchCondition) => retrieveList(searchCondition)} searchCondition={searchCondition}/>)
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log("------------------------------EgovAdminPostList [End]");
|
console.log("------------------------------EgovAdminPostList [End]");
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue