import React, { useState, useEffect, useCallback } from 'react'; import { Link, useLocation } from 'react-router-dom'; import Row from 'react-bootstrap/Row'; import Col from 'react-bootstrap/Col'; import Button from 'react-bootstrap/Button'; import * as EgovNet from 'api/egovFetch'; import URL from 'constants/url'; function EgovMain(props) { console.group("EgovMain"); console.log("[Start] EgovMain ------------------------------"); console.log("EgovMain [props] : ", props); const location = useLocation(); console.log("EgovMain [location] : ", location); // eslint-disable-next-line no-unused-vars const [noticeBoard, setNoticeBoard] = useState(); // eslint-disable-next-line no-unused-vars const [gallaryBoard, setGallaryBoard] = useState(); const [noticeListTag, setNoticeListTag] = useState(); const [gallaryListTag, setGallaryListTag] = useState(); const retrieveList = useCallback(() => { console.groupCollapsed("EgovMain.retrieveList()"); const retrieveListURL = '/cmm/main/mainPageAPI.do'; const requestOptions = { method: "POST", headers: { 'Content-type': 'application/json' }, body: JSON.stringify() } EgovNet.requestFetch(retrieveListURL, requestOptions, (resp) => { setNoticeBoard(resp.result.notiList); setGallaryBoard(resp.result.galList); let mutNotiListTag = []; mutNotiListTag.push(
  • 검색된 결과가 없습니다.
  • ); // 게시판 목록 초기값 // 리스트 항목 구성 resp.result.notiList.forEach(function (item, index) { if (index === 0) mutNotiListTag = []; // 목록 초기화 mutNotiListTag.push(
  • {item.nttSj} {item.frstRegisterPnttm}
  • ); }); setNoticeListTag(mutNotiListTag); let mutGallaryListTag = []; mutGallaryListTag.push(
  • 검색된 결과가 없습니다.
  • ); // 게시판 목록 초기값 // 리스트 항목 구성 resp.result.galList.forEach(function (item, index) { if (index === 0) mutGallaryListTag = []; // 목록 초기화 mutGallaryListTag.push(
  • {item.nttSj} {item.frstRegisterPnttm}
  • ); }); setGallaryListTag(mutGallaryListTag); }, function (resp) { console.log("err response : ", resp); } ); console.groupEnd("EgovMain.retrieveList()"); },[]); useEffect(() => { retrieveList(); }, [retrieveList]); console.log("------------------------------EgovMain [End]"); console.groupEnd("EgovMain"); return (
    {/*단순 홈페이지 전자정부 국가건설기준센터의 경량환경 내부업무에 대한 최신 정보와 기술을 제공하고 있습니다.*/}

    건설기준코드 검색

    공통코드 지반코드 구조코드 내진코드 가설코드 교량코드 터널코드 공동구코드 설비코드 조경코드 건축코드 도로코드 철도코드 하천코드 댐코드 상수도코드 하수도코드 농업기반코드
    {/*
    */} {/*
    */} {/* */} {/*
    */} {/*
    */} {/*

    공지사항

    */} {/*
      */} {/* {noticeListTag}*/} {/*
    */} {/* 더보기*/} {/*
    */} {/*
    */} {/*

    갤러리

    */} {/*
      */} {/* {gallaryListTag}*/} {/*
    */} {/* 더보기*/} {/*
    */} {/*
    */} {/*
    */} {/*
    */} {/* */} {/* 자료실*/} {/* 다양한 자료를
    다운로드 받으실 수 있습니다.
    */} {/* */} {/* */} {/* 국가건설기준센터*/} {/* 국가건설기준센터의
    약도 등의 정보를 제공합니다.
    */} {/* */} {/*
    */} {/*
    */}
    {/*
    */} {/*
    */} {/*
    */} {/*

    주요사업 소개

    */} {/*

    국가건설기준센터가 제공하는
    */} {/* 주요 사업을 소개합니다.

    */} {/*
    */} {/* 자세히 보기*/} {/*
    */} {/*
    */} {/*
    */} {/*

    대표서비스 소개

    */} {/*

    국가건설기준센터 실행환경의
    */} {/* 서비스 그룹에서 제공하는
    */} {/* 대표서비스입니다.

    */} {/*
    */} {/* 자세히 보기*/} {/*
    */} {/*
    */} {/*
    */} {/*

    서비스 신청

    */} {/*

    국가건설기준센터 경량환경
    */} {/* 홈페이지의 다양한 서비스를
    */} {/* 신청 하실 수 있습니다.

    */} {/*
    */} {/* 자세히 보기*/} {/*
    */} {/*
    */} {/*
    */} {/*

    일정 현황

    */} {/*

    국가건설기준센터 경량환경
    */} {/* 홈페이지의 전체적인 일정
    */} {/* 현황을 조회하실 수 있습니다.

    */} {/*
    */} {/* 자세히 보기*/} {/*
    */} {/*
    */}
    ); } export default EgovMain;