diff --git a/public/react/src/modules/paths/PathDetail/sendPanel.js b/public/react/src/modules/paths/PathDetail/sendPanel.js index 2f9059a18..ae7dd5b00 100644 --- a/public/react/src/modules/paths/PathDetail/sendPanel.js +++ b/public/react/src/modules/paths/PathDetail/sendPanel.js @@ -27,9 +27,27 @@ class sendPanel extends Component{ //发送至 SentToLesson =() =>{ - this.setState({ - sentShixunPath:true - }) + let id=this.props.detailInfoList.id; + 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 =()=>{ @@ -99,17 +117,17 @@ class sendPanel extends Component{ } componentDidMount(){ - let id=this.props.detailInfoList.id; - let url="/paths/"+id+"/choose_course.json"; - axios.get(url).then((result)=>{ - if(result.status==200){ - this.setState({ - sendToCourseList:result.data - }) - } - }).catch((error)=>{ - console.log(error); - }) + // let id=this.props.detailInfoList.id; + // let url="/paths/"+id+"/choose_course.json"; + // axios.get(url).then((result)=>{ + // if(result.status==200){ + // this.setState({ + // sendToCourseList:result.data + // }) + // } + // }).catch((error)=>{ + // console.log(error); + // }) } cardsModalcancel=()=>{