|
|
|
@ -193,32 +193,32 @@ class MessagSub extends Component {
|
|
|
|
|
return;
|
|
|
|
|
case 'JoinCourse' :
|
|
|
|
|
// 课堂详情页 :id =
|
|
|
|
|
return window.open(`/courses/${item.belong_container_id}/teachers`)
|
|
|
|
|
return window.open(`/classrooms/${item.belong_container_id}/teachers`)
|
|
|
|
|
case 'StudentJoinCourse':
|
|
|
|
|
// 课堂详情页 :id = container_id
|
|
|
|
|
if (item.tiding_type === 'Apply') {
|
|
|
|
|
return window.open(`/courses/${item.belong_container_id}/teachers`);
|
|
|
|
|
return window.open(`/classrooms/${item.belong_container_id}/teachers`);
|
|
|
|
|
}
|
|
|
|
|
if (item.tiding_type === 'System') {
|
|
|
|
|
//教学案例详情 :id = container_id
|
|
|
|
|
return window.open(`/courses/${item.belong_container_id}/students`);
|
|
|
|
|
return window.open(`/classrooms/${item.belong_container_id}/students`);
|
|
|
|
|
}
|
|
|
|
|
case 'DealCourse':
|
|
|
|
|
// 课堂详情页 :id = container_id
|
|
|
|
|
return window.open(`/courses/${item.belong_container_id}/shixun_homeworks/${item.container_id}`)
|
|
|
|
|
return window.open(`/classrooms/${item.belong_container_id}/shixun_homeworks/${item.container_id}`)
|
|
|
|
|
case 'TeacherJoinCourse':
|
|
|
|
|
// 课堂详情页 :id = container_id
|
|
|
|
|
return window.open(`/courses/${item.belong_container_id}/shixun_homeworks/${item.container_id}`)
|
|
|
|
|
return window.open(`/classrooms/${item.belong_container_id}/shixun_homeworks/${item.container_id}`)
|
|
|
|
|
case 'Course' :
|
|
|
|
|
// 课堂详情页 :id = container_id
|
|
|
|
|
if (item.tiding_type === "Delete") {
|
|
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
return window.open(`/courses/${item.belong_container_id}/shixun_homeworks/${item.container_id}`)
|
|
|
|
|
return window.open(`/classrooms/${item.belong_container_id}/shixun_homeworks/${item.container_id}`)
|
|
|
|
|
case 'ArchiveCourse' :
|
|
|
|
|
// 课堂详情页 :id = container_id
|
|
|
|
|
return window.open(`/courses/${item.belong_container_id}/shixun_homeworks/${item.container_id}`)
|
|
|
|
|
return window.open(`/classrooms/${item.belong_container_id}/shixun_homeworks/${item.container_id}`)
|
|
|
|
|
case "Shixun" :
|
|
|
|
|
return window.open(`/shixuns/${item.identifier}/challenges`)
|
|
|
|
|
case "Subject" :
|
|
|
|
@ -234,33 +234,33 @@ class MessagSub extends Component {
|
|
|
|
|
//学生作业页 homework = parent_container_id
|
|
|
|
|
if (item.homework_type === "normal") {
|
|
|
|
|
//普通作业
|
|
|
|
|
return window.open(`/courses/${item.belong_container_id}/common_homeworks/${item.parent_container_id}/question`)
|
|
|
|
|
return window.open(`/classrooms/${item.belong_container_id}/common_homeworks/${item.parent_container_id}/question`)
|
|
|
|
|
}
|
|
|
|
|
if (item.homework_type === "group") {
|
|
|
|
|
//分组作业
|
|
|
|
|
return window.open(`/courses/${item.belong_container_id}/group_homeworks/${item.parent_container_id}/question`)
|
|
|
|
|
return window.open(`/classrooms/${item.belong_container_id}/group_homeworks/${item.parent_container_id}/question`)
|
|
|
|
|
}
|
|
|
|
|
if (item.homework_type === "practice") {
|
|
|
|
|
//实训作业
|
|
|
|
|
return window.open(`/courses/${item.belong_container_id}/shixun_homeworks/${item.parent_container_id}/list?tab=1`)
|
|
|
|
|
return window.open(`/classrooms/${item.belong_container_id}/shixun_homeworks/${item.parent_container_id}/list?tab=1`)
|
|
|
|
|
}
|
|
|
|
|
return "";
|
|
|
|
|
case "GraduationTopic" :
|
|
|
|
|
// 毕业目标页 parent_container_id
|
|
|
|
|
return window.open(`/courses/${item.belong_container_id}/graduation_topics/${item.parent_container_id}/detail`)
|
|
|
|
|
return window.open(`/classrooms/${item.belong_container_id}/graduation_topics/${item.parent_container_id}/detail`)
|
|
|
|
|
case "StudentWorksScore" :
|
|
|
|
|
//学生作业页
|
|
|
|
|
if (item.homework_type === "normal") {
|
|
|
|
|
//普通作业
|
|
|
|
|
return window.open(`/courses/${item.belong_container_id}/common_homeworks/${item.parent_container_id}/question`)
|
|
|
|
|
return window.open(`/classrooms/${item.belong_container_id}/common_homeworks/${item.parent_container_id}/question`)
|
|
|
|
|
}
|
|
|
|
|
if (item.homework_type === "group") {
|
|
|
|
|
//分组作业
|
|
|
|
|
return window.open(`/courses/${item.belong_container_id}/group_homeworks/${item.parent_container_id}/question`)
|
|
|
|
|
return window.open(`/classrooms/${item.belong_container_id}/group_homeworks/${item.parent_container_id}/question`)
|
|
|
|
|
}
|
|
|
|
|
if (item.homework_type === "practice") {
|
|
|
|
|
//实训作业
|
|
|
|
|
return window.open(`/courses/${item.belong_container_id}/shixun_homeworks/${item.parent_container_id}/list?tab=1`)
|
|
|
|
|
return window.open(`/classrooms/${item.belong_container_id}/shixun_homeworks/${item.parent_container_id}/list?tab=1`)
|
|
|
|
|
}
|
|
|
|
|
return "";
|
|
|
|
|
}
|
|
|
|
@ -314,109 +314,109 @@ class MessagSub extends Component {
|
|
|
|
|
//记得跳评阅页面
|
|
|
|
|
default :
|
|
|
|
|
// 课堂-试卷列表详情 :id = container_id
|
|
|
|
|
return window.open(`/courses/${item.belong_container_id}/exercises/${item.container_id}/student_exercise_list?tab=0`);
|
|
|
|
|
return window.open(`/classrooms/${item.belong_container_id}/exercises/${item.container_id}/student_exercise_list?tab=0`);
|
|
|
|
|
}
|
|
|
|
|
case 'StudentGraduationTopic' :
|
|
|
|
|
//课堂-毕业选题详情 :id = parent_container_id
|
|
|
|
|
return window.open(`/courses/${item.belong_container_id}/graduation_topics/${item.parent_container_id}/detail`)
|
|
|
|
|
return window.open(`/classrooms/${item.belong_container_id}/graduation_topics/${item.parent_container_id}/detail`)
|
|
|
|
|
case 'DealStudentTopicSelect' :
|
|
|
|
|
//课堂-毕业选题详情 :id = parent_container_id
|
|
|
|
|
return window.open(`/courses/${item.belong_container_id}/graduation_topics/${item.parent_container_id}/detail`)
|
|
|
|
|
return window.open(`/classrooms/${item.belong_container_id}/graduation_topics/${item.parent_container_id}/detail`)
|
|
|
|
|
case 'GraduationTask' :
|
|
|
|
|
//课堂-毕业任务页 :id = container_id
|
|
|
|
|
return window.open(`/courses/${item.belong_container_id}/graduation_tasks/${item.container_id}`)
|
|
|
|
|
return window.open(`/classrooms/${item.belong_container_id}/graduation_tasks/${item.container_id}`)
|
|
|
|
|
case "GraduationWork" :
|
|
|
|
|
//课堂-毕业xx页 :id = container_id
|
|
|
|
|
return window.open(`/courses/${item.belong_container_id}/graduation_tasks/${item.container_id}`)
|
|
|
|
|
return window.open(`/classrooms/${item.belong_container_id}/graduation_tasks/${item.container_id}`)
|
|
|
|
|
case "GraduationWorkScore" :
|
|
|
|
|
// 课堂-毕业xx页 :id = parent_container_id
|
|
|
|
|
return window.open(`/courses/${item.belong_container_id}/graduation_tasks/${item.parent_container_id}`)
|
|
|
|
|
return window.open(`/classrooms/${item.belong_container_id}/graduation_tasks/${item.parent_container_id}`)
|
|
|
|
|
case "HomeworkCommon" :
|
|
|
|
|
switch (item.parent_container_type) {
|
|
|
|
|
case "AnonymousCommentFail" :
|
|
|
|
|
// 课堂-作业列表 homework = container_id
|
|
|
|
|
if (item.homework_type === "normal") {
|
|
|
|
|
//普通作业
|
|
|
|
|
return window.open(`/courses/${item.belong_container_id}/common_homeworks/${item.parent_container_id}/list`)
|
|
|
|
|
return window.open(`/classrooms/${item.belong_container_id}/common_homeworks/${item.parent_container_id}/list`)
|
|
|
|
|
}
|
|
|
|
|
if (item.homework_type === "group") {
|
|
|
|
|
//分组作业
|
|
|
|
|
return window.open(`/courses/${item.belong_container_id}/group_homeworks/${item.parent_container_id}/list`)
|
|
|
|
|
return window.open(`/classrooms/${item.belong_container_id}/group_homeworks/${item.parent_container_id}/list`)
|
|
|
|
|
}
|
|
|
|
|
if (item.homework_type === "practice") {
|
|
|
|
|
//实训作业
|
|
|
|
|
return window.open(`/courses/${item.belong_container_id}/shixun_homeworks/${item.parent_container_id}/list?tab=0`)
|
|
|
|
|
return window.open(`/classrooms/${item.belong_container_id}/shixun_homeworks/${item.parent_container_id}/list?tab=0`)
|
|
|
|
|
}
|
|
|
|
|
case "HomeworkPublish" :
|
|
|
|
|
if (item.homework_type === "normal") {
|
|
|
|
|
//普通作业
|
|
|
|
|
return window.open(`/courses/${item.belong_container_id}/common_homeworks/${item.parent_container_id}/list`)
|
|
|
|
|
return window.open(`/classrooms/${item.belong_container_id}/common_homeworks/${item.parent_container_id}/list`)
|
|
|
|
|
}
|
|
|
|
|
if (item.homework_type === "group") {
|
|
|
|
|
//分组作业
|
|
|
|
|
return window.open(`/courses/${item.belong_container_id}/group_homeworks/${item.parent_container_id}/list`)
|
|
|
|
|
return window.open(`/classrooms/${item.belong_container_id}/group_homeworks/${item.parent_container_id}/list`)
|
|
|
|
|
}
|
|
|
|
|
if (item.homework_type === "practice") {
|
|
|
|
|
//实训作业
|
|
|
|
|
return window.open(`/courses/${item.belong_container_id}/shixun_homeworks/${item.parent_container_id}/list?tab=0`)
|
|
|
|
|
return window.open(`/classrooms/${item.belong_container_id}/shixun_homeworks/${item.parent_container_id}/list?tab=0`)
|
|
|
|
|
}
|
|
|
|
|
case "AnonymousAppeal" :
|
|
|
|
|
if (item.homework_type === "normal") {
|
|
|
|
|
//普通作业
|
|
|
|
|
return window.open(`/courses/${item.belong_container_id}/common_homeworks/${item.parent_container_id}/list`)
|
|
|
|
|
return window.open(`/classrooms/${item.belong_container_id}/common_homeworks/${item.parent_container_id}/list`)
|
|
|
|
|
}
|
|
|
|
|
if (item.homework_type === "group") {
|
|
|
|
|
//分组作业
|
|
|
|
|
return window.open(`/courses/${item.belong_container_id}/group_homeworks/${item.parent_container_id}/list`)
|
|
|
|
|
return window.open(`/classrooms/${item.belong_container_id}/group_homeworks/${item.parent_container_id}/list`)
|
|
|
|
|
}
|
|
|
|
|
if (item.homework_type === "practice") {
|
|
|
|
|
//实训作业
|
|
|
|
|
return window.open(`/courses/${item.belong_container_id}/shixun_homeworks/${item.parent_container_id}/list?tab=0`)
|
|
|
|
|
return window.open(`/classrooms/${item.belong_container_id}/shixun_homeworks/${item.parent_container_id}/list?tab=0`)
|
|
|
|
|
}
|
|
|
|
|
default :
|
|
|
|
|
// 课堂-作业列表 homework = container_id
|
|
|
|
|
if (item.homework_type === "normal") {
|
|
|
|
|
//普通作业
|
|
|
|
|
return window.open(`/courses/${item.belong_container_id}/common_homeworks/${item.parent_container_id}/list`)
|
|
|
|
|
return window.open(`/classrooms/${item.belong_container_id}/common_homeworks/${item.parent_container_id}/list`)
|
|
|
|
|
}
|
|
|
|
|
if (item.homework_type === "group") {
|
|
|
|
|
//分组作业
|
|
|
|
|
return window.open(`/courses/${item.belong_container_id}/group_homeworks/${item.parent_container_id}/list`)
|
|
|
|
|
return window.open(`/classrooms/${item.belong_container_id}/group_homeworks/${item.parent_container_id}/list`)
|
|
|
|
|
}
|
|
|
|
|
if (item.homework_type === "practice") {
|
|
|
|
|
//实训作业
|
|
|
|
|
return window.open(`/courses/${item.belong_container_id}/shixun_homeworks/${item.parent_container_id}/list?tab=0`)
|
|
|
|
|
return window.open(`/classrooms/${item.belong_container_id}/shixun_homeworks/${item.parent_container_id}/list?tab=0`)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
case "StudentWork" :
|
|
|
|
|
//课堂-作业 :id = container_id
|
|
|
|
|
if (item.homework_type === "normal") {
|
|
|
|
|
//普通作业
|
|
|
|
|
return window.open(`/courses/${item.belong_container_id}/common_homeworks/${item.parent_container_id}/${item.container_id}/appraise`)
|
|
|
|
|
return window.open(`/classrooms/${item.belong_container_id}/common_homeworks/${item.parent_container_id}/${item.container_id}/appraise`)
|
|
|
|
|
}
|
|
|
|
|
if (item.homework_type === "group") {
|
|
|
|
|
//分组作业/courses/1208/group_homeworks/22373/1219130/appraise
|
|
|
|
|
return window.open(`/courses/${item.belong_container_id}/group_homeworks/${item.parent_container_id}/${item.container_id}/appraise`)
|
|
|
|
|
return window.open(`/classrooms/${item.belong_container_id}/group_homeworks/${item.parent_container_id}/${item.container_id}/appraise`)
|
|
|
|
|
}
|
|
|
|
|
if (item.homework_type === "practice") {
|
|
|
|
|
//实训作业
|
|
|
|
|
return window.open(`/courses/${item.belong_container_id}/shixun_homeworks/${item.parent_container_id}/list?tab=0`)
|
|
|
|
|
return window.open(`/classrooms/${item.belong_container_id}/shixun_homeworks/${item.parent_container_id}/list?tab=0`)
|
|
|
|
|
}
|
|
|
|
|
case "StudentWorksScore" :
|
|
|
|
|
//课堂-作业 :id = parent_container_id
|
|
|
|
|
// if(item.homework_type==="normal"){
|
|
|
|
|
// //普通作业
|
|
|
|
|
// return window.open(`/courses/${item.belong_container_id}/common_homeworks/${item.parent_container_id}/list`)
|
|
|
|
|
// return window.open(`/classrooms/${item.belong_container_id}/common_homeworks/${item.parent_container_id}/list`)
|
|
|
|
|
// }
|
|
|
|
|
// if(item.homework_type==="group"){
|
|
|
|
|
// //分组作业
|
|
|
|
|
// return window.open(`/courses/${item.belong_container_id}/group_homeworks/${item.parent_container_id}/list`)
|
|
|
|
|
// return window.open(`/classrooms/${item.belong_container_id}/group_homeworks/${item.parent_container_id}/list`)
|
|
|
|
|
// }
|
|
|
|
|
// if(item.homework_type==="practice"){
|
|
|
|
|
// //实训作业
|
|
|
|
|
// return window.open(`/courses/${item.belong_container_id}/shixun_homeworks/${item.parent_container_id}/list?tab=0`)
|
|
|
|
|
// return window.open(`/classrooms/${item.belong_container_id}/shixun_homeworks/${item.parent_container_id}/list?tab=0`)
|
|
|
|
|
// }
|
|
|
|
|
return window.open(`/courses/${item.belong_container_id}/common_homeworks/${item.trigger_user.id}/${item.parent_container_id}/appraise`);
|
|
|
|
|
return window.open(`/classrooms/${item.belong_container_id}/common_homeworks/${item.trigger_user.id}/${item.parent_container_id}/appraise`);
|
|
|
|
|
|
|
|
|
|
case "StudentWorksScoresAppeal" :
|
|
|
|
|
// if(item.homework_type==="normal"){
|
|
|
|
@ -425,13 +425,13 @@ class MessagSub extends Component {
|
|
|
|
|
// }
|
|
|
|
|
// if(item.homework_type==="group"){
|
|
|
|
|
// //分组作业
|
|
|
|
|
// return window.open(`/courses/${item.belong_container_id}/group_homeworks/${item.parent_container_id}/list`)
|
|
|
|
|
// return window.open(`/classrooms/${item.belong_container_id}/group_homeworks/${item.parent_container_id}/list`)
|
|
|
|
|
// }
|
|
|
|
|
// if(item.homework_type==="practice"){
|
|
|
|
|
// //实训作业
|
|
|
|
|
// return window.open(`/courses/${item.belong_container_id}/shixun_homeworks/${item.parent_container_id}/list?tab=0`)
|
|
|
|
|
// return window.open(`/classrooms/${item.belong_container_id}/shixun_homeworks/${item.parent_container_id}/list?tab=0`)
|
|
|
|
|
// }
|
|
|
|
|
return window.open(`/courses/${item.belong_container_id}/common_homeworks/${item.trigger_user.id}/${item.parent_container_id}/appraise`);
|
|
|
|
|
return window.open(`/classrooms/${item.belong_container_id}/common_homeworks/${item.trigger_user.id}/${item.parent_container_id}/appraise`);
|
|
|
|
|
case "ChallengeWorkScore" :
|
|
|
|
|
return '';
|
|
|
|
|
case "SendMessage" :
|
|
|
|
@ -488,30 +488,30 @@ class MessagSub extends Component {
|
|
|
|
|
}
|
|
|
|
|
return '';
|
|
|
|
|
case "PublicCourseStart":
|
|
|
|
|
return window.open(`/courses/${item.container_id}/informs`);
|
|
|
|
|
return window.open(`/classrooms/${item.container_id}/informs`);
|
|
|
|
|
case "SubjectStartCourse":
|
|
|
|
|
return window.open(`/paths/${item.container_id}`);
|
|
|
|
|
case "ResubmitStudentWork":
|
|
|
|
|
if (item.homework_type === "normal") {
|
|
|
|
|
//普通作业
|
|
|
|
|
return window.open(`/courses/${item.belong_container_id}/common_homeworks/${item.parent_container_id}/${item.container_id}/appraise`);
|
|
|
|
|
return window.open(`/classrooms/${item.belong_container_id}/common_homeworks/${item.parent_container_id}/${item.container_id}/appraise`);
|
|
|
|
|
}
|
|
|
|
|
if (item.homework_type === "group") {
|
|
|
|
|
//分组作业
|
|
|
|
|
return window.open(`/courses/${item.belong_container_id}/group_homeworks/${item.parent_container_id}/${item.container_id}/appraise`);
|
|
|
|
|
return window.open(`/classrooms/${item.belong_container_id}/group_homeworks/${item.parent_container_id}/${item.container_id}/appraise`);
|
|
|
|
|
}
|
|
|
|
|
case "AdjustScore":
|
|
|
|
|
//belong_container_id course的id
|
|
|
|
|
if (item.homework_type === "normal") {
|
|
|
|
|
//普通作业
|
|
|
|
|
return window.open(`/courses/${item.belong_container_id}/common_homeworks/${item.parent_container_id}`);
|
|
|
|
|
return window.open(`/classrooms/${item.belong_container_id}/common_homeworks/${item.parent_container_id}`);
|
|
|
|
|
}
|
|
|
|
|
if (item.homework_type === "group") {
|
|
|
|
|
//分组作业
|
|
|
|
|
return window.open(`/courses/${item.belong_container_id}/group_homeworks/${item.parent_container_id}`);
|
|
|
|
|
return window.open(`/classrooms/${item.belong_container_id}/group_homeworks/${item.parent_container_id}`);
|
|
|
|
|
}
|
|
|
|
|
case 'LiveLink':
|
|
|
|
|
return window.open(`/courses/${item.belong_container_id}/course_videos?open=live`);
|
|
|
|
|
return window.open(`/classrooms/${item.belong_container_id}/course_videos?open=live`);
|
|
|
|
|
case 'Hack':
|
|
|
|
|
if (item.extra && item.parent_container_type !== 'HackDelete') {
|
|
|
|
|
return window.open(`/problems/${item.extra}/edit`);
|
|
|
|
|