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