diff --git a/public/react/src/modules/courses/Video/VideoIndex.js b/public/react/src/modules/courses/Video/VideoIndex.js index d1ac45fe1..d8e600f4c 100644 --- a/public/react/src/modules/courses/Video/VideoIndex.js +++ b/public/react/src/modules/courses/Video/VideoIndex.js @@ -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, diff --git a/public/react/src/modules/courses/signin/css/signincdi.css b/public/react/src/modules/courses/signin/css/signincdi.css index bd45185b9..a7fbbb20a 100644 --- a/public/react/src/modules/courses/signin/css/signincdi.css +++ b/public/react/src/modules/courses/signin/css/signincdi.css @@ -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; diff --git a/public/react/src/modules/courses/signin/teacher/Teachers_signin.js b/public/react/src/modules/courses/signin/teacher/Teachers_signin.js index bda49fa6a..7d814ac47 100644 --- a/public/react/src/modules/courses/signin/teacher/Teachers_signin.js +++ b/public/react/src/modules/courses/signin/teacher/Teachers_signin.js @@ -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)=> { diff --git a/public/react/src/modules/courses/videostatistics/component/Videostatisticscomtwo.js b/public/react/src/modules/courses/videostatistics/component/Videostatisticscomtwo.js index d7773b523..637a2a0fd 100644 --- a/public/react/src/modules/courses/videostatistics/component/Videostatisticscomtwo.js +++ b/public/react/src/modules/courses/videostatistics/component/Videostatisticscomtwo.js @@ -404,7 +404,7 @@ class Videostatisticscomtwo extends Component { this.setcourse_groups(null)}> -

全部

+

全部

{ @@ -414,7 +414,7 @@ class Videostatisticscomtwo extends Component { return ( this.setcourse_groups(item.id)} key={key}> -

{item.name}

+

{item.name}

) @@ -472,7 +472,7 @@ class Videostatisticscomtwo extends Component { } -
+
{ data.length === 0 ?
-
+
{ data.length===0?