From cacbe32c7221a8105edcee834eb43d4006fdfacb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com> Date: Fri, 13 Mar 2020 19:58:39 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AD=BE=E5=88=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/react/src/modules/courses/ListPageIndex.js | 2 +- .../modules/courses/signin/component/Detailss.js | 13 +------------ .../modules/courses/signin/student/Signindetails.js | 11 +++++++++++ 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/public/react/src/modules/courses/ListPageIndex.js b/public/react/src/modules/courses/ListPageIndex.js index cf1b65175..6743cc3f7 100644 --- a/public/react/src/modules/courses/ListPageIndex.js +++ b/public/react/src/modules/courses/ListPageIndex.js @@ -284,7 +284,7 @@ class ListPageIndex extends Component{ } > {/* 主签到 */} - () } diff --git a/public/react/src/modules/courses/signin/component/Detailss.js b/public/react/src/modules/courses/signin/component/Detailss.js index 59340ec4f..6b82ca3db 100644 --- a/public/react/src/modules/courses/signin/component/Detailss.js +++ b/public/react/src/modules/courses/signin/component/Detailss.js @@ -38,18 +38,7 @@ class Detailss extends Component{ } componentDidMount() { - const switattendance_id=this.props.switattendance_id; - let urls = `/weapps/attendances/${switattendance_id}.json`; - axios.get(urls).then((response) => { - //.log(response); - if(response){ - if(response.data){ - console.log("历史数据") - console.log(response.data) - - } - } - }) + } componentDidUpdate = (prevProps) => { diff --git a/public/react/src/modules/courses/signin/student/Signindetails.js b/public/react/src/modules/courses/signin/student/Signindetails.js index f85fa76e8..07dcee11f 100644 --- a/public/react/src/modules/courses/signin/student/Signindetails.js +++ b/public/react/src/modules/courses/signin/student/Signindetails.js @@ -13,7 +13,18 @@ class Signindetails extends Component{ } componentDidMount() { + const switattendance_id=this.props.switattendance_id; + let urls = `/weapps/attendances/${switattendance_id}.json`; + axios.get(urls).then((response) => { + //.log(response); + if(response){ + if(response.data){ + console.log("历史数据") + console.log(response.data) + } + } + }) } componentDidUpdate = (prevProps) => {