From 8d6aee1f1dfc7020b75e388d654b9925388046eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com> Date: Tue, 10 Mar 2020 14:52:34 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=BE=E5=A0=82url=E6=8A=8Acourses=E6=94=B9?= =?UTF-8?q?=E6=88=90classrooms=20=2078=E5=A4=84=E5=9C=B0=E6=96=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../user_mailer/course_message_email.html.erb | 2 +- public/react/src/App.css | 4 +- public/react/src/App.js | 2 +- public/react/src/college/College.js | 2 +- .../Competitioncommon/CompetitionCommon.js | 12 +- .../react/src/modules/courses/BoardIndex.js | 200 ++++++------ public/react/src/modules/courses/Index.js | 144 ++++----- .../src/modules/courses/ListPageIndex.js | 48 +-- .../modules/courses/Resource/Fileslistitem.js | 4 +- .../src/modules/courses/boards/BoardsNew.js | 32 +- .../src/modules/courses/boards/TopicDetail.js | 2 +- .../src/modules/courses/boards/common.js | 132 ++++---- .../courses/busyWork/CommonWorkDetailIndex.js | 20 +- .../courses/busyWork/CommonWorkItem.js | 52 ++-- .../courses/busyWork/CommonWorkList.js | 4 +- .../busyWork/CommonWorkListTemplate.js | 18 +- .../courses/busyWork/CommonWorkPost.js | 10 +- .../courses/busyWork/CommonWorkSetting.js | 6 +- .../src/modules/courses/busyWork/Index.js | 284 +++++++++--------- .../modules/courses/busyWork/IndexGroup.js | 280 ++++++++--------- .../src/modules/courses/busyWork/NewWork.js | 4 +- .../busyWork/common/WorkDetailPageHeader.js | 16 +- .../courses/coursesDetail/CoursesBanner.js | 22 +- .../courses/coursesDetail/CoursesLeftNav.js | 8 +- .../courses/coursesHome/CoursesHome.js | 4 +- .../courses/coursesPublic/Addcourses.js | 6 +- .../courses/exercise/Ecerciseallbackagain.js | 4 +- .../src/modules/courses/exercise/Exercise.js | 4 +- .../courses/exercise/ExerciseListItem.js | 28 +- .../modules/courses/exercise/ExerciseNew.js | 18 +- .../courses/exercise/ExerciseNewCommon.js | 62 ++-- .../exercise/Studentshavecompletedthelist.js | 8 +- .../exercise/Testpapersettinghomepage.js | 18 +- .../graduation/tasks/GraduateTaskItem.js | 28 +- .../graduation/tasks/GraduationAcross.js | 28 +- .../graduation/tasks/GraduationTaskDetail.js | 34 +-- .../tasks/GraduationTasksSubmitedit.js | 10 +- .../tasks/GraduationTasksSubmitnew.js | 12 +- .../tasks/GraduationTasksappraise.js | 10 +- .../graduation/tasks/GraduationTasksedit.js | 14 +- .../graduation/tasks/GraduationTasksnew.js | 8 +- .../tasks/GraduationTaskssettinglist.js | 8 +- .../tasks/GraduationTaskssettingquestions.js | 6 +- .../modules/courses/graduation/tasks/index.js | 4 +- .../courses/graduation/topics/index.js | 6 +- .../courses/members/CourseGroupList.js | 6 +- .../modules/courses/members/studentsList.js | 14 +- .../src/modules/courses/new/CoursesNew.js | 6 +- .../src/modules/courses/new/Goldsubject.js | 2 +- .../src/modules/courses/ordering/Ordering.js | 6 +- public/react/src/modules/courses/poll/Poll.js | 32 +- .../modules/courses/poll/PollDetailIndex.js | 8 +- .../src/modules/courses/poll/PollInfo.js | 70 ++--- .../src/modules/courses/poll/PollListItem.js | 30 +- .../shixunHomework/Listofworksstudentone.js | 6 +- .../shixunHomework/ShixunStudentWork.js | 4 +- .../shixunHomework/ShixunWorkReport.js | 6 +- .../shixunHomework/ShixunhomeWorkItem.js | 24 +- .../Shixunworkdetails/ShixunWorkModal.js | 4 +- .../TraineetraininginformationModal.js | 4 +- .../shixunHomework/Workquestionandanswer.js | 6 +- .../modules/courses/statistics/Statistics.js | 1 + .../ecs/EcSetting/CourseSupports/index.js | 8 +- .../react/src/modules/ecs/EcSetting/index.js | 8 +- .../src/modules/ecs/curriculum/Curriculum.js | 12 +- .../ecs/curriculum/CurriculumSubpage.js | 4 +- .../react/src/modules/modals/Jointheclass.js | 2 +- public/react/src/modules/modals/SendTopics.js | 20 +- .../src/modules/paths/PathDetail/DetailTop.js | 4 +- .../modules/paths/PathDetail/OpenCourse.js | 6 +- public/react/src/modules/tpm/NewHeader.js | 16 +- public/react/src/modules/tpm/TPMIndexHOC.js | 4 +- .../modules/tpm/newshixuns/oldNewshixuns.js | 4 +- .../shixuns/shixusFunction/ShixunSearchBar.js | 284 +++++++++--------- .../modules/user/LoginRegisterComponent.js | 2 +- .../src/modules/user/usersInfo/InfosBanner.js | 4 +- .../src/modules/user/usersInfo/InfosCourse.js | 4 +- .../user/usersInfo/video/VideoProtocol.js | 8 +- 78 files changed, 1124 insertions(+), 1123 deletions(-) diff --git a/app/views/user_mailer/course_message_email.html.erb b/app/views/user_mailer/course_message_email.html.erb index b3e57b5a2..bdc3b66c3 100644 --- a/app/views/user_mailer/course_message_email.html.erb +++ b/app/views/user_mailer/course_message_email.html.erb @@ -38,7 +38,7 @@

您参与的课堂:<%= @course.name %>,有新的帖子发布了: - <%= @message.subject %> + <%= @message.subject %>

