competitions
杨树林 5 years ago
parent f351a96ccd
commit c03a172542

@ -99,16 +99,16 @@ class SendTopics extends Component{
var rurls="";
if(this.state.yslbanksMenu.category==="normal"){
//普通作业
rurls=`/courses/${this.state.Radiolist}/common_homeworks/${result.data.task_ids}/list`;
rurls=`/courses/${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}/list`;
rurls=`/courses/${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=0`;
rurls=`/courses/${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`
rurls=`/courses/${this.state.Radiolist}/polls/${result.data.task_ids}/detail?tab=3`
}
window.open(rurls,'_blank');
}catch (e) {

@ -83,9 +83,9 @@ class BanksMenu extends Component{
}
topicssavedelete=(id,type)=>{
console.log("删除了");
console.log(id);
console.log(type);
// console.log("删除了");
// console.log(id);
// console.log(type);
const url = `/question_banks/multi_delete.json`;
axios.delete(url, { data: {
object_id: [id],

Loading…
Cancel
Save