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 8a5604c..b69755b 100644 --- a/egovframe-template-simple-react-contribution/src/pages/standardCode/StandardCodeList.jsx +++ b/egovframe-template-simple-react-contribution/src/pages/standardCode/StandardCodeList.jsx @@ -9,7 +9,7 @@ import { NOTICE_BBS_ID } from 'config'; import EgovPaging from 'components/EgovPaging'; import { itemIdxByPage } from 'utils/calc'; -import {StandardCodeListModal,TestTable} from './StandardCodeListModal' +import {StandardCodeListModal, StandardCodeListModalTable} from './StandardCodeListModal' function StandardCodeList(props) { const {listCode} = useParams(); @@ -32,21 +32,29 @@ function StandardCodeList(props) { },(resp) =>{ console.log(resp+"------------------------resp") const body =[]; - + const head =[]; if(resp.length>0){ resp.forEach(function (item,index){ const formattedDate = item.aplcnBgngYmd.match(/\d{4}-\d{2}-\d{2}/)[0]; + const url = "https://www.kcsc.re.kr/file/DownloadGrp/"+item.docFileGrpId; body.push( {formattedDate} - {item.docFileGrpId} + {item.docFileGrpId} ) }) + head.push( + + 년도 + 기준코드 + 신구건설기준비교 + + ) } - setgroupseq(); + setgroupseq(); } ) setshow(true); @@ -109,20 +117,20 @@ function StandardCodeList(props) { -
-
+
{item.mainCategory}
+
{item.middleCategory}
{item.kcscCd}
{(item.replyLc * 1 ? true : false) &&
- {item.docNm} + {item.groupNm}
} {(item.replyLc * 1 ? false : true) &&
- {item.docNm} + {item.groupNm}
}
-
-
+
{item.contentcount>0?{item.kcscCd}:null}
+
{item.docFileGrpId}
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 b4fe70d..ef87d39 100644 --- a/egovframe-template-simple-react-contribution/src/pages/standardCode/StandardCodeListModal.js +++ b/egovframe-template-simple-react-contribution/src/pages/standardCode/StandardCodeListModal.js @@ -14,22 +14,17 @@ function StandardCodeListModal({show,content,onClose,title,size}){ ) } -function TestTable({content}){ - - +function StandardCodeListModalTable({head,content}){ return( - - - - - + {head} - {content} + {content}
년도기준코드신구건설기준비교
) } -export {StandardCodeListModal,TestTable}; \ No newline at end of file + +export {StandardCodeListModal,StandardCodeListModalTable}; \ No newline at end of file