dev_forum
杨树林 6 years ago
parent 2cfe193099
commit 076acddea3

@ -2149,7 +2149,7 @@ class Listofworksstudentone extends Component {
} }
setComputeTime=()=>{ setComputeTimet=()=>{
this.setState({ this.setState({
computeTimetype:false computeTimetype:false
}) })
@ -2157,18 +2157,37 @@ class Listofworksstudentone extends Component {
let url = "/homework_commons/"+homeworkid+"/update_score.json"; let url = "/homework_commons/"+homeworkid+"/update_score.json";
axios.get(url).then((response) => { axios.get(url).then((response) => {
if(response){ this.props.showNotification(`${response.data.message}`);
this.props.showNotification(response.data.message); this.setState({
this.setState({ loadingstate: true
loadingstate: true })
}) this.Startsortingt(this.state.order, this.state.course_groupyslstwo, this.state.checkedValuesineinfo, this.state.searchtext, 1, this.state.limit);
this.Startsortingt(this.state.order, this.state.course_groupyslstwo, this.state.checkedValuesineinfo, this.state.searchtext, 1, this.state.limit);
}
}).catch((error) => { }).catch((error) => {
console.log(error) console.log(error)
}); });
} }
//
// setComputeTime=()=>{
// this.setState({
// computeTimetype:false
// })
// let homeworkid = this.props.match.params.homeworkid;
// let url = "/homework_commons/"+homeworkid+"/update_score.json";
//
// axios.get(url).then((response) => {
// if(response){
// this.props.showNotification(response.data.message);
// this.setState({
// loadingstate: true
// })
// this.Startsortingt(this.state.order, this.state.course_groupyslstwo, this.state.checkedValuesineinfo, this.state.searchtext, 1, this.state.limit);
// }
// }).catch((error) => {
// console.log(error)
// });
//
// }
@ -2597,7 +2616,7 @@ class Listofworksstudentone extends Component {
<span className="fl mr10 color-grey-6 ">计算成绩时间{teacherdata&&teacherdata.calculation_time==null?"--": moment(teacherdata&&teacherdata.calculation_time).format('YYYY-MM-DD HH:mm')}</span> <span className="fl mr10 color-grey-6 ">计算成绩时间{teacherdata&&teacherdata.calculation_time==null?"--": moment(teacherdata&&teacherdata.calculation_time).format('YYYY-MM-DD HH:mm')}</span>
{teacherdata&&teacherdata.task_operation[0]==="开启挑战"?"":<span> {teacherdata&&teacherdata.task_operation[0]==="开启挑战"?"":<span>
{computeTimetype===true?<div className={"computeTime font-13"} onClick={this.setComputeTime}> {computeTimetype===true?<div className={"computeTime font-13"} onClick={this.setComputeTimet}>
计算成绩 计算成绩
</div>: </div>:
teacherdata&&teacherdata.homework_status[0]=== "未发布"? "": teacherdata&&teacherdata.homework_status[0]=== "未发布"? "":

Loading…
Cancel
Save