毕设任务跳转和字数限制调整

dev_local_2
杨树明 6 years ago
parent dc9b780321
commit f02fda3c59

@ -77,16 +77,6 @@ class GraduationTasksSubmitedit extends Component{
}
setedit=()=>{
// let coursesId=this.props.match.params.coursesId;
// let workId=this.props.match.params.work_Id;
// let {workslist}=this.state
// let task_id=workslist&&workslist.task_id;
// window.location.href="/courses/"+coursesId+"/graduation_tasks/"+task_id+"/"+workId+"/works/edit";
this.goback()
}
handleSelectChange = (value) => {
console.log(value);
@ -103,7 +93,8 @@ class GraduationTasksSubmitedit extends Component{
// }else{
// this.props.history.push(this.props.current_user.first_category_url);
// }
this.props.history.goBack()
this.props.history.replace(`/courses/${this.state.workslist.course_id}/graduation_tasks/${this.state.workslist.graduation_id}`);
}
@ -378,6 +369,9 @@ class GraduationTasksSubmitedit extends Component{
}
Commoninterface =(fileList,selectmemberslist,workslist)=>{
let coursesIds=this.props.match.params.coursesId
let workId=this.props.match.params.work_Id;
let userids=[];
for(var list of selectmemberslist){
@ -424,7 +418,7 @@ class GraduationTasksSubmitedit extends Component{
this.setState({
spinnings:true
})
let workId=this.props.match.params.work_Id;
// if(fileList.length===0){
// this.setState({
@ -444,8 +438,8 @@ class GraduationTasksSubmitedit extends Component{
spinnings:false
})
if(response!== undefined){
this.setedit()
// this.goback()
window.location.href=`/courses/${coursesIds}/graduation_tasks/${workId}/appraise`
}
// if(response.status===200) {
// GraduationTasksnewtype=false;

@ -105,7 +105,7 @@ class GraduationTasksSubmitnew extends Component{
// }else{
// this.props.history.push(this.props.current_user.first_category_url);
// }
this.props.history.goBack()
this.props.history.replace(`/courses/${this.state.workslist.course_id}/graduation_tasks/${this.state.workslist.graduation_id}`);
}
@ -361,9 +361,7 @@ class GraduationTasksSubmitnew extends Component{
return false;
}
}
gocannel=()=>{
this.props.history.goBack()
}
//公用数据
Commoninterface = (fileList,selectmemberslist,workslist)=>{

@ -76,7 +76,9 @@ class GraduationTasksappraise extends Component{
// }else{
// this.props.history.push(this.props.current_user.first_category_url);
// }
this.props.history.goBack()
this.props.history.replace(`/courses/${this.state.datalist.course_id}/graduation_tasks/${this.state.datalist.graduation_id}/${this.state.datalist.task_id}/list`);
}
Cancelvisible=()=>{

@ -88,7 +88,7 @@ class GraduationTasksedit extends Component{
// }else{
// this.props.history.push(this.props.current_user.first_category_url);
// }
this.props.history.goBack()
this.props.history.replace(`/courses/${this.state.data.course_id}/graduation_tasks/${this.state.data.graduation_id}`);
}

@ -113,7 +113,8 @@ class GraduationTasksnew extends Component {
// }else{
// this.props.history.push(this.props.current_user.first_category_url);
// }
this.props.history.goBack()
// this.props.history.goBack()
this.props.history.replace(`/courses/${this.props.match.params.coursesId}/graduation_tasks/${this.props.match.params.category_id}`);
}

@ -771,7 +771,10 @@ class GraduationTaskssettingapp extends Component{
// }else{
// this.props.history.push(this.props.current_user.first_category_url);
// }
this.props.history.goBack()
// this.props.history.goBack()
// this.props.history.replace(this.props.current_user.first_category_url);
this.props.history.replace(`/courses/${this.state.settingdata.course_id}/graduation_tasks/${this.state.settingdata.graduation_id}`);
}
isgoback=()=>{

@ -64,9 +64,10 @@ class GraduationTaskssettinglist extends Component{
// if(courseId===undefined){
// this.props.history.push("/courses");
// }else{
// this.props.history.push(this.props.current_user.first_category_url);
// this.props.history.push(this.props.current_user.first_category_url);
// }
this.props.history.goBack()
// this.props.history.goBack()
this.props.history.replace(`/courses/${this.state.taskslistdata.course_id}/graduation_tasks/${this.state.taskslistdata.graduation_id}`);
}
seacthdata=(teacher_comment,task_status,course_group,cross_comment,order,b_order,search,pages)=>{

@ -62,7 +62,8 @@ class GraduationTasksquestions extends Component{
// this.props.history.push(this.props.current_user.first_category_url);
// }
this.props.history.goBack()
// this.props.history.goBack()
this.props.history.replace(`/courses/${this.state.questionslist.course_id}/graduation_tasks/${this.state.questionslist.graduation_id}`);
}
end=()=>{

Loading…
Cancel
Save