From 076acddea35d9c36551481e25bb2226ee26cbaf9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com> Date: Thu, 18 Jul 2019 15:04:34 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../shixunHomework/Listofworksstudentone.js | 37 ++++++++++++++----- 1 file changed, 28 insertions(+), 9 deletions(-) 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]=== "未发布"? "":