dev_hjm_a
杨树林 5 years ago
parent b131905c8a
commit d8e6340947

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

@ -516,7 +516,15 @@ export function TPMIndexHOC(WrappedComponent) {
}
})
}
showGlobalLoading = (tip) => {
yslslowCheckresults =(tip) =>{
this._gLoadingTip = tip || '正在执行成绩计算,完成后将为您自动刷新结果。温馨提示:执行时间因作品数量而异';
this.setState({ globalLoading: true })
}
yslslowCheckresultsNo =() =>{
this.setState({ globalLoading: false })
}
showGlobalLoading = (tip) => {
this._gLoadingTip = tip || '加载中,请稍后...';
this.setState({ globalLoading: true })
}
@ -553,6 +561,8 @@ export function TPMIndexHOC(WrappedComponent) {
slowDownload: this.slowDownload,
showGlobalLoading: this.showGlobalLoading,
hideGlobalLoading: this.hideGlobalLoading,
yslslowCheckresults:this.yslslowCheckresults,
yslslowCheckresultsNo:this.yslslowCheckresultsNo,
}
return (

Loading…
Cancel
Save