diff --git a/public/react/src/modules/courses/shixunHomework/Listofworks.js b/public/react/src/modules/courses/shixunHomework/Listofworks.js index 25f122cec..581906575 100644 --- a/public/react/src/modules/courses/shixunHomework/Listofworks.js +++ b/public/react/src/modules/courses/shixunHomework/Listofworks.js @@ -63,7 +63,8 @@ class Listofworks extends Component { page: 1, limit: 20, loadingstate: true, - order: "updated_at", + order: "update_time", + b_order:"desc", search: null, task_status: [], course_group_info: [], @@ -678,10 +679,11 @@ class Listofworks extends Component { //order 排序时间 //debug=t 是老师的意思 // console.log(ordervlue)7009 + var homeworkid = this.props.match.params.homeworkid; let urll = `/homework_commons/${homeworkid}/works_list.json?`; var order = "asc"; - if (ordervlue === "updated_at") { + if (ordervlue === "update_time") { order = "desc"; } var checkedValuesines = checkedValuesine; @@ -2031,14 +2033,14 @@ class Listofworks extends Component { } //排序 funorder = (e) => { - if (e === "updated_at") { + if (e === "update_time") { // 时间 // 时间排序是从小到大 this.setState({ - order: "updated_at", + order: "update_time", loadingstate: true, }) - this.Startsorting("updated_at", this.state.course_groupyslstwo, this.state.checkedValuesineinfo, this.state.searchtext, this.state.page, this.state.limit); + this.Startsorting("update_time", this.state.course_groupyslstwo, this.state.checkedValuesineinfo, this.state.searchtext, this.state.page, this.state.limit); } if (e === "work_score") { @@ -2597,10 +2599,10 @@ class Listofworks extends Component {