|
|
|
@ -1,10 +1,8 @@
|
|
|
|
|
import React, { Component } from 'react';
|
|
|
|
|
import { BrowserRouter as Router, Route, Switch } from 'react-router-dom';
|
|
|
|
|
import { Route, Switch } from 'react-router-dom';
|
|
|
|
|
|
|
|
|
|
import { Input, Pagination, Tooltip } from 'antd';
|
|
|
|
|
import { Loadable } from 'educoder';
|
|
|
|
|
import Loading from '../../Loading';
|
|
|
|
|
import Guide from "../../modules/courses/shixunHomework/Guide";
|
|
|
|
|
//业务组件
|
|
|
|
|
import CoursesBanner from "./coursesDetail/CoursesBanner";
|
|
|
|
|
import Coursesleftnav from "./coursesDetail/CoursesLeftNav";
|
|
|
|
@ -179,217 +177,7 @@ class ListPageIndex extends Component {
|
|
|
|
|
this.refs.CoursesBanner.updatabanner()
|
|
|
|
|
}
|
|
|
|
|
render() {
|
|
|
|
|
let { yslGuideone } = this.state;
|
|
|
|
|
// console.log("98");
|
|
|
|
|
// console.log(yslGuideone);
|
|
|
|
|
// console.log(this.props.isAdmin());
|
|
|
|
|
// // var yslGuideones = window.sessionStorage.getItem('yslGuideone');
|
|
|
|
|
// console.log(this.props);
|
|
|
|
|
// console.log(this.props.location.search);
|
|
|
|
|
return (
|
|
|
|
|
<div>
|
|
|
|
|
<div className="newMain clearfix">
|
|
|
|
|
{/*头部banner*/}
|
|
|
|
|
<CoursesBanner ref={"CoursesBanner"} {...this.props} ispostexcellenttype={(excellent)=>this.ispostexcellenttype(excellent)}></CoursesBanner>
|
|
|
|
|
{/*下面是指引哦*/}
|
|
|
|
|
{/*{yslGuideone!==undefined?*/}
|
|
|
|
|
{/*(*/}
|
|
|
|
|
{/* yslGuideone===true?*/}
|
|
|
|
|
{/* <Guide*/}
|
|
|
|
|
{/* setwindowlocal={(b)=>this.setwindowlocal(b)}*/}
|
|
|
|
|
{/* >*/}
|
|
|
|
|
{/* </Guide>*/}
|
|
|
|
|
{/* :""*/}
|
|
|
|
|
{/* )*/}
|
|
|
|
|
{/* :""*/}
|
|
|
|
|
{/*}*/}
|
|
|
|
|
<div className="educontent clearfix" style={{flex: "1 0 auto"}}>
|
|
|
|
|
|
|
|
|
|
<div className="stud-class-set">
|
|
|
|
|
<div className="news">
|
|
|
|
|
<div className="edu-class-inner container clearfix">
|
|
|
|
|
<div className="member for-content-0 for-content">
|
|
|
|
|
<div className="people clearfix mb60">
|
|
|
|
|
|
|
|
|
|
{/*left_nav*/}
|
|
|
|
|
<div className={"with22 fl setleft"} style={{width:'264px',minHeight:'500px'}}>
|
|
|
|
|
<Coursesleftnav {...this.props} {...this.state} comyslElearning={(i)=>this.comyslElearning(i)}/>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{/*right_concent*/}
|
|
|
|
|
<div className="with78 fl">
|
|
|
|
|
<div className={"ml20 clearfix"}>
|
|
|
|
|
<Switch {...this.props}>
|
|
|
|
|
{/* --------------------------------------------------------------------- */}
|
|
|
|
|
|
|
|
|
|
{/* 作业设置 */}
|
|
|
|
|
{/* http://localhost:3007/classrooms/1309/homework/9300/setting */}
|
|
|
|
|
{/* 普通作业 */}
|
|
|
|
|
<Route path="/classrooms/:coursesId/common_homeworks/:category_id"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<CommonWork {...this.props} {...props} {...this.state} />)
|
|
|
|
|
}
|
|
|
|
|
></Route>
|
|
|
|
|
{/* 普通作业 */}
|
|
|
|
|
<Route path="/classrooms/:coursesId/common_homework/:category_id"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<CommonWork {...this.props} {...props} {...this.state} />)
|
|
|
|
|
}
|
|
|
|
|
></Route>
|
|
|
|
|
|
|
|
|
|
{/* 作品列表 */}
|
|
|
|
|
<Route path="/classrooms/:coursesId/group_homeworks/:category_id"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<CommonWork {...this.props} {...props} {...this.state} />)
|
|
|
|
|
}
|
|
|
|
|
></Route>
|
|
|
|
|
{/* 作品列表 */}
|
|
|
|
|
<Route path="/classrooms/:coursesId/group_homework/:category_id"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<CommonWork {...this.props} {...props} {...this.state} />)
|
|
|
|
|
}
|
|
|
|
|
></Route>
|
|
|
|
|
|
|
|
|
|
<Route exact path="/classrooms/:coursesId/boards/:boardId"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<Boards {...this.props} {...props} {...this.state} />)
|
|
|
|
|
}
|
|
|
|
|
></Route>
|
|
|
|
|
{/*视频列表*/}
|
|
|
|
|
<Route path="/classrooms/:coursesId/course_video/:videoId"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<CourseVideo {...this.props} {...props} {...this.state} />)
|
|
|
|
|
}
|
|
|
|
|
></Route>
|
|
|
|
|
<Route path="/classrooms/:coursesId/course_videos"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<CourseVideo {...this.props} {...props} {...this.state} />)
|
|
|
|
|
}
|
|
|
|
|
></Route>
|
|
|
|
|
<Route path="/classrooms/:coursesId/teachers"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<TeacherList updatabanners={()=>this.updatabanners()} {...this.props} {...props} {...this.state} />)
|
|
|
|
|
}
|
|
|
|
|
></Route>
|
|
|
|
|
{/* 学生列表*/}
|
|
|
|
|
<Route path="/classrooms/:coursesId/students"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<StudentsList {...this.props} {...props} {...this.state} />)
|
|
|
|
|
}
|
|
|
|
|
></Route>
|
|
|
|
|
<Route path="/classrooms/:coursesId/course_groups/:course_group_id"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<StudentsList {...this.props} {...props} {...this.state} />)
|
|
|
|
|
}
|
|
|
|
|
></Route>
|
|
|
|
|
<Route path="/classrooms/:coursesId/course_groups"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<CourseGroupList {...this.props} {...props} {...this.state} />)
|
|
|
|
|
}
|
|
|
|
|
></Route>
|
|
|
|
|
|
|
|
|
|
<Route path="/classrooms/:coursesId/exercises/:Id"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<Exercise {...this.props} {...props} {...this.state} />)
|
|
|
|
|
}
|
|
|
|
|
></Route>
|
|
|
|
|
|
|
|
|
|
<Route path="/classrooms/:coursesId/polls/:Id"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<Poll {...this.props} {...props} {...this.state} />)
|
|
|
|
|
}
|
|
|
|
|
></Route>
|
|
|
|
|
{/* <Route path="/classrooms/:coursesId/file/:Id"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<Resourcelist {...this.props} {...props} {...this.state} />)
|
|
|
|
|
}
|
|
|
|
|
></Route> */}
|
|
|
|
|
|
|
|
|
|
{/* 实训作业子页面*/}
|
|
|
|
|
<Route path="/classrooms/:coursesId/shixun_homework/:category_id"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<ShixunHomework {...this.props} {...props} {...this.state} />)
|
|
|
|
|
}
|
|
|
|
|
></Route>
|
|
|
|
|
|
|
|
|
|
{/*课堂统计列表2019.10.29 */}
|
|
|
|
|
|
|
|
|
|
<Route path="/classrooms/:coursesId/statistics"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<Statistics {...this.props} {...props} {...this.state} />)
|
|
|
|
|
}
|
|
|
|
|
></Route>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{/*公告栏列表*/}
|
|
|
|
|
|
|
|
|
|
<Route path="/classrooms/:coursesId/informs"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<Eduinforms {...this.props} {...props} {...this.state} />)
|
|
|
|
|
}
|
|
|
|
|
></Route>
|
|
|
|
|
{/*在线学习*/}
|
|
|
|
|
<Route
|
|
|
|
|
path="/classrooms/:coursesId/online_learning"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<Elearning {...this.props} {...props} {...this.state} comyslElearning={(i)=>this.comyslElearning(i)} />)
|
|
|
|
|
}
|
|
|
|
|
>
|
|
|
|
|
</Route>
|
|
|
|
|
{/* 实训作业页面*/}
|
|
|
|
|
<Route path="/classrooms/:coursesId/shixun_homeworks/:main_id"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<ShixunHomework {...this.props} {...props} {...this.state} />)
|
|
|
|
|
}
|
|
|
|
|
></Route>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Route path="/classrooms/:coursesId/files/:main_id"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<Resourcelist {...this.props} {...props} {...this.state} />)
|
|
|
|
|
}
|
|
|
|
|
></Route>
|
|
|
|
|
<Route path="/classrooms/:coursesId/file/:Id"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<Resourcelist {...this.props} {...props} {...this.state} />)
|
|
|
|
|
}
|
|
|
|
|
></Route>
|
|
|
|
|
|
|
|
|
|
<Route path="/classrooms/:coursesId/graduation_topics/:Id"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<GraduationTopics {...this.props} {...props} {...this.state} />)
|
|
|
|
|
}></Route>
|
|
|
|
|
<Route path="/classrooms/:coursesId/graduation_tasks/:Id"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<GraduationTasks {...this.props} {...props} {...this.state} />)
|
|
|
|
|
}
|
|
|
|
|
></Route>
|
|
|
|
|
{/* 默认 */}
|
|
|
|
|
<Route path="/classrooms/:coursesId"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<StudentsList {...this.props} {...props} {...this.state} />)
|
|
|
|
|
}
|
|
|
|
|
></Route>
|
|
|
|
|
|
|
|
|
|
</Switch>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
)
|
|
|
|
|
return ()
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
export default ListPageIndex;
|
|
|
|
|