diff --git a/public/react/src/modules/courses/new/CoursesNew.js b/public/react/src/modules/courses/new/CoursesNew.js index a2cc45916..c15a6e9a0 100644 --- a/public/react/src/modules/courses/new/CoursesNew.js +++ b/public/react/src/modules/courses/new/CoursesNew.js @@ -48,6 +48,7 @@ class CoursesNew extends Component { addonAfteronelenone:0, addonAfteronelentwo:0, bordebool:false, + smallspinning:false } } componentDidMount() { @@ -450,8 +451,10 @@ class CoursesNew extends Component { // }); this.setState({ fetching: true, - school: value + school: value, + smallspinning:true }) + this.getschool(value) } }; @@ -478,6 +481,7 @@ class CoursesNew extends Component { }; getschool=(value)=>{ + // this.props.form.setFieldsValue({ // school: value // }) @@ -488,20 +492,27 @@ class CoursesNew extends Component { } }).then((result)=>{ if(result){ - if (result.data.status===0) { - this.setState({ - searchlistscholl: result.data.school_names, - - }) - if(result.data.school_names.length!=0){ - this.setState({ - fetching: false - }) - } - } + if (result.data.status===0) { + this.setState({ + searchlistscholl: result.data.school_names, + smallspinning:false + }) + if(result.data.school_names.length!=0){ + this.setState({ + fetching: false, + }) + } + }else{ + this.setState({ + smallspinning:false + }) + } } }).catch((error)=>{ console.log(error) + this.setState({ + smallspinning:false + }) }) } showApplyForAddOrgModal = () => { @@ -895,6 +906,9 @@ class CoursesNew extends Component { > )} + + + {/*(输入内容出现匹配的下拉菜单←同账号管理的单位信息填写)*/} diff --git a/public/react/src/modules/courses/new/Goldsubject.js b/public/react/src/modules/courses/new/Goldsubject.js index 7e4d42418..bb9480178 100644 --- a/public/react/src/modules/courses/new/Goldsubject.js +++ b/public/react/src/modules/courses/new/Goldsubject.js @@ -55,6 +55,7 @@ class Goldsubject extends Component { addonAfteronelentwo:"", Whethertocreateanewclassroom:true, bordebool:false, + smallspinning:false } } // disabledEndDate= endValue => { @@ -570,7 +571,8 @@ class Goldsubject extends Component { // }); this.setState({ fetching: true, - school: value + school: value, + smallspinning:true }) this.getschool(value) } @@ -598,6 +600,7 @@ class Goldsubject extends Component { }; getschool=(value)=>{ + // this.props.form.setFieldsValue({ // school: value // }) @@ -611,17 +614,24 @@ class Goldsubject extends Component { if (result.data.status===0) { this.setState({ searchlistscholl: result.data.school_names, - + smallspinning:false }) if(result.data.school_names.length!=0){ this.setState({ fetching: false }) } + }else{ + this.setState({ + smallspinning:false + }) } } }).catch((error)=>{ console.log(error) + this.setState({ + smallspinning:false + }) }) } showApplyForAddOrgModal = () => { @@ -1036,9 +1046,12 @@ class Goldsubject extends Component { > )} + + + {/*(输入内容出现匹配的下拉菜单←同账号管理的单位信息填写)*/} - +