From d7b586fe9ef654b84da28645875e5b100f472803 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com> Date: Sat, 29 Jun 2019 00:48:01 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' # Conflicts: # public/react/src/modules/courses/shixunHomework/Listofworks.js --- .../courses/shixunHomework/Listofworks.js | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) 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 {