From 274ade0af0e4403affa6e8db2666ffd25d01f3ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9C=A0=EB=AF=BC=ED=98=95?= Date: Fri, 8 Mar 2024 09:17:01 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B2=8C=EC=8B=9C=ED=8C=90=EA=B4=80=EB=A6=AC?= =?UTF-8?q?=20=EC=B5=9C=EC=A2=85=EC=88=98=EC=A0=95=EC=9D=BC,=20=EC=82=AC?= =?UTF-8?q?=EC=9A=A9=EC=97=AC=EB=B6=80=20=ED=91=9C=EC=8B=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/pages/admin/boards/List.jsx | 54 +++---------------- 1 file changed, 6 insertions(+), 48 deletions(-) diff --git a/egovframe-template-simple-react-contribution/src/pages/admin/boards/List.jsx b/egovframe-template-simple-react-contribution/src/pages/admin/boards/List.jsx index 2a1381b..27d39a3 100644 --- a/egovframe-template-simple-react-contribution/src/pages/admin/boards/List.jsx +++ b/egovframe-template-simple-react-contribution/src/pages/admin/boards/List.jsx @@ -53,6 +53,8 @@ function EgovAdminBoardList(props) { // 리스트 항목 구성 resp.result.boardList.forEach(function (item, index) { if (index === 0) mutListTag = []; // 목록 초기화 + const finalModifiedDate = item.lastChgDt ? item.lastChgDt : item.frstCrtDt; + const formattedDate = finalModifiedDate ? format(finalModifiedDate, "yyyy-MM-dd HH:mm") : ""; mutListTag.push(
@@ -60,8 +62,8 @@ function EgovAdminBoardList(props) {
{item.bbsId}
{item.bbsTitle}
{item.frstCrtId}
-
{item.frstCrtDt ? format(item.frstCrtDt, "yyyy-MM-dd HH:mm") : ""}
-
{item.lastChgDt ? format(item.lastChgDt, "yyyy-MM-dd HH:mm") : ""}
+
{formattedDate}
+
{item.useYn}
); @@ -79,7 +81,6 @@ function EgovAdminBoardList(props) { useEffect(() => { retrieveList(searchCondition); - // eslint-disable-next-line react-hooks/exhaustive-deps }, []); function editBoard(item){ @@ -118,44 +119,6 @@ function EgovAdminBoardList(props) {

게시판 관리

- - {/* */} - {/*
- -
*/} - {/* */} - {/* */}
@@ -163,8 +126,8 @@ function EgovAdminBoardList(props) { 아이디 제목 작성자 - 작성일 - 수정일 + 최종수정일 + 사용여부
@@ -174,11 +137,6 @@ function EgovAdminBoardList(props) { {/* */}
- {/* */} - {/* { - retrieveList({ ...searchCondition, pageIndex: passedPage, searchCnd: cndRef.current.value, searchWrd: wrdRef.current.value }) - }} />*/} - {/* */}
{/* */}