forked from Gitlink/forgeplus-react
结果公示页传参修改
This commit is contained in:
parent
a70608ebbf
commit
1a24f3be0c
|
@ -13,8 +13,6 @@ const { Search } = Input;
|
|||
// 课题列表
|
||||
function CheckResult({current_user, history, checkTime3}) {
|
||||
// 输入搜索框
|
||||
// 已通过
|
||||
const [pass, setPass] = useState(false);
|
||||
const [keyword, setKeyword] = useState(undefined);
|
||||
const [data, setData] = useState([]);
|
||||
// table
|
||||
|
@ -37,9 +35,7 @@ function CheckResult({current_user, history, checkTime3}) {
|
|||
const params = {
|
||||
curPage: current,
|
||||
keyword,
|
||||
pageSize,
|
||||
// pass: pass? '1': ''
|
||||
pass: '1'
|
||||
pageSize
|
||||
}
|
||||
getMediumTermExamineInfoList(params).then(response => {
|
||||
if (response && response.message === "success") {
|
||||
|
@ -51,7 +47,7 @@ function CheckResult({current_user, history, checkTime3}) {
|
|||
}
|
||||
setLoading(false);
|
||||
})
|
||||
}, [keyword, current, pageSize, pass])
|
||||
}, [keyword, current, pageSize])
|
||||
|
||||
const columns = [
|
||||
{ title: '序号', dataIndex: 'index', align: 'center', className:"columnsResult", width: '6%', render: (text, item, index) => <span>{(current-1)*pageSize+index + 1}</span> },
|
||||
|
@ -111,7 +107,6 @@ function CheckResult({current_user, history, checkTime3}) {
|
|||
<div className="resultList">
|
||||
<div className='goBackBox'><a href='/glcc'>开源夏令营 / </a>中期课题考核结果公示</div>
|
||||
<div className='searchBox'>
|
||||
{/* <Checkbox onChange={(e)=>{setCurrent(1);setPass(e.target.checked)}}>已通过</Checkbox> */}
|
||||
<Search className='search' placeholder='请输入学生姓名或课题名称进行搜索' allowClear enterButton onSearch={(value) => { setCurrent(1); setKeyword(value) }} />
|
||||
<div style={{width: 100}}></div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue