签到 视频统计 点击目录 页面跳转

courseware
杨树林 5 years ago
parent 7080485c62
commit bc4d06eee5

@ -74,13 +74,18 @@ class VideoIndex extends Component {
} }
} }
componentDidUpdate = (prevProps) => { componentDidUpdate = (prevProps) => {
if (this.props.homedirectory !== prevProps.homedirectory) { try {
if(this.props.homedirectory ===true){ if (this.props.homedirectory !== prevProps.homedirectory) {
this.setState({ if(this.props.homedirectory ===true){
statistics:false, this.setState({
}) statistics:false,
})
}
} }
}catch (e) {
} }
if (this.props.match.params.videoId !== prevProps.match.params.videoId) { if (this.props.match.params.videoId !== prevProps.match.params.videoId) {
this.setState({ this.setState({
upload: false, upload: false,

@ -188,6 +188,9 @@
padding-top: 20px; padding-top: 20px;
padding-bottom: 20px; padding-bottom: 20px;
} }
.pdinstop0{
padding-top: 0px !important;
}
.teacherentrydivss{ .teacherentrydivss{
padding-left: 20px; padding-left: 20px;
padding-right: 20px; padding-right: 20px;
@ -414,6 +417,14 @@
white-space:nowrap; white-space:nowrap;
cursor: default; cursor: default;
} }
.maxnamewidth200yss{
text-align: center;
max-width:200px;
overflow:hidden;
text-overflow:ellipsis;
white-space:nowrap;
cursor: default;
}
.maxnamewidth100s{ .maxnamewidth100s{
width: 100px; width: 100px;
max-width: 100px; max-width: 100px;

@ -49,6 +49,7 @@ class Students_signin extends Component{
page:1, page:1,
limit:5 limit:5
} }
this.gogetdatas(data); this.gogetdatas(data);
// const query = this.props.location.search; // const query = this.props.location.search;
@ -58,8 +59,17 @@ class Students_signin extends Component{
} }
componentDidUpdate = (prevProps) => { componentDidUpdate = (prevProps) => {
try {
if (this.props.homedirectory !== prevProps.homedirectory) {
if(this.props.homedirectory ===true){
this.setState({
switchs:false,
})
}
}
}catch (e) {
}
} }
callback=(key)=> { callback=(key)=> {

@ -404,7 +404,7 @@ class Videostatisticscomtwo extends Component {
<Menu> <Menu>
<Menu.Item> <Menu.Item>
<a onClick={() => this.setcourse_groups(null)}> <a onClick={() => this.setcourse_groups(null)}>
<p className="maxnamewidth200s">全部</p> <p className="maxnamewidth200yss">全部</p>
</a> </a>
</Menu.Item> </Menu.Item>
{ {
@ -414,7 +414,7 @@ class Videostatisticscomtwo extends Component {
return ( return (
<Menu.Item> <Menu.Item>
<a onClick={() => this.setcourse_groups(item.id)} key={key}> <a onClick={() => this.setcourse_groups(item.id)} key={key}>
<p className="maxnamewidth200s">{item.name}</p> <p className="maxnamewidth200yss">{item.name}</p>
</a> </a>
</Menu.Item> </Menu.Item>
) )
@ -472,7 +472,7 @@ class Videostatisticscomtwo extends Component {
} }
</style> </style>
<div className="ws100s ysltableo"> <div className="ws100s ysltableo mt10">
{ {
data.length === 0 ? data.length === 0 ?
<div style={{ <div style={{

@ -266,7 +266,7 @@ class Videostatisticslist extends Component {
} }
</style> </style>
<div className="ws100s ysltableo teacherentrydivs"> <div className="ws100s ysltableo teacherentrydivs pdinstop0">
{ {
data.length===0? data.length===0?
<div style={{ <div style={{

Loading…
Cancel
Save