Compare commits
No commits in common. "485e2a69e7ed938a3f80114928a2289aef6b995b" and "71fbb763e177455822fbec6ba6da399753f396a5" have entirely different histories.
485e2a69e7
...
71fbb763e1
|
|
@ -1,41 +1,13 @@
|
||||||
import React, { useState, useEffect } from 'react';
|
import React from 'react';
|
||||||
import { Link, useLocation, useNavigate } from 'react-router-dom';
|
import { Link } from 'react-router-dom';
|
||||||
|
|
||||||
import * as EgovNet from 'api/egovFetch';
|
|
||||||
|
|
||||||
import URL from 'constants/url';
|
import URL from 'constants/url';
|
||||||
|
|
||||||
import { default as EgovLeftNav } from 'components/leftmenu/EgovLeftNavAdmin';
|
import { default as EgovLeftNav } from 'components/leftmenu/EgovLeftNavAdmin';
|
||||||
import EgovPagingPaginationInfo from 'components/EgovPagingPaginationInfo';
|
|
||||||
|
|
||||||
function ProgressStatus(props) {
|
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() {
|
const Location = React.memo(function Location() {
|
||||||
return (
|
return (
|
||||||
<div className="location">
|
<div className="location">
|
||||||
|
|
@ -67,44 +39,7 @@ function ProgressStatus(props) {
|
||||||
<h1 className="tit_1">진행현황 관리</h1>
|
<h1 className="tit_1">진행현황 관리</h1>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* <!-- 게시판목록 --> */}
|
여기에 구현해주세요.
|
||||||
<div className="board_list BRD008">
|
|
||||||
<div className="head">
|
|
||||||
<span>번호</span>
|
|
||||||
<span>제목</span>
|
|
||||||
<span>기간</span>
|
|
||||||
<span>사용여부</span>
|
|
||||||
</div>
|
|
||||||
<div className="result">
|
|
||||||
{/* <!-- case : 데이터 없을때 --> */}
|
|
||||||
{listItem.length === 0 &&
|
|
||||||
<p className="no_data" key="0">검색된 결과가 없습니다.</p>
|
|
||||||
}
|
|
||||||
{listItem.map((it)=>(
|
|
||||||
<div className='list_item' key={it.seq}>
|
|
||||||
<div>{it.number}</div>
|
|
||||||
</div>
|
|
||||||
))}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{/* <!--// 게시판목록 --> */}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{/* <!-- Paging --> */}
|
|
||||||
<div className="board-bot">
|
|
||||||
<div></div>
|
|
||||||
<EgovPagingPaginationInfo pagination={paginationInfo} setPaginationInfo={setPaginationInfo} moveToPage={passedPage => {
|
|
||||||
getList({ ...searchCondition, pageIndex: passedPage })
|
|
||||||
}} />
|
|
||||||
<div className="right_col btn1">
|
|
||||||
<Link to={URL.ADMIN__CONTENTS__POP_UP__CREATE} className="btn btn_blue_h46 w_100">등록</Link>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
{/* <!--/ Paging --> */}
|
|
||||||
{/* <!--// 본문 --> */}
|
{/* <!--// 본문 --> */}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -191,8 +191,9 @@ function CommitteeCodeMgt(props) {
|
||||||
setDepth04List({});
|
setDepth04List({});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//alert('삭제 되었습니다.');
|
alert('삭제 되었습니다.');
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -107,7 +107,6 @@ function CommitteeCodeRegistrationPopup(props) {
|
||||||
props.setSearchCondition({...props.searchCondition, paramCodeGroup, paramCodeLevel : props.createOrModifyCondition.paramCodeLevel});
|
props.setSearchCondition({...props.searchCondition, paramCodeGroup, paramCodeLevel : props.createOrModifyCondition.paramCodeLevel});
|
||||||
|
|
||||||
props.setOpen(false);
|
props.setOpen(false);
|
||||||
setInputValues({});
|
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue