|
|
|
@ -25,6 +25,10 @@ class Students_signin extends Component{
|
|
|
|
|
normal_count:0,
|
|
|
|
|
leave_count:0,
|
|
|
|
|
absence_count:0,
|
|
|
|
|
Studentssigntype:false,
|
|
|
|
|
Studentssigntypedata:null,
|
|
|
|
|
Qrcodesignintype:false,
|
|
|
|
|
Qrcodesignintypedata:null,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -136,10 +140,47 @@ class Students_signin extends Component{
|
|
|
|
|
this.gogetdatas(data);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Gotomodes(data,bool){
|
|
|
|
|
if(bool===true){
|
|
|
|
|
this.setState({
|
|
|
|
|
Studentssigntypedata:data,
|
|
|
|
|
Studentssigntype:true
|
|
|
|
|
})
|
|
|
|
|
}else{
|
|
|
|
|
this.setState({
|
|
|
|
|
Studentssigntype:false,
|
|
|
|
|
Studentssigntypedata:null,
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
GotomQrcodesodesy(data,bool){
|
|
|
|
|
if(bool===true){
|
|
|
|
|
this.setState({
|
|
|
|
|
Qrcodesignintype:false,
|
|
|
|
|
Qrcodesignintypedata:data,
|
|
|
|
|
})
|
|
|
|
|
}else{
|
|
|
|
|
this.setState({
|
|
|
|
|
Qrcodesignintype:false,
|
|
|
|
|
Qrcodesignintypedata:null,
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
render(){
|
|
|
|
|
|
|
|
|
|
let {page,per_page,count,defaultActiveKey,limit,attendances_count,datas,absence_count,leave_count,normal_count} =this.state;
|
|
|
|
|
let {page,per_page,count,defaultActiveKey,limit,attendances_count,datas,absence_count,leave_count,normal_count,
|
|
|
|
|
Studentssigntype,Studentssigntypedata,Qrcodesignintype,Qrcodesignintypedata,
|
|
|
|
|
} =this.state;
|
|
|
|
|
const isAdmin =this.props.isAdmin();
|
|
|
|
|
|
|
|
|
|
return(
|
|
|
|
@ -155,11 +196,19 @@ class Students_signin extends Component{
|
|
|
|
|
<Studentssignmodels
|
|
|
|
|
{...this.state}
|
|
|
|
|
{...this.props}
|
|
|
|
|
Studentssigntype={Studentssigntype}
|
|
|
|
|
Studentssigntypedata={Studentssigntypedata}
|
|
|
|
|
Gotomodes={(d,b)=>this.Gotomodes(d,b)}
|
|
|
|
|
getsetdatas={()=>this.getsetdatas()}
|
|
|
|
|
/>
|
|
|
|
|
{/*二维码*/}
|
|
|
|
|
<Qrcodesignin
|
|
|
|
|
{...this.state}
|
|
|
|
|
{...this.props}
|
|
|
|
|
Qrcodesignintype={Qrcodesignintype}
|
|
|
|
|
Qrcodesignintypedata={Qrcodesignintypedata}
|
|
|
|
|
getsetdatas={()=>this.getsetdatas()}
|
|
|
|
|
GotomQrcodesodesy={(d,b)=>this.GotomQrcodesodesy(d,b)}
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
<div className="clearfix yslmaxheigthk" >
|
|
|
|
@ -169,7 +218,14 @@ class Students_signin extends Component{
|
|
|
|
|
<Tabs defaultActiveKey="1" onChange={this.callback}>
|
|
|
|
|
<TabPane tab="正在签到" key="1">
|
|
|
|
|
<p className="mt20 mysligtes">共{attendances_count}个签到正在进行</p>
|
|
|
|
|
<Teaccomponent getsetdatas={()=>this.getsetdatas()} datas={datas} defaultActiveKey={defaultActiveKey} {...this.state} {...this.props}
|
|
|
|
|
<Teaccomponent
|
|
|
|
|
Gotomodes={(d,b)=>this.Gotomodes(d,b)}
|
|
|
|
|
GotomQrcodesodesy={(d,b)=>this.GotomQrcodesodesy(d,b)}
|
|
|
|
|
getsetdatas={()=>this.getsetdatas()}
|
|
|
|
|
datas={datas}
|
|
|
|
|
defaultActiveKey={defaultActiveKey}
|
|
|
|
|
{...this.state}
|
|
|
|
|
{...this.props}
|
|
|
|
|
|
|
|
|
|
></Teaccomponent>
|
|
|
|
|
|
|
|
|
@ -199,7 +255,15 @@ class Students_signin extends Component{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Teaccomponent getsetdatas={()=>this.getsetdatas()} datas={datas} defaultActiveKey={defaultActiveKey} {...this.state} {...this.props}></Teaccomponent>
|
|
|
|
|
<Teaccomponent
|
|
|
|
|
Gotomodes={(d,b)=>this.Gotomodes(d,b)}
|
|
|
|
|
GotomQrcodesodesy={(d,b)=>this.GotomQrcodesodesy(d,b)}
|
|
|
|
|
getsetdatas={()=>this.getsetdatas()}
|
|
|
|
|
datas={datas}
|
|
|
|
|
defaultActiveKey={defaultActiveKey}
|
|
|
|
|
{...this.state}
|
|
|
|
|
{...this.props}
|
|
|
|
|
></Teaccomponent>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div className="mb30 clearfix educontent mt40 intermediatecenter">
|
|
|
|
|