|
|
@ -27,9 +27,27 @@ class sendPanel extends Component{
|
|
|
|
|
|
|
|
|
|
|
|
//发送至
|
|
|
|
//发送至
|
|
|
|
SentToLesson =() =>{
|
|
|
|
SentToLesson =() =>{
|
|
|
|
this.setState({
|
|
|
|
let id=this.props.detailInfoList.id;
|
|
|
|
sentShixunPath:true
|
|
|
|
let url="/paths/"+id+"/choose_course.json";
|
|
|
|
})
|
|
|
|
axios.get(url).then((result)=>{
|
|
|
|
|
|
|
|
if(result.status==200){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (result.data.status === 403||result.data.status === 402||result.data.status === 407||result.data.status === 408) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
|
|
|
|
sendToCourseList:result.data,
|
|
|
|
|
|
|
|
sentShixunPath:true
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}).catch((error)=>{
|
|
|
|
|
|
|
|
console.log(error);
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
// this.setState({
|
|
|
|
|
|
|
|
// sentShixunPath:true
|
|
|
|
|
|
|
|
// })
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//隐藏发送至弹框
|
|
|
|
//隐藏发送至弹框
|
|
|
|
hideSenttothevalue =()=>{
|
|
|
|
hideSenttothevalue =()=>{
|
|
|
@ -99,17 +117,17 @@ class sendPanel extends Component{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
componentDidMount(){
|
|
|
|
componentDidMount(){
|
|
|
|
let id=this.props.detailInfoList.id;
|
|
|
|
// let id=this.props.detailInfoList.id;
|
|
|
|
let url="/paths/"+id+"/choose_course.json";
|
|
|
|
// let url="/paths/"+id+"/choose_course.json";
|
|
|
|
axios.get(url).then((result)=>{
|
|
|
|
// axios.get(url).then((result)=>{
|
|
|
|
if(result.status==200){
|
|
|
|
// if(result.status==200){
|
|
|
|
this.setState({
|
|
|
|
// this.setState({
|
|
|
|
sendToCourseList:result.data
|
|
|
|
// sendToCourseList:result.data
|
|
|
|
})
|
|
|
|
// })
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
}).catch((error)=>{
|
|
|
|
// }).catch((error)=>{
|
|
|
|
console.log(error);
|
|
|
|
// console.log(error);
|
|
|
|
})
|
|
|
|
// })
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
cardsModalcancel=()=>{
|
|
|
|
cardsModalcancel=()=>{
|
|
|
|