import React, { useState, useEffect } from 'react'; import { Link, useLocation, useNavigate } from 'react-router-dom'; import * as EgovNet from 'api/egovFetch'; import URL from 'constants/url'; import { default as EgovLeftNav } from 'components/leftmenu/EgovLeftNavAdmin'; import EgovPagingPaginationInfo from 'components/EgovPagingPaginationInfo'; function ProgressStatus(props) { const location = useLocation(); const [listItem, setListItem] = useState([]); const [paginationInfo, setPaginationInfo] = useState({}); const [searchCondition, setSearchCondition] = useState(location.state?.searchCondition || { pageIndex: 1, searchCnd: '0', searchWrd: '' }); const requestOptions = { method: "GET", headers: { 'Content-type': 'application/json' } } const getList = (searchCondition) => { EgovNet.requestFetch(`/contents/api/popup-manage/list?page=${searchCondition.pageIndex-1}&size=10&sort=popupSeq,desc`, requestOptions, function (resp) { console.log('%o', resp); setListItem(resp.result.listPopup); setPaginationInfo({...resp.result.paginationInfo}); } ); } const Location = React.memo(function Location() { return (
) }); return (
{/* */} {/* */}
{/* */} {/* */}
{/* */}

진행현황 관리

{/* */}
번호 제목 기간 사용여부
{/* */} {listItem.length === 0 &&

검색된 결과가 없습니다.

} {listItem.map((it)=>(
{it.number}
))}
{/* */} {/* */}
{ getList({ ...searchCondition, pageIndex: passedPage }) }} />
등록
{/* */} {/* */}
); } export default ProgressStatus;