From d6fb28b970ebac0f7054d920083c54a29e085bd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com> Date: Mon, 24 Jun 2019 23:05:56 +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 --- .../react/src/modules/courses/shixunHomework/Listofworks.js | 4 +++- .../modules/courses/shixunHomework/Listofworksstudentone.js | 4 +++- .../src/modules/courses/shixunHomework/Trainingjobsetting.js | 3 ++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/public/react/src/modules/courses/shixunHomework/Listofworks.js b/public/react/src/modules/courses/shixunHomework/Listofworks.js index 3e3bf95c4..62953fedb 100644 --- a/public/react/src/modules/courses/shixunHomework/Listofworks.js +++ b/public/react/src/modules/courses/shixunHomework/Listofworks.js @@ -299,9 +299,11 @@ class Listofworks extends Component { var data = { search: "", order: "", - b_order: "", + b_order: "asc", work_status: "", course_group: "", + page:1, + limit:20, } axios.post(urll, data).then((result) => { if (result !== undefined) { diff --git a/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js b/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js index 673d864de..f456cdd5d 100644 --- a/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js +++ b/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js @@ -90,7 +90,9 @@ class Listofworksstudentone extends Component { var data = { search: "", order: "", - b_order: "", + b_order: "asc", + page:1, + limit:20, work_status: "", course_group: "", } diff --git a/public/react/src/modules/courses/shixunHomework/Trainingjobsetting.js b/public/react/src/modules/courses/shixunHomework/Trainingjobsetting.js index 88c5fc88a..bd24abb02 100644 --- a/public/react/src/modules/courses/shixunHomework/Trainingjobsetting.js +++ b/public/react/src/modules/courses/shixunHomework/Trainingjobsetting.js @@ -141,7 +141,7 @@ class Trainingjobsetting extends Component { // console.log(homeworkid) let url = `/homework_commons/${homeworkid}/settings.json`; axios.get(url).then((result) => { - if (result.status === 200) { + if (result!=undefined) { // console.log(result.data.code_review) // console.log("设置页") // console.log(JSON.stringify(result)) @@ -1776,6 +1776,7 @@ class Trainingjobsetting extends Component { > this.rulesCheckInfo(info)}