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

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

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

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

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

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

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

Loading…
Cancel
Save