|
|
|
@ -22,10 +22,10 @@ import './style.css';
|
|
|
|
|
import 'moment/locale/zh-cn';
|
|
|
|
|
import axios from 'axios';
|
|
|
|
|
import moment from 'moment';
|
|
|
|
|
import '../css/members.css'
|
|
|
|
|
import '../css/busyWork.css'
|
|
|
|
|
import '../poll/pollStyle.css'
|
|
|
|
|
import './Challenges.css'
|
|
|
|
|
import '../css/members.css';
|
|
|
|
|
import '../css/busyWork.css';
|
|
|
|
|
import '../poll/pollStyle.css';
|
|
|
|
|
import './Challenges.css';
|
|
|
|
|
import {getImageUrl} from 'educoder';
|
|
|
|
|
import TraineetraininginformationModal from "./TraineetraininginformationModal";
|
|
|
|
|
import DownloadMessageysl from '../../modals/DownloadMessageysl';
|
|
|
|
@ -33,7 +33,7 @@ import Startshixuntask from "../coursesPublic/Startshixuntask";
|
|
|
|
|
import ModulationModal from "../coursesPublic/ModulationModal";
|
|
|
|
|
import HomeworkModal from "../coursesPublic/HomeworkModal";
|
|
|
|
|
import ShixunWorkModal from "./Shixunworkdetails/ShixunWorkModal";
|
|
|
|
|
import NoneData from '../../../modules/courses/coursesPublic/NoneData'
|
|
|
|
|
import NoneData from '../../../modules/courses/coursesPublic/NoneData';
|
|
|
|
|
|
|
|
|
|
const Search = Input.Search;
|
|
|
|
|
const RadioGroup = Radio.Group;
|
|
|
|
@ -1587,6 +1587,12 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
if(this.props.isAdmin() === true){
|
|
|
|
|
if(result.data.update_score===true){
|
|
|
|
|
if(bool===true){
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
this.props.yslslowCheckresults();
|
|
|
|
|
}catch (e) {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
this.setComputeTimet();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -2202,6 +2208,11 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
// var homeworkid = this.props.match.params.homeworkid;
|
|
|
|
|
this.Getalistofworks(homeworkid,false);
|
|
|
|
|
// this.props.history.replace(matchurl);
|
|
|
|
|
try{
|
|
|
|
|
this.props.yslslowCheckresultsNo();
|
|
|
|
|
}catch (e) {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}, 2500);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -2961,9 +2972,9 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
// console.log("老师开始计算成绩了1111111");
|
|
|
|
|
let matchurl = this.props.match.url;
|
|
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
|
computeTimetype:false
|
|
|
|
|
})
|
|
|
|
|
// this.setState({
|
|
|
|
|
// computeTimetype:false
|
|
|
|
|
// })
|
|
|
|
|
let homeworkid = this.props.match.params.homeworkid;
|
|
|
|
|
let url = "/homework_commons/"+homeworkid+"/update_score.json";
|
|
|
|
|
|
|
|
|
@ -2983,6 +2994,12 @@ class Listofworksstudentone extends Component {
|
|
|
|
|
}catch (e) {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
try{
|
|
|
|
|
this.props.yslslowCheckresultsNo();
|
|
|
|
|
}catch (e) {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}, 2500);
|
|
|
|
|
}
|
|
|
|
|
// this.props.history.replace( matchurl );
|
|
|
|
|