|
|
|
@ -79,16 +79,15 @@ class GraduateTopicDetailTable extends Component{
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
sureAgreeTopic=(count)=>{
|
|
|
|
|
if(count > 0){
|
|
|
|
|
let{tableData}=this.props;
|
|
|
|
|
let{operationId,classesId}=this.state
|
|
|
|
|
let courseId=this.props.match.params.course_id;
|
|
|
|
|
let{tableData}=this.props;
|
|
|
|
|
let{operationId,classesId}=this.state
|
|
|
|
|
let courseId=this.props.match.params.course_id;
|
|
|
|
|
|
|
|
|
|
if(classesId!=undefined){
|
|
|
|
|
let name=tableData.group_list.filter(item=>item.group_id==classesId)[0].group_name;
|
|
|
|
|
this.agreeChoose(courseId,operationId,classesId,name);
|
|
|
|
|
}else{
|
|
|
|
|
this.setState({
|
|
|
|
|
un_choose_notice:"请先添加分班"
|
|
|
|
|
})
|
|
|
|
|
this.agreeChoose(courseId,operationId,classesId);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -205,7 +204,7 @@ class GraduateTopicDetailTable extends Component{
|
|
|
|
|
>
|
|
|
|
|
<div className="newupload_conbox">
|
|
|
|
|
<p className="color-grey-9 mb15 edu-txt-center">确认同意学生的选题,将学生加入我的分班</p>
|
|
|
|
|
<div className="df">
|
|
|
|
|
{ tableData.group_list && tableData.group_list.length===0?"":<div className="df">
|
|
|
|
|
<span className="lineh-40 mr10">选择:</span>
|
|
|
|
|
<div className="flex1">
|
|
|
|
|
<Select placeholder="请选择分班" style={{"width":"100%"}} value={classesId} onChange={this.changeClasses}>
|
|
|
|
@ -220,7 +219,7 @@ class GraduateTopicDetailTable extends Component{
|
|
|
|
|
</Select>
|
|
|
|
|
<p style={{height:"20px",lineHeight:"20px"}}><span className="color-orange-tip">{un_choose_notice}</span></p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>}
|
|
|
|
|
<div className="mt20 clearfix edu-txt-center">
|
|
|
|
|
<a onClick={this.hideAgreeTopic} className="pop_close task-btn mr30">取消</a>
|
|
|
|
|
<a className="task-btn task-btn-orange" onClick={()=>this.sureAgreeTopic(tableData.group_list.length)}>确定</a>
|
|
|
|
|