From 6423d6e90813e24c20bff7563fbd5ea75c87195e Mon Sep 17 00:00:00 2001 From: dbnt-design Date: Tue, 7 Nov 2023 13:11:22 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B1=B4=EC=84=A4=EA=B8=B0=EC=A4=80=EC=BD=94?= =?UTF-8?q?=EB=93=9C=EB=A6=AC=EC=8A=A4=ED=8A=B8=EB=AA=A8=EB=8B=AC=EC=B0=BD?= =?UTF-8?q?=EA=B5=AC=ED=98=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/standardCode/StandardCodeList.jsx | 54 ++++++++++++++----- .../standardCode/StandardCodeListModal.js | 30 ++++++++--- 2 files changed, 64 insertions(+), 20 deletions(-) diff --git a/egovframe-template-simple-react-contribution/src/pages/standardCode/StandardCodeList.jsx b/egovframe-template-simple-react-contribution/src/pages/standardCode/StandardCodeList.jsx index 5fb3218..8a5604c 100644 --- a/egovframe-template-simple-react-contribution/src/pages/standardCode/StandardCodeList.jsx +++ b/egovframe-template-simple-react-contribution/src/pages/standardCode/StandardCodeList.jsx @@ -5,11 +5,11 @@ import * as EgovNet from 'api/egovFetch'; import URL from 'constants/url'; import { NOTICE_BBS_ID } from 'config'; -import { default as EgovLeftNav } from 'components/leftmenu/EgovLeftNavInform'; + import EgovPaging from 'components/EgovPaging'; import { itemIdxByPage } from 'utils/calc'; -import StandardCodeListModal from './StandardCodeListModal' +import {StandardCodeListModal,TestTable} from './StandardCodeListModal' function StandardCodeList(props) { const {listCode} = useParams(); @@ -17,8 +17,40 @@ function StandardCodeList(props) { const [groupseq,setgroupseq] = useState(); function showhandling(e){ const param = e.currentTarget.dataset; + const groupseq = param.groupseq; + console.log(groupseq); + EgovNet.requestFetch( + '/standardCode/testCodeList.do', + { + method: "POST", + headers: { + 'Content-type': 'application/json' + }, + body: JSON.stringify( + groupseq + ) + },(resp) =>{ + console.log(resp+"------------------------resp") + const body =[]; + + if(resp.length>0){ + + resp.forEach(function (item,index){ + const formattedDate = item.aplcnBgngYmd.match(/\d{4}-\d{2}-\d{2}/)[0]; + body.push( + + {formattedDate} + {item.docFileGrpId} + + ) + }) + } + + setgroupseq(); + } + ) setshow(true); - setgroupseq(param.groupseq); + } function close () { setshow(false); @@ -75,15 +107,8 @@ function StandardCodeList(props) { mutListTag.push( + className="list_item List_Codes" >
{item.kcscCd}
@@ -134,14 +159,14 @@ function StandardCodeList(props) {
{/* */} - + {/* */}
{/* */}
-

건설기준코드

+

건설기준코드

설계기준, 표준시방서 내용을 열람할 수 있습니다.

@@ -206,7 +231,8 @@ function StandardCodeList(props) { retrieveList({ ...searchCondition, pageIndex: passedPage, searchCnd: cndRef.current.value, searchWrd: wrdRef.current.value }) }} /> {/* */} - + +
{/* */} diff --git a/egovframe-template-simple-react-contribution/src/pages/standardCode/StandardCodeListModal.js b/egovframe-template-simple-react-contribution/src/pages/standardCode/StandardCodeListModal.js index 1838a26..b4fe70d 100644 --- a/egovframe-template-simple-react-contribution/src/pages/standardCode/StandardCodeListModal.js +++ b/egovframe-template-simple-react-contribution/src/pages/standardCode/StandardCodeListModal.js @@ -1,17 +1,35 @@ import {Button, Modal, ModalBody, ModalFooter, ModalHeader, ModalTitle} from "react-bootstrap"; -function StandardCodeListModal({show,groupseq,onClose}){ - //todo 로직추가구현필요 +function StandardCodeListModal({show,content,onClose,title,size}){ return( - + - 개정이력 + {title} - {groupseq} + {content} ) } -export default StandardCodeListModal; \ No newline at end of file + +function TestTable({content}){ + + + return( + + + + + + + + + + {content} + +
년도기준코드신구건설기준비교
+ ) +} +export {StandardCodeListModal,TestTable}; \ No newline at end of file