调整题库跳转

competitions
杨树林 5 years ago
parent 21b3ed3e16
commit d33014e9d5

@ -95,7 +95,7 @@ class SendTopics extends Component{
}catch (e) {
}
debugger
if(this.props.mysendall===true){
//详情页面跳过来的
try {
@ -119,20 +119,21 @@ class SendTopics extends Component{
}
}else{
//外部多个列表页跳过来的
debugger
try {
var rurls="";
if(this.state.category==="normal"){
if(this.props.category==="normal"){
//普通作业
rurls=`/courses/${this.state.Radiolist}/common_homeworks/${result.data.category_id}`;
}else if(this.state.category==="group"){
}else if(this.props.category==="group"){
//分组作业
rurls=`/courses/${this.state.Radiolist}/group_homeworks/${result.data.category_id}`;
}else if(this.state.category==="exercise"){
}else if(this.props.category==="exercise"){
// 试卷
rurls=`/courses/${this.state.Radiolist}/exercises/${result.data.category_id}`;
}else if(this.state.category==="poll") {
}else if(this.props.category==="poll") {
//问卷
rurls=`courses/${this.state.Radiolist}/polls/${result.data.category_id}`
rurls=`/courses/${this.state.Radiolist}/polls/${result.data.category_id}`
}
window.open(rurls,'_blank');
}catch (e) {

Loading…
Cancel
Save