diff --git a/public/react/src/App.css b/public/react/src/App.css index 07d3d718d..e6d1a8fd3 100644 --- a/public/react/src/App.css +++ b/public/react/src/App.css @@ -86,7 +86,7 @@ html, body { /* antd扩展 */ -.formItemInline.ant-form-item { +.formItemInline.ant-form-item { display: flex; } .formItemInline .ant-form-item-control-wrapper { @@ -104,4 +104,4 @@ html, body { .newContainers { min-height: calc(100% - 60px) !important; } -} \ No newline at end of file +} diff --git a/public/react/src/App.js b/public/react/src/App.js index 1bb859b5e..7fc302e9f 100644 --- a/public/react/src/App.js +++ b/public/react/src/App.js @@ -693,7 +693,7 @@ class App extends Component { } > {/*课堂*/} - + {/* */} diff --git a/public/react/src/college/College.js b/public/react/src/college/College.js index 8515b89d7..15b0e82f8 100644 --- a/public/react/src/college/College.js +++ b/public/react/src/college/College.js @@ -29,7 +29,7 @@ class College extends Component { align: 'center', className: "edu-txt-center font-14 maxnamewidth247", render: (text, record) => ( - this.gotocourse(`/competitions/${this.props.match.params.identifier}/enroll`)} - onClick={ data.mode === 2 ?data.member_of_course==true?() => this.newgotocourse(`/courses/${data.course_id}`):"":() => this.newgotocourse(`/competitions/${this.props.match.params.identifier}/enroll`)} + onClick={ data.mode === 2 ?data.member_of_course==true?() => this.newgotocourse(`/classrooms/${data.course_id}`):"":() => this.newgotocourse(`/competitions/${this.props.match.params.identifier}/enroll`)} >{data && data.member_count}
:data.competition_status === "nearly_published" ?
import('./ListPageIndex'), - loading:Loading, -}) -// 讨论 -const BoardsNew= Loadable({ - loader: () => import('./boards/BoardsNew'), - loading: Loading, -}) -const TopicDetail= Loadable({ - loader: () => import('./boards/TopicDetail'), - loading: Loading, -}) - -// 讨论 -const Boards= Loadable({ - loader: () => import('./boards'), - loading: Loading, -}) - - -class CoursesIndex extends Component{ - constructor(props) { - super(props) - this.state={ - // coursedata:undefined - } - } - - componentDidMount(){ - - } - render() { - const common = { - - } - - return ( - - - {/*课堂讨论*/} - {/* /board/5464/messages/new */} - {/* () - } - > - - () - } - > */} - - - - - {/*课堂讨论*/} - () - } - > - () - } - > - () - } - > - () - } - > - () - } - > - - - ) - } -} - -export default CNotificationHOC() ( SnackbarHOC() ( (CoursesIndex) )); \ No newline at end of file +import React, { Component } from 'react'; +import { SnackbarHOC } from 'educoder'; +import {BrowserRouter as Router,Route,Switch} from 'react-router-dom'; +import Loadable from 'react-loadable'; +import Loading from '../../Loading'; +import axios from 'axios'; +// import { TPMIndexHOC } from '../tpm/TPMIndexHOC'; +import { CNotificationHOC } from './common/CNotificationHOC' +import "./css/Courses.css" +//引入对应跳转的组件 +const ListPageIndex = Loadable({ + loader: () => import('./ListPageIndex'), + loading:Loading, +}) +// 讨论 +const BoardsNew= Loadable({ + loader: () => import('./boards/BoardsNew'), + loading: Loading, +}) +const TopicDetail= Loadable({ + loader: () => import('./boards/TopicDetail'), + loading: Loading, +}) + +// 讨论 +const Boards= Loadable({ + loader: () => import('./boards'), + loading: Loading, +}) + + +class CoursesIndex extends Component{ + constructor(props) { + super(props) + this.state={ + // coursedata:undefined + } + } + + componentDidMount(){ + + } + render() { + const common = { + + } + + return ( + + + {/*课堂讨论*/} + {/* /board/5464/messages/new */} + {/* () + } + > + + () + } + > */} + + + + + {/*课堂讨论*/} + () + } + > + () + } + > + () + } + > + () + } + > + () + } + > + + + ) + } +} + +export default CNotificationHOC() ( SnackbarHOC() ( (CoursesIndex) )); diff --git a/public/react/src/modules/courses/Index.js b/public/react/src/modules/courses/Index.js index 8a21e76da..eef17f420 100644 --- a/public/react/src/modules/courses/Index.js +++ b/public/react/src/modules/courses/Index.js @@ -502,40 +502,40 @@ class CoursesIndex extends Component{ return ( {/*排序*/} - () } > {/*视频列表*/} - () } - > - + () } - > + > {/* 资源列表页 */} - () } > - () } > - () } > {/*课堂讨论*/} - () } @@ -543,32 +543,32 @@ class CoursesIndex extends Component{ {/* 毕业设计 */} {/* 毕设问答 */} - () } > {/* 毕设选题新建页 */} - () }> {/* 毕设选题编辑页*/} - () }> {/* 毕设选题详情页 */} - () } > {/* 毕设选题列表 */} - () }> @@ -576,21 +576,21 @@ class CoursesIndex extends Component{ {/*————————————————————————————————————————————————————————————————————————————————————*/} {/* 作品评阅 https://www.trustie.net/issues/19981 */} - () } > {/* 新建作品 */} - () } > {/* 修改作品 */} - () } @@ -598,20 +598,20 @@ class CoursesIndex extends Component{ {/* 设置毕设任务 https://www.trustie.net/issues/19981 */} - {/* () } > - () }> */} - () } @@ -619,7 +619,7 @@ class CoursesIndex extends Component{ {/* 修改毕设任务 https://www.trustie.net/issues/19981 */} - () } @@ -627,7 +627,7 @@ class CoursesIndex extends Component{ {/* 新建毕设任务 https://www.trustie.net/issues/19981 */} - () } @@ -635,104 +635,104 @@ class CoursesIndex extends Component{ {/* 毕设任务列表 https://www.trustie.net/issues/19981 */} - () } > {/*/!* 毕业设计主 https://www.trustie.net/issues/19981 *!/*/} - {/* ()*/} {/*}*/} {/*>*/} {/*/!* 资源子目录 https://www.trustie.net/issues/19917 *!/*/} - {/* ()*/} {/*}*/} {/*>*/} {/* 教师列表*/} - () } > {/* 学生列表*/} - () } > {/* 分班列表 */} - () } > - () } > {/* 普通作业 */} - () } > {/* 分组作业 */} - () } > {/* 普通作业 */} - () } > {/* 分组作业 */} - () } > {/* 问卷答题 */} - () } > {/* 问卷详情 */} - () } > {/* 问卷新建 */} - () } > {/*/!* 问卷编辑 *!/*/} - {/* ()*/} {/*}*/} {/*>*/} {/* 问卷 */} - () } @@ -740,20 +740,20 @@ class CoursesIndex extends Component{ {/* 试卷查看/评阅 */} - () } > {/*试卷新建 */} - () } > {/*试卷新建 */} - () } @@ -761,7 +761,7 @@ class CoursesIndex extends Component{ {/*试卷设置主页*/} - () } @@ -770,14 +770,14 @@ class CoursesIndex extends Component{ {/*学生完成列表*/} () } > {/* 试卷 */} - () } @@ -785,95 +785,95 @@ class CoursesIndex extends Component{ {/*实训查重详情*/} - () } > - () } > {/*实训查重列表*/} - () } > - () } > {/*实训报告*/} - () } > - () } > {/*教师列表*/} - () } > - () } > {/*实训作业page*/} - () } > {/*实训作业设置*/} - () } > - () } > {/*/!*实训作品列表教师*!/*/} {/*提交总结*/} - () } > - () } > {/*实训作品列表学生未公布*/} - {/* ()*/} {/* }*/} {/*>*/} {/*实训学生作品列表已公布*/} - {/* ()*/} {/* }*/} {/* >*/} {/*/!*实训学生作品列表已公布*!/*/} - {/* ()*/} {/* }*/} @@ -882,21 +882,21 @@ class CoursesIndex extends Component{ {/*实训作业问答主目录*/} - () } > {/*实训作业问答子目录*/} - () } > {/*新建课堂*/} - () } @@ -904,33 +904,33 @@ class CoursesIndex extends Component{ {/*新建精品课堂*/} {/*coursesId 课堂id */} {/*id 是否是私有或者公有*/} - () } > {/*修改精品课堂*/} - () } > {/*修改课堂*/} - () } > {/* 实训作业子页面*/} - () } > {/* 实训作业页面*/} - () } @@ -938,26 +938,26 @@ class CoursesIndex extends Component{ {/*课堂统计列表2019.10.29 */} - () } > {/*/!*实训作业and课堂详情页*!/*/} - () } > {/*课堂首页*/} - () } > - {/**/} + {/**/} ) diff --git a/public/react/src/modules/courses/ListPageIndex.js b/public/react/src/modules/courses/ListPageIndex.js index 2a1995ab3..d95ed6739 100644 --- a/public/react/src/modules/courses/ListPageIndex.js +++ b/public/react/src/modules/courses/ListPageIndex.js @@ -223,78 +223,78 @@ class ListPageIndex extends Component{ {/* --------------------------------------------------------------------- */} {/* 作业设置 */} - {/* http://localhost:3007/courses/1309/homework/9300/setting */} + {/* http://localhost:3007/classrooms/1309/homework/9300/setting */} {/* 普通作业 */} - () } > {/* 作品列表 */} - () } > - () } > {/*视频列表*/} - () } > - () } > - (this.updatabanners()} {...this.props} {...props} {...this.state} />) } > {/* 学生列表*/} - () } > - () } > - () } > - () } > - () } > - {/* () } > */} {/* 实训作业子页面*/} - () } @@ -302,7 +302,7 @@ class ListPageIndex extends Component{ {/*课堂统计列表2019.10.29 */} - () } @@ -311,49 +311,49 @@ class ListPageIndex extends Component{ {/*公告栏列表*/} - () } > {/*在线学习*/} (this.comyslElearning(i)} />) } > {/* 实训作业页面*/} - () } > - () } > - () } > - () }> - () } > {/* 默认 */} - () } @@ -375,4 +375,4 @@ class ListPageIndex extends Component{ ) } } -export default ListPageIndex; \ No newline at end of file +export default ListPageIndex; diff --git a/public/react/src/modules/courses/Resource/Fileslistitem.js b/public/react/src/modules/courses/Resource/Fileslistitem.js index cb2198486..35c558d8e 100644 --- a/public/react/src/modules/courses/Resource/Fileslistitem.js +++ b/public/react/src/modules/courses/Resource/Fileslistitem.js @@ -242,13 +242,13 @@ class Fileslistitem extends Component { this.props.isAdmin ? (bools === true ? this.showfiles(discussMessage)} title={discussMessage.title} className="fl mt3 font-16 font-bd color-dark maxwidth580">{discussMessage.title} : this.showfiless(discussMessage.link,discussMessage.id)} title={discussMessage.title} className="fl mt3 font-16 font-bd color-dark maxwidth580">{discussMessage.title} diff --git a/public/react/src/modules/courses/boards/BoardsNew.js b/public/react/src/modules/courses/boards/BoardsNew.js index 018d16853..41ac40cfd 100644 --- a/public/react/src/modules/courses/boards/BoardsNew.js +++ b/public/react/src/modules/courses/boards/BoardsNew.js @@ -65,13 +65,13 @@ class BoardsNew extends Component{ }); } componentDidMount = () => { - + const topicId = this.props.match.params.topicId const isEdit = !!topicId this.isEdit = isEdit const boardId = this.props.match.params.boardId - + this.fetchBoards() if (isEdit) { @@ -99,7 +99,7 @@ class BoardsNew extends Component{ status: 'done' } }) - + this.setState({ fileList: _fileList, board_name: data.board_name, title_num: parseInt(data.subject.length) ,isemail_notifys:response.data.data.email_notify}) } } @@ -160,7 +160,7 @@ class BoardsNew extends Component{ return item.response.id }) } - + axios.post(url, { ...values, email_notify:this.state.isemail_notify, @@ -224,7 +224,7 @@ class BoardsNew extends Component{ const { status } = response.data; if (status == 0) { console.log('--- success') - + this.setState((state) => { const index = state.fileList.indexOf(file); const newFileList = state.fileList.slice(); @@ -328,13 +328,13 @@ class BoardsNew extends Component{

{this.isEdit ? "编辑" : "新建"}帖子 - 返回 @@ -346,7 +346,7 @@ class BoardsNew extends Component{ 发送邮件提醒 :"":""} - { isAdmin && + { isAdmin && {getFieldDecorator('sticky', { valuePropName: 'checked', @@ -375,7 +375,7 @@ class BoardsNew extends Component{ label="标题" className="topicTitle " > - + {getFieldDecorator('subject', { rules: [{ required: true, message: '请输入标题', @@ -400,7 +400,7 @@ class BoardsNew extends Component{

{menu} { - isAdmin && !isCourseEnd && + isAdmin && !isCourseEnd &&
this.refs['addDirModal'].open()}> @@ -464,7 +464,7 @@ class BoardsNew extends Component{ max: 10000, message: '最大限制为10000个字符', }], })( - )} @@ -476,13 +476,13 @@ class BoardsNew extends Component{ (单个文件150M以内)
- + @@ -494,4 +494,4 @@ class BoardsNew extends Component{ } const WrappedBoardsNew = Form.create({ name: 'boardsNew' })(BoardsNew); -export default RouteHOC()(WrappedBoardsNew); \ No newline at end of file +export default RouteHOC()(WrappedBoardsNew); diff --git a/public/react/src/modules/courses/boards/TopicDetail.js b/public/react/src/modules/courses/boards/TopicDetail.js index 483dafe18..2de914ac2 100644 --- a/public/react/src/modules/courses/boards/TopicDetail.js +++ b/public/react/src/modules/courses/boards/TopicDetail.js @@ -555,7 +555,7 @@ class TopicDetail extends Component { `} diff --git a/public/react/src/modules/courses/boards/common.js b/public/react/src/modules/courses/boards/common.js index 75a755bdf..b8be4ebdc 100644 --- a/public/react/src/modules/courses/boards/common.js +++ b/public/react/src/modules/courses/boards/common.js @@ -1,66 +1,66 @@ -import React, { Component } from 'react'; - -export function RouteHOC(options = {}) { - return function wrap(WrappedComponent) { - return class Wrapper extends Component { - constructor(props) { - super(props); - - this.state = { - - } - } - toDetailPage = (_courseId, boardId, topicId) => { - if (typeof _courseId == "object") { - const topicId = _courseId.topicId - const boardId = _courseId.boardId - const courseId = _courseId.coursesId - this.props.history.push(`/courses/${courseId}/boards/${boardId}/messages/${topicId}`) - } else { - this.props.history.push(`/courses/${_courseId}/boards/${boardId}/messages/${topicId}`) - } - - } - toEditPage = (_courseId, boardId, topicId) => { - if (typeof _courseId == "object") { - const topicId = _courseId.topicId - const boardId = _courseId.boardId - const courseId = _courseId.coursesId - this.props.history.push(`/courses/${courseId}/boards/${boardId}/messages/${topicId}/edit`) - } else { - this.props.history.push(`/courses/${_courseId}/boards/${boardId}/messages/${topicId}/edit`) - } - } - toNewPage = (courseId, boardId) => { - this.props.history.push(`/courses/${courseId}/boards/${boardId}/messages/new`) - } - toListPage = (_courseId, boardId) => { - if (typeof _courseId == "object") { - const boardId = _courseId.boardId - const courseId = _courseId.coursesId - this.props.history.push(`/courses/${courseId}/boards/${boardId}`) - } else { - this.props.history.push(`/courses/${_courseId}/boards${boardId ? '/' + boardId : ''}`) - } - } - - render() { - const { snackbarOpen} = this.state; - - - return ( - - - - - - ) - } - } - } -} \ No newline at end of file +import React, { Component } from 'react'; + +export function RouteHOC(options = {}) { + return function wrap(WrappedComponent) { + return class Wrapper extends Component { + constructor(props) { + super(props); + + this.state = { + + } + } + toDetailPage = (_courseId, boardId, topicId) => { + if (typeof _courseId == "object") { + const topicId = _courseId.topicId + const boardId = _courseId.boardId + const courseId = _courseId.coursesId + this.props.history.push(`/classrooms/${courseId}/boards/${boardId}/messages/${topicId}`) + } else { + this.props.history.push(`/classrooms/${_courseId}/boards/${boardId}/messages/${topicId}`) + } + + } + toEditPage = (_courseId, boardId, topicId) => { + if (typeof _courseId == "object") { + const topicId = _courseId.topicId + const boardId = _courseId.boardId + const courseId = _courseId.coursesId + this.props.history.push(`/classrooms/${courseId}/boards/${boardId}/messages/${topicId}/edit`) + } else { + this.props.history.push(`/classrooms/${_courseId}/boards/${boardId}/messages/${topicId}/edit`) + } + } + toNewPage = (courseId, boardId) => { + this.props.history.push(`/classrooms/${courseId}/boards/${boardId}/messages/new`) + } + toListPage = (_courseId, boardId) => { + if (typeof _courseId == "object") { + const boardId = _courseId.boardId + const courseId = _courseId.coursesId + this.props.history.push(`/classrooms/${courseId}/boards/${boardId}`) + } else { + this.props.history.push(`/classrooms/${_courseId}/boards${boardId ? '/' + boardId : ''}`) + } + } + + render() { + const { snackbarOpen} = this.state; + + + return ( + + + + + + ) + } + } + } +} diff --git a/public/react/src/modules/courses/busyWork/CommonWorkDetailIndex.js b/public/react/src/modules/courses/busyWork/CommonWorkDetailIndex.js index ab3718b1d..255a74295 100644 --- a/public/react/src/modules/courses/busyWork/CommonWorkDetailIndex.js +++ b/public/react/src/modules/courses/busyWork/CommonWorkDetailIndex.js @@ -419,53 +419,53 @@ class CommonWorkDetailIndex extends Component{ {/* --------------------------------------------------------------------- */} {/* 作业设置 */} - {/* http://localhost:3007/courses/1309/homework/9300/setting */} - () } > {/* 作品列表 */} - () } > {/* 作业问答 */} - () } > - () } > - () } > {/* 作品列表 */} - () } > {/* 作业问答 */} - () } > - () } @@ -479,4 +479,4 @@ class CommonWorkDetailIndex extends Component{ } } -export default ( CommonWorkDetailIndex) ; \ No newline at end of file +export default ( CommonWorkDetailIndex) ; diff --git a/public/react/src/modules/courses/busyWork/CommonWorkItem.js b/public/react/src/modules/courses/busyWork/CommonWorkItem.js index 244a03e17..b2f598486 100644 --- a/public/react/src/modules/courses/busyWork/CommonWorkItem.js +++ b/public/react/src/modules/courses/busyWork/CommonWorkItem.js @@ -55,9 +55,9 @@ class CommonWorkItem extends Component{ // "url": "/attachments/:id/download", // "delete": true // } - // ] + // ] // response.data.revise_reason = 'qweqweqweqe'; - + // revise_reason revise_attachments 传给modal // attach to fileList const fileList = response.data.revise_attachments.map(item => { @@ -174,12 +174,12 @@ class CommonWorkItem extends Component{ >{item.name}} {/* 只有非课堂成员且作业是私有的情况下才会为true */} { - item.private_icon===true ? + item.private_icon===true ? ( ) : "" } - + @@ -204,7 +204,7 @@ class CommonWorkItem extends Component{ {item.commit_count===undefined?"":{item.commit_count} 已交} {item.uncommit_count===undefined?"":{item.uncommit_count} 未交} { - item.status_time!="" && + item.status_time!="" && {item.status_time} @@ -219,12 +219,12 @@ class CommonWorkItem extends Component{ {} : () => this.onItemClick(item)} >查看详情 - { this.props.toEditPage(this.props.match.params, item.homework_id) }}>编辑 - { this.props.toWorkSettingPage(this.props.match.params, item.homework_id) }}>设置 + { this.props.toEditPage(this.props.match.params, item.homework_id) }}>编辑 + { this.props.toWorkSettingPage(this.props.match.params, item.homework_id) }}>设置
} { - // + // isStudent &&
  • 查看详情 { // - item.work_status && item.work_status.indexOf('关联项目') != -1 && + item.work_status && item.work_status.indexOf('关联项目') != -1 && this.props.toCreateProject(item)}>创建项目 this.props.openConnectionProject(item)}>关联项目 } - + { // - item.work_status && item.work_status.indexOf('取消关联') != -1 && + item.work_status && item.work_status.indexOf('取消关联') != -1 && this.props.cancelConnectionProject(item)}>取消关联 } { // - item.work_status && item.work_status.indexOf('提交作品') != -1 && - this.props.toWorkPostPage(this.props.match.params, item.homework_id)}>提交作品 + item.work_status && item.work_status.indexOf('提交作品') != -1 && + this.props.toWorkPostPage(this.props.match.params, item.homework_id)}>提交作品 } - - - { - // + + + { + // item.work_status && item.work_status.indexOf('补交作品') != -1 && this.props.toWorkPostPage(this.props.match.params, item.homework_id)}>补交作品 } { // - item.work_status && item.work_status.indexOf('修改作品') != -1 && - this.props.toWorkPostPage(this.props.match.params, item.homework_id, true, item.work_id)}>修改作品 + item.work_status && item.work_status.indexOf('修改作品') != -1 && + this.props.toWorkPostPage(this.props.match.params, item.homework_id, true, item.work_id)}>修改作品 } { // - item.work_status && item.work_status.indexOf('补交附件') != -1 && + item.work_status && item.work_status.indexOf('补交附件') != -1 && - this.addAccessory(item)}>补交附件 + this.addAccessory(item)}>补交附件 } - { - // + { + // item.work_status && item.work_status.indexOf('查看作品') != -1 && this.props.toWorkDetailPage(this.props.match.params, item.homework_id, item.work_id)}>查看作品 } @@ -287,7 +287,7 @@ class CommonWorkItem extends Component{

  • - + ) }) @@ -296,4 +296,4 @@ class CommonWorkItem extends Component{ ) } } -export default CommonWorkItem; \ No newline at end of file +export default CommonWorkItem; diff --git a/public/react/src/modules/courses/busyWork/CommonWorkList.js b/public/react/src/modules/courses/busyWork/CommonWorkList.js index 78e2a4e70..42ca215ba 100644 --- a/public/react/src/modules/courses/busyWork/CommonWorkList.js +++ b/public/react/src/modules/courses/busyWork/CommonWorkList.js @@ -357,7 +357,7 @@ function buildColumns(that, student_works, studentData) { >调分 } {/* toWorkDetailPage */} - {/* /courses/"+courseId+"/common_homeworks/"+workId+ '/' + record.id +"/appraise */} + {/* /classrooms/"+courseId+"/common_homeworks/"+workId+ '/' + record.id +"/appraise */} that.props.toWorkDetailPage2(e, courseId, workId, record.id)} onClick={() => that.props.toWorkDetailPage(courseId, workId, record.id)}>{isAdmin ? '评阅' : '查看'} @@ -378,7 +378,7 @@ const orderMap = { student_id: 'asc', } const PAGE_SIZE = 20 -// 类似页面 http://localhost:3007/courses/1309/graduation/graduation_tasks/48/76/setting +// 类似页面 http://localhost:3007/classrooms/1309/graduation/graduation_tasks/48/76/setting class CommonWorkList extends Component{ constructor(props){ diff --git a/public/react/src/modules/courses/busyWork/CommonWorkListTemplate.js b/public/react/src/modules/courses/busyWork/CommonWorkListTemplate.js index 863093b5b..3699673ba 100644 --- a/public/react/src/modules/courses/busyWork/CommonWorkListTemplate.js +++ b/public/react/src/modules/courses/busyWork/CommonWorkListTemplate.js @@ -44,7 +44,7 @@ function handleDateString (dateString) { } return dateString } -// 类似页面 http://localhost:3007/courses/1309/graduation/graduation_tasks/48/76/setting +// 类似页面 http://localhost:3007/classrooms/1309/graduation/graduation_tasks/48/76/setting class CommonWorkSetting extends Component{ constructor(props){ @@ -82,16 +82,16 @@ class CommonWorkSetting extends Component{

    - {course_name} + {course_name} > - 毕设任务 + 毕设任务 > 任务详情

    - {homework_name} + {homework_name}

    作品列表 - 作业描述 - 参考答案 + to={"/classrooms/"+courseId+"/graduation/graduation_tasks/"+category_id+"/"+task_Id+"/list"}>作品列表 + 作业描述 + 参考答案 设置 + to={"/classrooms/"+courseId+"/graduation/graduation_tasks/"+category_id+"/"+task_Id+"/setting"}>设置 { this.end()} }>立即截止 { this.publish()} }>立即发布 - 编辑作业 + 编辑作业
    diff --git a/public/react/src/modules/courses/busyWork/CommonWorkPost.js b/public/react/src/modules/courses/busyWork/CommonWorkPost.js index f92aa9a91..dd44d5263 100644 --- a/public/react/src/modules/courses/busyWork/CommonWorkPost.js +++ b/public/react/src/modules/courses/busyWork/CommonWorkPost.js @@ -130,7 +130,7 @@ class CommonWorkPost extends Component{ setedit=(workId)=>{ let coursesId=this.props.match.params.coursesId; - window.location.href="courses/"+coursesId+"/graduation_tasks/"+workId+"/appraise"; + window.location.href="classrooms/"+coursesId+"/graduation_tasks/"+workId+"/appraise"; } @@ -236,7 +236,7 @@ class CommonWorkPost extends Component{ // this.props.showNotification('保存成功') }else{ } - this.props.history.push(`/courses/${coursesId}/${moduleName}/${workId}/${studentWorkId}/appraise`) + this.props.history.push(`/classrooms/${coursesId}/${moduleName}/${workId}/${studentWorkId}/appraise`) } }).catch((error) => { @@ -251,7 +251,7 @@ class CommonWorkPost extends Component{ ).then((response) => { if(response.status===200) { if(response.data.status===0){ - this.props.history.push(`/courses/${coursesId}/${moduleName}/${workId}/${response.data.work_id}/appraise`) + this.props.history.push(`/classrooms/${coursesId}/${moduleName}/${workId}/${response.data.work_id}/appraise`) // this.props.showNotification('保存成功') // this.setState({ // Modalstype:true, @@ -644,10 +644,10 @@ render(){

    {course_name} > - {moduleCHName} + {moduleCHName} > {/**/} - {/*{workslist&&workslist.task_name}*/} + {/*{workslist&&workslist.task_name}*/} {/*>*/} {/**/} diff --git a/public/react/src/modules/courses/busyWork/CommonWorkSetting.js b/public/react/src/modules/courses/busyWork/CommonWorkSetting.js index 2e20833ff..23300ef0d 100644 --- a/public/react/src/modules/courses/busyWork/CommonWorkSetting.js +++ b/public/react/src/modules/courses/busyWork/CommonWorkSetting.js @@ -475,7 +475,7 @@ class CommonWorkSetting extends Component{ homepublish=()=>{ // let task_Id=this.props.match.params.task_Id; // const cid = this.props.match.params.coursesId - // let url = `/courses/${cid}/graduation_tasks/publish_task.json`; + // let url = `/classrooms/${cid}/graduation_tasks/publish_task.json`; // axios.post(url,{ // task_ids:[task_Id], @@ -843,7 +843,7 @@ class CommonWorkSetting extends Component{ // const coursesId = this.props.match.params.coursesId; // const task_Id = this.props.match.params.task_Id; - // let url = `/courses/${coursesId}/graduation_tasks/end_task.json`; + // let url = `/classrooms/${coursesId}/graduation_tasks/end_task.json`; // axios.post(url,{ // task_ids:[task_Id], // all_check:0 @@ -1531,7 +1531,7 @@ class CommonWorkSetting extends Component{ - {/*取消*/} + {/*取消*/} 取消 :""} diff --git a/public/react/src/modules/courses/busyWork/Index.js b/public/react/src/modules/courses/busyWork/Index.js index e109c36f5..b204a7b47 100644 --- a/public/react/src/modules/courses/busyWork/Index.js +++ b/public/react/src/modules/courses/busyWork/Index.js @@ -1,142 +1,142 @@ -import React, { Component } from 'react'; -import { SnackbarHOC } from 'educoder'; -import {BrowserRouter as Router,Route,Switch} from 'react-router-dom'; -import Loadable from 'react-loadable'; -import Loading from '../../../Loading'; -import { CNotificationHOC } from '../common/CNotificationHOC' -import { RouteHOC } from './common' -import "../css/busyWork.css" -//引入对应跳转的组件 -const ListPageIndex = Loadable({ - loader: () => import('../ListPageIndex'), - loading:Loading, -}) -//新建分组/普通作业 -const NewWork = Loadable({ - loader: () => import('./NewWork'), - loading:Loading, -}) -const CommonWorkDetailIndex = Loadable({ - loader: () => import('./CommonWorkDetailIndex'), - loading:Loading, -}) -const CommonWorkSetting = Loadable({ - loader: () => import('./CommonWorkSetting'), - loading:Loading, -}) -const CommonWorkList = Loadable({ - loader: () => import('./CommonWorkList'), - loading:Loading, -}) -const CommonWorkQuestion = Loadable({ - loader: () => import('./CommonWorkQuestion'), - loading:Loading, -}) -const CommonWorkAnswer = Loadable({ - loader: () => import('./CommonWorkAnswer'), - loading:Loading, -}) -const CommonWorkAppraise = Loadable({ - loader: () => import('./CommonWorkAppraise'), - loading:Loading, -}) - -const CommonWorkPost = Loadable({ - loader: () => import('./CommonWorkPost'), - loading:Loading, -}) - -const CommonWork = Loadable({ - loader: () => import('./commonWork'), - loading:Loading, -}) -class CoursesWorkIndex extends Component{ - constructor(props) { - super(props) - } - render() { - return ( -

    - - - {/* --------------------------------------------------------------------- */} - - {/* 作业设置 */} - {/* http://localhost:3007/courses/1309/homework/9300/setting */} - () - } - > - - {/* 作品列表 */} - () - } - > - {/* 作业问答 */} - () - } - > - () - } - > - - {/* 评阅 */} - () - } - > - - {/* 提交作品 */} - () - } - > - () - } - > - - - {/* 新建 */} - {/* http://localhost:3007/courses/1309/common_homeworks/9299/edit/1 */} - () - } - > - () - } - > - - - - {/* 作业列表 */} - () - } - > - - {/* --------------------------------------------------------------------- */} - - - - -
    - ) - } -} - -export default RouteHOC() (CNotificationHOC() (SnackbarHOC() ( CoursesWorkIndex) )); \ No newline at end of file +import React, { Component } from 'react'; +import { SnackbarHOC } from 'educoder'; +import {BrowserRouter as Router,Route,Switch} from 'react-router-dom'; +import Loadable from 'react-loadable'; +import Loading from '../../../Loading'; +import { CNotificationHOC } from '../common/CNotificationHOC' +import { RouteHOC } from './common' +import "../css/busyWork.css" +//引入对应跳转的组件 +const ListPageIndex = Loadable({ + loader: () => import('../ListPageIndex'), + loading:Loading, +}) +//新建分组/普通作业 +const NewWork = Loadable({ + loader: () => import('./NewWork'), + loading:Loading, +}) +const CommonWorkDetailIndex = Loadable({ + loader: () => import('./CommonWorkDetailIndex'), + loading:Loading, +}) +const CommonWorkSetting = Loadable({ + loader: () => import('./CommonWorkSetting'), + loading:Loading, +}) +const CommonWorkList = Loadable({ + loader: () => import('./CommonWorkList'), + loading:Loading, +}) +const CommonWorkQuestion = Loadable({ + loader: () => import('./CommonWorkQuestion'), + loading:Loading, +}) +const CommonWorkAnswer = Loadable({ + loader: () => import('./CommonWorkAnswer'), + loading:Loading, +}) +const CommonWorkAppraise = Loadable({ + loader: () => import('./CommonWorkAppraise'), + loading:Loading, +}) + +const CommonWorkPost = Loadable({ + loader: () => import('./CommonWorkPost'), + loading:Loading, +}) + +const CommonWork = Loadable({ + loader: () => import('./commonWork'), + loading:Loading, +}) +class CoursesWorkIndex extends Component{ + constructor(props) { + super(props) + } + render() { + return ( +
    + + + {/* --------------------------------------------------------------------- */} + + {/* 作业设置 */} + {/* http://localhost:3007/classrooms/1309/homework/9300/setting */} + () + } + > + + {/* 作品列表 */} + () + } + > + {/* 作业问答 */} + () + } + > + () + } + > + + {/* 评阅 */} + () + } + > + + {/* 提交作品 */} + () + } + > + () + } + > + + + {/* 新建 */} + {/* http://localhost:3007/classrooms/1309/common_homeworks/9299/edit/1 */} + () + } + > + () + } + > + + + + {/* 作业列表 */} + () + } + > + + {/* --------------------------------------------------------------------- */} + + + + +
    + ) + } +} + +export default RouteHOC() (CNotificationHOC() (SnackbarHOC() ( CoursesWorkIndex) )); diff --git a/public/react/src/modules/courses/busyWork/IndexGroup.js b/public/react/src/modules/courses/busyWork/IndexGroup.js index cfe38766a..932030253 100644 --- a/public/react/src/modules/courses/busyWork/IndexGroup.js +++ b/public/react/src/modules/courses/busyWork/IndexGroup.js @@ -1,140 +1,140 @@ -import React, { Component } from 'react'; -import { SnackbarHOC } from 'educoder'; -import {BrowserRouter as Router,Route,Switch} from 'react-router-dom'; -import Loadable from 'react-loadable'; -import Loading from '../../../Loading'; -import { CNotificationHOC } from '../common/CNotificationHOC' -import { RouteHOC } from './common' -import "../css/busyWork.css" -//引入对应跳转的组件 -const ListPageIndex = Loadable({ - loader: () => import('../ListPageIndex'), - loading:Loading, -}) -//新建分组/普通作业 -const NewWork = Loadable({ - loader: () => import('./NewWork'), - loading:Loading, -}) -const CommonWorkPost = Loadable({ - loader: () => import('./CommonWorkPost'), - loading:Loading, -}) -const CommonWorkSetting = Loadable({ - loader: () => import('./CommonWorkSetting'), - loading:Loading, -}) -const CommonWorkList = Loadable({ - loader: () => import('./CommonWorkList'), - loading:Loading, -}) -const CommonWorkQuestion = Loadable({ - loader: () => import('./CommonWorkQuestion'), - loading:Loading, -}) -const CommonWorkAnswer = Loadable({ - loader: () => import('./CommonWorkAnswer'), - loading:Loading, -}) -const CommonWorkAppraise = Loadable({ - loader: () => import('./CommonWorkAppraise'), - loading:Loading, -}) - - -const CommonWork = Loadable({ - loader: () => import('./commonWork'), - loading:Loading, -}) - -const CommonWorkDetailIndex = Loadable({ - loader: () => import('./CommonWorkDetailIndex'), - loading:Loading, -}) -class CoursesWorkIndex extends Component{ - constructor(props) { - super(props) - } - render() { - return ( -
    - - - - {/* --------------------------------------------------------------------- */} - - {/* --------------------------------------------------------------------- */} - - {/* 作业设置 */} - () - } - > - - {/* 作品列表 */} - () - } - > - - {/* 作业问答 */} - () - } - > - {/* 参考答案 */} - () - } - > - {/* 评阅 */} - () - } - > - - - () - } - > - () - } - > - - {/* 新建 */} - {/* http://localhost:3007/courses/1309/group_homeworks/9299/edit/1 */} - () - } - > - () - } - > - - {/* 作业列表 */} - () - } - > - - - -
    - ) - } -} - -export default RouteHOC() (CNotificationHOC() (SnackbarHOC() ( CoursesWorkIndex) )); \ No newline at end of file +import React, { Component } from 'react'; +import { SnackbarHOC } from 'educoder'; +import {BrowserRouter as Router,Route,Switch} from 'react-router-dom'; +import Loadable from 'react-loadable'; +import Loading from '../../../Loading'; +import { CNotificationHOC } from '../common/CNotificationHOC' +import { RouteHOC } from './common' +import "../css/busyWork.css" +//引入对应跳转的组件 +const ListPageIndex = Loadable({ + loader: () => import('../ListPageIndex'), + loading:Loading, +}) +//新建分组/普通作业 +const NewWork = Loadable({ + loader: () => import('./NewWork'), + loading:Loading, +}) +const CommonWorkPost = Loadable({ + loader: () => import('./CommonWorkPost'), + loading:Loading, +}) +const CommonWorkSetting = Loadable({ + loader: () => import('./CommonWorkSetting'), + loading:Loading, +}) +const CommonWorkList = Loadable({ + loader: () => import('./CommonWorkList'), + loading:Loading, +}) +const CommonWorkQuestion = Loadable({ + loader: () => import('./CommonWorkQuestion'), + loading:Loading, +}) +const CommonWorkAnswer = Loadable({ + loader: () => import('./CommonWorkAnswer'), + loading:Loading, +}) +const CommonWorkAppraise = Loadable({ + loader: () => import('./CommonWorkAppraise'), + loading:Loading, +}) + + +const CommonWork = Loadable({ + loader: () => import('./commonWork'), + loading:Loading, +}) + +const CommonWorkDetailIndex = Loadable({ + loader: () => import('./CommonWorkDetailIndex'), + loading:Loading, +}) +class CoursesWorkIndex extends Component{ + constructor(props) { + super(props) + } + render() { + return ( +
    + + + + {/* --------------------------------------------------------------------- */} + + {/* --------------------------------------------------------------------- */} + + {/* 作业设置 */} + () + } + > + + {/* 作品列表 */} + () + } + > + + {/* 作业问答 */} + () + } + > + {/* 参考答案 */} + () + } + > + {/* 评阅 */} + () + } + > + + + () + } + > + () + } + > + + {/* 新建 */} + {/* http://localhost:3007/classrooms/1309/group_homeworks/9299/edit/1 */} + () + } + > + () + } + > + + {/* 作业列表 */} + () + } + > + + + +
    + ) + } +} + +export default RouteHOC() (CNotificationHOC() (SnackbarHOC() ( CoursesWorkIndex) )); diff --git a/public/react/src/modules/courses/busyWork/NewWork.js b/public/react/src/modules/courses/busyWork/NewWork.js index 37e71d168..81ca690b6 100644 --- a/public/react/src/modules/courses/busyWork/NewWork.js +++ b/public/react/src/modules/courses/busyWork/NewWork.js @@ -167,7 +167,7 @@ class NewWork extends Component{
    @@ -204,4 +204,4 @@ class NewWork extends Component{ } } -export default NewWork; \ No newline at end of file +export default NewWork; diff --git a/public/react/src/modules/courses/busyWork/common/WorkDetailPageHeader.js b/public/react/src/modules/courses/busyWork/common/WorkDetailPageHeader.js index b584216fa..995c09a0e 100644 --- a/public/react/src/modules/courses/busyWork/common/WorkDetailPageHeader.js +++ b/public/react/src/modules/courses/busyWork/common/WorkDetailPageHeader.js @@ -91,18 +91,18 @@ class WorkDetailPageHeader extends Component{ `}
    {homework_name} - {/* {homework_name} */} + {/* {homework_name} */} 作品列表 + to={`/classrooms/${courseId}/${moduleEngName}/${workId}/list`}>作品列表 作业描述 + to={`/classrooms/${courseId}/${moduleEngName}/${workId}/question`}>作业描述 {view_answer == true && 参考答案} + to={`/classrooms/${courseId}/${moduleEngName}/${workId}/answer`}>参考答案} {this.props.isAdmin()?"设置":"得分规则"} + to={`/classrooms/${courseId}/${moduleEngName}/${workId}/setting`}>{this.props.isAdmin()?"设置":"得分规则"} { this.props.tabRightComponents } diff --git a/public/react/src/modules/courses/coursesDetail/CoursesBanner.js b/public/react/src/modules/courses/coursesDetail/CoursesBanner.js index 8afcdc023..8c3520054 100644 --- a/public/react/src/modules/courses/coursesDetail/CoursesBanner.js +++ b/public/react/src/modules/courses/coursesDetail/CoursesBanner.js @@ -57,7 +57,7 @@ class CoursesBanner extends Component { componentDidMount() { this.onloadupdatabanner() on('updatabanner', this.updatabanner) - if(this.props.match.path==="/courses/:coursesId"){ + if(this.props.match.path==="/classrooms/:coursesId"){ if(this.props.user!=undefined){ this.props.history.push(this.props.user.first_category_url) } @@ -77,7 +77,7 @@ class CoursesBanner extends Component { } componentDidUpdate(prevProps) { if(prevProps.user!=this.props.user){ - if(this.props.match.path==="/courses/:coursesId"){ + if(this.props.match.path==="/classrooms/:coursesId"){ if(this.props.user!=undefined){ this.props.history.push(this.props.user.first_category_url) } @@ -352,11 +352,11 @@ class CoursesBanner extends Component { var url = `/courses/${id}/duplicate_course.json` axios.post(url).then((response) => { if(response!==undefined){ - window.location.href = "/courses/" + response.data.new_course_id+"/students"; + window.location.href = "/classrooms/" + response.data.new_course_id+"/students"; return } this.modalCancel(); - // window.location.href = "/courses/" + response.data.new_course_id; + // window.location.href = "/classrooms/" + response.data.new_course_id; }).catch( (error)=> { this.modalCancel(); @@ -450,7 +450,7 @@ class CoursesBanner extends Component { } postsettings=()=>{ - window.location.href = "/courses/" + this.props.match.params.coursesId + "/settings"; + window.location.href = "/classrooms/" + this.props.match.params.coursesId + "/settings"; }; postsettingstwo=()=>{ // var ids =1; @@ -463,7 +463,7 @@ class CoursesBanner extends Component { // }catch (e) { // // } - window.location.href = `/courses/${this.props.match.params.coursesId}/newgolds/settings`; + window.location.href = `/classrooms/${this.props.match.params.coursesId}/newgolds/settings`; }; @@ -748,13 +748,13 @@ background:rgba(204,204,204,0.2) !important; title={
     																			 {coursedata.teacher_applies_count===undefined?"":coursedata.teacher_applies_count>0?
     																				 您有{coursedata.teacher_applies_count}条新的加入申请
    -																					 this.setHistoryFun("/courses/"+this.props.match.params.coursesId+"/teachers?tab=2")}>
    +																					 this.setHistoryFun("/classrooms/"+this.props.match.params.coursesId+"/teachers?tab=2")}>
     																			 
     																			 待审批
     																		 :""}
    }> - this.setHistoryFun("/courses/"+this.props.match.params.coursesId+"/teachers")}> + this.setHistoryFun("/classrooms/"+this.props.match.params.coursesId+"/teachers")}> 教师 {coursedata.teacher_count} @@ -763,7 +763,7 @@ background:rgba(204,204,204,0.2) !important; this.setHistoryFun("/courses/"+this.props.match.params.coursesId+"/students"):"":()=>this.setHistoryFun("/courses/"+this.props.match.params.coursesId+"/students")} + onClick={excellent === true && this.props.isAdminOrStudent() === false ?"":excellent===true&&coursedata.course_end === true?this.props.isAdminOrTeacher()===true?()=>this.setHistoryFun("/classrooms/"+this.props.match.params.coursesId+"/students"):"":()=>this.setHistoryFun("/classrooms/"+this.props.match.params.coursesId+"/students")} > 学生 {coursedata.student_count} @@ -775,7 +775,7 @@ background:rgba(204,204,204,0.2) !important; {/*
  • */} - {/**/} + {/**/} {/*教师*/} {/*{coursedata.teacher_count}*/} @@ -783,7 +783,7 @@ background:rgba(204,204,204,0.2) !important; {/*
  • */} {/*
  • */} - {/**/} + {/**/} {/*学生*/} {/**/} diff --git a/public/react/src/modules/courses/coursesDetail/CoursesLeftNav.js b/public/react/src/modules/courses/coursesDetail/CoursesLeftNav.js index 75b788e16..b4912f6c4 100644 --- a/public/react/src/modules/courses/coursesDetail/CoursesLeftNav.js +++ b/public/react/src/modules/courses/coursesDetail/CoursesLeftNav.js @@ -550,13 +550,13 @@ class Coursesleftnav extends Component{ if(positiontype==="files"){ this.updasaveNavmoda() trigger('updateNavSuccess') - this.props.history.push(`/courses/${coursesId}/file/${result.data.category_id}`); + this.props.history.push(`/classrooms/${coursesId}/file/${result.data.category_id}`); } if(positiontype==="boards"){ this.updasaveNavmoda() trigger('updateNavSuccess') - this.props.history.push(`/courses/${coursesId}/boards/${result.data.category_id}`); + this.props.history.push(`/classrooms/${coursesId}/boards/${result.data.category_id}`); } if(positiontype!="course_groups"){ @@ -565,7 +565,7 @@ class Coursesleftnav extends Component{ if(positiontype==="course_groups"){ this.props.updataleftNavfun(); - this.props.history.push(`/courses/${coursesId}/course_groups/${result.data.group_id}`); + this.props.history.push(`/classrooms/${coursesId}/course_groups/${result.data.group_id}`); } } @@ -1100,7 +1100,7 @@ class Coursesleftnav extends Component{ // visible={toopvisible===true&&toopvisibleindex===iem.category_id?true:false} visible={false} > - {/*"/courses/"+this.props.match.params.coursesId+"/"+item.type+"/"+iem.category_type+"/"+iem.category_id*/} + {/*"/classrooms/"+this.props.match.params.coursesId+"/"+item.type+"/"+iem.category_type+"/"+iem.category_id*/}
  • this.selectnavids(e,key,iem.category_id,item.type+"child",iem.second_category_url,key)} onMouseLeave={(e)=>this.twosandianhide(e,index,item.type)} onMouseEnter={(e)=>this.twosandianshow(e,index,item.type)} key={index} diff --git a/public/react/src/modules/courses/coursesHome/CoursesHome.js b/public/react/src/modules/courses/coursesHome/CoursesHome.js index 611ff20d5..3ad4e805f 100644 --- a/public/react/src/modules/courses/coursesHome/CoursesHome.js +++ b/public/react/src/modules/courses/coursesHome/CoursesHome.js @@ -161,7 +161,7 @@ class CoursesHome extends Component {
  • {user && user.user_identity !== '学生' ? - { this.getUser("/courses/new") }} > 创建教学课堂 + { this.getUser("/classrooms/new") }} > 创建教学课堂 { window._header_componentHandler.tojoinclass() }} > 加入教学课堂 : null } @@ -190,4 +190,4 @@ class CoursesHome extends Component { export default CoursesHome; -// {/**/} \ No newline at end of file +// {/**/} diff --git a/public/react/src/modules/courses/coursesPublic/Addcourses.js b/public/react/src/modules/courses/coursesPublic/Addcourses.js index db0f9afd6..e4c07bf6d 100644 --- a/public/react/src/modules/courses/coursesPublic/Addcourses.js +++ b/public/react/src/modules/courses/coursesPublic/Addcourses.js @@ -185,12 +185,12 @@ class Addcourses extends Component{ if(Addcoursestype===true){ this.props.hideAddcoursestype(); } - window.location.href ="/courses/"+course_id+"/students"; + window.location.href ="/classrooms/"+course_id+"/students"; } } submitasyns=(course_id)=>{ - window.location.href ="/courses/"+course_id+"/students"; + window.location.href ="/classrooms/"+course_id+"/students"; } submittojoinclass=()=>{ @@ -266,7 +266,7 @@ class Addcourses extends Component{ if(response.data.status===0){ // https://www.trustie.net/issues/22365 if (response.data.course_id == 2704) { - this.props.history.push('/courses/2704/boards/8367/messages/42072') + this.props.history.push('/classrooms/2704/boards/8367/messages/42072') return; } notification.open({ diff --git a/public/react/src/modules/courses/exercise/Ecerciseallbackagain.js b/public/react/src/modules/courses/exercise/Ecerciseallbackagain.js index 35556da54..f350d82be 100644 --- a/public/react/src/modules/courses/exercise/Ecerciseallbackagain.js +++ b/public/react/src/modules/courses/exercise/Ecerciseallbackagain.js @@ -237,7 +237,7 @@ class Ecerciseallbackagain extends Component{ > {item.user_name} @@ -272,4 +272,4 @@ class Ecerciseallbackagain extends Component{ ) } } -export default Ecerciseallbackagain; \ No newline at end of file +export default Ecerciseallbackagain; diff --git a/public/react/src/modules/courses/exercise/Exercise.js b/public/react/src/modules/courses/exercise/Exercise.js index faef2a531..0a10121d6 100644 --- a/public/react/src/modules/courses/exercise/Exercise.js +++ b/public/react/src/modules/courses/exercise/Exercise.js @@ -487,7 +487,7 @@ class Exercise extends Component{ this.props.isAdmin()===true?
  • - {course_types&&course_types.course_status===0?新建:""} + {course_types&&course_types.course_status===0?新建:""}
  • :"" } @@ -502,7 +502,7 @@ class Exercise extends Component{

    共{exercises_counts && exercises_counts.exercises_total_counts}个试卷 已发布:{exercises_counts && exercises_counts.exercises_published_counts}个 - 未发布:{exercises_counts && exercises_counts.exercises_unpublish_counts}个 + 未发布:{exercises_counts && exercises_counts.exercises_unpublish_counts}个

    {publicSearchs("请输入名称进行搜索",this.searchInfo,this.inputStudent,this.inputStudent)} diff --git a/public/react/src/modules/courses/exercise/ExerciseListItem.js b/public/react/src/modules/courses/exercise/ExerciseListItem.js index 8bb42b042..52f05bb6d 100644 --- a/public/react/src/modules/courses/exercise/ExerciseListItem.js +++ b/public/react/src/modules/courses/exercise/ExerciseListItem.js @@ -114,22 +114,22 @@ class ExerciseListItem extends Component{

    - {/*{item.exercise_name}*/} + {/*{item.exercise_name}*/} { this.props.isAdmin()? this.toDetailPage(`/courses/${coursesId}/exercises/${item.id}/student_exercise_list?tab=0`)}>{item.exercise_name}:"" + onClick={()=>this.toDetailPage(`/classrooms/${coursesId}/exercises/${item.id}/student_exercise_list?tab=0`)}>{item.exercise_name}:"" } { this.props.isStudent()? - this.toDetailPage(`/courses/${coursesId}/exercises/${item.id}/student_exercise_list?tab=0`)}>{item.exercise_name}:"" + this.toDetailPage(`/classrooms/${coursesId}/exercises/${item.id}/student_exercise_list?tab=0`)}>{item.exercise_name}:"" } { this.props.isNotMember()? item.lock_status === 0 ? {item.exercise_name} - : this.toDetailPage(`/courses/${coursesId}/exercises/${item.id}/student_exercise_list?tab=0`)}>{item.exercise_name}:"" + : this.toDetailPage(`/classrooms/${coursesId}/exercises/${item.id}/student_exercise_list?tab=0`)}>{item.exercise_name}:"" } { @@ -189,9 +189,9 @@ class ExerciseListItem extends Component{ { IsAdmin &&

    }

    @@ -202,7 +202,7 @@ class ExerciseListItem extends Component{ {/*
  • */} {/**/} {/*
      */} - {/*
    • 编辑
    • */} + {/*
    • 编辑
    • */} {/*
    • 设置
    • */} @@ -216,10 +216,10 @@ class ExerciseListItem extends Component{ { IsStudent &&
      -
    • this.toDetailPage(`/courses/${coursesId}/exercises/${item.id}/student_exercise_list?tab=0`)}>查看详情
    • - {item.current_status ===0&&item.exercise_status>1?
    • 继续答题
    • : - item.current_status ===1&&item.exercise_status>1?
    • 查看答题
    • : - item.current_status ===2&&item.exercise_status>1?
    • this.setgameexercise(`/courses/${coursesId}/exercises/${item.id}/users/${this.props.current_user.login}`)}>开始答题
    • :""} +
    • this.toDetailPage(`/classrooms/${coursesId}/exercises/${item.id}/student_exercise_list?tab=0`)}>查看详情
    • + {item.current_status ===0&&item.exercise_status>1?
    • 继续答题
    • : + item.current_status ===1&&item.exercise_status>1?
    • 查看答题
    • : + item.current_status ===2&&item.exercise_status>1?
    • this.setgameexercise(`/classrooms/${coursesId}/exercises/${item.id}/users/${this.props.current_user.login}`)}>开始答题
    • :""}
      } @@ -227,7 +227,7 @@ class ExerciseListItem extends Component{ this.props.isNotMember()? item.lock_status === 0 ? "" : :"" } @@ -236,4 +236,4 @@ class ExerciseListItem extends Component{ ) } } -export default ExerciseListItem \ No newline at end of file +export default ExerciseListItem diff --git a/public/react/src/modules/courses/exercise/ExerciseNew.js b/public/react/src/modules/courses/exercise/ExerciseNew.js index 0c2542569..07bd1467c 100644 --- a/public/react/src/modules/courses/exercise/ExerciseNew.js +++ b/public/react/src/modules/courses/exercise/ExerciseNew.js @@ -40,21 +40,21 @@ class ExerciceNew extends Component{ this.state = { - + } } componentDidMount = () => { - + } initData = (data) => { this.setState({left_banner_id: data.left_banner_id}) } render() { let { left_banner_id } = this.state; - + const { current_user } = this.props - + const courseId=this.props.match.params.coursesId; const isEdit = this.isEdit; @@ -62,19 +62,19 @@ class ExerciceNew extends Component{ document.title=this.props.coursedata&&this.props.coursedata.name; return(
      - +
      { current_user && }

      {this.isEdit ? "编辑" : "新建"}试卷 - this.props.history.length == 1 ? : this.props.history.goBack() - onClick={() => this.props.history.push(`/courses/${courseId}/exercises/${left_banner_id}`)}> + onClick={() => this.props.history.push(`/classrooms/${courseId}/exercises/${left_banner_id}`)}> 返回

      @@ -91,4 +91,4 @@ class ExerciceNew extends Component{ } } // RouteHOC() -export default (ExerciceNew); \ No newline at end of file +export default (ExerciceNew); diff --git a/public/react/src/modules/courses/exercise/ExerciseNewCommon.js b/public/react/src/modules/courses/exercise/ExerciseNewCommon.js index 6d7c72b13..736f44308 100644 --- a/public/react/src/modules/courses/exercise/ExerciseNewCommon.js +++ b/public/react/src/modules/courses/exercise/ExerciseNewCommon.js @@ -79,7 +79,7 @@ class ExerciseNewCommon extends Component{ } fetchExercise = () => { - const Id = this.props.match.params.Id + const Id = this.props.match.params.Id this.isEdit = this.props.isEdit || !!Id if (this.isEdit) { const url = this.props.exercise_url ? `/${this.props.exercise_url }/${Id}.json` : `/exercises/${Id}/edit.json` @@ -194,15 +194,15 @@ class ExerciseNewCommon extends Component{ } if (exercise_questions[index].question_id) { // 编辑 this.setState( - (prevState) => ({ + (prevState) => ({ exercise_questions : update(prevState.exercise_questions, {[index]: { isNew: {$set: false}}}) - // update(prevState.exercise_questions, {$splice: [[index, 1]]}) + // update(prevState.exercise_questions, {$splice: [[index, 1]]}) }) ) } else { // 新建 this.setState( - (prevState) => ({ - exercise_questions : update(prevState.exercise_questions, {$splice: [[index, 1]]}) + (prevState) => ({ + exercise_questions : update(prevState.exercise_questions, {$splice: [[index, 1]]}) }) ) } @@ -214,7 +214,7 @@ class ExerciseNewCommon extends Component{ } if (this._checkIsEditing()) { return; - } + } if (type == Q_TYPE_SHIXUN) { this.addShixun(question_id_to_insert_after) } else { @@ -237,7 +237,7 @@ class ExerciseNewCommon extends Component{ // TODO 弹框选择实训 if (this._checkIsEditing()) { return; - } + } this.refs.shixunChooseModal.setVisible(true) this.question_id_to_insert_after = question_id_to_insert_after; return; @@ -249,11 +249,11 @@ class ExerciseNewCommon extends Component{ editQestion = (index) => { if (this._checkIsEditing()) { return; - } + } this.editingId = `#question_${index}` this.setState( - (prevState) => ({ + (prevState) => ({ exercise_questions : update(prevState.exercise_questions, {[index]: { isNew: {$set: true}}}) }) ) @@ -261,8 +261,8 @@ class ExerciseNewCommon extends Component{ onSort = (index, question_id, isUp) => { if (this._checkIsEditing()) { return; - } - + } + const url = `/${this.props.exercise_url_questions || 'exercise_questions'}/${question_id}/up_down.json` axios.post(url, { opr: isUp ? 'up' : 'down'}) .then((response) => { @@ -305,16 +305,16 @@ class ExerciseNewCommon extends Component{ const _indexBefore = question_id_to_insert_after ? this.findIndexById(question_id_to_insert_after) : this.state.exercise_questions.length - 1 for (let i = _indexBefore; i >= 0; i--) { if(this.state.exercise_questions[i].question_type == question_type) { - init_question_score = this.state.exercise_questions[i].question_score + init_question_score = this.state.exercise_questions[i].question_score break; } } return init_question_score; } addEditingQuestion = (question_type, question_id_to_insert_after, otherAttributes) => { - + let init_question_score = this.getInitScore(question_type, question_id_to_insert_after) - + let questionObj = { question_type: question_type, // 需要这个通过类型判断 init_question_score: init_question_score, @@ -325,7 +325,7 @@ class ExerciseNewCommon extends Component{ const { exercise_questions } = this.state; let new_exercise_questions = exercise_questions.slice(0) let newIndex = new_exercise_questions.length; - + if (question_id_to_insert_after) { const _indexBefore = this.findIndexById(question_id_to_insert_after) new_exercise_questions.splice(_indexBefore + 1, 0, questionObj) @@ -347,7 +347,7 @@ class ExerciseNewCommon extends Component{ return i; } } - } + } onQestionDelete = (question_id) => { this.props.confirm({ content: `确认要删除这个问题吗?`, @@ -363,15 +363,15 @@ class ExerciseNewCommon extends Component{ // const index = this.findIndexById(question_id) // this.setState( - // (prevState) => ({ - // exercise_questions : update(prevState.exercise_questions, {$splice: [[index, 1]]}) + // (prevState) => ({ + // exercise_questions : update(prevState.exercise_questions, {$splice: [[index, 1]]}) // }) // ) } }) .catch(function (error) { console.log(error); - }); + }); } }) } @@ -382,14 +382,14 @@ class ExerciseNewCommon extends Component{ goToPreview = () => { const exercise_id = this.props.match.params.Id const courseId = this.props.match.params.coursesId - this.props.history.push(`/courses/${courseId}/exercises/${exercise_id}/student_exercise_list?tab=2`) + this.props.history.push(`/classrooms/${courseId}/exercises/${exercise_id}/student_exercise_list?tab=2`) } getAddQuestionUrl = () => { - const Id = this.props.match.params.Id + const Id = this.props.match.params.Id const url = this.props.exercise_url_questions ? `/${this.props.exercise_url_questions}.json` : `/exercises/${Id}/exercise_questions.json` return url; } - getEditQuestionUrl = (question_id) => { + getEditQuestionUrl = (question_id) => { const editUrl = this.props.exercise_url_questions ? `/${this.props.exercise_url_questions}/${question_id}.json` : `/exercise_questions/${question_id}.json` return editUrl; } @@ -400,7 +400,7 @@ class ExerciseNewCommon extends Component{ // return '' // } // const { getFieldDecorator } = this.props.form; - const { q_counts, q_scores, q_doubles, q_doubles_scores, q_judges, q_judges_scores, + const { q_counts, q_scores, q_doubles, q_doubles_scores, q_judges, q_judges_scores, q_mains, q_mains_scores, q_nulls, q_nulls_scores, q_shixuns, q_shixuns_scores, q_singles, q_singles_scores} = exercise_types; const formItemLayout = { labelCol: { @@ -458,7 +458,7 @@ class ExerciseNewCommon extends Component{ max-width: 1128px; } `} - + {!this.state.editMode &&
      @@ -470,7 +470,7 @@ class ExerciseNewCommon extends Component{
      - +
      } {this.state.editMode &&
      {/* defalutSubmitbtn */} - + 保存 - { this.isEdit && this.setState({editMode: false})} className="defalutCancelbtn fr mt4" + { this.isEdit && this.setState({editMode: false})} className="defalutCancelbtn fr mt4" style={{height: '30px', width: '70px', fontSize: '14px', lineHeight: '30px', marginRight: '16px'}}>取消} {/* */} @@ -532,7 +532,7 @@ class ExerciseNewCommon extends Component{ {}}>取消
      */} } - +

      @@ -544,7 +544,7 @@ class ExerciseNewCommon extends Component{ { !!q_shixuns && 实训题{q_shixuns}题,共{q_shixuns_scores}分 } - { !!q_counts && + { !!q_counts && 合计 {q_counts} 题, 共 100 ? 'color-red font-bd' : 'color-orange'}`}>{q_scores} 分 @@ -582,7 +582,7 @@ class ExerciseNewCommon extends Component{ } } else if (item.question_type == 5) { if (item.isNew) { - return } else { @@ -622,4 +622,4 @@ class ExerciseNewCommon extends Component{ } } // RouteHOC() -export default (ExerciseNewCommon); \ No newline at end of file +export default (ExerciseNewCommon); diff --git a/public/react/src/modules/courses/exercise/Studentshavecompletedthelist.js b/public/react/src/modules/courses/exercise/Studentshavecompletedthelist.js index e76019deb..9c6e8a87b 100644 --- a/public/react/src/modules/courses/exercise/Studentshavecompletedthelist.js +++ b/public/react/src/modules/courses/exercise/Studentshavecompletedthelist.js @@ -669,7 +669,7 @@ class Studentshavecompletedthelist extends Component { record.score_open===true? 查看 + href={`/classrooms/${this.props.match.params.coursesId}/exercises/${this.props.match.params.Id}/users/${record.myid}`}>查看 :"" : -- @@ -940,7 +940,7 @@ class Studentshavecompletedthelist extends Component { : {record.operating} + href={`/classrooms/${this.props.match.params.coursesId}/exercises/${this.props.match.params.Id}/users/${record.myid}`}>{record.operating} } @@ -1163,7 +1163,7 @@ class Studentshavecompletedthelist extends Component { :record.submitstate === "已提交"? {record.finalscore} + href={`/classrooms/${this.props.match.params.coursesId}/exercises/${this.props.match.params.Id}/users/${record.myid}`}>{record.finalscore} : -- } @@ -1381,7 +1381,7 @@ class Studentshavecompletedthelist extends Component { :record.submitstate === "已提交"? {record.finalscore} + href={`/classrooms/${this.props.match.params.coursesId}/exercises/${this.props.match.params.Id}/users/${record.myid}`}>{record.finalscore} : -- } diff --git a/public/react/src/modules/courses/exercise/Testpapersettinghomepage.js b/public/react/src/modules/courses/exercise/Testpapersettinghomepage.js index ff60b553f..ce63ca526 100644 --- a/public/react/src/modules/courses/exercise/Testpapersettinghomepage.js +++ b/public/react/src/modules/courses/exercise/Testpapersettinghomepage.js @@ -43,7 +43,7 @@ class Testpapersettinghomepage extends Component{ tab:e.key }) - // this.props.history.push(`/courses/${this.props.match.params.coursesId}/exercises/${this.props.match.params.Id}/student_exercise_list?tab=`+e.key) + // this.props.history.push(`/classrooms/${this.props.match.params.coursesId}/exercises/${this.props.match.params.Id}/student_exercise_list?tab=`+e.key) } componentDidMount(){ @@ -277,10 +277,10 @@ class Testpapersettinghomepage extends Component{ // let courseId=this.props.match.params.coursesId; // let category_id=this.props.match.params.category_id; // - // window.location.href="/courses/"+courseId+"/graduation_tasks/"+datalist.graduation_id; + // window.location.href="/classrooms/"+courseId+"/graduation_tasks/"+datalist.graduation_id; // let courseId=this.props.match.params.coursesId; // if(courseId===undefined){ - // this.props.history.push("/courses"); + // this.props.history.push("/classrooms"); // }else{ // this.props.history.push(this.props.current_user.first_category_url); // } @@ -322,9 +322,9 @@ class Testpapersettinghomepage extends Component{

      - {this.props.coursedata.name} + {this.props.coursedata.name} > - 试卷 + 试卷 > 试卷详情

      @@ -345,7 +345,7 @@ class Testpapersettinghomepage extends Component{ - 返回 + 返回

      @@ -437,13 +437,13 @@ class Testpapersettinghomepage extends Component{ getsetdata={this.getsetdata} > :"":""} - {isAdmin === true? 编辑试卷:""} + {isAdmin === true? 编辑试卷:""} {isAdmin === false && this.props.current_user !== undefined? Commonheadofthetestpaper&&Commonheadofthetestpaper.user_permission.current_status===2? - this.setgameexercise(`/courses/${this.props.match.params.coursesId}/exercises/${this.props.match.params.Id}/users/${this.props.current_user.login}`)}>开始答题: + this.setgameexercise(`/classrooms/${this.props.match.params.coursesId}/exercises/${this.props.match.params.Id}/users/${this.props.current_user.login}`)}>开始答题: + to={`/classrooms/${this.props.match.params.coursesId}/exercises/${this.props.match.params.Id}/users/${this.props.current_user.login}`}> {exercise_status===2?start_Value[Commonheadofthetestpaper&&Commonheadofthetestpaper.user_permission.current_status]:exercise_status===3?"":exercise_status===4?"":start_Value[Commonheadofthetestpaper&&Commonheadofthetestpaper.user_permission.current_status]} :""} diff --git a/public/react/src/modules/courses/graduation/tasks/GraduateTaskItem.js b/public/react/src/modules/courses/graduation/tasks/GraduateTaskItem.js index 6a3e4aea5..6010d3093 100644 --- a/public/react/src/modules/courses/graduation/tasks/GraduateTaskItem.js +++ b/public/react/src/modules/courses/graduation/tasks/GraduateTaskItem.js @@ -235,12 +235,12 @@ class GraduateTaskItem extends Component{
      { - this.props.isAdmin?this.toDetailPage("/courses/"+coursesId+"/graduation_tasks/"+categoryid+"/detail/"+taskid+"/list")} + this.props.isAdmin?this.toDetailPage("/classrooms/"+coursesId+"/graduation_tasks/"+categoryid+"/detail/"+taskid+"/list")} title={discussMessage.name} className="fl mt3 font-16 font-bd color-dark maxwidth580">{discussMessage.name}:"" } { - this.props.isStudent? this.toDetailPage("/courses/"+coursesId+"/graduation_tasks/"+categoryid+"/detail/"+taskid+"/list")} + this.props.isStudent? this.toDetailPage("/classrooms/"+coursesId+"/graduation_tasks/"+categoryid+"/detail/"+taskid+"/list")} title={discussMessage.name} className="fl mt3 font-16 font-bd color-dark maxwidth580">{discussMessage.name}:"" } @@ -248,7 +248,7 @@ class GraduateTaskItem extends Component{ { this.props.isNotMember===true?this.props.discussMessage.private_icon===true? {discussMessage.name} - :this.toDetailPage("/courses/"+coursesId+"/graduation_tasks/"+categoryid+"/"+taskid+"/list")} + :this.toDetailPage("/classrooms/"+coursesId+"/graduation_tasks/"+categoryid+"/"+taskid+"/list")} title={discussMessage.name} className="fl mt3 font-16 font-bd color-dark maxwidth580">{discussMessage.name}:"" } @@ -267,7 +267,7 @@ class GraduateTaskItem extends Component{ {/* { !!discussMessage.sticky && 置顶 } */}
      - +

      @@ -301,15 +301,15 @@ class GraduateTaskItem extends Component{

      - + 设置 - + 编辑 - this.toDetailPage("/courses/"+coursesId+"/graduation_tasks/"+categoryid+"/detail/"+taskid+"/list")} + this.toDetailPage("/classrooms/"+coursesId+"/graduation_tasks/"+categoryid+"/detail/"+taskid+"/list")} className="btn colorblue colorblue font-16 mr20 fr"> 查看详情 @@ -331,7 +331,7 @@ class GraduateTaskItem extends Component{ {item==="提交作品"? - 提交作品 + 提交作品 :""} @@ -339,7 +339,7 @@ class GraduateTaskItem extends Component{ {item==="补交作品"? - 补交作品 + 补交作品 :""} @@ -347,7 +347,7 @@ class GraduateTaskItem extends Component{ {item==="修改作品"? - 修改作品 + 修改作品 :""} @@ -355,7 +355,7 @@ class GraduateTaskItem extends Component{ {item==="查看作品"? - 查看作品 + 查看作品 :""} @@ -385,7 +385,7 @@ class GraduateTaskItem extends Component{ 补交附件 - {/**/} + {/**/} :""} @@ -394,7 +394,7 @@ class GraduateTaskItem extends Component{ }):""} {this.props.isStudent? - this.toDetailPage("/courses/"+coursesId+"/graduation_tasks/"+categoryid+"/detail/"+taskid+"/list")} + this.toDetailPage("/classrooms/"+coursesId+"/graduation_tasks/"+categoryid+"/detail/"+taskid+"/list")} className="colorblue font-16 ml20 fr mt12"> 查看详情 :""} @@ -404,4 +404,4 @@ class GraduateTaskItem extends Component{ ) } } -export default GraduateTaskItem; \ No newline at end of file +export default GraduateTaskItem; diff --git a/public/react/src/modules/courses/graduation/tasks/GraduationAcross.js b/public/react/src/modules/courses/graduation/tasks/GraduationAcross.js index 18dac8041..a42c3fc8a 100644 --- a/public/react/src/modules/courses/graduation/tasks/GraduationAcross.js +++ b/public/react/src/modules/courses/graduation/tasks/GraduationAcross.js @@ -121,7 +121,7 @@ class GraduationAcross extends Component{ } } - + // 根据分班筛选 filterByGroup=(value,record)=>{ @@ -163,12 +163,12 @@ class GraduationAcross extends Component{ this.setState({ showflag:false }) - } + } } - componentWillUnmount() { + componentWillUnmount() { window.removeEventListener('click', this.clickOther); - } + } getList=(page,group_ids,comment_status)=>{ let { limit }=this.state; @@ -325,8 +325,8 @@ class GraduationAcross extends Component{ } } render(){ - let { - comment_status, + let { + comment_status, users, user_count, graduation_groups, @@ -350,7 +350,7 @@ class GraduationAcross extends Component{ marginRight:'0px' }; - + const rowSelection = { // 选中行的key,选中行 @@ -461,7 +461,7 @@ class GraduationAcross extends Component{ 手动分配评阅(逐一指定每个学生的交叉评阅老师) 答辩组分配评阅(将老师加入不同答辩组,指定每个学生的交叉评阅答辩组, - + 立即设置答辩组 @@ -472,7 +472,7 @@ class GraduationAcross extends Component{ 分配给{ comment_status && comment_status == 2 ? "老师":"答辩组"}: - { // let courseId=this.props.match.params.coursesId; // let category_id=this.props.match.params.category_id; - // window.location.href="/courses/"+courseId+"/graduation_tasks/"+category_id; + // window.location.href="/classrooms/"+courseId+"/graduation_tasks/"+category_id; // let courseId = this.props.match.params.coursesId; // if(courseId===undefined){ - // this.props.history.push("/courses"); + // this.props.history.push("/classrooms"); // }else{ // this.props.history.push(this.props.current_user.first_category_url); // } // this.props.history.goBack() - this.props.history.replace(`/courses/${this.state.questionslist.course_id}/graduation_tasks/${this.state.questionslist.graduation_id}`); + this.props.history.replace(`/classrooms/${this.state.questionslist.course_id}/graduation_tasks/${this.state.questionslist.graduation_id}`); } setend_time=(time)=>{ @@ -465,13 +465,13 @@ class GraduationTaskDetail extends Component{

      {questionslist.course_name} > - {questionslist.graduation_name} + {questionslist.graduation_name} > 任务详情

      - {questionslist.task_name} + {questionslist.task_name}

      - 任务列表 - 毕设描述 - 设置 + 任务列表 + 毕设描述 + 设置 {/*导出成绩*/} {/*{this.props.isAdmin()?导出成绩:""}*/} @@ -529,10 +529,10 @@ class GraduationTaskDetail extends Component{ {questionslist.work_status===undefined||questionslist.work_status===null||questionslist.work_status.length===0?"":questionslist.work_status.map((item,key)=>{ return( - {item==="提交作品"?提交作品:""} - {item==="补交作品"?补交作品:""} - {item==="修改作品"?修改作品:""} - {item==="查看作品"?查看作品 :""} + {item==="提交作品"?提交作品:""} + {item==="补交作品"?补交作品:""} + {item==="修改作品"?修改作品:""} + {item==="查看作品"?查看作品 :""} {item==="创建项目"?创建项目:""} {item==="关联项目"?关联项目:""} {item==="取消关联"?取消关联:""} @@ -546,26 +546,26 @@ class GraduationTaskDetail extends Component{ { this.props.isAdmin() ? questionslist.status===1 ? { this.end()} }>立即截止 : "" : "" } { this.props.isAdmin() ? questionslist.status===0 ? { this.publish()} }>立即发布 : "" : "" } { this.props.isAdmin() && questionslist.cross_comment ? 交叉评阅设置 : "" } - { this.props.isAdmin() ? 编辑任务 : "" } + { this.props.isAdmin() ? 编辑任务 : "" } { this.props.user&&this.props.user.admin===true || this.props.user&&this.props.user.business===true ? this.CodeReview()}>代码评测 : "" }
      {/*//毕设任务列表*/} - (this.getsonars(teacher_comment,task_status,course_group,cross_comment,search)}{...this.props} {...props} {...this.state} {...commom} triggerRef={this.bindRef} setend_time={(time)=>this.setend_time(time)} tab={`list`}/>) } > - (this.setend_time(time)} tab={`setting`}/>) } > - (this.setend_time(time)} tab={`questions`}/>) }> @@ -579,4 +579,4 @@ class GraduationTaskDetail extends Component{ } } // CNotificationHOC() ( SnackbarHOC() ( TPMIndexHOC)) -export default (GraduationTaskDetail) ; \ No newline at end of file +export default (GraduationTaskDetail) ; diff --git a/public/react/src/modules/courses/graduation/tasks/GraduationTasksSubmitedit.js b/public/react/src/modules/courses/graduation/tasks/GraduationTasksSubmitedit.js index f9e93a0de..48fad9d6a 100644 --- a/public/react/src/modules/courses/graduation/tasks/GraduationTasksSubmitedit.js +++ b/public/react/src/modules/courses/graduation/tasks/GraduationTasksSubmitedit.js @@ -104,7 +104,7 @@ class GraduationTasksSubmitedit extends Component{ // }else{ // this.props.history.push(this.props.current_user.first_category_url); // } - this.props.history.replace(`/courses/${this.state.workslist.course_id}/graduation_tasks/${this.state.workslist.graduation_id}`); + this.props.history.replace(`/classrooms/${this.state.workslist.course_id}/graduation_tasks/${this.state.workslist.graduation_id}`); } @@ -462,7 +462,7 @@ class GraduationTasksSubmitedit extends Component{ }) if(response!== undefined){ // this.goback() - window.location.href=`/courses/${coursesIds}/graduation_tasks/${workId}/appraise` + window.location.href=`/classrooms/${coursesIds}/graduation_tasks/${workId}/appraise` } // if(response.status===200) { // GraduationTasksnewtype=false; @@ -589,14 +589,14 @@ class GraduationTasksSubmitedit extends Component{

      - {/* {workslist&&workslist.course_name}*/} + {/* {workslist&&workslist.course_name}*/} {/*>*/} 毕设任务 > - 任务详情 + 任务详情 > {/**/} - {/*{workslist&&workslist.task_name}*/} + {/*{workslist&&workslist.task_name}*/} {/*>*/} {/**/} {this.props.current_user&&this.props.current_user.real_name} 修改作品 diff --git a/public/react/src/modules/courses/graduation/tasks/GraduationTasksSubmitnew.js b/public/react/src/modules/courses/graduation/tasks/GraduationTasksSubmitnew.js index a30b00efb..be2ae956b 100644 --- a/public/react/src/modules/courses/graduation/tasks/GraduationTasksSubmitnew.js +++ b/public/react/src/modules/courses/graduation/tasks/GraduationTasksSubmitnew.js @@ -80,7 +80,7 @@ class GraduationTasksSubmitnew extends Component{ setedit=(workId)=>{ let coursesId=this.props.match.params.coursesId; - window.location.href="/courses/"+coursesId+"/graduation_tasks/"+workId+"/appraise"; + window.location.href="/classrooms/"+coursesId+"/graduation_tasks/"+workId+"/appraise"; } @@ -105,7 +105,7 @@ class GraduationTasksSubmitnew extends Component{ // }else{ // this.props.history.push(this.props.current_user.first_category_url); // } - this.props.history.replace(`/courses/${this.state.workslist.course_id}/graduation_tasks/${this.state.workslist.graduation_id}`); + this.props.history.replace(`/classrooms/${this.state.workslist.course_id}/graduation_tasks/${this.state.workslist.graduation_id}`); } @@ -463,7 +463,7 @@ class GraduationTasksSubmitnew extends Component{ if(response){ if(response.data){ if(response.data.work_id){ - window.location.href=`/courses/${this.props.match.params.coursesId}/graduation_tasks/${response.data.work_id}/appraise` + window.location.href=`/classrooms/${this.props.match.params.coursesId}/graduation_tasks/${response.data.work_id}/appraise` } } } @@ -603,14 +603,14 @@ render(){

      - {/* {workslist&&workslist.course_name}*/} + {/* {workslist&&workslist.course_name}*/} {/*>*/} 毕设任务 > - 任务详情 + 任务详情 > {/**/} - {/*{workslist&&workslist.task_name}*/} + {/*{workslist&&workslist.task_name}*/} {/*>*/} {/**/} {this.props.current_user&&this.props.current_user.real_name} 提交作品 diff --git a/public/react/src/modules/courses/graduation/tasks/GraduationTasksappraise.js b/public/react/src/modules/courses/graduation/tasks/GraduationTasksappraise.js index bc99acf0b..a314f9623 100644 --- a/public/react/src/modules/courses/graduation/tasks/GraduationTasksappraise.js +++ b/public/react/src/modules/courses/graduation/tasks/GraduationTasksappraise.js @@ -71,15 +71,15 @@ class GraduationTasksappraise extends Component{ // let courseId=this.props.match.params.coursesId; // let category_id=this.props.match.params.category_id; // - // window.location.href="/courses/"+courseId+"/graduation_tasks/"+datalist.graduation_id; + // window.location.href="/classrooms/"+courseId+"/graduation_tasks/"+datalist.graduation_id; // let courseId=this.props.match.params.coursesId; // if(courseId===undefined){ - // this.props.history.push("/courses"); + // this.props.history.push("/classrooms"); // }else{ // this.props.history.push(this.props.current_user.first_category_url); // } - this.props.history.replace(`/courses/${this.state.datalist.course_id}/graduation_tasks/${this.state.datalist.graduation_id}/${this.state.datalist.task_id}/list`); + this.props.history.replace(`/classrooms/${this.state.datalist.course_id}/graduation_tasks/${this.state.datalist.graduation_id}/${this.state.datalist.task_id}/list`); } @@ -178,9 +178,9 @@ class GraduationTasksappraise extends Component{

      {datalist&&datalist.course_name} > - {datalist&&datalist.graduation_name} + {datalist&&datalist.graduation_name} > - 任务详情 + 任务详情 > {datalist&&datalist.author_name}

      diff --git a/public/react/src/modules/courses/graduation/tasks/GraduationTasksedit.js b/public/react/src/modules/courses/graduation/tasks/GraduationTasksedit.js index e5431d55e..8ebe3bbef 100644 --- a/public/react/src/modules/courses/graduation/tasks/GraduationTasksedit.js +++ b/public/react/src/modules/courses/graduation/tasks/GraduationTasksedit.js @@ -98,11 +98,11 @@ class GraduationTasksedit extends Component{ // let courseId = this.props.match.params.coursesId; // if(courseId===undefined){ - // this.props.history.push("/courses"); + // this.props.history.push("/classrooms"); // }else{ // this.props.history.push(this.props.current_user.first_category_url); // } - this.props.history.replace(`/courses/${this.state.data.course_id}/graduation_tasks/${this.state.data.graduation_id}`); + this.props.history.replace(`/classrooms/${this.state.data.course_id}/graduation_tasks/${this.state.data.graduation_id}`); } @@ -256,9 +256,9 @@ class GraduationTasksedit extends Component{ if(response.status===200) { // console.log(response) // GraduationTasksedittype=false; - // window.location.href="/courses/"+course_id+"/graduation/"+graduationId+"/graduation_tasks/"+category_id+"/questions"; + // window.location.href="/classrooms/"+course_id+"/graduation/"+graduationId+"/graduation_tasks/"+category_id+"/questions"; this.goback() - //this.props.history.push("/courses/"+this.props.match.params.coursesId+"/graduation_tasks/"+graduation_id+"/"+this.props.match.params.category_id +"/setting"); + //this.props.history.push("/classrooms/"+this.props.match.params.coursesId+"/graduation_tasks/"+graduation_id+"/"+this.props.match.params.category_id +"/setting"); } }).catch((error) => { console.log(error) @@ -366,14 +366,14 @@ class GraduationTasksedit extends Component{

      - {this.props.current_user&&this.props.current_user.course_name} + {this.props.current_user&&this.props.current_user.course_name} > - 毕设任务 + 毕设任务 > {name===""?"": - {name} + {name} > } diff --git a/public/react/src/modules/courses/graduation/tasks/GraduationTasksnew.js b/public/react/src/modules/courses/graduation/tasks/GraduationTasksnew.js index a5d4d7011..06096913d 100644 --- a/public/react/src/modules/courses/graduation/tasks/GraduationTasksnew.js +++ b/public/react/src/modules/courses/graduation/tasks/GraduationTasksnew.js @@ -92,7 +92,7 @@ class GraduationTasksnew extends Component { // this.goback(); if(response!==undefined){ // this.goback() - this.props.history.replace(`/courses/${coursesId}/graduation_tasks/${category_id}/detail/${response.data.task_id}/questions`); + this.props.history.replace(`/classrooms/${coursesId}/graduation_tasks/${category_id}/detail/${response.data.task_id}/questions`); } // } }).catch((error) => { @@ -110,12 +110,12 @@ class GraduationTasksnew extends Component { goback = () => { // let courseId = this.props.match.params.coursesId; // if(courseId===undefined){ - // this.props.history.push("/courses"); + // this.props.history.push("/classrooms"); // }else{ // this.props.history.push(this.props.current_user.first_category_url); // } // this.props.history.goBack() - this.props.history.replace(`/courses/${this.props.match.params.coursesId}/graduation_tasks/${this.props.match.params.category_id}`); + this.props.history.replace(`/classrooms/${this.props.match.params.coursesId}/graduation_tasks/${this.props.match.params.category_id}`); } @@ -350,7 +350,7 @@ class GraduationTasksnew extends Component { {this.props.current_user && this.props.current_user.course_name} > 毕设任务 + to={"/classrooms/" + courseId + "/graduation_tasks/" + category_id} className="color-grey-6">毕设任务 > {"新建"}

      diff --git a/public/react/src/modules/courses/graduation/tasks/GraduationTaskssettinglist.js b/public/react/src/modules/courses/graduation/tasks/GraduationTaskssettinglist.js index e0ebdf245..805f93ceb 100644 --- a/public/react/src/modules/courses/graduation/tasks/GraduationTaskssettinglist.js +++ b/public/react/src/modules/courses/graduation/tasks/GraduationTaskssettinglist.js @@ -77,12 +77,12 @@ class GraduationTaskssettinglist extends Component{ // window.history.back(-1) // let courseId=this.props.match.params.coursesId; // if(courseId===undefined){ - // this.props.history.push("/courses"); + // this.props.history.push("/classrooms"); // }else{ // this.props.history.push(this.props.current_user.first_category_url); // } // this.props.history.goBack() - this.props.history.replace(`/courses/${this.state.taskslistdata.course_id}/graduation_tasks/${this.state.taskslistdata.graduation_id}`); + this.props.history.replace(`/classrooms/${this.state.taskslistdata.course_id}/graduation_tasks/${this.state.taskslistdata.graduation_id}`); } reInit=()=>{ @@ -939,7 +939,7 @@ class GraduationTaskssettinglist extends Component{ { tag.name && 调整学生最终成绩
      其它历史评分将全部失效:""}> - {tag.name==="评阅"? + {tag.name==="评阅"? {tag.name} : @@ -958,7 +958,7 @@ class GraduationTaskssettinglist extends Component{ operation.map((tag,key) => { return(
      - {tag.view_work===false?"--":查看} + {tag.view_work===false?"--":查看}
      )} ):"" diff --git a/public/react/src/modules/courses/graduation/tasks/GraduationTaskssettingquestions.js b/public/react/src/modules/courses/graduation/tasks/GraduationTaskssettingquestions.js index 8d430b93c..221d51379 100644 --- a/public/react/src/modules/courses/graduation/tasks/GraduationTaskssettingquestions.js +++ b/public/react/src/modules/courses/graduation/tasks/GraduationTaskssettingquestions.js @@ -67,16 +67,16 @@ class GraduationTasksquestions extends Component{ goback=()=>{ // let courseId=this.props.match.params.coursesId; // let category_id=this.props.match.params.category_id; - // window.location.href="/courses/"+courseId+"/graduation_tasks/"+category_id; + // window.location.href="/classrooms/"+courseId+"/graduation_tasks/"+category_id; // let courseId = this.props.match.params.coursesId; // if(courseId===undefined){ - // this.props.history.push("/courses"); + // this.props.history.push("/classrooms"); // }else{ // this.props.history.push(this.props.current_user.first_category_url); // } // this.props.history.goBack() - this.props.history.replace(`/courses/${this.state.questionslist.course_id}/graduation_tasks/${this.state.questionslist.graduation_id}`); + this.props.history.replace(`/classrooms/${this.state.questionslist.course_id}/graduation_tasks/${this.state.questionslist.graduation_id}`); } end=()=>{ diff --git a/public/react/src/modules/courses/graduation/tasks/index.js b/public/react/src/modules/courses/graduation/tasks/index.js index c10fdc5fc..c06cf8ddf 100644 --- a/public/react/src/modules/courses/graduation/tasks/index.js +++ b/public/react/src/modules/courses/graduation/tasks/index.js @@ -669,7 +669,7 @@ class GraduationTasks extends Component{ {/*{this.props.isAdmin() ? this.addDir()}>题库选用:""}*/} {/*{this.props.isAdmin() ?导出成绩 :""}*/} {this.props.isAdmin() ? - + 新建 : ""} @@ -708,7 +708,7 @@ class GraduationTasks extends Component{ searchPlaceholder={"请输入名称进行搜索"} /> - + {/* */} diff --git a/public/react/src/modules/courses/graduation/topics/index.js b/public/react/src/modules/courses/graduation/topics/index.js index fb3d6bab6..e63fdf6b3 100644 --- a/public/react/src/modules/courses/graduation/topics/index.js +++ b/public/react/src/modules/courses/graduation/topics/index.js @@ -331,7 +331,7 @@ sureDelTopic=()=>{ // 新建 onBoardsNew=()=>{ let courseId=this.props.match.params.coursesId - this.props.history.push(`/courses/${courseId}/graduation_topics/new`) + this.props.history.push(`/classrooms/${courseId}/graduation_topics/new`) } /// 确认是否下载 confirmysl(url){ @@ -416,7 +416,7 @@ onBoardsNew=()=>{ ( {/* 参考普通作业 - 题库选用 */} {/* this.useFromBank()}>题库选用 正式版没有,先隐藏*/} - < a className={"fl color-blue mr30 font-16"} onClick={(url)=>this.confirmysl(`/courses/${this.props.match.params.coursesId}/graduation_topics/export.xlsx`)}>导出 + < a className={"fl color-blue mr30 font-16"} onClick={(url)=>this.confirmysl(`/classrooms/${this.props.match.params.coursesId}/graduation_topics/export.xlsx`)}>导出 {/*

      题库选用*/} this.onBoardsNew()}>新建
      ):"" @@ -514,4 +514,4 @@ onBoardsNew=()=>{ ) } } -export default Boards; \ No newline at end of file +export default Boards; diff --git a/public/react/src/modules/courses/members/CourseGroupList.js b/public/react/src/modules/courses/members/CourseGroupList.js index 597357a9f..c216d8871 100644 --- a/public/react/src/modules/courses/members/CourseGroupList.js +++ b/public/react/src/modules/courses/members/CourseGroupList.js @@ -136,7 +136,7 @@ function CourseGroupList(props) { title={
      • 分班列表
      • -
      • {props.history.push(`/courses/${courseId}/course_groups/0`)}}>未分班
      • +
      • {props.history.push(`/classrooms/${courseId}/course_groups/0`)}}>未分班
      } searchValue={ searchValue } @@ -216,7 +216,7 @@ function CourseGroupList(props) { onPressEnter={onPressEnter} > - {/* {!!none_group_member_count &&
      {props.history.push(`/courses/${courseId}/course_groups/0`)}}> + {/* {!!none_group_member_count &&
      {props.history.push(`/classrooms/${courseId}/course_groups/0`)}}> 未分班: {none_group_member_count}个学生 @@ -240,4 +240,4 @@ function CourseGroupList(props) { ) } -export default CourseGroupList \ No newline at end of file +export default CourseGroupList diff --git a/public/react/src/modules/courses/members/studentsList.js b/public/react/src/modules/courses/members/studentsList.js index af83d0a49..76c113891 100644 --- a/public/react/src/modules/courses/members/studentsList.js +++ b/public/react/src/modules/courses/members/studentsList.js @@ -353,7 +353,7 @@ class studentsList extends Component{ if (params.course_group_id == course_group_id) { this.fetchAll(1) } else { - this.props.history.push(`/courses/${coursesId}/course_groups/${params.course_group_id || '0'}`) + this.props.history.push(`/classrooms/${coursesId}/course_groups/${params.course_group_id || '0'}`) } // console.log('addStudentSuccessListener', data) } @@ -611,7 +611,7 @@ class studentsList extends Component{ .then((response) => { if (response.data.status == 0) { this.props.showNotification('删除成功') - this.props.history.push(`/courses/${courseId}/course_groups`) + this.props.history.push(`/classrooms/${courseId}/course_groups`) } }) .catch(function (error) { @@ -742,21 +742,21 @@ class studentsList extends Component{ title={isParent ? (pageType == TYPE_STUDENTS ? "全部学生" : "学生列表"): { - course_group_name ? + course_group_name ? - { this.props.history.push(`/courses/${courseId}/course_groups`)}} + { this.props.history.push(`/classrooms/${courseId}/course_groups`)}} style={{color: '#212121', verticalAlign: 'initial', marginRight: '14px' }} > {course_group_name} :
        -
      • { this.props.history.push(`/courses/${courseId}/course_groups`)}}>分班列表
      • +
      • { this.props.history.push(`/classrooms/${courseId}/course_groups`)}}>分班列表
      • 未分班
      } - + {isAdmin && invite_code && 邀请码: @@ -926,4 +926,4 @@ class studentsList extends Component{ ) } } -export default studentsList; \ No newline at end of file +export default studentsList; diff --git a/public/react/src/modules/courses/new/CoursesNew.js b/public/react/src/modules/courses/new/CoursesNew.js index e599bfa93..27fcb5c1e 100644 --- a/public/react/src/modules/courses/new/CoursesNew.js +++ b/public/react/src/modules/courses/new/CoursesNew.js @@ -363,7 +363,7 @@ class CoursesNew extends Component { goback = (id) => { // if(this.props.match.params.coursesId===undefined){ - // this.props.history.push("/courses"); + // this.props.history.push("/classrooms"); // }else{ // this.props.history.push(this.props.current_user.first_category_url); // } @@ -681,14 +681,14 @@ class CoursesNew extends Component {
      {/**/} {/* */} - {/* 翻转课堂*/} + {/* 翻转课堂*/} {/* */} {/* {this.props.match.params.coursesId === undefined ?"新建课堂":"编辑课堂"}*/} {/**/}

      {this.props.match.params.coursesId === undefined ?"教学课堂":dataname} diff --git a/public/react/src/modules/courses/new/Goldsubject.js b/public/react/src/modules/courses/new/Goldsubject.js index 23e098f80..b3fd113da 100644 --- a/public/react/src/modules/courses/new/Goldsubject.js +++ b/public/react/src/modules/courses/new/Goldsubject.js @@ -488,7 +488,7 @@ class Goldsubject extends Component { window.location.href=`/paths/${subjectids}` }else{ // this.props.history.goBack(); - window.location.href=`/courses/${this.props.match.params.coursesId}/informs` + window.location.href=`/classrooms/${this.props.match.params.coursesId}/informs` } } diff --git a/public/react/src/modules/courses/ordering/Ordering.js b/public/react/src/modules/courses/ordering/Ordering.js index dfcbdcb60..df464e067 100644 --- a/public/react/src/modules/courses/ordering/Ordering.js +++ b/public/react/src/modules/courses/ordering/Ordering.js @@ -167,7 +167,7 @@ class Ordering extends Component{ } goback=()=>{ - window.location.href=`/courses/${this.props.match.params.coursesId}/shixun_homeworks/${this.props.match.params.main_id}` + window.location.href=`/classrooms/${this.props.match.params.coursesId}/shixun_homeworks/${this.props.match.params.main_id}` } @@ -212,7 +212,7 @@ class Ordering extends Component{ {this.props.current_user&&this.props.current_user.course_name} - 实训作业 + 实训作业 调整排序 @@ -260,7 +260,7 @@ class Ordering extends Component{

      {item.task_name}

      + href={`/classrooms/${this.props.match.params.coursesId}/shixun_homeworks/${item.task_id}/list?tab=0`}>{item.task_name}

      {item.user_name} diff --git a/public/react/src/modules/courses/poll/Poll.js b/public/react/src/modules/courses/poll/Poll.js index dd0166e29..d445b1978 100644 --- a/public/react/src/modules/courses/poll/Poll.js +++ b/public/react/src/modules/courses/poll/Poll.js @@ -39,8 +39,8 @@ class Poll extends Component{ addnametab:undefined, addcanner:undefined, addsave:undefined, - course_groups:[], - chooseId:undefined, + course_groups:[], + chooseId:undefined, // 列表相关 checkBoxValues:[], checkAllValue:false, @@ -196,7 +196,7 @@ class Poll extends Component{ checkBoxValues: _.difference(this.state.checkBoxValues, values) }) } - } + } onCheckBoxChange = (checkedValues) => { this.setState({ @@ -327,7 +327,7 @@ class Poll extends Component{ }) let{type,StudentList_value,page}=this.state this.InitList(type,StudentList_value,page,value); - + let coursesId=this.props.match.params.coursesId; let url=`/courses/${coursesId}/polls/publish_modal.json`; axios.get(url,{ @@ -509,10 +509,10 @@ class Poll extends Component{

      {polls_counts&&polls_counts.left_banner_name} { - isAdmin && + isAdmin &&

    • - 新建 + 新建
    • }

      @@ -543,15 +543,15 @@ class Poll extends Component{
      { - pollsList && pollsList.length > 0 && isAdmin && + pollsList && pollsList.length > 0 && isAdmin &&
      已选 {checkBoxValues.length} 个 (不支持跨页勾选)
    • this.ActionPoll("delete")}>删除
    • -
    • { return( - } { - course_types && polls_counts.polls_all_counts > pageSize ? + course_types && polls_counts.polls_all_counts > pageSize ?
      : "" } - + ) } } -export default Poll; \ No newline at end of file +export default Poll; diff --git a/public/react/src/modules/courses/poll/PollDetailIndex.js b/public/react/src/modules/courses/poll/PollDetailIndex.js index 9bacbd107..c0e590766 100644 --- a/public/react/src/modules/courses/poll/PollDetailIndex.js +++ b/public/react/src/modules/courses/poll/PollDetailIndex.js @@ -166,7 +166,7 @@ class PollDetailIndex extends Component{

      {this.props.coursedata.name} > - 问卷 + 问卷 > 问卷详情

      @@ -175,7 +175,7 @@ class PollDetailIndex extends Component{ - 返回 + 返回

      @@ -192,7 +192,7 @@ class PollDetailIndex extends Component{ { isAdmin && - 编辑问卷 + 编辑问卷 {/* 立即发布 */} { user_permission && user_permission.poll_unpublish_count > 0 ? @@ -247,7 +247,7 @@ class PollDetailIndex extends Component{ { user_permission && user_permission.current_status!=3 ? - + { user_permission && user_permission.current_status ==0 ? "继续答题" : user_permission.current_status == 1 ? (polls_status===1?"":"查看答题") diff --git a/public/react/src/modules/courses/poll/PollInfo.js b/public/react/src/modules/courses/poll/PollInfo.js index 28cb4b029..01fb449b6 100644 --- a/public/react/src/modules/courses/poll/PollInfo.js +++ b/public/react/src/modules/courses/poll/PollInfo.js @@ -40,15 +40,15 @@ class PollInfo extends Component{ } } - + componentDidMount(){ if(this.props.current_user){ this.getInfo(); } - //window.addEventListener('scroll', this.handleScroll); + //window.addEventListener('scroll', this.handleScroll); } - + // 滚动定位 handleScroll=()=>{ if(parseInt(window.scrollY)>230){ @@ -113,11 +113,11 @@ class PollInfo extends Component{ let txt=Object.assign({}, this.state.inputArray[parseInt(arr[1])]); let ids=item.target.value; let list=txt.answersList.filter(element => element.answer_id == ids); - + this.postAnswer(arr[0],ids,list[0].answer_text=="其他"?txt.text:"",arr[1]); } - //选中选择题(多选题)选项保存 + //选中选择题(多选题)选项保存 ChangeOptionMuntil=(a_id,q_id,key)=>{ let ind=Object.assign({}, this.state.inputArray[parseInt(key)]); let count=0; @@ -193,7 +193,7 @@ class PollInfo extends Component{ //提交主观题 commitText=(key,q_id)=>{ const text = Object.assign({}, this.state.inputArray[key]).text; - + let url='/poll_questions/'+q_id+'/poll_votes.json?'; const ans=Object.assign({}, this.state.question_answered[key]); @@ -221,7 +221,7 @@ class PollInfo extends Component{ console.log(error); }) } - + } // 提交 @@ -259,7 +259,7 @@ class PollInfo extends Component{ } } - + cancelSubmit=()=>{ this.setState({ modalsType:false, @@ -268,7 +268,7 @@ class PollInfo extends Component{ }) } - + sureSubmit=()=>{ let pollId=this.props.match.params.pollId; let url=`/polls/${pollId}/commit_poll.json` @@ -280,7 +280,7 @@ class PollInfo extends Component{ modalsTopval:"", modalsBottomval:"" }) - window.location.href=`/courses/${this.props.match.params.coursesId}/polls/${pollId}/detail` + window.location.href=`/classrooms/${this.props.match.params.coursesId}/polls/${pollId}/detail` } }).catch((error)=>{ console.log(error); @@ -317,18 +317,18 @@ class PollInfo extends Component{

      {courseName} > - 问卷 + 问卷 > - 问卷详情> + 问卷详情> {question_types&&question_types.user_name}

      {poll && poll.polls_name} { - isAdmin || (poll && poll.user_poll_status == 1) ? 返回 :'' + isAdmin || (poll && poll.user_poll_status == 1) ? 返回 :'' } - +

      { poll && poll.polls_description && @@ -353,7 +353,7 @@ class PollInfo extends Component{ 主观题{question_types &&question_types.q_mains}题 }

      - +

      已答 @@ -383,7 +383,7 @@ class PollInfo extends Component{

      {item.question.question_number}、{map[item.question.question_type]} { item.question.is_necessary==1 ? 必答:选答 } - { item.question.question_type == 2 && item.question.min_choices && item.question.max_choices ? + { item.question.question_type == 2 && item.question.min_choices && item.question.max_choices ? { item.question.min_choices == item.question.max_choices ? "可选"+item.question.max_choices+"项" : @@ -399,7 +399,7 @@ class PollInfo extends Component{ }}>{item.question.question_title}

      { //单选 - item.question.question_type==1 && + item.question.question_type==1 && { item.question.answers && item.question.answers.map((i,k)=>{ @@ -415,11 +415,11 @@ class PollInfo extends Component{ return( { - j.id == item.question.id ? - this.saveInputAndAnswer(e,i.answer_id,item.question.id,key,item.question.question_type)} - /> + /> : "" } @@ -437,12 +437,12 @@ class PollInfo extends Component{ } { //多选 - item.question.question_type==2 && - this.ChangeOptionMuntil(value,item.question.id,key)} - disabled={isAdmin || (isStudent && poll && poll.user_poll_status == 1)?true:false} - defaultValue={item.question.poll_answer_ids} - className="answerList" + item.question.question_type==2 && + this.ChangeOptionMuntil(value,item.question.id,key)} + disabled={isAdmin || (isStudent && poll && poll.user_poll_status == 1)?true:false} + defaultValue={item.question.poll_answer_ids} + className="answerList" name={key}> { item.question.answers && item.question.answers.map((i,k)=>{ @@ -458,11 +458,11 @@ class PollInfo extends Component{ return( { - j.id == item.question.id ? - this.saveInputAndAnswer(e,i.answer_id,item.question.id,key,item.question.question_type)} - /> + /> : "" } @@ -480,14 +480,14 @@ class PollInfo extends Component{ } { //主观题 - item.question.question_type==3 && + item.question.question_type==3 &&
      { inputArray && inputArray.map((j,k)=>{ return( { - j.id == item.question.id ? + j.id == item.question.id ? : "" } @@ -497,7 +497,7 @@ class PollInfo extends Component{ }
      } - +
      ) }) @@ -505,7 +505,7 @@ class PollInfo extends Component{
      { - isStudent && poll && poll.user_poll_status == 0 ? + isStudent && poll && poll.user_poll_status == 0 ? @@ -516,4 +516,4 @@ class PollInfo extends Component{ ) } } -export default PollInfo; \ No newline at end of file +export default PollInfo; diff --git a/public/react/src/modules/courses/poll/PollListItem.js b/public/react/src/modules/courses/poll/PollListItem.js index be5e7f88d..a09774524 100644 --- a/public/react/src/modules/courses/poll/PollListItem.js +++ b/public/react/src/modules/courses/poll/PollListItem.js @@ -37,19 +37,19 @@ class PollListItem extends Component{ render(){ let{item,checkBox,courseType,index}=this.props; let {coursesId}=this.props.match.params; - + const IsAdmin =this.props.isAdmin(); const isStudent = this.props.isStudent(); const isNotMember = this.props.isNotMember(); const isAdminOrStudent = this.props.isAdminOrStudent(); - + let t= item.end_time ? moment(item.end_time) - moment() : 0; let canNotLink = !isAdminOrStudent && item.lock_status == 0 return(
      window.$(`.pollitem${index} input`).click() }> { - IsAdmin && + IsAdmin && {checkBox} @@ -59,10 +59,10 @@ class PollListItem extends Component{ { canNotLink ? {item.polls_name} : - this.toDetailPage(`/courses/${coursesId}/polls/${item.id}/detail`)} className="fl font-16 font-bd mt2 color-grey-3 task-hide pointer" style={{"maxWidth":"600px"}} title={item.polls_name}>{item.polls_name} + this.toDetailPage(`/classrooms/${coursesId}/polls/${item.id}/detail`)} className="fl font-16 font-bd mt2 color-grey-3 task-hide pointer" style={{"maxWidth":"600px"}} title={item.polls_name}>{item.polls_name} } { - item.lock_status === 0 ? + item.lock_status === 0 ? @@ -70,7 +70,7 @@ class PollListItem extends Component{ } { - isStudent && ((item.polls_status == 1 && (item.current_status ==0 ||item.current_status ==2)) || (item.polls_status==3 && item.current_status==2)) ? + isStudent && ((item.polls_status == 1 && (item.current_status ==0 ||item.current_status ==2)) || (item.polls_status==3 && item.current_status==2)) ? 未提交:"" }

      @@ -88,11 +88,11 @@ class PollListItem extends Component{ 创建于{moment(item.created_at).fromNow()} } { - item.polls_status ==1 && item.publish_time !=null && + item.polls_status ==1 && item.publish_time !=null && 将发布于{moment(item.publish_time).format(dataformat)} } { - item.polls_status ==2 && item.publish_time !=null && + item.polls_status ==2 && item.publish_time !=null && {"提交剩余时间:"+formatDuring(t)} @@ -100,7 +100,7 @@ class PollListItem extends Component{ { - isStudent ? + isStudent ? { @@ -114,14 +114,14 @@ class PollListItem extends Component{ } :"" } - { isStudent ?canNotLink ?"": this.toDetailPage(`/courses/${coursesId}/polls/${item.id}/detail`)} >查看详情:""} + { isStudent ?canNotLink ?"": this.toDetailPage(`/classrooms/${coursesId}/polls/${item.id}/detail`)} >查看详情:""} { - IsAdmin && + IsAdmin &&
        - { canNotLink ?"": this.toDetailPage(`/courses/${coursesId}/polls/${item.id}/detail`)} >查看详情} - 编辑 - 设置 + { canNotLink ?"": this.toDetailPage(`/classrooms/${coursesId}/polls/${item.id}/detail`)} >查看详情} + 编辑 + 设置
      }

      @@ -130,4 +130,4 @@ class PollListItem extends Component{ ) } } -export default PollListItem \ No newline at end of file +export default PollListItem diff --git a/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js b/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js index caa96287e..3ebd4fab3 100644 --- a/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js +++ b/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js @@ -2326,7 +2326,7 @@ class Listofworksstudentone extends Component { userids: e.myid, }) - window.open(`/courses/${this.state.props.match.params.coursesId}/shixun_homeworks/${e.myid}/shixun_work_report`, '_blank'); + window.open(`/classrooms/${this.state.props.match.params.coursesId}/shixun_homeworks/${e.myid}/shixun_work_report`, '_blank'); // this.viewtraining(e.myid); } viewtraining = (userids) => { @@ -3015,7 +3015,7 @@ class Listofworksstudentone extends Component { userids: data.myid, }) // this.viewtrainingt(e.myid); - window.open(`/courses/${this.state.props.match.params.coursesId}/shixun_homeworks/${data.myid}/shixun_work_report`, '_blank'); + window.open(`/classrooms/${this.state.props.match.params.coursesId}/shixun_homeworks/${data.myid}/shixun_work_report`, '_blank'); } // 查看学员实训信息 Viewstudenttraininginformationt = (e) => { @@ -3025,7 +3025,7 @@ class Listofworksstudentone extends Component { userids: e.myid, }) // this.viewtrainingt(e.myid); - window.open(`/courses/${this.state.props.match.params.coursesId}/shixun_homeworks/${e.myid}/shixun_work_report`, '_blank'); + window.open(`/classrooms/${this.state.props.match.params.coursesId}/shixun_homeworks/${e.myid}/shixun_work_report`, '_blank'); } // 关闭调分 cancelModulationModels = () => { diff --git a/public/react/src/modules/courses/shixunHomework/ShixunStudentWork.js b/public/react/src/modules/courses/shixunHomework/ShixunStudentWork.js index e789e4fc6..7bb53750a 100644 --- a/public/react/src/modules/courses/shixunHomework/ShixunStudentWork.js +++ b/public/react/src/modules/courses/shixunHomework/ShixunStudentWork.js @@ -756,7 +756,7 @@ class ShixunStudentWork extends Component { width: '178px', render: (text, record) => ( - this.Viewstudenttraininginformation("/courses/"+this.props.match.params.coursesId+"/"+this.state.shixuntypes+"/"+this.props.match.params.homeworkid+"/review_detail/"+record.operating)} >查看 + this.Viewstudenttraininginformation("/classrooms/"+this.props.match.params.coursesId+"/"+this.state.shixuntypes+"/"+this.props.match.params.homeworkid+"/review_detail/"+record.operating)} >查看 ) }, @@ -1050,7 +1050,7 @@ export default ShixunStudentWork; // jobsettingsdata&& jobsettingsdata.data === undefined ? "" // : jobsettingsdata&& jobsettingsdata.data.commit_des === null || jobsettingsdata&& jobsettingsdata.data.commit_des === undefined ? "" : // { jobsettingsdata&& jobsettingsdata.data.commit_des} +// href={`/classrooms/${this.state.props.match.params.coursesId}/${this.state.shixuntypes}/${ jobsettingsdata&& jobsettingsdata.data === undefined ? "" : jobsettingsdata&& jobsettingsdata.data.id}/commitsummary/${this.state.props.match.params.homeworkid}`}>{ jobsettingsdata&& jobsettingsdata.data.commit_des} // } // { jobsettingsdata&&jobsettingsdata.data === undefined ? "" : { - this.props.history.replace(`/courses/${this.props.match.params.coursesId}/shixun_homeworks/${this.state.data.homework_common_id}/list?tab=0`); + this.props.history.replace(`/classrooms/${this.props.match.params.coursesId}/shixun_homeworks/${this.state.data.homework_common_id}/list?tab=0`); } setupdalist=(challenge_score,overall_appraisal,work_score)=>{ @@ -354,11 +354,11 @@ class ShixunWorkReport extends Component { {data&&data.course_name} > - + {data===undefined?"":data.category===null?"":data.category.category_name} > - 作业详情 + 作业详情 > {data&&data.username}

      diff --git a/public/react/src/modules/courses/shixunHomework/ShixunhomeWorkItem.js b/public/react/src/modules/courses/shixunHomework/ShixunhomeWorkItem.js index 19186a2a7..70e561c73 100644 --- a/public/react/src/modules/courses/shixunHomework/ShixunhomeWorkItem.js +++ b/public/react/src/modules/courses/shixunHomework/ShixunhomeWorkItem.js @@ -313,15 +313,15 @@ class ShixunhomeWorkItem extends Component{ `}
      - {/*to={`/courses/${this.props.match.params.coursesId}/${discussMessage.homework_id}/jobsettings`}*/} + {/*to={`/classrooms/${this.props.match.params.coursesId}/${discussMessage.homework_id}/jobsettings`}*/} { - this.props.isAdmin?this.hrefjumpskip("/courses/"+this.props.match.params.coursesId+"/"+this.state.shixuntypes+"/"+discussMessage.homework_id+"/list?tab=0")} + this.props.isAdmin?this.hrefjumpskip("/classrooms/"+this.props.match.params.coursesId+"/"+this.state.shixuntypes+"/"+discussMessage.homework_id+"/list?tab=0")} title={discussMessage.name} className="fl mt3 font-16 font-bd color-dark maxwidth333">{discussMessage.name}:"" } { - this.props.isStudent? this.hrefjumpskip(`/courses/${this.props.match.params.coursesId}/${this.state.shixuntypes}/${discussMessage.homework_id}/list?tab=0`)} + this.props.isStudent? this.hrefjumpskip(`/classrooms/${this.props.match.params.coursesId}/${this.state.shixuntypes}/${discussMessage.homework_id}/list?tab=0`)} title={discussMessage.name} className="fl mt3 font-16 font-bd color-dark maxwidth333">{discussMessage.name}:"" } @@ -329,7 +329,7 @@ class ShixunhomeWorkItem extends Component{ { this.props.isNotMember===true? this.props.discussMessage.private_icon===true? {discussMessage.name} - : this.hrefjumpskip(`/courses/${this.props.match.params.coursesId}/${this.state.shixuntypes}/${discussMessage.homework_id}/list?tab=0`)} + : this.hrefjumpskip(`/classrooms/${this.props.match.params.coursesId}/${this.state.shixuntypes}/${discussMessage.homework_id}/list?tab=0`)} title={discussMessage.name} className="fl mt3 font-16 font-bd color-dark maxwidth333">{discussMessage.name}:"" } @@ -367,7 +367,7 @@ class ShixunhomeWorkItem extends Component{ - {/*to={`/courses/${this.props.match.params.coursesId}/${discussMessage.homework_id}/jobsettings`}*/} + {/*to={`/classrooms/${this.props.match.params.coursesId}/${discussMessage.homework_id}/jobsettings`}*/} @@ -379,8 +379,8 @@ class ShixunhomeWorkItem extends Component{ {this.props.isAdminOrCreator()?this.editname(discussMessage.name,discussMessage.homework_id,event)} className={"ml20 btn colorblue font-16 fontweight400 "}>重命名:""} - {/* 设置*/} - 设置 + {/* 设置*/} + 设置 :""} @@ -391,15 +391,15 @@ class ShixunhomeWorkItem extends Component{ :"":"":"":"" } - { this.props.isAdmin?this.hrefjumpskip("/courses/"+this.props.match.params.coursesId+"/"+this.state.shixuntypes+"/"+discussMessage.homework_id+"/list?tab=0")} className="btn colorblue font-16 fontweight400 mr20 fr">作品列表:""} + { this.props.isAdmin?this.hrefjumpskip("/classrooms/"+this.props.match.params.coursesId+"/"+this.state.shixuntypes+"/"+discussMessage.homework_id+"/list?tab=0")} className="btn colorblue font-16 fontweight400 mr20 fr">作品列表:""} { - this.props.isStudent? this.hrefjumpskip("/courses/"+this.props.match.params.coursesId+"/"+this.state.shixuntypes+"/"+discussMessage.homework_id+"/list?tab=0")} className="btn colorblue font-16 fontweight400 mr20 fr mt2">作品列表:"" + this.props.isStudent? this.hrefjumpskip("/classrooms/"+this.props.match.params.coursesId+"/"+this.state.shixuntypes+"/"+discussMessage.homework_id+"/list?tab=0")} className="btn colorblue font-16 fontweight400 mr20 fr mt2">作品列表:"" } { this.props.isNotMember===true? this.props.discussMessage.private_icon===true?"" - :this.hrefjumpskip("/courses/"+this.props.match.params.coursesId+"/"+this.state.shixuntypes+"/"+discussMessage.homework_id+"/list?tab=0")} className="btn colorblue font-16 fontweight400 mr20 fr">作品列表:"" + :this.hrefjumpskip("/classrooms/"+this.props.match.params.coursesId+"/"+this.state.shixuntypes+"/"+discussMessage.homework_id+"/list?tab=0")} className="btn colorblue font-16 fontweight400 mr20 fr">作品列表:"" } @@ -504,7 +504,7 @@ export default ShixunhomeWorkItem; // // let coursesId=this.props.coursesId; // let taskid=this.props.taskid; -// let url="/courses/"+coursesId+"/graduation_tasks/relate_project.json"; +// let url="/classrooms/"+coursesId+"/graduation_tasks/relate_project.json"; // axios.post(url,{ // project_id:taskid // }).then((result)=>{ @@ -528,4 +528,4 @@ export default ShixunhomeWorkItem; // this.setState({ // visible:true // }) -// } \ No newline at end of file +// } diff --git a/public/react/src/modules/courses/shixunHomework/Shixunworkdetails/ShixunWorkModal.js b/public/react/src/modules/courses/shixunHomework/Shixunworkdetails/ShixunWorkModal.js index 22a97ed21..7d3ec97eb 100644 --- a/public/react/src/modules/courses/shixunHomework/Shixunworkdetails/ShixunWorkModal.js +++ b/public/react/src/modules/courses/shixunHomework/Shixunworkdetails/ShixunWorkModal.js @@ -198,7 +198,7 @@ class ShixunWorkModal extends Component{ // message:"提示", // description: response.data.message // }); - window.location.href=`/courses/${this.props.match.params.coursesId}/shixun_homeworks/${this.props.match.params.homeworkid}/student_work?tab=2`; + window.location.href=`/classrooms/${this.props.match.params.coursesId}/shixun_homeworks/${this.props.match.params.homeworkid}/student_work?tab=2`; }else if(response.data.status === -1){ notification.open({ message:"提示", @@ -350,4 +350,4 @@ export default ShixunWorkModal; //
    • //
      // -// : \ No newline at end of file +// : diff --git a/public/react/src/modules/courses/shixunHomework/TraineetraininginformationModal.js b/public/react/src/modules/courses/shixunHomework/TraineetraininginformationModal.js index 7babe1e6b..1ca3d5898 100644 --- a/public/react/src/modules/courses/shixunHomework/TraineetraininginformationModal.js +++ b/public/react/src/modules/courses/shixunHomework/TraineetraininginformationModal.js @@ -219,7 +219,7 @@ class TraineetraininginformationModal extends Component { 经验值: {this.props.experience=== undefined?"0" :this.props.experience}/{this.props.viewtrainingdata === undefined ? "" : this.props.viewtrainingdata.shixun_score}
      {/**/} - {/*这里到时候要做判断*/} @@ -394,4 +394,4 @@ class TraineetraininginformationModal extends Component { } } -export default TraineetraininginformationModal; \ No newline at end of file +export default TraineetraininginformationModal; diff --git a/public/react/src/modules/courses/shixunHomework/Workquestionandanswer.js b/public/react/src/modules/courses/shixunHomework/Workquestionandanswer.js index 20400081a..06fe12965 100644 --- a/public/react/src/modules/courses/shixunHomework/Workquestionandanswer.js +++ b/public/react/src/modules/courses/shixunHomework/Workquestionandanswer.js @@ -616,7 +616,7 @@ export default Workquestionandanswer; {/* {this.props.isAdmin() ?*/} {/* this.state.code_review === true || jobsettingsdata === undefined ? [""] : jobsettingsdata.data.homework_status[0] === "未发布" ? "" :*/} {/* this.ChangeTab(2)}>*/} {/* 代码查重 : ""}*/} @@ -672,11 +672,11 @@ export default Workquestionandanswer; {/* jobsettingsdata&& jobsettingsdata.data === undefined ? ""*/} {/* : jobsettingsdata&& jobsettingsdata.data.commit_des === null || jobsettingsdata&& jobsettingsdata.data.commit_des === undefined ? "" :*/} {/* { jobsettingsdata&& jobsettingsdata.data.commit_des}*/} +{/* href={`/classrooms/${this.state.props.match.params.coursesId}/${this.state.shixuntypes}/${ jobsettingsdata&& jobsettingsdata.data === undefined ? "" : jobsettingsdata&& jobsettingsdata.data.id}/commitsummary/${this.state.props.match.params.homeworkid}`}>{ jobsettingsdata&& jobsettingsdata.data.commit_des}*/} {/* }*/} {/* { jobsettingsdata&&jobsettingsdata.data === undefined ? "" : }*/} {/*
      */} -{/*
      */} \ No newline at end of file +{/*
      */} diff --git a/public/react/src/modules/courses/statistics/Statistics.js b/public/react/src/modules/courses/statistics/Statistics.js index d0f47e21a..883b2db50 100644 --- a/public/react/src/modules/courses/statistics/Statistics.js +++ b/public/react/src/modules/courses/statistics/Statistics.js @@ -419,6 +419,7 @@ class Statistics extends Component{ } { this.props.isAdmin()===true? + // 这里是文件下载 不能替换路由 this.derivefun(this.state.activeKey==="1"?`/courses/${this.props.match.params.coursesId}/export_member_scores_excel.xlsx`:`/courses/${this.props.match.params.coursesId}/export_member_act_score.xlsx`)}>导出 :"" } diff --git a/public/react/src/modules/ecs/EcSetting/CourseSupports/index.js b/public/react/src/modules/ecs/EcSetting/CourseSupports/index.js index 4dbc63c95..7803f9a8e 100644 --- a/public/react/src/modules/ecs/EcSetting/CourseSupports/index.js +++ b/public/react/src/modules/ecs/EcSetting/CourseSupports/index.js @@ -437,7 +437,7 @@ class CourseSupports extends Component { Supportssum:true }) return - } + } if(editnum>1||editnum===0){ this.setState({ // Supportstype:true, @@ -624,7 +624,7 @@ class CourseSupports extends Component {
      毕业要求指标点({data.count} - 课程体系({data.course_count} + 课程体系({data.course_count}
      @@ -655,7 +655,7 @@ class CourseSupports extends Component { item.course_supports.map((t,kes)=>{ return( - {this.props.year&&this.props.year.can_manager===false?"": - } + }
      diff --git a/public/react/src/modules/ecs/EcSetting/index.js b/public/react/src/modules/ecs/EcSetting/index.js index 28c176f01..e1f16be93 100644 --- a/public/react/src/modules/ecs/EcSetting/index.js +++ b/public/react/src/modules/ecs/EcSetting/index.js @@ -149,15 +149,15 @@ class EcSetting extends React.Component { {/* 毕业要求对通用标准的支撑 */} () }> - + {/*学生*/} () }> {/*课程体系*/} - () }> {/*课程体系资源子页面Subpage*/} - () }> {/*课程体系VS毕业要求*/} {/*Curriculumtwo 测试用*/} {/*课程目标*/} - (this.Ontitine(i)} />) }> {/*课程考核方式与数据来源*/} - (this.Ontitine(i)}/>) }> {/*成绩等级设置*/} - (this.Ontitine(i)}/>) }> {/*4课程目标评价方法*/ } - (this.Ontitine(i)}/>) }> {/*5课程达成评价结果*/} - (this.Ontitine(i)} triggerRef={this.bindRef}/>) }>
      @@ -257,4 +257,4 @@ class Curriculum extends Component { } -export default Curriculum; \ No newline at end of file +export default Curriculum; diff --git a/public/react/src/modules/ecs/curriculum/CurriculumSubpage.js b/public/react/src/modules/ecs/curriculum/CurriculumSubpage.js index f7efffd8a..3b4305399 100644 --- a/public/react/src/modules/ecs/curriculum/CurriculumSubpage.js +++ b/public/react/src/modules/ecs/curriculum/CurriculumSubpage.js @@ -16,7 +16,7 @@ class CurriculumSubpage extends Component { console.log(this.props.match.params); } Curriculumstructure=()=>{ - this.props.history.push(`/ecs/major_schools/${this.props.match.params.majorId}/years/${this.props.match.params.yearId}/courses/subpage/ec_course_support_setting/1`); + this.props.history.push(`/ecs/major_schools/${this.props.match.params.majorId}/years/${this.props.match.params.yearId}/classrooms/subpage/ec_course_support_setting/1`); } @@ -32,4 +32,4 @@ class CurriculumSubpage extends Component { } -export default CurriculumSubpage; \ No newline at end of file +export default CurriculumSubpage; diff --git a/public/react/src/modules/modals/Jointheclass.js b/public/react/src/modules/modals/Jointheclass.js index 0ad13c158..fe99f4f87 100644 --- a/public/react/src/modules/modals/Jointheclass.js +++ b/public/react/src/modules/modals/Jointheclass.js @@ -36,7 +36,7 @@ class Jointheclass extends Component { this.props.showNotification(result.data.message); this.props.ysljoinmodalCanceltwo(); if(cousestype===1){ - window.open(`/courses/${id}/informs`) + window.open(`/classrooms/${id}/informs`) } }else { this.props.showNotification(result.data.message); diff --git a/public/react/src/modules/modals/SendTopics.js b/public/react/src/modules/modals/SendTopics.js index 94f134f3f..96320f201 100644 --- a/public/react/src/modules/modals/SendTopics.js +++ b/public/react/src/modules/modals/SendTopics.js @@ -102,16 +102,16 @@ debugger var rurls=""; if(this.state.yslbanksMenu.category==="normal"){ //普通作业 - rurls=`/courses/${this.state.Radiolist}/common_homeworks/${result.data.task_ids}/setting`; + rurls=`/classrooms/${this.state.Radiolist}/common_homeworks/${result.data.task_ids}/setting`; }else if(this.state.yslbanksMenu.category==="group"){ //分组作业 - rurls=`/courses/${this.state.Radiolist}/group_homeworks/${result.data.task_ids}/setting`; + rurls=`/classrooms/${this.state.Radiolist}/group_homeworks/${result.data.task_ids}/setting`; }else if(this.state.yslbanksMenu.category==="exercise"){ // 试卷 - rurls=`/courses/${this.state.Radiolist}/exercises/${result.data.task_ids}/student_exercise_list?tab=3`; + rurls=`/classrooms/${this.state.Radiolist}/exercises/${result.data.task_ids}/student_exercise_list?tab=3`; }else if(this.state.yslbanksMenu.category==="poll") { //问卷 - rurls=`/courses/${this.state.Radiolist}/polls/${result.data.task_ids}/detail?tab=3` + rurls=`/classrooms/${this.state.Radiolist}/polls/${result.data.task_ids}/detail?tab=3` } window.open(rurls,'_blank'); }catch (e) { @@ -124,16 +124,16 @@ debugger var rurls=""; if(this.props.category==="normal"){ //普通作业 - rurls=`/courses/${this.state.Radiolist}/common_homeworks/${result.data.category_id}`; + rurls=`/classrooms/${this.state.Radiolist}/common_homeworks/${result.data.category_id}`; }else if(this.props.category==="group"){ //分组作业 - rurls=`/courses/${this.state.Radiolist}/group_homeworks/${result.data.category_id}`; + rurls=`/classrooms/${this.state.Radiolist}/group_homeworks/${result.data.category_id}`; }else if(this.props.category==="exercise"){ // 试卷 - rurls=`/courses/${this.state.Radiolist}/exercises/${result.data.category_id}`; + rurls=`/classrooms/${this.state.Radiolist}/exercises/${result.data.category_id}`; }else if(this.props.category==="poll") { //问卷 - rurls=`/courses/${this.state.Radiolist}/polls/${result.data.category_id}` + rurls=`/classrooms/${this.state.Radiolist}/polls/${result.data.category_id}` } window.open(rurls,'_blank'); }catch (e) { @@ -231,6 +231,6 @@ debugger
      ) } - + } -export default SendTopics; \ No newline at end of file +export default SendTopics; diff --git a/public/react/src/modules/paths/PathDetail/DetailTop.js b/public/react/src/modules/paths/PathDetail/DetailTop.js index 3304105ec..d542c225e 100644 --- a/public/react/src/modules/paths/PathDetail/DetailTop.js +++ b/public/react/src/modules/paths/PathDetail/DetailTop.js @@ -658,7 +658,7 @@ class DetailTop extends Component{ if(item.course_identity<4){ return( - + @@ -878,4 +878,4 @@ class DetailTop extends Component{ ) } } -export default DetailTop; \ No newline at end of file +export default DetailTop; diff --git a/public/react/src/modules/paths/PathDetail/OpenCourse.js b/public/react/src/modules/paths/PathDetail/OpenCourse.js index ccc11185e..5f6295841 100644 --- a/public/react/src/modules/paths/PathDetail/OpenCourse.js +++ b/public/react/src/modules/paths/PathDetail/OpenCourse.js @@ -26,9 +26,9 @@ class OpenCourse extends Component { console.log(this.props.match.params.pathId) if(value===0){ - window.open(`/courses/news/${this.props.match.params.pathId}/newgold/0 `); + window.open(`/classrooms/news/${this.props.match.params.pathId}/newgold/0 `); }else{ - window.open(`/courses/news/${this.props.match.params.pathId}/newgold/1`); + window.open(`/classrooms/news/${this.props.match.params.pathId}/newgold/1`); } this.props.OpenCourseCancel(); } @@ -97,4 +97,4 @@ class OpenCourse extends Component { } } -export default OpenCourse; \ No newline at end of file +export default OpenCourse; diff --git a/public/react/src/modules/tpm/NewHeader.js b/public/react/src/modules/tpm/NewHeader.js index 00325b9b2..0d3f1d392 100644 --- a/public/react/src/modules/tpm/NewHeader.js +++ b/public/react/src/modules/tpm/NewHeader.js @@ -262,7 +262,7 @@ class NewHeader extends Component { }) if (submitapplicationssum === 0) { if (submitapplicationsvaluedata != undefined) { - window.location.href = "/courses/" + submitapplicationsvaluedata; + window.location.href = "/classrooms/" + submitapplicationsvaluedata; } } else if (submitapplicationssum === 1) { if (submitapplicationsvaluedata != undefined) { @@ -672,7 +672,7 @@ class NewHeader extends Component { return true } else if (url.startsWith('/paths') && match.path.startsWith('/paths')) { return true - } else if (url.startsWith('/courses') && match.path.startsWith('/courses')) { + } else if (url.startsWith('/classrooms') && match.path.startsWith('/classrooms')) { return true } else if (url.startsWith('/competitions') && match.path.startsWith('/competitions')) { return true @@ -732,7 +732,7 @@ class NewHeader extends Component { activeShixuns = true; } else if (match.path.startsWith('/paths')) { activePaths = true; - } else if (match.path.startsWith('/courses')) { + } else if (match.path.startsWith('/classrooms')) { coursestype = true; } else if (match.path.startsWith('/crowdsourcing')) { activePackages = true; @@ -782,7 +782,7 @@ class NewHeader extends Component { if (this.props && this.props.mygetHelmetapi != null) { let shixun = "/shixuns"; let paths = "/paths"; - let courses = "/courses"; + let courses = "/classrooms"; this.props.mygetHelmetapi.navbar.map((item, key) => { var reg = RegExp(item.link); if (shixun.match(reg)) { @@ -995,10 +995,10 @@ class NewHeader extends Component { 实践课程 - {/*
    • 课堂
    • */} + {/*
    • 课堂
    • */}
    • {/*课堂*/} - 教学课堂 + 教学课堂
    • 实训项目 @@ -1185,7 +1185,7 @@ class NewHeader extends Component {
        {this.props.current_user && this.props.current_user.user_identity === "学生" ? "" : coursestypes === false ? -
      • this.getUser("/courses/new")}>{this.props.user && this.props.user.main_site === false ? "新建课堂" : "新建教学课堂"}
      • : "" +
      • this.getUser("/classrooms/new")}>{this.props.user && this.props.user.main_site === false ? "新建课堂" : "新建教学课堂"}
      • : "" } {shixuntype === true ? "" :
      • this.getUser("/shixuns/new", "newshixuns")}>新建实训项目
      • @@ -1210,7 +1210,7 @@ class NewHeader extends Component { - {/* /courses/join_course_multi_role */} + {/* /classrooms/join_course_multi_role */} {this.props.user && this.props.user.main_site === true ?
      • 加入开发项目
      • : ""} diff --git a/public/react/src/modules/tpm/TPMIndexHOC.js b/public/react/src/modules/tpm/TPMIndexHOC.js index a5da90e2c..c29b8cba7 100644 --- a/public/react/src/modules/tpm/TPMIndexHOC.js +++ b/public/react/src/modules/tpm/TPMIndexHOC.js @@ -162,7 +162,7 @@ export function TPMIndexHOC(WrappedComponent) { document.title="实训项目"; }else if(this.props.match.path==="/paths"){ document.title="实践课程"; - }else if(this.props.match.path==="/courses"){ + }else if(this.props.match.path==="/classrooms"){ document.title="教学课堂"; } @@ -176,7 +176,7 @@ export function TPMIndexHOC(WrappedComponent) { // document.title="EduCoder-IT实践教学平台_信息技术类精品课程网_大学生MOOC平台"; // }else if(this.props.match.path==="/paths"){ // document.title="实践课程_项目实战开发_web前端开发实训_web后端开发实战_人工智能技术-EduCoder"; - // }else if(this.props.match.path==="/courses"){ + // }else if(this.props.match.path==="/classrooms"){ // document.title="实训项目_php后端开发_app前端开发_java_python实训_C语言入门课程-EduCoder"; // }else if(this.props.match.path==="/competitions"){ // document.title="在线竞赛_计算机应用大赛_编程大赛_大学生设计大赛_全国高校绿色计算大赛-EduCoder"; diff --git a/public/react/src/modules/tpm/newshixuns/oldNewshixuns.js b/public/react/src/modules/tpm/newshixuns/oldNewshixuns.js index 4904219bb..ea311e04c 100644 --- a/public/react/src/modules/tpm/newshixuns/oldNewshixuns.js +++ b/public/react/src/modules/tpm/newshixuns/oldNewshixuns.js @@ -672,7 +672,7 @@ class Newshixuns extends Component { } ) this.sendhideModaly() - // this.props.history.push(`/courses/${cid}/graduation_topics`); + // this.props.history.push(`/classrooms/${cid}/graduation_topics`); // } } }catch (e) { @@ -859,7 +859,7 @@ class Newshixuns extends Component { // // const { id } = response.data; // // if (id) { // this.props.showNotification('提交成功!'); - // // this.props.history.push(`/courses/${cid}/graduation_topics`); + // // this.props.history.push(`/classrooms/${cid}/graduation_topics`); // // } // } // }) diff --git a/public/react/src/modules/tpm/shixuns/shixusFunction/ShixunSearchBar.js b/public/react/src/modules/tpm/shixuns/shixusFunction/ShixunSearchBar.js index 4211e3196..53bea074c 100644 --- a/public/react/src/modules/tpm/shixuns/shixusFunction/ShixunSearchBar.js +++ b/public/react/src/modules/tpm/shixuns/shixusFunction/ShixunSearchBar.js @@ -1,142 +1,142 @@ -const $ = window.$; - - -$(function(){ - //实训首页筛选的移入和点击事件 - $(".shaiItem").hover(function(){ - var hei=parseInt($(".shaiAllItem").height())-2; - $(this).find(".subshaicontent").css("top",hei); - $(this).find(".subshaicontent").show(); - },function(){ - $(this).find(".subshaicontent").hide(); - }); - - $(".shaiItem").live("click",function(){ - $(".shaiItem").removeClass("active"); - $(this).addClass("active"); - $(".subshaicontent").hide(); - }); - - $(".subshaicontent").live("click", function(event){ - $(".subshaicontent").hide(); - event.stopPropagation(); - }); - - //最新、最热 - $(".bestChoose").click(function(){ - $(".bestChoose").removeClass("active"); - $(this).addClass("active"); - }) - - //实训路径选择导航条 - $(".path-nav li a").live("click",function(){ - $(".path-nav li").removeClass("active"); - $(this).parent().addClass("active"); - }) -}); - -//隐藏我的学习 - function clickControl(item, type){ - var wid=$(item).width(); - var wid1=$(".controlring").width(); - var hidden_course = 1; - if($(".controlring").css("left")=="1px"){ - $(".controlring").animate({left:parseInt(wid-wid1-1)+"px"}); - $(".controlblue").animate({width:wid+"px"}); - $("input[name='hidden_learn']").val('1'); - }else{ - $(".controlring").animate({left:"1px"}); - $(".controlblue").animate({width:"0px"}); - $("input[name='hidden_learn']").val(''); - hidden_course = 0; - } - if(type == "l_shixun"){ - $("#shixun_search_condition").submit(); - } else{ - $.get("/courses?select="+$("#select_type").val()+"&order="+$("#select_order").val()+"&hidden="+hidden_course); - } -} - -// 清空条件 - function clear_style(){ - $("#shixun_search_condition").find('input[type=hidden]').each(function() { - $(this).val(''); - }); -} - -// 精选实训的搜索 #type参数( status:实训状态; diff:实训难度; search:实训搜索; order:最新最热排序) -function filter_search(values, type){ - switch(type){ - case "status": - $("input[name='status']").val(values); - break; - case "diff": - $("input[name='diff']").val(values); - break; - case "search": - $("input[name='search']").val(values); - break; - } - $("#shixun_search_condition").submit(); -} - -// 点击实训体系名称 # type参数(rep:体系大类别; sub:体系子类别; tags 实训标签; order: 排序) -// # name参数: 列表显示使用 -// # values参数: 赋值给表单的值 -$(".shixun_repertoire").live("click", function(event){ - var type = $(this).attr("data-type"); - var name = $(this).attr("data-name"); - var values = $(this).attr("data-values"); - if(type != 'order'){ - $(".subshaicontent a").removeClass("active"); - $(".shaiItem").removeClass("active"); - $("input[name='repertoire'], input[name='sub_repertoire'], input[name='tag_repertoire']").val(''); - } - $(this).closest(".shaiItem").addClass("active"); - $(".subshaicontent").hide(); - $("#search_name").html(name); - - switch(type){ - case "rep": - $("input[name='repertoire']").val(values); - $("#shixun_search_input").val(""); - $("input[name='search']").val(""); - break; - case "sub": - $("input[name='sub_repertoire']").val(values); - break; - case "tag": - $("input[name='tag_repertoire']").val(values); - break; - case "order": - var $sort = $("input[name='sort']"); - var oldValue = $("input[name='order']").val(); - $("input[name='order']").val(values); - var newValue = $("input[name='order']").val(); - if(oldValue != newValue){ - $("input[name='sort']").val("desc"); - }else { - if($sort.val() == "desc"){ - $sort.val("asc"); - }else{ - $sort.val("desc"); - } - } - break; - } - $(this).addClass("active"); // 因为order需要判断样式因此写在switch之后 - $("#shixun_search_condition").submit(); - event.stopPropagation(); -}); - - -// 实训首页回车搜索 -$("#shixun_search_input").live("keyup", function(e){ - // 兼容FF和IE和Opera - var theEvent = e || window.event; - var code = theEvent.keyCode || theEvent.which || theEvent.charCode; - if (code == 13) { - //回车执行查询 - filter_search($(this).val(), "search"); - } -}); \ No newline at end of file +const $ = window.$; + + +$(function(){ + //实训首页筛选的移入和点击事件 + $(".shaiItem").hover(function(){ + var hei=parseInt($(".shaiAllItem").height())-2; + $(this).find(".subshaicontent").css("top",hei); + $(this).find(".subshaicontent").show(); + },function(){ + $(this).find(".subshaicontent").hide(); + }); + + $(".shaiItem").live("click",function(){ + $(".shaiItem").removeClass("active"); + $(this).addClass("active"); + $(".subshaicontent").hide(); + }); + + $(".subshaicontent").live("click", function(event){ + $(".subshaicontent").hide(); + event.stopPropagation(); + }); + + //最新、最热 + $(".bestChoose").click(function(){ + $(".bestChoose").removeClass("active"); + $(this).addClass("active"); + }) + + //实训路径选择导航条 + $(".path-nav li a").live("click",function(){ + $(".path-nav li").removeClass("active"); + $(this).parent().addClass("active"); + }) +}); + +//隐藏我的学习 + function clickControl(item, type){ + var wid=$(item).width(); + var wid1=$(".controlring").width(); + var hidden_course = 1; + if($(".controlring").css("left")=="1px"){ + $(".controlring").animate({left:parseInt(wid-wid1-1)+"px"}); + $(".controlblue").animate({width:wid+"px"}); + $("input[name='hidden_learn']").val('1'); + }else{ + $(".controlring").animate({left:"1px"}); + $(".controlblue").animate({width:"0px"}); + $("input[name='hidden_learn']").val(''); + hidden_course = 0; + } + if(type == "l_shixun"){ + $("#shixun_search_condition").submit(); + } else{ + $.get("/classrooms?select="+$("#select_type").val()+"&order="+$("#select_order").val()+"&hidden="+hidden_course); + } +} + +// 清空条件 + function clear_style(){ + $("#shixun_search_condition").find('input[type=hidden]').each(function() { + $(this).val(''); + }); +} + +// 精选实训的搜索 #type参数( status:实训状态; diff:实训难度; search:实训搜索; order:最新最热排序) +function filter_search(values, type){ + switch(type){ + case "status": + $("input[name='status']").val(values); + break; + case "diff": + $("input[name='diff']").val(values); + break; + case "search": + $("input[name='search']").val(values); + break; + } + $("#shixun_search_condition").submit(); +} + +// 点击实训体系名称 # type参数(rep:体系大类别; sub:体系子类别; tags 实训标签; order: 排序) +// # name参数: 列表显示使用 +// # values参数: 赋值给表单的值 +$(".shixun_repertoire").live("click", function(event){ + var type = $(this).attr("data-type"); + var name = $(this).attr("data-name"); + var values = $(this).attr("data-values"); + if(type != 'order'){ + $(".subshaicontent a").removeClass("active"); + $(".shaiItem").removeClass("active"); + $("input[name='repertoire'], input[name='sub_repertoire'], input[name='tag_repertoire']").val(''); + } + $(this).closest(".shaiItem").addClass("active"); + $(".subshaicontent").hide(); + $("#search_name").html(name); + + switch(type){ + case "rep": + $("input[name='repertoire']").val(values); + $("#shixun_search_input").val(""); + $("input[name='search']").val(""); + break; + case "sub": + $("input[name='sub_repertoire']").val(values); + break; + case "tag": + $("input[name='tag_repertoire']").val(values); + break; + case "order": + var $sort = $("input[name='sort']"); + var oldValue = $("input[name='order']").val(); + $("input[name='order']").val(values); + var newValue = $("input[name='order']").val(); + if(oldValue != newValue){ + $("input[name='sort']").val("desc"); + }else { + if($sort.val() == "desc"){ + $sort.val("asc"); + }else{ + $sort.val("desc"); + } + } + break; + } + $(this).addClass("active"); // 因为order需要判断样式因此写在switch之后 + $("#shixun_search_condition").submit(); + event.stopPropagation(); +}); + + +// 实训首页回车搜索 +$("#shixun_search_input").live("keyup", function(e){ + // 兼容FF和IE和Opera + var theEvent = e || window.event; + var code = theEvent.keyCode || theEvent.which || theEvent.charCode; + if (code == 13) { + //回车执行查询 + filter_search($(this).val(), "search"); + } +}); diff --git a/public/react/src/modules/user/LoginRegisterComponent.js b/public/react/src/modules/user/LoginRegisterComponent.js index c42ceed88..a356e3788 100644 --- a/public/react/src/modules/user/LoginRegisterComponent.js +++ b/public/react/src/modules/user/LoginRegisterComponent.js @@ -893,7 +893,7 @@ class LoginRegisterComponent extends Component { } - // this.props.history.push(`/courses/${this.props.match.params.coursesId}/exercises/${this.props.match.params.Id}/student_exercise_list?tab=`+e.key) + // this.props.history.push(`/classrooms/${this.props.match.params.coursesId}/exercises/${this.props.match.params.Id}/student_exercise_list?tab=`+e.key) } loginonkeyup =(e)=>{ diff --git a/public/react/src/modules/user/usersInfo/InfosBanner.js b/public/react/src/modules/user/usersInfo/InfosBanner.js index face6e094..3e09adf82 100644 --- a/public/react/src/modules/user/usersInfo/InfosBanner.js +++ b/public/react/src/modules/user/usersInfo/InfosBanner.js @@ -40,7 +40,7 @@ class InfosBanner extends Component{ if(this.props&&this.props.mygetHelmetapi!=null){ let shixun="/shixuns"; let paths="/paths"; - let courses="/courses"; + let courses="/classrooms"; this.props.mygetHelmetapi.navbar.map((item,key)=>{ var reg = RegExp(item.link); if(shixun.match(reg)){ @@ -163,4 +163,4 @@ class InfosBanner extends Component{ ) } } -export default InfosBanner; \ No newline at end of file +export default InfosBanner; diff --git a/public/react/src/modules/user/usersInfo/InfosCourse.js b/public/react/src/modules/user/usersInfo/InfosCourse.js index 50d9e7300..c763bc88c 100644 --- a/public/react/src/modules/user/usersInfo/InfosCourse.js +++ b/public/react/src/modules/user/usersInfo/InfosCourse.js @@ -313,8 +313,8 @@ class InfosCourse extends Component{ {/* 289 */} { page == 1 && is_current && !category && - this.props.current_user && this.props.current_user.user_identity != "学生" ? - : "" + this.props.current_user && this.props.current_user.user_identity != "学生" ? + : "" } { (!data || (data && data.courses.length === 0)) && (category || (!category && this.props.current_user && this.props.current_user.user_identity == "学生")) && diff --git a/public/react/src/modules/user/usersInfo/video/VideoProtocol.js b/public/react/src/modules/user/usersInfo/video/VideoProtocol.js index a3b9ed2be..7e1ea5fb1 100644 --- a/public/react/src/modules/user/usersInfo/video/VideoProtocol.js +++ b/public/react/src/modules/user/usersInfo/video/VideoProtocol.js @@ -6,7 +6,7 @@ import okIcon from './images/ok_border.png' function VideoProtocol (props) { const username = props.match.params.username - const { search } = props.history.location; + const { search } = props.history.location; const courseId = search && search.split("=")[1]; return (
        @@ -14,7 +14,7 @@ function VideoProtocol (props) { className="mb26 mt16" separator=" > " items={[ - { to: `${courseId?`/courses/${courseId}/course_videos?open=new`:`/users/${username}/videos/upload`}`, name: '视频上传'}, + { to: `${courseId?`/classrooms/${courseId}/course_videos?open=new`:`/users/${username}/videos/upload`}`, name: '视频上传'}, { name: '内容上传协议'} ]} > @@ -128,7 +128,7 @@ function VideoProtocol (props) {

        4.6.5 其他EduCoder平台认为是符合整体服务需求的特殊情形。

        - +
        五、违约视频的处理原则   
        @@ -141,7 +141,7 @@ function VideoProtocol (props) {

        5.3 EduCoder平台有权启动必要的刑事及民事法律程序,维护EduCoder平台的合法权益,追究违法用户的法律责任。

        - +
        六、协议修改