diff --git a/public/react/src/modules/courses/signin/model/Createsignmodel.js b/public/react/src/modules/courses/signin/model/Createsignmodel.js index 6b504e4b7..111e029c4 100644 --- a/public/react/src/modules/courses/signin/model/Createsignmodel.js +++ b/public/react/src/modules/courses/signin/model/Createsignmodel.js @@ -36,7 +36,8 @@ const CollectionCreateForm = Form.create({ name: 'form_in_modal' })( start_time:"", end_time:"", attendance_date:"", - newmode:null + newmode:null, + groupstype:false } } @@ -72,7 +73,7 @@ const CollectionCreateForm = Form.create({ name: 'form_in_modal' })( }) }) - console.log(newlist) + // console.log(newlist) // this.setState({ // // }) @@ -82,7 +83,8 @@ const CollectionCreateForm = Form.create({ name: 'form_in_modal' })( start_time:new Date(this.props.attendancesdata.start_time), end_time:new Date(this.props.attendancesdata.end_time), newmode:this.props.attendancesdata.mode, - course_groups:newcourse_groups + course_groups:newcourse_groups, + groupstype:newlist.length===0?true:false }) @@ -96,7 +98,8 @@ const CollectionCreateForm = Form.create({ name: 'form_in_modal' })( }else{ this.setState({ start_time: new Date("2000-01-01T09:00:00.000+08:00"), - course_groups:newcourse_groups + course_groups:newcourse_groups, + groupstype:false }) this.props.form.setFieldsValue({ @@ -238,7 +241,7 @@ const CollectionCreateForm = Form.create({ name: 'form_in_modal' })( } render() { const { visible,form ,setRadio,Radiolist,hideCreatesign,editvisible} = this.props; - let {course_groups,newmode}=this.state; + let {course_groups,newmode,groupstype}=this.state; const { getFieldDecorator } = form; const { Option } = Select; const formItemLayout = { @@ -280,8 +283,8 @@ const CollectionCreateForm = Form.create({ name: 'form_in_modal' })(