|
|
@ -51,13 +51,17 @@ class ShixunWorkDetails extends Component {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
goback=()=>{
|
|
|
|
goback=(sum)=>{
|
|
|
|
|
|
|
|
let{data}=this.state
|
|
|
|
|
|
|
|
if(sum===1){
|
|
|
|
|
|
|
|
window.location.href = "/courses/"+data.course_id+"/students";
|
|
|
|
|
|
|
|
}else{
|
|
|
|
window.history.go(-1)
|
|
|
|
window.history.go(-1)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
render() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
render() {
|
|
|
|
let{data}=this.state;
|
|
|
|
let{data}=this.state;
|
|
|
|
console.log(data)
|
|
|
|
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<Spin size="large" spinning={this.state.spinning}>
|
|
|
|
<Spin size="large" spinning={this.state.spinning}>
|
|
|
|
{data===undefined? "":<div className="newMain clearfix ">
|
|
|
|
{data===undefined? "":<div className="newMain clearfix ">
|
|
|
@ -65,17 +69,18 @@ class ShixunWorkDetails extends Component {
|
|
|
|
|
|
|
|
|
|
|
|
<div className="educontent">
|
|
|
|
<div className="educontent">
|
|
|
|
<p className="clearfix mt20">
|
|
|
|
<p className="clearfix mt20">
|
|
|
|
<WordsBtn className="fl color-grey-9" style="btn colorgrey hovercolorblue">
|
|
|
|
<a className="fl color-grey-9 btn colorgrey hovercolorblue"
|
|
|
|
<Link to={"/courses/"+data&&data.course_id+"/students"}>
|
|
|
|
onClick={()=>this.goback(1)}
|
|
|
|
<span className={"color-grey-9"}>{data&&data.course_name}</span>
|
|
|
|
>
|
|
|
|
</Link>
|
|
|
|
<span className={"color-grey-9"}>{data&&data.course_name}123</span>
|
|
|
|
</WordsBtn>
|
|
|
|
</a>
|
|
|
|
<span className="color-grey-9 fl ml3 mr3">></span>
|
|
|
|
<span className="color-grey-9 fl ml3 mr3">></span>
|
|
|
|
<WordsBtn style="grey" className="btn colorgrey fl hovercolorblue ">
|
|
|
|
<a className="btn colorgrey fl hovercolorblue grey"
|
|
|
|
<Link to={"/courses/"+data&&data.course_id+"/"+this.state.shixuntypes+"/"+data&&data.homework_common_id}>
|
|
|
|
onClick={this.goback}
|
|
|
|
|
|
|
|
// to={"/courses/"+data&&data.course_id+"/"+this.state.shixuntypes+"/"+data&&data.homework_common_id}
|
|
|
|
|
|
|
|
>
|
|
|
|
<span className={"color-grey-9"}>实训作业</span>
|
|
|
|
<span className={"color-grey-9"}>实训作业</span>
|
|
|
|
</Link>
|
|
|
|
</a>
|
|
|
|
</WordsBtn>
|
|
|
|
|
|
|
|
<span className="color-grey-9 fl ml3 mr3">></span>
|
|
|
|
<span className="color-grey-9 fl ml3 mr3">></span>
|
|
|
|
<WordsBtn className="fl">{data&&data.username}</WordsBtn>
|
|
|
|
<WordsBtn className="fl">{data&&data.username}</WordsBtn>
|
|
|
|
</p>
|
|
|
|
</p>
|
|
|
|