|
|
|
@ -4,6 +4,8 @@ import { Tabs,Pagination} from 'antd';
|
|
|
|
|
import Teaccomponent from '../component/teachercomponent/Teaccomponent';
|
|
|
|
|
import Histeacomponent from '../component/teachercomponent/Histeacomponent';
|
|
|
|
|
import Createsignmodel from '../model/Createsignmodel';
|
|
|
|
|
import axios from 'axios';
|
|
|
|
|
|
|
|
|
|
const { TabPane } = Tabs;
|
|
|
|
|
//在线学习
|
|
|
|
|
class Students_signin extends Component{
|
|
|
|
@ -49,7 +51,9 @@ class Students_signin extends Component{
|
|
|
|
|
|
|
|
|
|
render(){
|
|
|
|
|
|
|
|
|
|
let {page,per_page,count,defaultActiveKey} =this.state
|
|
|
|
|
let {page,per_page,count,defaultActiveKey} =this.state;
|
|
|
|
|
const isAdmin =this.props.isAdmin();
|
|
|
|
|
|
|
|
|
|
return(
|
|
|
|
|
<React.Fragment>
|
|
|
|
|
<Createsignmodel
|
|
|
|
@ -65,7 +69,9 @@ class Students_signin extends Component{
|
|
|
|
|
<Tabs defaultActiveKey="1" onChange={this.callback}>
|
|
|
|
|
<TabPane tab="正在签到" key="1">
|
|
|
|
|
<p className="mt20 mysligtes">共3个签到正在进行</p>
|
|
|
|
|
<Teaccomponent defaultActiveKey={defaultActiveKey} {...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}
|
|
|
|
@ -74,22 +80,50 @@ class Students_signin extends Component{
|
|
|
|
|
</div>
|
|
|
|
|
</TabPane>
|
|
|
|
|
<TabPane tab="历史签到" key="2">
|
|
|
|
|
<p className="mt20 mysligtes">共3个签到正在进行</p>
|
|
|
|
|
<div className="ws100s mt20 sortinxdirection">
|
|
|
|
|
<p className=" ws50s mysligtes sortinxdirection">共3个签到正在进行</p>
|
|
|
|
|
{
|
|
|
|
|
isAdmin===false?
|
|
|
|
|
<div className="ws50s xaxisreverseorder">
|
|
|
|
|
<p className="kkp pr32 " style={{color:"#FF835C"}}>旷课:2</p>
|
|
|
|
|
<p className="kkp mr20r" style={{color:"#EAAE4E"}}>请假:2</p>
|
|
|
|
|
<p className="kkp mr20r" style={{color:"#26C7C9"}}>正常签到:10</p>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
:
|
|
|
|
|
""
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<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
|
|
|
|
|
</TabPane>
|
|
|
|
|
{
|
|
|
|
|
isAdmin===true?
|
|
|
|
|
<TabPane tab="签到统计" key="3">
|
|
|
|
|
Content of Tab Pane 3
|
|
|
|
|
</TabPane>
|
|
|
|
|
:
|
|
|
|
|
""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
</Tabs>
|
|
|
|
|
<div className="positiondivs sortinxdirection xiaoshou">
|
|
|
|
|
<i className="iconfont icon-bianji5 posiivsicon"></i>
|
|
|
|
|
<p className="posiivs xiaoshou" onClick={()=>this.Createsign()}>创建签到</p>
|
|
|
|
|
</div>
|
|
|
|
|
{
|
|
|
|
|
isAdmin?
|
|
|
|
|
<div className="positiondivs sortinxdirection xiaoshou">
|
|
|
|
|
<i className="iconfont icon-bianji5 posiivsicon"></i>
|
|
|
|
|
<p className="posiivs xiaoshou" onClick={()=>this.Createsign()}>创建签到</p>
|
|
|
|
|
</div>
|
|
|
|
|
:""
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|