|
|
|
@ -12,6 +12,7 @@ import axios from 'axios';
|
|
|
|
|
|
|
|
|
|
const { TabPane } = Tabs;
|
|
|
|
|
//在线学习
|
|
|
|
|
|
|
|
|
|
class Students_signin extends Component{
|
|
|
|
|
constructor(props){
|
|
|
|
|
super(props);
|
|
|
|
@ -33,6 +34,7 @@ class Students_signin extends Component{
|
|
|
|
|
Qrcodesignintypedata:null,
|
|
|
|
|
switchs:false,
|
|
|
|
|
switattendance_id:null,
|
|
|
|
|
Spin:false,
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -74,6 +76,9 @@ class Students_signin extends Component{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
gogetdatas =(mydata)=>{
|
|
|
|
|
this.setState({
|
|
|
|
|
Spin:true
|
|
|
|
|
})
|
|
|
|
|
const coureid=this.props.match.params.coursesId;
|
|
|
|
|
let urls = `/courses/${coureid}/attendances.json`;
|
|
|
|
|
let arry={}
|
|
|
|
@ -104,6 +109,13 @@ class Students_signin extends Component{
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
this.setState({
|
|
|
|
|
Spin:false
|
|
|
|
|
})
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
this.setState({
|
|
|
|
|
Spin:false
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -206,7 +218,7 @@ class Students_signin extends Component{
|
|
|
|
|
render(){
|
|
|
|
|
|
|
|
|
|
let {page,per_page,count,defaultActiveKey,limit,attendances_count,datas,absence_count,leave_count,normal_count,
|
|
|
|
|
Studentssigntype,Studentssigntypedata,Qrcodesignintype,Qrcodesignintypedata,switchs,switattendance_id
|
|
|
|
|
Studentssigntype,Studentssigntypedata,Qrcodesignintype,Qrcodesignintypedata,switchs,switattendance_id,Spin
|
|
|
|
|
} =this.state;
|
|
|
|
|
const isAdmin =this.props.isAdmin();
|
|
|
|
|
|
|
|
|
@ -249,6 +261,7 @@ class Students_signin extends Component{
|
|
|
|
|
<TabPane tab="正在签到" key="1">
|
|
|
|
|
<p className="mt20 mysligtes">共{attendances_count}个签到正在进行</p>
|
|
|
|
|
<Teaccomponent
|
|
|
|
|
Spin={Spin}
|
|
|
|
|
qiandaoxiangq={(b,id)=>this.qiandaoxiangq(b,id)}
|
|
|
|
|
Gotomodes={(d,b)=>this.Gotomodes(d,b)}
|
|
|
|
|
GotomQrcodesodesy={(d,b)=>this.GotomQrcodesodesy(d,b)}
|
|
|
|
@ -287,6 +300,7 @@ class Students_signin extends Component{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Teaccomponent
|
|
|
|
|
Spin={Spin}
|
|
|
|
|
qiandaoxiangq={(b,id)=>this.qiandaoxiangq(b,id)}
|
|
|
|
|
Gotomodes={(d,b)=>this.Gotomodes(d,b)}
|
|
|
|
|
GotomQrcodesodesy={(d,b)=>this.GotomQrcodesodesy(d,b)}
|
|
|
|
|