dev_forum
杨树明 5 years ago
parent fb44e88969
commit 64ae7a2cb6

@ -301,7 +301,7 @@ class CoursesNew extends Component {
if(value!=""){ if(value!=""){
this.props.form.setFieldsValue({ this.props.form.setFieldsValue({
classroom:value, classroom:value,
course:value // course:value
}); });
this.Searchvalue(value) this.Searchvalue(value)
} }
@ -311,7 +311,7 @@ class CoursesNew extends Component {
handleChange=(value)=>{ handleChange=(value)=>{
this.props.form.setFieldsValue({ this.props.form.setFieldsValue({
course:value, // course:value,
classroom:value classroom:value
}) })
}; };
@ -320,7 +320,7 @@ class CoursesNew extends Component {
if(value!="") { if(value!="") {
this.props.form.setFieldsValue({ this.props.form.setFieldsValue({
school: value, // school: value,
fetching: true, fetching: true,
}); });
@ -331,7 +331,7 @@ class CoursesNew extends Component {
handleChangeschools=(value)=>{ handleChangeschools=(value)=>{
this.props.form.setFieldsValue({ this.props.form.setFieldsValue({
school: value, // school: value,
fetching: true, fetching: true,
}); });
} }
@ -347,9 +347,9 @@ class CoursesNew extends Component {
}; };
getschool=(value)=>{ getschool=(value)=>{
this.props.form.setFieldsValue({ // this.props.form.setFieldsValue({
school: value // school: value
}) // })
let url="/schools/school_list.json"; let url="/schools/school_list.json";
axios.get(url,{ axios.get(url,{
params: { params: {
@ -359,7 +359,7 @@ class CoursesNew extends Component {
if (result.data.status===0) { if (result.data.status===0) {
this.setState({ this.setState({
searchlistscholl: result.data.school_names, searchlistscholl: result.data.school_names,
school: value // school: value
}) })
} }

Loading…
Cancel
Save