diff --git a/public/react/src/modules/courses/shixunHomework/Listofworks.js b/public/react/src/modules/courses/shixunHomework/Listofworks.js index 636214885..30a0af582 100644 --- a/public/react/src/modules/courses/shixunHomework/Listofworks.js +++ b/public/react/src/modules/courses/shixunHomework/Listofworks.js @@ -61,6 +61,7 @@ class Listofworks extends Component { props: props, data: [], page: 1, + computeTimetype:true, limit: 20, loadingstate: true, order: "update_time", @@ -1182,8 +1183,6 @@ class Listofworks extends Component { }).catch((error) => { console.log(error) }); - - } // 立即发布 homeworkstartend = (ds,endtime) => { @@ -1313,10 +1312,24 @@ class Listofworks extends Component { } + 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) => { + this.props.showNotification(`${response.data.message}`); + }).catch((error) => { + console.log(error) + }); + + } render() { // console.log("Listofworks.js000") - let {columns, page, boolgalist,limit,experience,course_groupysls, course_groupyslstwo, unlimited, unlimitedtwo, loadingstate, viewtrainingdata, game_list, data, course_group_info, order, teacherdata, task_status, checkedValuesine, searchtext, teacherlist, visible, visibles, jobsettingsdata} = this.state; + let {columns,computeTimetype, page, boolgalist,limit,experience,course_groupysls, course_groupyslstwo, unlimited, unlimitedtwo, loadingstate, viewtrainingdata, game_list, data, course_group_info, order, teacherdata, task_status, checkedValuesine, searchtext, teacherlist, visible, visibles, jobsettingsdata} = this.state; // // console.log(teacherdata&&teacherdata.shixun_identifier) // console.log(course_group_info) @@ -1345,8 +1358,8 @@ class Listofworks extends Component { { ` body { - overflow: hidden !important; - } + overflow: hidden !important; + } ` } @@ -1418,6 +1431,7 @@ class Listofworks extends Component { +
@@ -1481,10 +1495,83 @@ class Listofworks extends Component {
+ + {computeTimetype===false?
  • + + 正在执行成绩计算,请稍后刷新页面查看结果 + 温馨提示:执行时间因作品数量而异 + +
  • :""} {/*作品状态GraduationTaskssettinglist*/}