dev_forum
杨树明 6 years ago
parent 3eb9008d88
commit 9769bec517

@ -79,7 +79,12 @@ class GraduationTasksedit extends Component{
let listid=[] let listid=[]
let graduation_id=this.state.data.graduation_id; let graduation_id=this.state.data.graduation_id;
for(var list of fileList){ for(var list of fileList){
listid.push(list.response.id) if(list.response!=undefined){
listid.push(list.response.id)
}else{
listid.push(list.id)
}
} }
// console.log(listid) // console.log(listid)
@ -125,7 +130,7 @@ class GraduationTasksedit extends Component{
GraduationTasksedittype=false; GraduationTasksedittype=false;
// window.location.href="/courses/"+course_id+"/graduation/"+graduationId+"/graduation_tasks/"+category_id+"/questions"; // window.location.href="/courses/"+course_id+"/graduation/"+graduationId+"/graduation_tasks/"+category_id+"/questions";
// this.goback() // this.goback()
window.location.href="/courses/"+this.props.match.params.coursesId+"/graduation_tasks/"+graduation_id+"/"+this.props.match.params.category_id +"/setting"; this.props.history.push("/courses/"+this.props.match.params.coursesId+"/graduation_tasks/"+graduation_id+"/"+this.props.match.params.category_id +"/setting");
} }
}).catch((error) => { }).catch((error) => {
console.log(error) console.log(error)

@ -314,7 +314,7 @@ class CoursesNew extends Component {
} }
}).then((result)=>{ }).then((result)=>{
this.setState({ this.setState({
searchlistscholl:result.data.shools_name, searchlistscholl:result.data.school_names,
scholl:value scholl:value
}) })
this.props.form.setFieldsValue({ this.props.form.setFieldsValue({

Loading…
Cancel
Save