|
|
@ -218,6 +218,20 @@ class Testpapersettinghomepage extends Component{
|
|
|
|
// DownloadMessageval:undefined
|
|
|
|
// 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(){
|
|
|
|
render(){
|
|
|
|
let {tab,visible,Commonheadofthetestpaper}=this.state;
|
|
|
|
let {tab,visible,Commonheadofthetestpaper}=this.state;
|
|
|
|
const isAdmin =this.props.isAdmin();
|
|
|
|
const isAdmin =this.props.isAdmin();
|
|
|
@ -251,7 +265,7 @@ class Testpapersettinghomepage extends Component{
|
|
|
|
|
|
|
|
|
|
|
|
<div className="educontent mb20" style={{width:"1200px"}}>
|
|
|
|
<div className="educontent mb20" style={{width:"1200px"}}>
|
|
|
|
<p className="clearfix mb20 mt10">
|
|
|
|
<p className="clearfix mb20 mt10">
|
|
|
|
<ActionBtn className=" btn colorgrey fl hovercolorblue " to={`/courses/${this.props.match.params.coursesId}/students}`}>{this.props.coursedata.name}</ActionBtn>
|
|
|
|
<ActionBtn className=" btn colorgrey fl hovercolorblue " onClick={this.goback} >{this.props.coursedata.name}</ActionBtn>
|
|
|
|
<span className="color-grey-9 fl ml3 mr3">></span>
|
|
|
|
<span className="color-grey-9 fl ml3 mr3">></span>
|
|
|
|
<ActionBtn className=" btn colorgrey fl hovercolorblue " to={`/courses/${this.props.match.params.coursesId}/exercises/${Commonheadofthetestpaper&&Commonheadofthetestpaper.user_permission.left_banner_id}`} >试卷</ActionBtn>
|
|
|
|
<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>
|
|
|
|
<span className="color-grey-9 fl ml3 mr3">></span>
|
|
|
@ -274,9 +288,7 @@ class Testpapersettinghomepage extends Component{
|
|
|
|
<CoursesListType
|
|
|
|
<CoursesListType
|
|
|
|
typelist={[`${polls_status[Commonheadofthetestpaper && Commonheadofthetestpaper.exercise_status]}`]}
|
|
|
|
typelist={[`${polls_status[Commonheadofthetestpaper && Commonheadofthetestpaper.exercise_status]}`]}
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
<a className="color-grey-6 fr font-16 summaryname mr30"
|
|
|
|
<a className="color-grey-6 fr font-16 summaryname mr30" onClick={this.goback}>返回</a>
|
|
|
|
|
|
|
|
|
|
|
|
href={`/courses/${this.props.match.params.coursesId}/exercises/${Commonheadofthetestpaper&&Commonheadofthetestpaper.user_permission.left_banner_id}`}>返回</a>
|
|
|
|
|
|
|
|
<p className="color-grey-6 fr font-16"> </p>
|
|
|
|
<p className="color-grey-6 fr font-16"> </p>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|