From ae520fe1585db83055da167937457aab3ae4d973 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com> Date: Wed, 17 Jul 2019 18:26:53 +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 --- .../courses/shixunHomework/Listofworksstudentone.js | 7 +------ .../modules/courses/shixunHomework/ShixunHomeworkPage.js | 4 ++++ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js b/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js index a506ce064..32aa05a0a 100644 --- a/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js +++ b/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js @@ -368,8 +368,6 @@ class Listofworksstudentone extends Component { if(result === undefined){ return } - try { - if (result.status === 200) { if(this.props.isNotMember()===false) { @@ -390,15 +388,12 @@ class Listofworksstudentone extends Component { this.props.Getdataback(result,result.data); if (result.data.student_works === undefined || result.data.student_works === null || JSON.stringify(result.data.student_works) === "[]") { this.seacthdata(result.data); - } else { + } else { this.seacthdatas(result.data, result.data.student_works); } } } - }catch (e) { - console.log(e); - } }).catch((error) => { console.log(error); }) diff --git a/public/react/src/modules/courses/shixunHomework/ShixunHomeworkPage.js b/public/react/src/modules/courses/shixunHomework/ShixunHomeworkPage.js index 1db93c2bd..393d8af05 100644 --- a/public/react/src/modules/courses/shixunHomework/ShixunHomeworkPage.js +++ b/public/react/src/modules/courses/shixunHomework/ShixunHomeworkPage.js @@ -53,6 +53,10 @@ class ShixunHomeworkPage extends Component { } Getdataback = (jobsettingsdata, teacherdata) => { + console.log("56"); + console.log(jobsettingsdata); + console.log(teacherdata); + this.setState({ jobsettingsdata: jobsettingsdata, teacherdata: teacherdata,