调整问卷

problem_set
杨树林 5 years ago
parent ab6ee862f4
commit d3b63963a8

@ -47,7 +47,8 @@ export function initAxiosInterceptors(props) {
proxy="https://pre-newweb.educoder.net"
proxy="https://test-newweb.educoder.net"
// 在这里使用requestMap控制避免用户通过双击等操作发出重复的请求
// 在这里使用requestMap控制避免用户通过双击等操作发出重复的请求
// 如果需要支持重复的请求考虑config里面自定义一个allowRepeat参考来控制
const requestMap = {};

@ -55,7 +55,7 @@ class PollDetailTabSecond extends Component{
}
render(){
let{page,limit,questions,question_types}=this.state;
let {page, limit, questions, questionsInfo} = this.state;
return(
<div>
{
@ -160,9 +160,10 @@ class PollDetailTabSecond extends Component{
}):<NoneData></NoneData>
}
{
question_types && question_types.q_counts>limit &&
questionsInfo && questionsInfo.q_counts > limit &&
<div className="edu-txt-center mt20 mb50">
<Pagination showQuickJumper current={page} total={question_types.q_counts} pageSize={limit} onChange={this.changePage}></Pagination>
<Pagination showQuickJumper current={page} total={questionsInfo.q_counts} pageSize={limit}
onChange={this.changePage}></Pagination>
</div>
}

Loading…
Cancel
Save