|
|
|
@ -502,40 +502,40 @@ class CoursesIndex extends Component{
|
|
|
|
|
return (
|
|
|
|
|
<Switch {...this.props}>
|
|
|
|
|
{/*排序*/}
|
|
|
|
|
<Route path="/courses/:coursesId/ordering/:ordering_type/:main_id"
|
|
|
|
|
<Route path="/classrooms/:coursesId/ordering/:ordering_type/:main_id"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<Ordering {...this.props} {...props} {...this.state} />)
|
|
|
|
|
}
|
|
|
|
|
></Route>
|
|
|
|
|
{/*视频列表*/}
|
|
|
|
|
<Route path="/courses/:coursesId/course_video/:videoId"
|
|
|
|
|
<Route path="/classrooms/:coursesId/course_video/:videoId"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<ListPageIndex {...this.props} {...props} {...this.state} />)
|
|
|
|
|
}
|
|
|
|
|
></Route>
|
|
|
|
|
<Route path="/courses/:coursesId/course_videos"
|
|
|
|
|
<Route path="/classrooms/:coursesId/course_videos"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<ListPageIndex {...this.props} {...props} {...this.state} />)
|
|
|
|
|
}
|
|
|
|
|
></Route>
|
|
|
|
|
{/* 资源列表页 */}
|
|
|
|
|
<Route path="/courses/:coursesId/file/:Id" exact
|
|
|
|
|
<Route path="/classrooms/:coursesId/file/:Id" exact
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<ListPageIndex {...this.props} {...props} {...this.state} {...common}/>)
|
|
|
|
|
}
|
|
|
|
|
></Route>
|
|
|
|
|
<Route path="/courses/:coursesId/files/:main_id"
|
|
|
|
|
<Route path="/classrooms/:coursesId/files/:main_id"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<ListPageIndex {...this.props} {...props} {...this.state} {...common}/>)
|
|
|
|
|
}
|
|
|
|
|
></Route>
|
|
|
|
|
<Route exact path="/courses/:coursesId/boards/:boardId"
|
|
|
|
|
<Route exact path="/classrooms/:coursesId/boards/:boardId"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<ListPageIndex {...this.props} {...props} {...this.state} {...common}/>)
|
|
|
|
|
}
|
|
|
|
|
></Route>
|
|
|
|
|
{/*课堂讨论*/}
|
|
|
|
|
<Route path="/courses/:coursesId/boards/:boardId"
|
|
|
|
|
<Route path="/classrooms/:coursesId/boards/:boardId"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<BoardIndex {...this.props} {...props} {...this.state} {...common}/>)
|
|
|
|
|
}
|
|
|
|
@ -543,32 +543,32 @@ class CoursesIndex extends Component{
|
|
|
|
|
|
|
|
|
|
{/* 毕业设计 */}
|
|
|
|
|
{/* 毕设问答 */}
|
|
|
|
|
<Route path="/courses/:coursesId/graduation_topics/postwork/new"
|
|
|
|
|
<Route path="/classrooms/:coursesId/graduation_topics/postwork/new"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<GraduateTopicPostWorksNew {...this.props} {...props} {...this.state} {...common}/>)
|
|
|
|
|
}
|
|
|
|
|
></Route>
|
|
|
|
|
|
|
|
|
|
{/* 毕设选题新建页 */}
|
|
|
|
|
<Route path="/courses/:coursesId/graduation_topics/new"
|
|
|
|
|
<Route path="/classrooms/:coursesId/graduation_topics/new"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<GraduateTopicNew {...this.props} {...props} {...this.state} {...common}/>)
|
|
|
|
|
}></Route>
|
|
|
|
|
{/* 毕设选题编辑页*/}
|
|
|
|
|
<Route path="/courses/:coursesId/graduation_topics/:topicId/edit"
|
|
|
|
|
<Route path="/classrooms/:coursesId/graduation_topics/:topicId/edit"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<GraduateTopicNew {...this.props} {...props} {...this.state} {...common}/>)
|
|
|
|
|
}></Route>
|
|
|
|
|
|
|
|
|
|
{/* 毕设选题详情页 */}
|
|
|
|
|
<Route path="/courses/:course_id/graduation_topics/:graduation_topic_id/detail"
|
|
|
|
|
<Route path="/classrooms/:course_id/graduation_topics/:graduation_topic_id/detail"
|
|
|
|
|
render={
|
|
|
|
|
(props)=>(<GraduationTopicsDetail {...this.props} {...props} {...this.state}></GraduationTopicsDetail>)
|
|
|
|
|
}
|
|
|
|
|
></Route>
|
|
|
|
|
|
|
|
|
|
{/* 毕设选题列表 */}
|
|
|
|
|
<Route path="/courses/:coursesId/graduation_topics/:Id" exact
|
|
|
|
|
<Route path="/classrooms/:coursesId/graduation_topics/:Id" exact
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<ListPageIndex {...this.props} {...props} {...this.state} {...common}/>)
|
|
|
|
|
}></Route>
|
|
|
|
@ -576,21 +576,21 @@ class CoursesIndex extends Component{
|
|
|
|
|
|
|
|
|
|
{/*————————————————————————————————————————————————————————————————————————————————————*/}
|
|
|
|
|
{/* 作品评阅 https://www.trustie.net/issues/19981 */}
|
|
|
|
|
<Route path="/courses/:coursesId/graduation_tasks/:category_id/appraise"
|
|
|
|
|
<Route path="/classrooms/:coursesId/graduation_tasks/:category_id/appraise"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<GraduationTasksappraise {...this.props} {...props} {...this.state} {...common}/>)
|
|
|
|
|
}
|
|
|
|
|
></Route>
|
|
|
|
|
|
|
|
|
|
{/* 新建作品 */}
|
|
|
|
|
<Route path="/courses/:coursesId/graduation_tasks/:category_id/works/:task_Id/new"
|
|
|
|
|
<Route path="/classrooms/:coursesId/graduation_tasks/:category_id/works/:task_Id/new"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<GraduationTasksSubmitnewApp {...this.props} {...props} {...this.state} {...common}/>)
|
|
|
|
|
}
|
|
|
|
|
></Route>
|
|
|
|
|
|
|
|
|
|
{/* 修改作品 */}
|
|
|
|
|
<Route path="/courses/:coursesId/graduation_tasks/:category_id/works/:work_Id/edit"
|
|
|
|
|
<Route path="/classrooms/:coursesId/graduation_tasks/:category_id/works/:work_Id/edit"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<GraduationTasksSubmiteditApp {...this.props} {...props} {...this.state} {...common}/>)
|
|
|
|
|
}
|
|
|
|
@ -598,20 +598,20 @@ class CoursesIndex extends Component{
|
|
|
|
|
|
|
|
|
|
{/* 设置毕设任务 https://www.trustie.net/issues/19981 */}
|
|
|
|
|
|
|
|
|
|
{/* <Route path="/courses/:coursesId/graduation_tasks/:category_id/:task_Id/setting"
|
|
|
|
|
{/* <Route path="/classrooms/:coursesId/graduation_tasks/:category_id/:task_Id/setting"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<GraduationTaskssetting {...this.props} {...props} {...this.state} {...common}/>)
|
|
|
|
|
}
|
|
|
|
|
></Route>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Route path="/courses/:coursesId/graduation_tasks/:category_id/:task_Id/questions"
|
|
|
|
|
<Route path="/classrooms/:coursesId/graduation_tasks/:category_id/:task_Id/questions"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<GraduationTasksquestions {...this.props} {...props} {...this.state} />)
|
|
|
|
|
}></Route> */}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Route path="/courses/:coursesId/graduation_tasks/:category_id/detail/:task_Id"
|
|
|
|
|
<Route path="/classrooms/:coursesId/graduation_tasks/:category_id/detail/:task_Id"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<GraduationTaskssettinglist {...this.props} {...props} {...this.state} {...common}/>)
|
|
|
|
|
}
|
|
|
|
@ -619,7 +619,7 @@ class CoursesIndex extends Component{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{/* 修改毕设任务 https://www.trustie.net/issues/19981 */}
|
|
|
|
|
<Route path="/courses/:coursesId/graduation_tasks/:category_id/edit"
|
|
|
|
|
<Route path="/classrooms/:coursesId/graduation_tasks/:category_id/edit"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<GraduationTaskseditApp {...this.props} {...props} {...this.state} {...common}/>)
|
|
|
|
|
}
|
|
|
|
@ -627,7 +627,7 @@ class CoursesIndex extends Component{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{/* 新建毕设任务 https://www.trustie.net/issues/19981 */}
|
|
|
|
|
<Route path="/courses/:coursesId/graduation_tasks/:category_id/new"
|
|
|
|
|
<Route path="/classrooms/:coursesId/graduation_tasks/:category_id/new"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<GraduationTasksnewApp {...this.props} {...props} {...this.state} {...common}/>)
|
|
|
|
|
}
|
|
|
|
@ -635,104 +635,104 @@ class CoursesIndex extends Component{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{/* 毕设任务列表 https://www.trustie.net/issues/19981 */}
|
|
|
|
|
<Route path="/courses/:coursesId/graduation_tasks/:Id" exact
|
|
|
|
|
<Route path="/classrooms/:coursesId/graduation_tasks/:Id" exact
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<ListPageIndex {...this.props} {...props} {...this.state} {...common}/>)
|
|
|
|
|
}
|
|
|
|
|
></Route>
|
|
|
|
|
|
|
|
|
|
{/*/!* 毕业设计主 https://www.trustie.net/issues/19981 *!/*/}
|
|
|
|
|
{/*<Route path="/courses/:coursesId/graduation"*/}
|
|
|
|
|
{/*<Route path="/classrooms/:coursesId/graduation"*/}
|
|
|
|
|
{/*render={*/}
|
|
|
|
|
{/*(props) => (<GraduationTopics {...this.props} {...props} {...this.state} {...common}/>)*/}
|
|
|
|
|
{/*}*/}
|
|
|
|
|
{/*></Route>*/}
|
|
|
|
|
|
|
|
|
|
{/*/!* 资源子目录 https://www.trustie.net/issues/19917 *!/*/}
|
|
|
|
|
{/*<Route path="/courses/:coursesId/attachment/attachment/:attachmentId"*/}
|
|
|
|
|
{/*<Route path="/classrooms/:coursesId/attachment/attachment/:attachmentId"*/}
|
|
|
|
|
{/*render={*/}
|
|
|
|
|
{/*(props) => (<Files {...this.props} {...props} {...this.state} {...common}/>)*/}
|
|
|
|
|
{/*}*/}
|
|
|
|
|
{/*></Route>*/}
|
|
|
|
|
{/* 教师列表*/}
|
|
|
|
|
<Route path="/courses/:coursesId/teachers"
|
|
|
|
|
<Route path="/classrooms/:coursesId/teachers"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<ListPageIndex {...this.props} {...props} {...this.state} {...common}/>)
|
|
|
|
|
}
|
|
|
|
|
></Route>
|
|
|
|
|
{/* 学生列表*/}
|
|
|
|
|
<Route path="/courses/:coursesId/students"
|
|
|
|
|
<Route path="/classrooms/:coursesId/students"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<ListPageIndex {...this.props} {...props} {...this.state} {...common}/>)
|
|
|
|
|
}
|
|
|
|
|
></Route>
|
|
|
|
|
{/* 分班列表 */}
|
|
|
|
|
<Route path="/courses/:coursesId/course_groups/:course_group_id"
|
|
|
|
|
<Route path="/classrooms/:coursesId/course_groups/:course_group_id"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<ListPageIndex {...this.props} {...props} {...this.state} {...common}/>)
|
|
|
|
|
}
|
|
|
|
|
></Route>
|
|
|
|
|
<Route path="/courses/:coursesId/course_groups"
|
|
|
|
|
<Route path="/classrooms/:coursesId/course_groups"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<ListPageIndex {...this.props} {...props} {...this.state} {...common}/>)
|
|
|
|
|
}
|
|
|
|
|
></Route>
|
|
|
|
|
|
|
|
|
|
{/* 普通作业 */}
|
|
|
|
|
<Route path="/courses/:coursesId/common_homeworks/:category_id" exact
|
|
|
|
|
<Route path="/classrooms/:coursesId/common_homeworks/:category_id" exact
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<ListPageIndex {...this.props} {...props} {...this.state} {...common}/>)
|
|
|
|
|
}
|
|
|
|
|
></Route>
|
|
|
|
|
{/* 分组作业 */}
|
|
|
|
|
<Route path="/courses/:coursesId/group_homeworks/:category_id" exact
|
|
|
|
|
<Route path="/classrooms/:coursesId/group_homeworks/:category_id" exact
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<ListPageIndex {...this.props} {...props} {...this.state} {...common}/>)
|
|
|
|
|
}
|
|
|
|
|
></Route>
|
|
|
|
|
|
|
|
|
|
{/* 普通作业 */}
|
|
|
|
|
<Route path="/courses/:coursesId/common_homeworks/" strict
|
|
|
|
|
<Route path="/classrooms/:coursesId/common_homeworks/" strict
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<CommonWork {...this.props} {...props} {...this.state} {...common}/>)
|
|
|
|
|
}
|
|
|
|
|
></Route>
|
|
|
|
|
|
|
|
|
|
{/* 分组作业 */}
|
|
|
|
|
<Route path="/courses/:coursesId/group_homeworks/" strict
|
|
|
|
|
<Route path="/classrooms/:coursesId/group_homeworks/" strict
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<GroupWork {...this.props} {...props} {...this.state} {...common}/>)
|
|
|
|
|
}
|
|
|
|
|
></Route>
|
|
|
|
|
|
|
|
|
|
{/* 问卷答题 */}
|
|
|
|
|
<Route path="/courses/:coursesId/polls/:pollId/users/:login"
|
|
|
|
|
<Route path="/classrooms/:coursesId/polls/:pollId/users/:login"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<PollInfo {...this.props} {...props} {...this.state} {...common}/>)
|
|
|
|
|
}
|
|
|
|
|
></Route>
|
|
|
|
|
|
|
|
|
|
{/* 问卷详情 */}
|
|
|
|
|
<Route path="/courses/:coursesId/polls/:pollId/detail"
|
|
|
|
|
<Route path="/classrooms/:coursesId/polls/:pollId/detail"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<PollDetail {...this.props} {...props} {...this.state} {...common}/>)
|
|
|
|
|
}
|
|
|
|
|
></Route>
|
|
|
|
|
|
|
|
|
|
{/* 问卷新建 */}
|
|
|
|
|
<Route path="/courses/:coursesId/polls/:pollid/:news"
|
|
|
|
|
<Route path="/classrooms/:coursesId/polls/:pollid/:news"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<PollNew {...this.props} {...props} {...this.state} {...common}/>)
|
|
|
|
|
}
|
|
|
|
|
></Route>
|
|
|
|
|
{/*/!* 问卷编辑 *!/*/}
|
|
|
|
|
{/*<Route path="/courses/:coursesId/polls/:pollid/:news"*/}
|
|
|
|
|
{/*<Route path="/classrooms/:coursesId/polls/:pollid/:news"*/}
|
|
|
|
|
{/*render={*/}
|
|
|
|
|
{/*(props) => (<PollNew {...this.props} {...props} {...this.state} {...common} />)*/}
|
|
|
|
|
{/*}*/}
|
|
|
|
|
{/*></Route>*/}
|
|
|
|
|
{/* 问卷 */}
|
|
|
|
|
<Route path="/courses/:coursesId/polls/:Id"
|
|
|
|
|
<Route path="/classrooms/:coursesId/polls/:Id"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<ListPageIndex {...this.props} {...props} {...this.state} {...common}/>)
|
|
|
|
|
}
|
|
|
|
@ -740,20 +740,20 @@ class CoursesIndex extends Component{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{/* 试卷查看/评阅 */}
|
|
|
|
|
<Route exact path="/courses/:coursesId/exercises/:Id/users/:userId"
|
|
|
|
|
<Route exact path="/classrooms/:coursesId/exercises/:Id/users/:userId"
|
|
|
|
|
render={
|
|
|
|
|
(props)=>(<ExerciseReviewAndAnswer {...this.props} {...props} {...this.state} {...common}/>)
|
|
|
|
|
}
|
|
|
|
|
></Route>
|
|
|
|
|
|
|
|
|
|
{/*试卷新建 */}
|
|
|
|
|
<Route exact path="/courses/:coursesId/exercises/new"
|
|
|
|
|
<Route exact path="/classrooms/:coursesId/exercises/new"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<ExerciseNew {...this.props} {...props} {...this.state} {...common}/>)
|
|
|
|
|
}
|
|
|
|
|
></Route>
|
|
|
|
|
{/*试卷新建 */}
|
|
|
|
|
<Route exact path="/courses/:coursesId/exercises/:Id/edit"
|
|
|
|
|
<Route exact path="/classrooms/:coursesId/exercises/:Id/edit"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<ExerciseNew {...this.props} {...props} {...this.state} {...common}/>)
|
|
|
|
|
}
|
|
|
|
@ -761,7 +761,7 @@ class CoursesIndex extends Component{
|
|
|
|
|
|
|
|
|
|
{/*试卷设置主页*/}
|
|
|
|
|
|
|
|
|
|
<Route path="/courses/:coursesId/exercises/:Id/student_exercise_list"
|
|
|
|
|
<Route path="/classrooms/:coursesId/exercises/:Id/student_exercise_list"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<Testpapersettinghomepage {...this.props} {...props} {...this.state} {...common}/>)
|
|
|
|
|
}
|
|
|
|
@ -770,14 +770,14 @@ class CoursesIndex extends Component{
|
|
|
|
|
|
|
|
|
|
{/*学生完成列表*/}
|
|
|
|
|
<Route
|
|
|
|
|
path="/courses/:coursesId/exercises/:Id/Studentshavecompletedthelist"
|
|
|
|
|
path="/classrooms/:coursesId/exercises/:Id/Studentshavecompletedthelist"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<Studentshavecompletedthelist {...this.props} {...props} {...this.state} {...common}/>)
|
|
|
|
|
}
|
|
|
|
|
>
|
|
|
|
|
</Route>
|
|
|
|
|
{/* 试卷 */}
|
|
|
|
|
<Route path="/courses/:coursesId/exercises/:Id"
|
|
|
|
|
<Route path="/classrooms/:coursesId/exercises/:Id"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<ListPageIndex {...this.props} {...props} {...this.state} {...common}/>)
|
|
|
|
|
}
|
|
|
|
@ -785,95 +785,95 @@ class CoursesIndex extends Component{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{/*实训查重详情*/}
|
|
|
|
|
<Route path="/courses/:coursesId/shixun_homeworks/:homeworkid/review_detail/:userid"
|
|
|
|
|
<Route path="/classrooms/:coursesId/shixun_homeworks/:homeworkid/review_detail/:userid"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<ShixunWorkDetails {...this.props} {...props} {...this.state} {...common}/>)
|
|
|
|
|
}
|
|
|
|
|
></Route>
|
|
|
|
|
<Route path="/courses/:coursesId/shixun_homework/:homeworkid/review_detail/:userid"
|
|
|
|
|
<Route path="/classrooms/:coursesId/shixun_homework/:homeworkid/review_detail/:userid"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<ShixunWorkDetails {...this.props} {...props} {...this.state} {...common}/>)
|
|
|
|
|
}
|
|
|
|
|
></Route>
|
|
|
|
|
|
|
|
|
|
{/*实训查重列表*/}
|
|
|
|
|
<Route path="/courses/:coursesId/shixun_homeworks/:homeworkid/student_work"
|
|
|
|
|
<Route path="/classrooms/:coursesId/shixun_homeworks/:homeworkid/student_work"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<ShixunHomeworkPage {...this.props} {...props} {...this.state} {...common}/>)
|
|
|
|
|
}
|
|
|
|
|
></Route>
|
|
|
|
|
<Route path="/courses/:coursesId/shixun_homework/:homeworkid/student_work"
|
|
|
|
|
<Route path="/classrooms/:coursesId/shixun_homework/:homeworkid/student_work"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<ShixunHomeworkPage {...this.props} {...props} {...this.state} {...common}/>)
|
|
|
|
|
}
|
|
|
|
|
></Route>
|
|
|
|
|
|
|
|
|
|
{/*实训报告*/}
|
|
|
|
|
<Route path="/courses/:coursesId/shixun_homeworks/:homeworkid/shixun_work_report"
|
|
|
|
|
<Route path="/classrooms/:coursesId/shixun_homeworks/:homeworkid/shixun_work_report"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<ShixunWorkReport {...this.props} {...props} {...this.state} {...common}/>)
|
|
|
|
|
}
|
|
|
|
|
></Route>
|
|
|
|
|
<Route path="/courses/:coursesId/shixun_homework/:homeworkid/shixun_work_report"
|
|
|
|
|
<Route path="/classrooms/:coursesId/shixun_homework/:homeworkid/shixun_work_report"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<ShixunWorkReport {...this.props} {...props} {...this.state} {...common}/>)
|
|
|
|
|
}
|
|
|
|
|
></Route>
|
|
|
|
|
|
|
|
|
|
{/*教师列表*/}
|
|
|
|
|
<Route path="/courses/:coursesId/shixun_homeworks/:homeworkid/list"
|
|
|
|
|
<Route path="/classrooms/:coursesId/shixun_homeworks/:homeworkid/list"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<ShixunHomeworkPage {...this.props} {...props} {...this.state} {...common}/>)
|
|
|
|
|
}
|
|
|
|
|
></Route>
|
|
|
|
|
<Route path="/courses/:coursesId/shixun_homework/:homeworkid/list"
|
|
|
|
|
<Route path="/classrooms/:coursesId/shixun_homework/:homeworkid/list"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<ShixunHomeworkPage {...this.props} {...props} {...this.state} {...common}/>)
|
|
|
|
|
}
|
|
|
|
|
></Route>
|
|
|
|
|
{/*实训作业page*/}
|
|
|
|
|
<Route path="/courses/:coursesId/shixun_homeworks/:homeworkid/Page"
|
|
|
|
|
<Route path="/classrooms/:coursesId/shixun_homeworks/:homeworkid/Page"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<ShixunHomeworkPage {...this.props} {...props} {...this.state} {...common}/>)
|
|
|
|
|
}
|
|
|
|
|
></Route>
|
|
|
|
|
{/*实训作业设置*/}
|
|
|
|
|
<Route path="/courses/:coursesId/shixun_homeworks/:homeworkid/settings"
|
|
|
|
|
<Route path="/classrooms/:coursesId/shixun_homeworks/:homeworkid/settings"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<ShixunHomeworkPage {...this.props} {...props} {...this.state} {...common}/>)
|
|
|
|
|
}
|
|
|
|
|
></Route>
|
|
|
|
|
<Route path="/courses/:coursesId/shixun_homework/:homeworkid/settings"
|
|
|
|
|
<Route path="/classrooms/:coursesId/shixun_homework/:homeworkid/settings"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<ShixunHomeworkPage {...this.props} {...props} {...this.state} {...common}/>)
|
|
|
|
|
}
|
|
|
|
|
></Route>
|
|
|
|
|
{/*/!*实训作品列表教师*!/*/}
|
|
|
|
|
{/*提交总结*/}
|
|
|
|
|
<Route path="/courses/:coursesId/shixun_homeworks/:id/commitsummary/:homeworkid"
|
|
|
|
|
<Route path="/classrooms/:coursesId/shixun_homeworks/:id/commitsummary/:homeworkid"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<CommitSummary {...this.props} {...props} {...this.state} />)
|
|
|
|
|
}
|
|
|
|
|
></Route>
|
|
|
|
|
<Route path="/courses/:coursesId/shixun_homework/:id/commitsummary/:homeworkid"
|
|
|
|
|
<Route path="/classrooms/:coursesId/shixun_homework/:id/commitsummary/:homeworkid"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<CommitSummary {...this.props} {...props} {...this.state} />)
|
|
|
|
|
}
|
|
|
|
|
></Route>
|
|
|
|
|
{/*实训作品列表学生未公布*/}
|
|
|
|
|
{/*<Route path="/courses/:coursesId/shixun_homeworks/:homeworkid/noopenlist"*/}
|
|
|
|
|
{/*<Route path="/classrooms/:coursesId/shixun_homeworks/:homeworkid/noopenlist"*/}
|
|
|
|
|
{/* render={*/}
|
|
|
|
|
{/* (props) => (<Studentnotcompleted {...this.props} {...props} {...this.state} />)*/}
|
|
|
|
|
{/* }*/}
|
|
|
|
|
{/*></Route>*/}
|
|
|
|
|
{/*实训学生作品列表已公布*/}
|
|
|
|
|
{/* <Route path="/courses/:coursesId/shixun_homeworks/:homeworkid/list"*/}
|
|
|
|
|
{/* <Route path="/classrooms/:coursesId/shixun_homeworks/:homeworkid/list"*/}
|
|
|
|
|
{/* render={*/}
|
|
|
|
|
{/* (props) => (<ShixunHomeworkPage {...this.props} {...props} {...this.state} />)*/}
|
|
|
|
|
{/* }*/}
|
|
|
|
|
{/* ></Route>*/}
|
|
|
|
|
{/*/!*实训学生作品列表已公布*!/*/}
|
|
|
|
|
{/*<Route path="/courses/:coursesId/shixun_homework/:homeworkid/list"*/}
|
|
|
|
|
{/*<Route path="/classrooms/:coursesId/shixun_homework/:homeworkid/list"*/}
|
|
|
|
|
{/* render={*/}
|
|
|
|
|
{/* (props) => (<ShixunHomeworkPage {...this.props} {...props} {...this.state} />)*/}
|
|
|
|
|
{/* }*/}
|
|
|
|
@ -882,21 +882,21 @@ class CoursesIndex extends Component{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{/*实训作业问答主目录*/}
|
|
|
|
|
<Route path="/courses/:coursesId/shixun_homeworks/:homeworkid/questions"
|
|
|
|
|
<Route path="/classrooms/:coursesId/shixun_homeworks/:homeworkid/questions"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<ShixunHomeworkPage {...this.props} {...props} {...this.state} {...common}/>)
|
|
|
|
|
}
|
|
|
|
|
></Route>
|
|
|
|
|
|
|
|
|
|
{/*实训作业问答子目录*/}
|
|
|
|
|
<Route path="/courses/:coursesId/shixun_homework/:homeworkid/questions"
|
|
|
|
|
<Route path="/classrooms/:coursesId/shixun_homework/:homeworkid/questions"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<ShixunHomeworkPage {...this.props} {...props} {...this.state} {...common}/>)
|
|
|
|
|
}
|
|
|
|
|
></Route>
|
|
|
|
|
|
|
|
|
|
{/*新建课堂*/}
|
|
|
|
|
<Route path="/courses/new"
|
|
|
|
|
<Route path="/classrooms/new"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<WrappedCoursesNewApp {...this.props} {...props} {...this.state} {...common}/>)
|
|
|
|
|
}
|
|
|
|
@ -904,33 +904,33 @@ class CoursesIndex extends Component{
|
|
|
|
|
{/*新建精品课堂*/}
|
|
|
|
|
{/*coursesId 课堂id */}
|
|
|
|
|
{/*id 是否是私有或者公有*/}
|
|
|
|
|
<Route path="/courses/news/:subjectid/newgold/:id"
|
|
|
|
|
<Route path="/classrooms/news/:subjectid/newgold/:id"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<WrappedCoursesNewAppGoldclass {...this.props} {...props} {...this.state} {...common}/>)
|
|
|
|
|
}
|
|
|
|
|
></Route>
|
|
|
|
|
{/*修改精品课堂*/}
|
|
|
|
|
<Route path="/courses/:coursesId/newgolds/settings"
|
|
|
|
|
<Route path="/classrooms/:coursesId/newgolds/settings"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<WrappedCoursesNewAppGoldclass {...this.props} {...props} {...this.state} {...common}/>)
|
|
|
|
|
}
|
|
|
|
|
></Route>
|
|
|
|
|
{/*修改课堂*/}
|
|
|
|
|
<Route path="/courses/:coursesId/settings"
|
|
|
|
|
<Route path="/classrooms/:coursesId/settings"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<WrappedCoursesNewApp {...this.props} {...props} {...this.state} {...common}/>)
|
|
|
|
|
}
|
|
|
|
|
></Route>
|
|
|
|
|
|
|
|
|
|
{/* 实训作业子页面*/}
|
|
|
|
|
<Route path="/courses/:coursesId/shixun_homework/:category_id"
|
|
|
|
|
<Route path="/classrooms/:coursesId/shixun_homework/:category_id"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<ListPageIndex {...this.props} {...props} {...this.state} {...common}/>)
|
|
|
|
|
}
|
|
|
|
|
></Route>
|
|
|
|
|
|
|
|
|
|
{/* 实训作业页面*/}
|
|
|
|
|
<Route path="/courses/:coursesId/shixun_homeworks/:main_id"
|
|
|
|
|
<Route path="/classrooms/:coursesId/shixun_homeworks/:main_id"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<ListPageIndex {...this.props} {...props} {...this.state} {...common}/>)
|
|
|
|
|
}
|
|
|
|
@ -938,26 +938,26 @@ class CoursesIndex extends Component{
|
|
|
|
|
|
|
|
|
|
{/*课堂统计列表2019.10.29 */}
|
|
|
|
|
|
|
|
|
|
<Route path="/courses/:coursesId/statistics"
|
|
|
|
|
<Route path="/classrooms/:coursesId/statistics"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<ListPageIndex {...this.props} {...props} {...this.state} />)
|
|
|
|
|
}
|
|
|
|
|
></Route>
|
|
|
|
|
|
|
|
|
|
{/*/!*实训作业and课堂详情页*!/*/}
|
|
|
|
|
<Route path="/courses/:coursesId"
|
|
|
|
|
<Route path="/classrooms/:coursesId"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<ListPageIndex {...this.props} {...props} {...this.state} {...common}/>)
|
|
|
|
|
}
|
|
|
|
|
></Route>
|
|
|
|
|
|
|
|
|
|
{/*课堂首页*/}
|
|
|
|
|
<Route path="/courses"
|
|
|
|
|
<Route path="/classrooms"
|
|
|
|
|
render={
|
|
|
|
|
(props) => (<CoursesHome {...this.props} {...props} {...this.state} {...common}/>)
|
|
|
|
|
}
|
|
|
|
|
></Route>
|
|
|
|
|
{/*<Route exact path="/courses" component={CoursesHome} {...this.props} {...props} {...this.state} ></Route>*/}
|
|
|
|
|
{/*<Route exact path="/classrooms" component={CoursesHome} {...this.props} {...props} {...this.state} ></Route>*/}
|
|
|
|
|
|
|
|
|
|
</Switch>
|
|
|
|
|
)
|
|
|
|
|