|
|
|
@ -2197,10 +2197,12 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
axios.get(url).then((response) => {
|
|
|
|
|
if(response){
|
|
|
|
|
if(response.data.status===0) {
|
|
|
|
|
this.props.showNotification(`${response.data.message}`);
|
|
|
|
|
// var homeworkid = this.props.match.params.homeworkid;
|
|
|
|
|
this.Getalistofworks(homeworkid,false);
|
|
|
|
|
// this.props.history.replace(matchurl);
|
|
|
|
|
setTimeout(()=>{
|
|
|
|
|
this.props.showNotification(`${response.data.message}`);
|
|
|
|
|
// var homeworkid = this.props.match.params.homeworkid;
|
|
|
|
|
this.Getalistofworks(homeworkid,false);
|
|
|
|
|
// this.props.history.replace(matchurl);
|
|
|
|
|
}, 2500);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// this.Getalistofworkstwo("", "", "", "", 1, 20);
|
|
|
|
@ -2956,7 +2958,7 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
setComputeTimet=()=>{
|
|
|
|
|
console.log("老师开始计算成绩了1111111");
|
|
|
|
|
// console.log("老师开始计算成绩了1111111");
|
|
|
|
|
let matchurl = this.props.match.url;
|
|
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
@ -2971,11 +2973,17 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
// if(response.data.message!==undefined){
|
|
|
|
|
// return;
|
|
|
|
|
// }
|
|
|
|
|
this.setState({
|
|
|
|
|
loadingstate: true
|
|
|
|
|
})
|
|
|
|
|
this.Getalistofworks(homeworkid,false);
|
|
|
|
|
this.props.showNotification(`${response.data.message}`);
|
|
|
|
|
setTimeout(()=>{
|
|
|
|
|
this.setState({
|
|
|
|
|
loadingstate: true
|
|
|
|
|
})
|
|
|
|
|
this.Getalistofworks(homeworkid,false);
|
|
|
|
|
try {
|
|
|
|
|
this.props.showNotification(`${response.data.message}`);
|
|
|
|
|
}catch (e) {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}, 2500);
|
|
|
|
|
}
|
|
|
|
|
// this.props.history.replace( matchurl );
|
|
|
|
|
}
|
|
|
|
|