|
|
|
@ -214,16 +214,17 @@ 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}/list`)
|
|
|
|
|
return window.open(`/courses/${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}/list`)
|
|
|
|
|
return window.open(`/courses/${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=0`)
|
|
|
|
|
return window.open(`/courses/${item.belong_container_id}/shixun_homeworks/${item.parent_container_id}/`)
|
|
|
|
|
}
|
|
|
|
|
return "";
|
|
|
|
|
case "GraduationTopic" :
|
|
|
|
|
// 毕业目标页 parent_container_id
|
|
|
|
|
return window.open(`/courses/${item.belong_container_id}/graduation_topics/${item.parent_container_id}/detail`)
|
|
|
|
@ -231,16 +232,17 @@ class MessagSub extends Component{
|
|
|
|
|
//学生作业页
|
|
|
|
|
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}/question`)
|
|
|
|
|
}
|
|
|
|
|
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}/question`)
|
|
|
|
|
}
|
|
|
|
|
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}/`)
|
|
|
|
|
}
|
|
|
|
|
return "";
|
|
|
|
|
}
|
|
|
|
|
case "Memo" :
|
|
|
|
|
// 交流问答页 :id = parent_container_id
|
|
|
|
@ -500,6 +502,11 @@ class MessagSub extends Component{
|
|
|
|
|
if(item.parent_container_type==="Principal"){
|
|
|
|
|
boolps=false;
|
|
|
|
|
}
|
|
|
|
|
if(item.parent_container_type==="HomeworkCommon"){
|
|
|
|
|
if(item.homework_type===null||item.homework_type===undefined){
|
|
|
|
|
boolps=false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// if(item.container_type==="HomeworkCommon"){
|
|
|
|
|
// if(item.parent_container_type==="AnonymousAppeal"){
|
|
|
|
|