|
|
|
@ -206,14 +206,32 @@ class Testpapersettinghomepage extends Component{
|
|
|
|
|
Loadtype:false
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
gotohome=()=>{
|
|
|
|
|
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);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// DownloadType=()=>{
|
|
|
|
|
// this.setState({
|
|
|
|
|
// DownloadType:false,
|
|
|
|
|
// DownloadMessageval:undefined
|
|
|
|
|
// })
|
|
|
|
|
// }
|
|
|
|
|
// Downloadcal=()=>{
|
|
|
|
|
// this.setState({
|
|
|
|
|
// DownloadType:false,
|
|
|
|
|
// DownloadMessageval:undefined
|
|
|
|
|
// })
|
|
|
|
|
// }
|
|
|
|
|
goback=()=>{
|
|
|
|
|
// let {datalist}=this.state;
|
|
|
|
|
// let courseId=this.props.match.params.coursesId;
|
|
|
|
|
// let category_id=this.props.match.params.category_id;
|
|
|
|
|
//
|
|
|
|
|
// window.location.href="/courses/"+courseId+"/graduation_tasks/"+datalist.graduation_id;
|
|
|
|
|
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(){
|
|
|
|
|
let {tab,visible,Commonheadofthetestpaper}=this.state;
|
|
|
|
|
const isAdmin =this.props.isAdmin();
|
|
|
|
@ -247,9 +265,9 @@ class Testpapersettinghomepage extends Component{
|
|
|
|
|
|
|
|
|
|
<div className="educontent mb20" style={{width:"1200px"}}>
|
|
|
|
|
<p className="clearfix mb20 mt10">
|
|
|
|
|
<a className=" btn colorgrey fl hovercolorblue " onClick={()=>this.gotohome()}>{this.props.coursedata.name}</a>
|
|
|
|
|
<ActionBtn className=" btn colorgrey fl hovercolorblue " onClick={this.goback} >{this.props.coursedata.name}</ActionBtn>
|
|
|
|
|
<span className="color-grey-9 fl ml3 mr3">></span>
|
|
|
|
|
<a className=" btn colorgrey fl hovercolorblue " to={`/courses/${this.props.match.params.coursesId}/exercises/${Commonheadofthetestpaper&&Commonheadofthetestpaper.user_permission.left_banner_id}`} >试卷</a>
|
|
|
|
|
<ActionBtn className=" btn colorgrey fl hovercolorblue " to={`/courses/${this.props.match.params.coursesId}/exercises/${Commonheadofthetestpaper&&Commonheadofthetestpaper.user_permission.left_banner_id}`} >试卷</ActionBtn>
|
|
|
|
|
<span className="color-grey-9 fl ml3 mr3">></span>
|
|
|
|
|
<WordsBtn className="fl">试卷详情</WordsBtn>
|
|
|
|
|
</p>
|
|
|
|
@ -270,7 +288,7 @@ class Testpapersettinghomepage extends Component{
|
|
|
|
|
<CoursesListType
|
|
|
|
|
typelist={[`${polls_status[Commonheadofthetestpaper && Commonheadofthetestpaper.exercise_status]}`]}
|
|
|
|
|
/>
|
|
|
|
|
<a className="color-grey-6 fr font-16 summaryname mr30" onClick={()=>this.gotohome()}>返回</a>
|
|
|
|
|
<a className="color-grey-6 fr font-16 summaryname mr30" onClick={this.goback}>返回</a>
|
|
|
|
|
<p className="color-grey-6 fr font-16"> </p>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|