|
|
@ -107,16 +107,6 @@ class PollDetailIndex extends Component{
|
|
|
|
DownloadType:false,
|
|
|
|
DownloadType:false,
|
|
|
|
DownloadMessageval:undefined
|
|
|
|
DownloadMessageval:undefined
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
goback=()=>{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let courseId=this.props.match.params.coursesId;
|
|
|
|
|
|
|
|
if(courseId===undefined){
|
|
|
|
|
|
|
|
this.props.history.push("/courses");
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
|
|
|
this.props.history.push(this.props.current_user.first_category_url);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
render(){
|
|
|
|
render(){
|
|
|
|
let {tab,pollDetail,user_permission}=this.state;
|
|
|
|
let {tab,pollDetail,user_permission}=this.state;
|
|
|
@ -133,7 +123,7 @@ class PollDetailIndex extends Component{
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
<div className="educontent mt10 mb50">
|
|
|
|
<div className="educontent mt10 mb50">
|
|
|
|
<p className="clearfix mb20">
|
|
|
|
<p className="clearfix mb20">
|
|
|
|
<a style="grey" className="fl" onClick={()=>this.goback()}>{this.props.coursedata.name}</a>
|
|
|
|
<WordsBtn style="grey" className="fl" to={`/courses/${this.props.match.params.coursesId}/students`}>{this.props.coursedata.name}</WordsBtn>
|
|
|
|
<span className="color-grey-9 fl ml3 mr3">></span>
|
|
|
|
<span className="color-grey-9 fl ml3 mr3">></span>
|
|
|
|
<WordsBtn style="grey" className="fl" to={`/courses/${this.props.match.params.coursesId}/polls/${user_permission && user_permission.left_banner_id}`}>问卷</WordsBtn>
|
|
|
|
<WordsBtn style="grey" className="fl" to={`/courses/${this.props.match.params.coursesId}/polls/${user_permission && user_permission.left_banner_id}`}>问卷</WordsBtn>
|
|
|
|
<span className="color-grey-9 fl ml3 mr3">></span>
|
|
|
|
<span className="color-grey-9 fl ml3 mr3">></span>
|
|
|
@ -144,7 +134,7 @@ class PollDetailIndex extends Component{
|
|
|
|
<span className="mt3 fl" style={{height:"25px"}}>
|
|
|
|
<span className="mt3 fl" style={{height:"25px"}}>
|
|
|
|
<CoursesListType typelist={[`${map[pollDetail && pollDetail.polls_status]}`]} typesylename={""} />
|
|
|
|
<CoursesListType typelist={[`${map[pollDetail && pollDetail.polls_status]}`]} typesylename={""} />
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
<WordsBtn className="fr font-16 mt2" style="grey" onClick={()=>this.goback()}>返回</WordsBtn>
|
|
|
|
<WordsBtn className="fr font-16 mt2" style="grey" onClick={()=>this.props.history.goBack()}>返回</WordsBtn>
|
|
|
|
</p>
|
|
|
|
</p>
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<div className="clearfix edu-back-white pl30 pr30 bor-bottom-greyE">
|
|
|
|
<div className="clearfix edu-back-white pl30 pr30 bor-bottom-greyE">
|
|
|
|