|
|
@ -45,9 +45,8 @@ class Selectresource extends Component{
|
|
|
|
datatime:undefined,
|
|
|
|
datatime:undefined,
|
|
|
|
course_group_publish_times:[
|
|
|
|
course_group_publish_times:[
|
|
|
|
{
|
|
|
|
{
|
|
|
|
group_id : undefined,
|
|
|
|
group_id : [],
|
|
|
|
publish_time :undefined,
|
|
|
|
publish_time :undefined,
|
|
|
|
course_group_name:undefined
|
|
|
|
|
|
|
|
}],
|
|
|
|
}],
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -302,7 +301,6 @@ class Selectresource extends Component{
|
|
|
|
newlist.push( {
|
|
|
|
newlist.push( {
|
|
|
|
group_id : undefined,
|
|
|
|
group_id : undefined,
|
|
|
|
publish_time :undefined,
|
|
|
|
publish_time :undefined,
|
|
|
|
course_group_name:undefined
|
|
|
|
|
|
|
|
})
|
|
|
|
})
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
course_group_publish_times:newlist
|
|
|
|
course_group_publish_times:newlist
|
|
|
@ -316,12 +314,12 @@ class Selectresource extends Component{
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
selectassigngroups=(e,index,key)=>{
|
|
|
|
selectassigngroups=(e,index,key)=>{
|
|
|
|
|
|
|
|
debugger
|
|
|
|
let {course_group_publish_times}=this.state;
|
|
|
|
let {course_group_publish_times}=this.state;
|
|
|
|
let newgroup_publish=course_group_publish_times;
|
|
|
|
let newgroup_publish=course_group_publish_times;
|
|
|
|
for(var i=0; i<newgroup_publish.length; i++){
|
|
|
|
for(var i=0; i<newgroup_publish.length; i++){
|
|
|
|
if(i===parseInt(key)){
|
|
|
|
if(i===parseInt(key)){
|
|
|
|
newgroup_publish[i].course_group_name=index.props.value;
|
|
|
|
newgroup_publish[i].group_id=e;
|
|
|
|
newgroup_publish[i].group_id=index.props.id;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
@ -529,10 +527,11 @@ class Selectresource extends Component{
|
|
|
|
return(
|
|
|
|
return(
|
|
|
|
<div className={"mt10"} key={key}>
|
|
|
|
<div className={"mt10"} key={key}>
|
|
|
|
<Select
|
|
|
|
<Select
|
|
|
|
|
|
|
|
mode="multiple"
|
|
|
|
className={"ml70"}
|
|
|
|
className={"ml70"}
|
|
|
|
disabled={this.state.Radiovalue===1?false:true}
|
|
|
|
disabled={this.state.Radiovalue===1?false:true}
|
|
|
|
placeholder="请选择分班名称"
|
|
|
|
placeholder="请选择分班名称"
|
|
|
|
value={item.course_group_name}
|
|
|
|
value={item.group_id}
|
|
|
|
style={{ width: 200 }}
|
|
|
|
style={{ width: 200 }}
|
|
|
|
onChange={(e,index)=>this.selectassigngroups(e,index,key)}
|
|
|
|
onChange={(e,index)=>this.selectassigngroups(e,index,key)}
|
|
|
|
>
|
|
|
|
>
|
|
|
@ -582,8 +581,8 @@ class Selectresource extends Component{
|
|
|
|
{this.state.patheditarrytype===true?<p className={"color-red ml20"}>请选择资源</p>:""}
|
|
|
|
{this.state.patheditarrytype===true?<p className={"color-red ml20"}>请选择资源</p>:""}
|
|
|
|
{this.state.Radiovaluetype===true?<p className={"color-red ml20"}>发布时间不能为空</p>:""}
|
|
|
|
{this.state.Radiovaluetype===true?<p className={"color-red ml20"}>发布时间不能为空</p>:""}
|
|
|
|
<div className="mt20 marginauto clearfix edu-txt-center">
|
|
|
|
<div className="mt20 marginauto clearfix edu-txt-center">
|
|
|
|
<a className="pop_close task-btn mr30 margin-tp26" onClick={this.hidecouseShixunModal}>取消</a>
|
|
|
|
<a className="pop_close task-btn mr30 margin-tp26" onClick={this.hidecouseShixunModal}>取消</a>
|
|
|
|
<a className="task-btn task-btn-orange margin-tp26" id="submit_send_shixun" onClick={this.savecouseShixunModal}>确定</a>
|
|
|
|
<a className="task-btn task-btn-orange margin-tp26" id="submit_send_shixun" onClick={this.savecouseShixunModal}>确定</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</Spin>
|
|
|
|
</Spin>
|
|
|
|