|
|
|
@ -290,11 +290,13 @@ class CoursesNew extends Component {
|
|
|
|
|
search:value
|
|
|
|
|
}).then((result)=>{
|
|
|
|
|
// console.log(result.data)
|
|
|
|
|
this.setState({
|
|
|
|
|
searchlist:result.data.course_lists,
|
|
|
|
|
// course:value,
|
|
|
|
|
fetching:false
|
|
|
|
|
})
|
|
|
|
|
if (response.data.message===undefined) {
|
|
|
|
|
this.setState({
|
|
|
|
|
searchlist: result.data.course_lists,
|
|
|
|
|
// course:value,
|
|
|
|
|
fetching: false
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
// this.props.form.setFieldsValue({
|
|
|
|
|
// course:value
|
|
|
|
|
// })
|
|
|
|
@ -343,13 +345,15 @@ class CoursesNew extends Component {
|
|
|
|
|
search: value
|
|
|
|
|
}
|
|
|
|
|
}).then((result)=>{
|
|
|
|
|
this.setState({
|
|
|
|
|
searchlistscholl:result.data.school_names,
|
|
|
|
|
scholl:value
|
|
|
|
|
})
|
|
|
|
|
this.props.form.setFieldsValue({
|
|
|
|
|
scholl:value
|
|
|
|
|
})
|
|
|
|
|
if (response.data.message===undefined) {
|
|
|
|
|
this.setState({
|
|
|
|
|
searchlistscholl: result.data.school_names,
|
|
|
|
|
scholl: value
|
|
|
|
|
})
|
|
|
|
|
this.props.form.setFieldsValue({
|
|
|
|
|
scholl: value
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}).catch((error)=>{
|
|
|
|
|
console.log(error)
|
|
|
|
|
})
|
|
|
|
|