|
|
@ -126,6 +126,7 @@ class Videostatisticscomtwo extends Component {
|
|
|
|
course_groups: [],
|
|
|
|
course_groups: [],
|
|
|
|
fbbool: false,
|
|
|
|
fbbool: false,
|
|
|
|
groupsid: null,
|
|
|
|
groupsid: null,
|
|
|
|
|
|
|
|
none_group_member_count:0,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -164,9 +165,9 @@ class Videostatisticscomtwo extends Component {
|
|
|
|
let url = `/courses/${CourseId}/course_groups.json`;
|
|
|
|
let url = `/courses/${CourseId}/course_groups.json`;
|
|
|
|
axios.get(url).then((response) => {
|
|
|
|
axios.get(url).then((response) => {
|
|
|
|
if (response) {
|
|
|
|
if (response) {
|
|
|
|
console.log("分班");
|
|
|
|
// console.log("分班");
|
|
|
|
console.log("response");
|
|
|
|
// console.log("response");
|
|
|
|
console.log(response);
|
|
|
|
// console.log(response);
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
course_groups: response.data.course_groups,
|
|
|
|
course_groups: response.data.course_groups,
|
|
|
|
current_group_id: response.data.current_group_id,
|
|
|
|
current_group_id: response.data.current_group_id,
|
|
|
@ -202,7 +203,7 @@ class Videostatisticscomtwo extends Component {
|
|
|
|
number: (parseInt(this.state.page) - 1) * parseInt(this.state.limit) + (i + 1),
|
|
|
|
number: (parseInt(this.state.page) - 1) * parseInt(this.state.limit) + (i + 1),
|
|
|
|
user_name: response.data.data[i].user_name,
|
|
|
|
user_name: response.data.data[i].user_name,
|
|
|
|
is_finished: response.data.data[i].is_finished,
|
|
|
|
is_finished: response.data.data[i].is_finished,
|
|
|
|
total_duration: response.data.data[i].total_duration?formatSeconds(response.data.data[i].total_duration):0,
|
|
|
|
total_duration: response.data.data[i].total_duration,
|
|
|
|
feq: response.data.data[i].feq,
|
|
|
|
feq: response.data.data[i].feq,
|
|
|
|
start_at: response.data.data[i].start_at,
|
|
|
|
start_at: response.data.data[i].start_at,
|
|
|
|
end_at: response.data.data[i].end_at,
|
|
|
|
end_at: response.data.data[i].end_at,
|
|
|
@ -398,7 +399,7 @@ class Videostatisticscomtwo extends Component {
|
|
|
|
|
|
|
|
|
|
|
|
render() {
|
|
|
|
render() {
|
|
|
|
let {loading, data, page, limit, members_count, columnsstu, fbbool, course_groups} = this.state;
|
|
|
|
let {loading, data, page, limit, members_count, columnsstu, fbbool, course_groups} = this.state;
|
|
|
|
const isAdmin = this.props.isAdmin();
|
|
|
|
const isAdmin = this.props&& this.props.isAdmin();
|
|
|
|
|
|
|
|
|
|
|
|
const menu = (
|
|
|
|
const menu = (
|
|
|
|
<Menu>
|
|
|
|
<Menu>
|
|
|
@ -423,6 +424,16 @@ class Videostatisticscomtwo extends Component {
|
|
|
|
:
|
|
|
|
:
|
|
|
|
""
|
|
|
|
""
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
this.state.none_group_member_count&&this.state.none_group_member_count>0?
|
|
|
|
|
|
|
|
<Menu.Item>
|
|
|
|
|
|
|
|
<a onClick={() => this.setcourse_groups(0)}>
|
|
|
|
|
|
|
|
<p className="maxnamewidth200yss">未分班</p>
|
|
|
|
|
|
|
|
</a>
|
|
|
|
|
|
|
|
</Menu.Item>
|
|
|
|
|
|
|
|
:
|
|
|
|
|
|
|
|
""
|
|
|
|
|
|
|
|
}
|
|
|
|
</Menu>
|
|
|
|
</Menu>
|
|
|
|
);
|
|
|
|
);
|
|
|
|
return (
|
|
|
|
return (
|
|
|
@ -435,9 +446,14 @@ class Videostatisticscomtwo extends Component {
|
|
|
|
color: "#5091FF",
|
|
|
|
color: "#5091FF",
|
|
|
|
lineHeight: "42px",
|
|
|
|
lineHeight: "42px",
|
|
|
|
}}>
|
|
|
|
}}>
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
isAdmin === true ?
|
|
|
|
<div className="xiaoshou" onClick={() => this.props.tisticsbools(false, null)}>
|
|
|
|
<div className="xiaoshou" onClick={() => this.props.tisticsbools(false, null)}>
|
|
|
|
<span className="mr5 xiaoshou">视频统计总览</span><i className="iconfont icon-fanhui font-13 xiaoshou"></i>
|
|
|
|
<span className="mr5 xiaoshou">视频统计总览</span><i className="iconfont icon-fanhui font-13 xiaoshou"></i>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
:""
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
isAdmin === true ?
|
|
|
|
isAdmin === true ?
|
|
|
|
<div className="xiaoshou" onClick={() => this.fenbanone()}>
|
|
|
|
<div className="xiaoshou" onClick={() => this.fenbanone()}>
|
|
|
|