diff --git a/public/react/src/modules/courses/signin/css/signincdi.css b/public/react/src/modules/courses/signin/css/signincdi.css index 5fe6a87cb..867dff40d 100644 --- a/public/react/src/modules/courses/signin/css/signincdi.css +++ b/public/react/src/modules/courses/signin/css/signincdi.css @@ -403,3 +403,9 @@ cursor: default; } +.font-14{ + font-size: 14px !important; +} +.mr32{ + margin-right: 32px; +} diff --git a/public/react/src/modules/courses/videostatistics/Videostatistics.js b/public/react/src/modules/courses/videostatistics/Videostatistics.js index 93c9f57e6..0ea61c528 100644 --- a/public/react/src/modules/courses/videostatistics/Videostatistics.js +++ b/public/react/src/modules/courses/videostatistics/Videostatistics.js @@ -3,6 +3,7 @@ import axios from 'axios'; import '../signin/css/signincdi.css'; import Videostatisticscom from './component/Videostatisticscom'; import Videostatisticslist from './component/Videostatisticslist'; +import Videostatisticscomtwo from './component/Videostatisticscomtwo'; //在线学习 @@ -11,6 +12,8 @@ class Videostatistics extends Component{ super(props); this.state={ watch_staticsdata:[], + tisticsbool:true, + tisid:0, } @@ -40,41 +43,48 @@ class Videostatistics extends Component{ }); } - + tisticsbools=(bool,id)=>{ + this.setState({ + tisticsbool:bool, + tisid:id, + }) + } render(){ - let {watch_staticsdata}= this.state; + let {watch_staticsdata,tisticsbool}= this.state; return(
-
-
-

this.props.statisticsy(false)}> - -

返回

-

- -
- - - + { + tisticsbool===false? +
+
+

this.props.statisticsy(false)}> + +

返回

+

-
- this.details()}> +
+ +
+ this.tisticsbools(b,id)}> +
+
+ : + this.tisticsbools(b,id)}> + } -
-
) diff --git a/public/react/src/modules/courses/videostatistics/component/Videostatisticscomtwo.js b/public/react/src/modules/courses/videostatistics/component/Videostatisticscomtwo.js new file mode 100644 index 000000000..45180e1f7 --- /dev/null +++ b/public/react/src/modules/courses/videostatistics/component/Videostatisticscomtwo.js @@ -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 ( + +
+
+
+
视频名称视频名称…
+
+
this.props.tisticsbools(false,null)}> + 视频统计总览 +
+
+ 分班 +
+
+
+ + + + { + loading===true? +
+ +
+ : +
+ { + data.length===0? +
+ +
+ : + + } + + + + } + + + + +
+ { + data&&data.length>0? + + :"" + } + +
+ + + + ) + } +} + +export default Videostatisticscom; diff --git a/public/react/src/modules/courses/videostatistics/component/Videostatisticslist.js b/public/react/src/modules/courses/videostatistics/component/Videostatisticslist.js index 692958517..6448c5996 100644 --- a/public/react/src/modules/courses/videostatistics/component/Videostatisticslist.js +++ b/public/react/src/modules/courses/videostatistics/component/Videostatisticslist.js @@ -78,7 +78,7 @@ class Videostatisticslist extends Component { className: 'font-14', width: '90px', render: (text, record) => ( - this.props.details()}>详情 + this.props.tisticsbools(true,record.id)}>详情 ), } ],