diff --git a/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js b/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js index a6885eca8..a23d7249c 100644 --- a/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js +++ b/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js @@ -2149,7 +2149,7 @@ class Listofworksstudentone extends Component { } - setComputeTime=()=>{ + setComputeTimet=()=>{ this.setState({ computeTimetype:false }) @@ -2157,18 +2157,37 @@ class Listofworksstudentone extends Component { 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); - } + 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) }); } + // + // 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 { 计算成绩时间:{teacherdata&&teacherdata.calculation_time==null?"--": moment(teacherdata&&teacherdata.calculation_time).format('YYYY-MM-DD HH:mm')} {teacherdata&&teacherdata.task_operation[0]==="开启挑战"?"": - {computeTimetype===true? + {computeTimetype===true? 计算成绩 : teacherdata&&teacherdata.homework_status[0]=== "未发布"? "":