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