diff --git a/public/react/src/modules/courses/Video/VideoIndex.js b/public/react/src/modules/courses/Video/VideoIndex.js index d808ee787..787263cb0 100644 --- a/public/react/src/modules/courses/Video/VideoIndex.js +++ b/public/react/src/modules/courses/Video/VideoIndex.js @@ -382,7 +382,7 @@ class VideoIndex extends Component { isAdmin? this.statisticsy(b)}> : - + ) } { diff --git a/public/react/src/modules/courses/videostatistics/Videostatistics.js b/public/react/src/modules/courses/videostatistics/Videostatistics.js index ddd8c8deb..f497b3ca6 100644 --- a/public/react/src/modules/courses/videostatistics/Videostatistics.js +++ b/public/react/src/modules/courses/videostatistics/Videostatistics.js @@ -14,6 +14,7 @@ class Videostatistics extends Component{ watch_staticsdata:[], tisticsbool:false, tisid:null, + mytitle:"" } @@ -43,16 +44,17 @@ class Videostatistics extends Component{ }); } - tisticsbools=(bool,id)=>{ + tisticsbools=(bool,id,mytitle)=>{ this.setState({ tisticsbool:bool, tisid:id, + mytitle:mytitle }) } render(){ - let {watch_staticsdata,tisticsbool,tisid}= this.state; + let {watch_staticsdata,tisticsbool,tisid,mytitle}= this.state; return( @@ -79,13 +81,13 @@ class Videostatistics extends Component{
- this.tisticsbools(b,id)}> + this.tisticsbools(b,id,t)}>
: - this.tisticsbools(b,id)}> + this.tisticsbools(b,id,t)}> } diff --git a/public/react/src/modules/courses/videostatistics/component/Videostatisticscomtwo.js b/public/react/src/modules/courses/videostatistics/component/Videostatisticscomtwo.js index 51673aa38..b64cd06ac 100644 --- a/public/react/src/modules/courses/videostatistics/component/Videostatisticscomtwo.js +++ b/public/react/src/modules/courses/videostatistics/component/Videostatisticscomtwo.js @@ -207,6 +207,7 @@ class Videostatisticscomtwo extends Component { feq: response.data.data[i].feq, start_at: response.data.data[i].start_at, end_at: response.data.data[i].end_at, + title: response.data.data[i].title, }) } @@ -436,12 +437,21 @@ class Videostatisticscomtwo extends Component { } ); + + let mytitle=""; + if(isAdmin){ + mytitle=this.props&&this.props.mytitle; + + }else{ + mytitle=this.state.data[0].title; + } + return (
-
视频名称视频名称…
+
{mytitle}
分班 { fbbool === true ? - + : - + } @@ -488,7 +498,7 @@ class Videostatisticscomtwo extends Component { } -
+
{ data.length === 0 ?
( - this.props.tisticsbools(true,record.id)}>详情 + this.props.tisticsbools(true,record.id,record.title)}>详情 ), } ], @@ -266,7 +266,7 @@ class Videostatisticslist extends Component { } -
+
{ data.length===0?