PCqiandao
杨树明 5 years ago
parent 502d7c6ec1
commit 8db66523b5

@ -38,10 +38,10 @@ class Signedinlist extends Component {
let {attendanceslist}=this.state;
if(this.props.headdata){
let listattendanceslist=attendanceslist;
if(headdata.course_groups){
if(this.props.headdata.course_groups){
if(headdata.course_groups.length>0){
headdata.course_groups.map((item,key)=>{
if(this.props.headdata.course_groups.length>0){
this.props.headdata.course_groups.map((item,key)=>{
listattendanceslist.push(item)
})
}
@ -49,8 +49,8 @@ class Signedinlist extends Component {
this.setState({
listattendanceslist:listattendanceslist,
data:response.data,
course_members_count:headdata.all_count,
attendance_count:headdata.normal_count
course_members_count:this.props.headdata.all_count,
attendance_count:this.props.headdata.normal_count
})
}

Loading…
Cancel
Save