|
|
@ -212,15 +212,15 @@ class MessagSub extends Component{
|
|
|
|
return '';
|
|
|
|
return '';
|
|
|
|
case "HomeworkCommon" :
|
|
|
|
case "HomeworkCommon" :
|
|
|
|
//学生作业页 homework = parent_container_id
|
|
|
|
//学生作业页 homework = parent_container_id
|
|
|
|
if(item.homework_type===1){
|
|
|
|
if(item.homework_type==="normal"){
|
|
|
|
//普通作业
|
|
|
|
//普通作业
|
|
|
|
return window.open(`/courses/${item.belong_container_id}/common_homeworks/${item.parent_container_id}/list`)
|
|
|
|
return window.open(`/courses/${item.belong_container_id}/common_homeworks/${item.parent_container_id}/list`)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(item.homework_type===3){
|
|
|
|
if(item.homework_type==="group"){
|
|
|
|
//分组作业
|
|
|
|
//分组作业
|
|
|
|
return window.open(`/courses/${item.belong_container_id}/group_homeworks/${item.parent_container_id}/list`)
|
|
|
|
return window.open(`/courses/${item.belong_container_id}/group_homeworks/${item.parent_container_id}/list`)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(item.homework_type===4){
|
|
|
|
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(`/courses/${item.belong_container_id}/shixun_homeworks/${item.parent_container_id}/list?tab=0`)
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -229,15 +229,15 @@ class MessagSub extends Component{
|
|
|
|
return window.open(`/courses/${item.belong_container_id}/graduation_topics/${item.parent_container_id}/detail`)
|
|
|
|
return window.open(`/courses/${item.belong_container_id}/graduation_topics/${item.parent_container_id}/detail`)
|
|
|
|
case "StudentWorksScore" :
|
|
|
|
case "StudentWorksScore" :
|
|
|
|
//学生作业页
|
|
|
|
//学生作业页
|
|
|
|
if(item.homework_type===1){
|
|
|
|
if(item.homework_type==="normal"){
|
|
|
|
//普通作业
|
|
|
|
//普通作业
|
|
|
|
return window.open(`/courses/${item.belong_container_id}/common_homeworks/${item.parent_container_id}/list`)
|
|
|
|
return window.open(`/courses/${item.belong_container_id}/common_homeworks/${item.parent_container_id}/list`)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(item.homework_type===3){
|
|
|
|
if(item.homework_type==="group"){
|
|
|
|
//分组作业
|
|
|
|
//分组作业
|
|
|
|
return window.open(`/courses/${item.belong_container_id}/group_homeworks/${item.parent_container_id}/list`)
|
|
|
|
return window.open(`/courses/${item.belong_container_id}/group_homeworks/${item.parent_container_id}/list`)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(item.homework_type===4){
|
|
|
|
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(`/courses/${item.belong_container_id}/shixun_homeworks/${item.parent_container_id}/list?tab=0`)
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -308,97 +308,97 @@ class MessagSub extends Component{
|
|
|
|
switch (item.parent_container_type) {
|
|
|
|
switch (item.parent_container_type) {
|
|
|
|
case "AnonymousCommentFail" :
|
|
|
|
case "AnonymousCommentFail" :
|
|
|
|
// 课堂-作业列表 homework = container_id
|
|
|
|
// 课堂-作业列表 homework = container_id
|
|
|
|
if(item.homework_type===1){
|
|
|
|
if(item.homework_type==="normal"){
|
|
|
|
//普通作业
|
|
|
|
//普通作业
|
|
|
|
return window.open(`/courses/${item.belong_container_id}/common_homeworks/${item.parent_container_id}/list`)
|
|
|
|
return window.open(`/courses/${item.belong_container_id}/common_homeworks/${item.parent_container_id}/list`)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(item.homework_type===3){
|
|
|
|
if(item.homework_type==="group"){
|
|
|
|
//分组作业
|
|
|
|
//分组作业
|
|
|
|
return window.open(`/courses/${item.belong_container_id}/group_homeworks/${item.parent_container_id}/list`)
|
|
|
|
return window.open(`/courses/${item.belong_container_id}/group_homeworks/${item.parent_container_id}/list`)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(item.homework_type===4){
|
|
|
|
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(`/courses/${item.belong_container_id}/shixun_homeworks/${item.parent_container_id}/list?tab=0`)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case "HomeworkPublish" :
|
|
|
|
case "HomeworkPublish" :
|
|
|
|
if(item.homework_type===1){
|
|
|
|
if(item.homework_type==="normal"){
|
|
|
|
//普通作业
|
|
|
|
//普通作业
|
|
|
|
return window.open(`/courses/${item.belong_container_id}/common_homeworks/${item.parent_container_id}/list`)
|
|
|
|
return window.open(`/courses/${item.belong_container_id}/common_homeworks/${item.parent_container_id}/list`)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(item.homework_type===3){
|
|
|
|
if(item.homework_type==="group"){
|
|
|
|
//分组作业
|
|
|
|
//分组作业
|
|
|
|
return window.open(`/courses/${item.belong_container_id}/group_homeworks/${item.parent_container_id}/list`)
|
|
|
|
return window.open(`/courses/${item.belong_container_id}/group_homeworks/${item.parent_container_id}/list`)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(item.homework_type===4){
|
|
|
|
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(`/courses/${item.belong_container_id}/shixun_homeworks/${item.parent_container_id}/list?tab=0`)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case "AnonymousAppeal" :
|
|
|
|
case "AnonymousAppeal" :
|
|
|
|
if(item.homework_type===1){
|
|
|
|
if(item.homework_type==="normal"){
|
|
|
|
//普通作业
|
|
|
|
//普通作业
|
|
|
|
return window.open(`/courses/${item.belong_container_id}/common_homeworks/${item.parent_container_id}/list`)
|
|
|
|
return window.open(`/courses/${item.belong_container_id}/common_homeworks/${item.parent_container_id}/list`)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(item.homework_type===3){
|
|
|
|
if(item.homework_type==="group"){
|
|
|
|
//分组作业
|
|
|
|
//分组作业
|
|
|
|
return window.open(`/courses/${item.belong_container_id}/group_homeworks/${item.parent_container_id}/list`)
|
|
|
|
return window.open(`/courses/${item.belong_container_id}/group_homeworks/${item.parent_container_id}/list`)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(item.homework_type===4){
|
|
|
|
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(`/courses/${item.belong_container_id}/shixun_homeworks/${item.parent_container_id}/list?tab=0`)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
default :
|
|
|
|
default :
|
|
|
|
// 课堂-作业列表 homework = container_id
|
|
|
|
// 课堂-作业列表 homework = container_id
|
|
|
|
if(item.homework_type===1){
|
|
|
|
if(item.homework_type==="normal"){
|
|
|
|
//普通作业
|
|
|
|
//普通作业
|
|
|
|
return window.open(`/courses/${item.belong_container_id}/common_homeworks/${item.parent_container_id}/list`)
|
|
|
|
return window.open(`/courses/${item.belong_container_id}/common_homeworks/${item.parent_container_id}/list`)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(item.homework_type===3){
|
|
|
|
if(item.homework_type==="group"){
|
|
|
|
//分组作业
|
|
|
|
//分组作业
|
|
|
|
return window.open(`/courses/${item.belong_container_id}/group_homeworks/${item.parent_container_id}/list`)
|
|
|
|
return window.open(`/courses/${item.belong_container_id}/group_homeworks/${item.parent_container_id}/list`)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(item.homework_type===4){
|
|
|
|
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(`/courses/${item.belong_container_id}/shixun_homeworks/${item.parent_container_id}/list?tab=0`)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case "StudentWork" :
|
|
|
|
case "StudentWork" :
|
|
|
|
//课堂-作业 :id = container_id
|
|
|
|
//课堂-作业 :id = container_id
|
|
|
|
if(item.homework_type===1){
|
|
|
|
if(item.homework_type==="normal"){
|
|
|
|
//普通作业
|
|
|
|
//普通作业
|
|
|
|
return window.open(`/courses/${item.belong_container_id}/common_homeworks/${item.container_id}/list`)
|
|
|
|
return window.open(`/courses/${item.belong_container_id}/common_homeworks/${item.container_id}/list`)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(item.homework_type===3){
|
|
|
|
if(item.homework_type==="group"){
|
|
|
|
//分组作业
|
|
|
|
//分组作业
|
|
|
|
return window.open(`/courses/${item.belong_container_id}/group_homeworks/${item.container_id}/list`)
|
|
|
|
return window.open(`/courses/${item.belong_container_id}/group_homeworks/${item.container_id}/list`)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(item.homework_type===4){
|
|
|
|
if(item.homework_type==="practice"){
|
|
|
|
//实训作业
|
|
|
|
//实训作业
|
|
|
|
return window.open(`/courses/${item.belong_container_id}/shixun_homeworks/${item.container_id}/list?tab=0`)
|
|
|
|
return window.open(`/courses/${item.belong_container_id}/shixun_homeworks/${item.container_id}/list?tab=0`)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case "StudentWorksScore" :
|
|
|
|
case "StudentWorksScore" :
|
|
|
|
//课堂-作业 :id = parent_container_id
|
|
|
|
//课堂-作业 :id = parent_container_id
|
|
|
|
if(item.homework_type===1){
|
|
|
|
if(item.homework_type==="normal"){
|
|
|
|
//普通作业
|
|
|
|
//普通作业
|
|
|
|
return window.open(`/courses/${item.belong_container_id}/common_homeworks/${item.parent_container_id}/list`)
|
|
|
|
return window.open(`/courses/${item.belong_container_id}/common_homeworks/${item.parent_container_id}/list`)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(item.homework_type===3){
|
|
|
|
if(item.homework_type==="group"){
|
|
|
|
//分组作业
|
|
|
|
//分组作业
|
|
|
|
return window.open(`/courses/${item.belong_container_id}/group_homeworks/${item.parent_container_id}/list`)
|
|
|
|
return window.open(`/courses/${item.belong_container_id}/group_homeworks/${item.parent_container_id}/list`)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(item.homework_type===4){
|
|
|
|
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(`/courses/${item.belong_container_id}/shixun_homeworks/${item.parent_container_id}/list?tab=0`)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case "StudentWorksScoresAppeal" :
|
|
|
|
case "StudentWorksScoresAppeal" :
|
|
|
|
if(item.homework_type===1){
|
|
|
|
if(item.homework_type==="normal"){
|
|
|
|
//普通作业
|
|
|
|
//普通作业
|
|
|
|
return window.open(`courses/${item.belong_container_id}/common_homeworks/${item.parent_container_id}/list`)
|
|
|
|
return window.open(`courses/${item.belong_container_id}/common_homeworks/${item.parent_container_id}/list`)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(item.homework_type===3){
|
|
|
|
if(item.homework_type==="group"){
|
|
|
|
//分组作业
|
|
|
|
//分组作业
|
|
|
|
return window.open(`/courses/${item.belong_container_id}/group_homeworks/${item.parent_container_id}/list`)
|
|
|
|
return window.open(`/courses/${item.belong_container_id}/group_homeworks/${item.parent_container_id}/list`)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(item.homework_type===4){
|
|
|
|
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(`/courses/${item.belong_container_id}/shixun_homeworks/${item.parent_container_id}/list?tab=0`)
|
|
|
|
}
|
|
|
|
}
|
|
|
|