|
|
|
@ -72,7 +72,8 @@ class ShixunStudentWork extends Component {
|
|
|
|
|
showmodel:false,
|
|
|
|
|
jobsettingsdata:undefined,
|
|
|
|
|
DownloadType:false,
|
|
|
|
|
DownloadMessageval:undefined
|
|
|
|
|
DownloadMessageval:undefined,
|
|
|
|
|
lunxun:true,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -121,6 +122,7 @@ class ShixunStudentWork extends Component {
|
|
|
|
|
|
|
|
|
|
getupdata=(pages)=>{
|
|
|
|
|
let {order,b_order,page,limit,group_infolist,search}=this.state;
|
|
|
|
|
|
|
|
|
|
var homeworkid = this.props.match.params.homeworkid;
|
|
|
|
|
let url = "/homework_commons/" + homeworkid + "/code_review_results.json";
|
|
|
|
|
|
|
|
|
@ -152,8 +154,17 @@ class ShixunStudentWork extends Component {
|
|
|
|
|
this.setState({
|
|
|
|
|
data: response.data,
|
|
|
|
|
datalist:datas
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
this.setState({
|
|
|
|
|
lunxun:false,
|
|
|
|
|
})
|
|
|
|
|
}else{
|
|
|
|
|
setInterval(() => {
|
|
|
|
|
if(this.state.lunxun===true){
|
|
|
|
|
this.getupdata();
|
|
|
|
|
}
|
|
|
|
|
}, 1000);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|