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{ } ></Route> {/* 主签到 */} - <Route path="/classrooms/:coursesId/signin" + <Route path="/classrooms/:coursesId/attendances" render={ (props) => (<Signinmain {...this.props} {...props} {...this.state} />) } 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) => {