|
|
@ -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)}
|
|
|
|
>
|
|
|
|
>
|
|
|
|