dev_ec
杨树明 5 years ago
parent f080304412
commit 7eab5786e3

@ -116,6 +116,11 @@ class YslDetailCards extends Component{
}
Pathlisteditundefined=()=>{
this.setState({
pathlistedit:undefined
})
};
hidestartshixunsreplace=(url)=>{
this.setState({
isSpin:true,
@ -521,6 +526,7 @@ class YslDetailCards extends Component{
ysldetailcards={"ysldetailcards"}
pathid={subject_id}
coursesId={pathid}
Pathlisteditundefined={this.Pathlisteditundefined}
></DetailCardsEditAndEdit>
:""
}

@ -309,7 +309,13 @@ class DetailCards extends Component{
this.setState({
startshixunCombattype:false
})
}
};
Pathlisteditundefined=()=>{
this.setState({
pathlistedit:undefined
})
};
render(){
@ -502,8 +508,6 @@ class DetailCards extends Component{
</div>
</div>
}
<DetailCardsEditAndEdit
idsum={idsum}
keys={key}
@ -512,9 +516,8 @@ class DetailCards extends Component{
pathlisteditlist={pathlistedit}
stageid={item.stage_id}
pathid={pathid}
Pathlisteditundefined={this.Pathlisteditundefined}
></DetailCardsEditAndEdit>
</div>
)
})

@ -93,22 +93,27 @@ class DetailCardsEditAndEdit extends Component{
})
}
componentDidMount(){
}
componentWillReceiveProps(nextProps, nextState) {
if(nextProps.pathlisteditlist!=undefined){
let list=[]
for(var i=0; i<nextProps.pathlisteditlist.shixuns_list.length; i++){
list.push(nextProps.pathlisteditlist.shixuns_list[i].shixun_id)
}
// console.log("DetailCardsEditAndEdit");
// console.log("componentWillReceiveProps(nextProps, nextState)");
// console.log("nextProps.pathlisteditlist.stage_description");
this.setState({
shixuns_listedit:nextProps.pathlisteditlist.shixuns_list,
shixuns_listeditlist:list,
stage_name:nextProps.pathlisteditlist.stage_name,
stage_description:nextProps.pathlisteditlist.stage_description,
stageid:nextProps.stageid
})
});
this.props.Pathlisteditundefined();
}
}
@ -123,7 +128,7 @@ class DetailCardsEditAndEdit extends Component{
}
updatastage_description=(e)=>{
//输入数据绑定
this.setState({
stage_description:e.target.value
})

Loading…
Cancel
Save