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)}