diff --git a/public/react/src/modules/courses/new/Goldsubject.js b/public/react/src/modules/courses/new/Goldsubject.js index 998050409..9695f60ff 100644 --- a/public/react/src/modules/courses/new/Goldsubject.js +++ b/public/react/src/modules/courses/new/Goldsubject.js @@ -54,6 +54,7 @@ class Goldsubject extends Component { addonAfteronelenone:"", addonAfteronelentwo:"", Whethertocreateanewclassroom:true, + bordebool:false, checkbofrup:[ {module_type:"announcement",module_name:"公告栏"},{module_type:"online_learning",module_name:"在线学习"} ,{module_type:"shixun_homework",module_name:"实训作业"},{module_type:"common_homework",module_name:"普通作业"} @@ -528,17 +529,26 @@ class Goldsubject extends Component { }; handleChange=(value)=>{ - if(value){ - setTimeout(()=>{ - this.props.form.setFieldsValue({ - course:value+"", - classroom:value+"", - }); - },100) + if(value.length>60){ + this.setState({ + bordebool:true, + }) + }else if(value.length===0){ + this.setState({ + bordebool:true, + }) + }else{ + this.setState({ + bordebool:false, + }) + } + }else{ + this.setState({ + bordebool:true + }) - } - }; + } }; handleSearchschool=(value)=>{ @@ -607,7 +617,7 @@ class Goldsubject extends Component { this.applyForAddOrgForm.setVisible(true) } render() { - let {datatime,datatimetwo,school,searchlistscholl,Whethertocreateanewclassroom,addonAfteronelenone,addonAfteronelentwo} = this.state; + let {datatime,datatimetwo,school,searchlistscholl,Whethertocreateanewclassroom,bordebool,addonAfteronelenone,addonAfteronelentwo} = this.state; const {getFieldDecorator} = this.props.form; const propsWithoutForm = Object.assign({}, this.props) delete propsWithoutForm.form @@ -753,6 +763,20 @@ class Goldsubject extends Component { } ` } +