结果公示页传参修改

This commit is contained in:
谢思 2022-08-12 15:04:43 +08:00
parent a70608ebbf
commit 1a24f3be0c
1 changed files with 2 additions and 7 deletions

View File

@ -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>