diff --git a/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js b/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js index 926e1b023..df4dbc956 100644 --- a/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js +++ b/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js @@ -2239,9 +2239,9 @@ class Listofworksstudentone extends Component { var homeworkid = this.props.match.params.homeworkid; let urll = `/homework_commons/${homeworkid}/works_list.json?`; var order = "asc"; - // if (ordervlue === "update_time") { - // order = "desc"; - // } + if (ordervlue === "update_time") { + order = "desc"; + } var checkedValuesines = checkedValuesine; var checkedValuesineinfos = checkedValuesineinfo; var searchtexts = searchtext @@ -2653,15 +2653,15 @@ class Listofworksstudentone extends Component { } //排序 funordert = (e) => { - // if (e === "update_time") { - // // 时间 - // // 时间排序是从小到大 - // this.setState({ - // orders: "update_time", - // loadingstate: true, - // }) - // this.Startsortingt("update_time", this.state.course_groupyslstwo, this.state.checkedValuesineinfo, this.state.searchtext, this.state.page, this.state.limit); - // } + if (e === "update_time") { + // 时间 + // 时间排序是从小到大 + this.setState({ + orders: "update_time", + loadingstate: true, + }) + this.Startsortingt("update_time", this.state.course_groupyslstwo, this.state.checkedValuesineinfo, this.state.searchtext, this.state.page, this.state.limit); + } if (e === "work_score") { // 成绩 @@ -3365,7 +3365,7 @@ class Listofworksstudentone extends Component { {orders === "work_score" ? "成绩" : orders === "student_id" ? "学号" : ""}排序