|
|
@ -128,7 +128,7 @@ class ShixunhomeWorkItem extends Component{
|
|
|
|
stopPro = (event) => {
|
|
|
|
stopPro = (event) => {
|
|
|
|
event.stopPropagation()
|
|
|
|
event.stopPropagation()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
editname = (name,id,event) => {
|
|
|
|
editname = (name,id,event) => {
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
ModalsRenametype:true,
|
|
|
|
ModalsRenametype:true,
|
|
|
@ -373,8 +373,8 @@ class ShixunhomeWorkItem extends Component{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{this.props.isAdmin?<span onClick={(event)=>this.stopPro(event)} className={discussMessage&&discussMessage.shixun_status>1?this.props.isAdminOrCreator()?" newhomepagePostSettingname fr":" homepagePostSettingbox fr":" newwidthSettin fr"} style={{"right":"-2px","top":"6px","display":"block"}}>
|
|
|
|
{this.props.isAdmin?<span onClick={(event)=>this.stopPro(event)} className={discussMessage&&discussMessage.shixun_status>1?this.props.isAdminOrCreator()?" newhomepagePostSettingname fr":" homepagePostSettingbox fr":" newwidthSettin fr"} style={{"right":"-2px","top":"6px","display":"block"}}>
|
|
|
|
{discussMessage&&discussMessage.shixun_status>1?<Link className="btn colorblue font-16 fontweight400 mr20" to={"/shixuns/"+discussMessage.shixun_identifier+"/challenges"} target={"_blank"}>实训详情</Link>:
|
|
|
|
{discussMessage&&discussMessage.shixun_status>1?<Link className="btn colorblue font-16 fontweight400 mr20" to={"/shixuns/"+discussMessage.shixun_identifier+"/challenges"} target={"_blank"}>进入学习</Link>:
|
|
|
|
<a className={"btn colorfff font-16 fontweight400 "}>实训详情</a>
|
|
|
|
<a className={"btn colorfff font-16 fontweight400 "}>进入学习</a>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -388,26 +388,27 @@ class ShixunhomeWorkItem extends Component{
|
|
|
|
discussMessage.time_status<5?
|
|
|
|
discussMessage.time_status<5?
|
|
|
|
<WordsBtn style="blue" className="colorblue font-16 mr20 fr mt2 ">
|
|
|
|
<WordsBtn style="blue" className="colorblue font-16 mr20 fr mt2 ">
|
|
|
|
{startbtn===false?
|
|
|
|
{startbtn===false?
|
|
|
|
(discussMessage.task_operation[0] == '继续挑战' || discussMessage.task_operation[0] == '查看实战' ?
|
|
|
|
(discussMessage.task_operation[0] == '进入学习' || discussMessage.task_operation[0] == '进入学习' ?
|
|
|
|
<a className="btn colorblue" href={getTaskUrlById(discussMessage.task_operation[1])}>
|
|
|
|
<a className="btn colorblue" href={getTaskUrlById(discussMessage.task_operation[1])}>
|
|
|
|
{discussMessage.task_operation[0]}
|
|
|
|
{/*{discussMessage.task_operation[0]}*/}
|
|
|
|
|
|
|
|
进入学习
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
:
|
|
|
|
:
|
|
|
|
<a className="btn colorblue" onClick={()=>this.taskoperationId(discussMessage.task_operation[1])}>
|
|
|
|
<a className="btn colorblue" onClick={()=>this.taskoperationId(discussMessage.task_operation[1])}>
|
|
|
|
{discussMessage.task_operation[0]}
|
|
|
|
进入学习
|
|
|
|
</a>):<a className="btn colorblue" >开启中</a>}
|
|
|
|
</a>):<a className="btn colorblue" >进入中</a>}
|
|
|
|
</WordsBtn>:"":"":"":""
|
|
|
|
</WordsBtn>:"":"":"":""
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
{ this.props.isAdmin?<a onClick={()=>this.hrefjumpskip("/courses/"+this.props.match.params.coursesId+"/"+this.state.shixuntypes+"/"+discussMessage.homework_id+"/list?tab=0")} className="btn colorblue font-16 fontweight400 mr20 fr">作品详情</a>:""}
|
|
|
|
{ this.props.isAdmin?<a onClick={()=>this.hrefjumpskip("/courses/"+this.props.match.params.coursesId+"/"+this.state.shixuntypes+"/"+discussMessage.homework_id+"/list?tab=0")} className="btn colorblue font-16 fontweight400 mr20 fr">作品列表</a>:""}
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
this.props.isStudent? <a onClick={()=>this.hrefjumpskip("/courses/"+this.props.match.params.coursesId+"/"+this.state.shixuntypes+"/"+discussMessage.homework_id+"/list?tab=0")} className="btn colorblue font-16 fontweight400 mr20 fr mt2">作品详情</a>:""
|
|
|
|
this.props.isStudent? <a onClick={()=>this.hrefjumpskip("/courses/"+this.props.match.params.coursesId+"/"+this.state.shixuntypes+"/"+discussMessage.homework_id+"/list?tab=0")} className="btn colorblue font-16 fontweight400 mr20 fr mt2">作品列表</a>:""
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
this.props.isNotMember===true? this.props.discussMessage.private_icon===true?""
|
|
|
|
this.props.isNotMember===true? this.props.discussMessage.private_icon===true?""
|
|
|
|
:<a onClick={()=>this.hrefjumpskip("/courses/"+this.props.match.params.coursesId+"/"+this.state.shixuntypes+"/"+discussMessage.homework_id+"/list?tab=0")} className="btn colorblue font-16 fontweight400 mr20 fr">作品详情</a>:""
|
|
|
|
:<a onClick={()=>this.hrefjumpskip("/courses/"+this.props.match.params.coursesId+"/"+this.state.shixuntypes+"/"+discussMessage.homework_id+"/list?tab=0")} className="btn colorblue font-16 fontweight400 mr20 fr">作品列表</a>:""
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -440,9 +441,9 @@ class ShixunhomeWorkItem extends Component{
|
|
|
|
{ <div className=" color-grey9 task-hide fr" style={discussMessage.time_status===1||discussMessage.time_status===2||discussMessage.time_status===3||discussMessage.time_status===4||discussMessage.time_status===5||discussMessage.time_status===6?{"maxWidth":"216px"}:{"maxWidth":"550px"}} title={discussMessage.upper_category_name}>所属目录:{discussMessage.upper_category_name}</div>}
|
|
|
|
{ <div className=" color-grey9 task-hide fr" style={discussMessage.time_status===1||discussMessage.time_status===2||discussMessage.time_status===3||discussMessage.time_status===4||discussMessage.time_status===5||discussMessage.time_status===6?{"maxWidth":"216px"}:{"maxWidth":"550px"}} title={discussMessage.upper_category_name}>所属目录:{discussMessage.upper_category_name}</div>}
|
|
|
|
</ConditionToolTip>
|
|
|
|
</ConditionToolTip>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{/* { discussMessage.replies_count != 0 && <span className="mr15 color-grey9">{discussMessage.replies_count} 回复</span> }
|
|
|
|
{/* { discussMessage.replies_count != 0 && <span className="mr15 color-grey9">{discussMessage.replies_count} 回复</span> }
|
|
|
|
{ discussMessage.praise_num != 0 && <span className="mr15 color-grey9">{discussMessage.praise_num} 点赞</span> }
|
|
|
|
{ discussMessage.praise_num != 0 && <span className="mr15 color-grey9">{discussMessage.praise_num} 点赞</span> }
|
|
|
|