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'; import styled from "styled-components"; const StyledDiv = styled.div` .BRD008 { .head { span { text-align: left; &:nth-child(1) { width: 32px; text-align: center; } &:nth-child(2) { width: 60px; text-align: center; } &:nth-child(3) { width: 300px; } &:nth-child(4) { width: 120px; } &:nth-child(5) { width: 80px; } &:nth-child(6) { width: 70px; } &:nth-child(7) { width: 50px; text-align: center; } &:nth-child(8) { width: 50px; text-align: center; } } } .result .list_item { & > div { text-align: left; &:nth-child(1) { width: 32px; text-align: center; } &:nth-child(2) { width: 60px; text-align: center; } &:nth-child(3) { width: 300px; } &:nth-child(4) { width: 120px; } &:nth-child(5) { width: 80px; } &:nth-child(6) { width: 70px; } &:nth-child(7) { width: 50px; text-align: center; } &:nth-child(8) { width: 50px; text-align: center; } } } } .board-bot { margin-top: 20px; display: flex; flex-direction: row; flex-wrap: wrap; justify-content: flex-start; align-items: stretch; justify-content: center; & > *:nth-child(1) { width: 16%; justify-content: left; } & > *:nth-child(2) { width: 68%; justify-content: center; } & > *:nth-child(3) { width: 16%; justify-content: right; } } `; 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: '' }); useEffect(function () { getList(searchCondition); // eslint-disable-next-line react-hooks/exhaustive-deps }, []); const requestOptions = { method: "GET", headers: { 'Content-type': 'application/json' } } const getList = (searchCondition) => { EgovNet.requestFetch(`/admin/committee/progress-status/list?page=${searchCondition.pageIndex-1}&size=10&sort=popupSeq,desc`, requestOptions, function (resp) { console.log('%o', resp); setListItem(resp.result.list); setPaginationInfo({...resp.result.paginationInfo}); } ); } const Location = React.memo(function Location() { return (
) }); return (
{/* */} {/* */}
{/* */} {/* */}
{/* */}

진행현황 관리

{/* */}
# 구분 제목 / 코드명 진행위원회 진행단계 등록일 수정 삭제
{/* */} {listItem.length === 0 &&

검색된 결과가 없습니다.

} {listItem.map((it)=>(
{it.number}
{it.drftTypeNm}
{it.categoryNm}
{it.title}
{it.orgNm}
진행단계표시
{it.regDate}
))}
{/* */} {/* */}
{ getList({ ...searchCondition, pageIndex: passedPage }) }} />
등록
{/* */}
{/* */}
); } export default ProgressStatus;