parent
2e996636a8
commit
7c357ff220
@ -0,0 +1,118 @@
|
||||
import React, {Component} from "react";
|
||||
import '../../signin/css/signincdi.css';
|
||||
import {Pagination,Table} from 'antd';
|
||||
import {getImageUrl} from 'educoder';
|
||||
import axios from 'axios';
|
||||
import LoadingSpin from "../../../../common/LoadingSpin";
|
||||
import NoneDatas from "../../signin/component/NoneDatas";
|
||||
|
||||
|
||||
|
||||
//条目
|
||||
class Videostatisticscom extends Component {
|
||||
//条目组件
|
||||
constructor(props) {
|
||||
super(props);
|
||||
|
||||
this.state = {
|
||||
data:[],
|
||||
page:1,
|
||||
limit:10,
|
||||
members_count:0,
|
||||
columnsstu:[],
|
||||
loading:false,
|
||||
}
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
|
||||
}
|
||||
|
||||
componentDidUpdate = (prevProps) => {
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
paginationonChange = (pageNumber) => {
|
||||
this.setState({
|
||||
page: pageNumber,
|
||||
})
|
||||
}
|
||||
|
||||
render() {
|
||||
let {loading,data,page,limit,members_count,columnsstu}=this.state
|
||||
return (
|
||||
<React.Fragment>
|
||||
<div className="ws100s" >
|
||||
<div className="ws100s teacherentrydivs edu-back-white ">
|
||||
<div className="ws100s sortinxdirection">
|
||||
<div className="ws50s sptits">视频名称视频名称…</div>
|
||||
<div className="ws50s sptitss xaxisreverseorder font-14" style={{
|
||||
color:"#5091FF",
|
||||
lineHeight: "42px",
|
||||
}}>
|
||||
<div className="xiaoshou" onClick={()=>this.props.tisticsbools(false,null)}>
|
||||
<span className="mr5 xiaoshou">视频统计总览</span><i className="iconfont icon-fanhui font-13 xiaoshou"></i>
|
||||
</div>
|
||||
<div className="xiaoshou">
|
||||
<span className="mr5 xiaoshou">分班</span><i className="iconfont icon-sanjiaoxing-up font-13 mr32 xiaoshou"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<style>
|
||||
{
|
||||
`
|
||||
.ysltableo .ant-table-thead > tr > th, .ant-table-tbody > tr > td {
|
||||
padding: 10px 10px;
|
||||
}
|
||||
`
|
||||
}
|
||||
</style>
|
||||
{
|
||||
loading===true?
|
||||
<div style={{
|
||||
minHeight: "400px",
|
||||
}} className="ws100s">
|
||||
<LoadingSpin></LoadingSpin>
|
||||
</div>
|
||||
:
|
||||
<div className="ws100s ysltableo teacherentrydivs">
|
||||
{
|
||||
data.length===0?
|
||||
<div style={{
|
||||
minHeight: "400px",
|
||||
}} className="ws100s">
|
||||
<NoneDatas></NoneDatas>
|
||||
</div>
|
||||
:
|
||||
<Table columns={columnsstu} dataSource={data} pagination={false}/>
|
||||
}
|
||||
|
||||
|
||||
</div>
|
||||
}
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div className="mb30 clearfix educontent mt40 intermediatecenter">
|
||||
{
|
||||
data&&data.length>0?
|
||||
<Pagination showQuickJumper current={this.state.page} onChange={this.paginationonChange}
|
||||
pageSize={this.state.limit}
|
||||
total={this.state.members_count}></Pagination>
|
||||
:""
|
||||
}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</React.Fragment>
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
export default Videostatisticscom;
|
Loading…
Reference in new issue