|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
import React,{ Component } from "react";
|
|
|
|
|
import '../css/signincdi.css';
|
|
|
|
|
import { Tabs } from 'antd';
|
|
|
|
|
import { Tabs,Pagination} from 'antd';
|
|
|
|
|
import Teaccomponent from '../component/teachercomponent/Teaccomponent';
|
|
|
|
|
import Histeacomponent from '../component/teachercomponent/Histeacomponent';
|
|
|
|
|
import Createsignmodel from '../model/Createsignmodel';
|
|
|
|
@ -11,7 +11,11 @@ class Students_signin extends Component{
|
|
|
|
|
super(props);
|
|
|
|
|
|
|
|
|
|
this.state={
|
|
|
|
|
visible:false
|
|
|
|
|
visible:false,
|
|
|
|
|
page:1,
|
|
|
|
|
per_page:20,
|
|
|
|
|
count:50,
|
|
|
|
|
defaultActiveKey:"1",
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -26,6 +30,9 @@ class Students_signin extends Component{
|
|
|
|
|
|
|
|
|
|
callback=(key)=> {
|
|
|
|
|
console.log(key);
|
|
|
|
|
this.setState({
|
|
|
|
|
defaultActiveKey: key,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Createsign=()=>{
|
|
|
|
@ -33,9 +40,16 @@ class Students_signin extends Component{
|
|
|
|
|
visible:true
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
paginationonChange = (pageNumber) => {
|
|
|
|
|
this.setState({
|
|
|
|
|
page: pageNumber,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
render(){
|
|
|
|
|
|
|
|
|
|
let {page,per_page,count,defaultActiveKey} =this.state
|
|
|
|
|
return(
|
|
|
|
|
<React.Fragment>
|
|
|
|
|
<Createsignmodel
|
|
|
|
@ -51,11 +65,22 @@ class Students_signin extends Component{
|
|
|
|
|
<Tabs defaultActiveKey="1" onChange={this.callback}>
|
|
|
|
|
<TabPane tab="正在签到" key="1">
|
|
|
|
|
<p className="mt20 mysligtes">共3个签到正在进行</p>
|
|
|
|
|
<Teaccomponent {...this.state} {...this.props}></Teaccomponent>
|
|
|
|
|
<Teaccomponent defaultActiveKey={defaultActiveKey} {...this.state} {...this.props}></Teaccomponent>
|
|
|
|
|
|
|
|
|
|
<div className="mb30 clearfix educontent mt40 intermediatecenter">
|
|
|
|
|
<Pagination showQuickJumper current={page} onChange={this.paginationonChange}
|
|
|
|
|
pageSize={per_page}
|
|
|
|
|
total={count}></Pagination>
|
|
|
|
|
</div>
|
|
|
|
|
</TabPane>
|
|
|
|
|
<TabPane tab="历史签到" key="2">
|
|
|
|
|
<p className="mt20 mysligtes">共3个签到正在进行</p>
|
|
|
|
|
<Histeacomponent {...this.state} {...this.props}></Histeacomponent>
|
|
|
|
|
<Teaccomponent defaultActiveKey={defaultActiveKey} {...this.state} {...this.props}></Teaccomponent>
|
|
|
|
|
<div className="mb30 clearfix educontent mt40 intermediatecenter">
|
|
|
|
|
<Pagination showQuickJumper current={page} onChange={this.paginationonChange}
|
|
|
|
|
pageSize={per_page}
|
|
|
|
|
total={count}></Pagination>
|
|
|
|
|
</div>
|
|
|
|
|
</TabPane>
|
|
|
|
|
<TabPane tab="签到统计" key="3">
|
|
|
|
|
Content of Tab Pane 3
|
|
|
|
|