|
|
|
@ -32,6 +32,7 @@ class Students_signin extends Component{
|
|
|
|
|
Qrcodesignintype:false,
|
|
|
|
|
Qrcodesignintypedata:null,
|
|
|
|
|
switchs:false,
|
|
|
|
|
switattendance_id:null,
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -176,9 +177,10 @@ class Students_signin extends Component{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
qiandaoxiangq=(bool)=>{
|
|
|
|
|
qiandaoxiangq=(bool,id)=>{
|
|
|
|
|
this.setState({
|
|
|
|
|
switchs:bool
|
|
|
|
|
switchs:bool,
|
|
|
|
|
switattendance_id:id,
|
|
|
|
|
})
|
|
|
|
|
// if(bool){
|
|
|
|
|
// var currenturl = window.location.href;
|
|
|
|
@ -188,12 +190,23 @@ class Students_signin extends Component{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
settabsdata=()=>{
|
|
|
|
|
let data={
|
|
|
|
|
defaultActiveKey:"1",
|
|
|
|
|
key:"1",
|
|
|
|
|
page:1,
|
|
|
|
|
limit:5
|
|
|
|
|
}
|
|
|
|
|
this.gogetdatas(data);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
render(){
|
|
|
|
|
|
|
|
|
|
let {page,per_page,count,defaultActiveKey,limit,attendances_count,datas,absence_count,leave_count,normal_count,
|
|
|
|
|
Studentssigntype,Studentssigntypedata,Qrcodesignintype,Qrcodesignintypedata,switchs
|
|
|
|
|
Studentssigntype,Studentssigntypedata,Qrcodesignintype,Qrcodesignintypedata,switchs,switattendance_id
|
|
|
|
|
} =this.state;
|
|
|
|
|
const isAdmin =this.props.isAdmin();
|
|
|
|
|
|
|
|
|
@ -235,7 +248,7 @@ class Students_signin extends Component{
|
|
|
|
|
<TabPane tab="正在签到" key="1">
|
|
|
|
|
<p className="mt20 mysligtes">共{attendances_count}个签到正在进行</p>
|
|
|
|
|
<Teaccomponent
|
|
|
|
|
qiandaoxiangq={(b)=>this.qiandaoxiangq(b)}
|
|
|
|
|
qiandaoxiangq={(b,id)=>this.qiandaoxiangq(b,id)}
|
|
|
|
|
Gotomodes={(d,b)=>this.Gotomodes(d,b)}
|
|
|
|
|
GotomQrcodesodesy={(d,b)=>this.GotomQrcodesodesy(d,b)}
|
|
|
|
|
getsetdatas={()=>this.getsetdatas()}
|
|
|
|
@ -273,7 +286,7 @@ class Students_signin extends Component{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Teaccomponent
|
|
|
|
|
qiandaoxiangq={(b)=>this.qiandaoxiangq(b)}
|
|
|
|
|
qiandaoxiangq={(b,id)=>this.qiandaoxiangq(b,id)}
|
|
|
|
|
Gotomodes={(d,b)=>this.Gotomodes(d,b)}
|
|
|
|
|
GotomQrcodesodesy={(d,b)=>this.GotomQrcodesodesy(d,b)}
|
|
|
|
|
getsetdatas={()=>this.getsetdatas()}
|
|
|
|
@ -317,6 +330,7 @@ class Students_signin extends Component{
|
|
|
|
|
:
|
|
|
|
|
// 签到详情
|
|
|
|
|
<Signindetails
|
|
|
|
|
switattendance_id={switattendance_id}
|
|
|
|
|
{...this.props}
|
|
|
|
|
{...this.state}
|
|
|
|
|
qiandaoxiangq={(b)=>this.qiandaoxiangq(b)}
|
|
|
|
|