|
|
|
@ -304,8 +304,8 @@ class ShixunhomeWorkItem extends Component{
|
|
|
|
|
|
|
|
|
|
<div className="clearfix ds pr pt5 contentSection" >
|
|
|
|
|
<style>{`
|
|
|
|
|
.maxwidth580{
|
|
|
|
|
max-width: 580px;
|
|
|
|
|
.maxwidth422{
|
|
|
|
|
max-width: 422px;
|
|
|
|
|
overflow:hidden;
|
|
|
|
|
text-overflow:ellipsis;
|
|
|
|
|
white-space:nowrap
|
|
|
|
@ -317,21 +317,21 @@ class ShixunhomeWorkItem extends Component{
|
|
|
|
|
{
|
|
|
|
|
this.props.isAdmin?<a onClick={()=>this.hrefjumpskip("/courses/"+this.props.match.params.coursesId+"/"+this.state.shixuntypes+"/"+discussMessage.homework_id+"/list?tab=0")}
|
|
|
|
|
title={discussMessage.name}
|
|
|
|
|
className="fl mt3 font-16 font-bd color-dark maxwidth580">{discussMessage.name}</a>:""
|
|
|
|
|
className="fl mt3 font-16 font-bd color-dark maxwidth422">{discussMessage.name}</a>:""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
this.props.isStudent? <a onClick={()=>this.hrefjumpskip(`/courses/${this.props.match.params.coursesId}/${this.state.shixuntypes}/${discussMessage.homework_id}/list?tab=0`)}
|
|
|
|
|
title={discussMessage.name}
|
|
|
|
|
className="fl mt3 font-16 font-bd color-dark maxwidth580">{discussMessage.name}</a>:""
|
|
|
|
|
className="fl mt3 font-16 font-bd color-dark maxwidth422">{discussMessage.name}</a>:""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
this.props.isNotMember===true? this.props.discussMessage.private_icon===true?
|
|
|
|
|
<span className="fl mt3 font-16 font-bd color-dark maxwidth580 pointer" title={"私有属性,非课堂成员不能访问"}>{discussMessage.name}</span>
|
|
|
|
|
<span className="fl mt3 font-16 font-bd color-dark maxwidth422 pointer" title={"私有属性,非课堂成员不能访问"}>{discussMessage.name}</span>
|
|
|
|
|
: <a onClick={()=>this.hrefjumpskip(`/courses/${this.props.match.params.coursesId}/${this.state.shixuntypes}/${discussMessage.homework_id}/list?tab=0`)}
|
|
|
|
|
title={discussMessage.name}
|
|
|
|
|
className="fl mt3 font-16 font-bd color-dark maxwidth580">{discussMessage.name}</a>:""
|
|
|
|
|
className="fl mt3 font-16 font-bd color-dark maxwidth422">{discussMessage.name}</a>:""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -346,12 +346,45 @@ class ShixunhomeWorkItem extends Component{
|
|
|
|
|
|
|
|
|
|
<CoursesListType typelist={discussMessage.status} typesylename={""} />
|
|
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|
{
|
|
|
|
|
`
|
|
|
|
|
.homepagePostSettingname{
|
|
|
|
|
width:192px !important;
|
|
|
|
|
}
|
|
|
|
|
.homepagePostSettingbox{
|
|
|
|
|
width:139px !important;
|
|
|
|
|
}
|
|
|
|
|
`
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
{this.props.isAdmin?<span onClick={(event)=>this.stopPro(event)} className={this.props.isAdminOrCreator()?"homepagePostSetting homepagePostSettingname":"homepagePostSetting homepagePostSettingbox"} style={{"right":"-2px","top":"6px","display":"block"}}>
|
|
|
|
|
<Link className="btn colorblue font-16" to={"/shixuns/"+discussMessage.shixun_identifier+"/challenges"} target={"_blank"}>实训详情</Link>
|
|
|
|
|
{this.props.isAdminOrCreator()?<a onClick={(event)=>this.editname(discussMessage.name,discussMessage.homework_id,event)} className={"btn colorblue ml20 font-16"}>重命名</a>:""}
|
|
|
|
|
{/*<WordsBtn className="btn colorblue ml20 font-16" to={`/courses/${this.props.match.params.coursesId}/${this.state.shixuntypes}/${discussMessage.homework_id}/settings?tab=3`} > 设置</WordsBtn>*/}
|
|
|
|
|
<WordsBtn className="btn colorblue font-16 ml15" to={`/courses/${this.props.match.params.coursesId}/${this.state.shixuntypes}/${discussMessage.homework_id}/settings?tab=3`} > 设置</WordsBtn>
|
|
|
|
|
</span>:""}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{this.props.isStudent===true?this.props.course_identity===5?
|
|
|
|
|
<WordsBtn style="blue" className="colorblue font-16 mr20 fr mt10">
|
|
|
|
|
{startbtn===false?
|
|
|
|
|
(discussMessage.task_operation[0] == '继续挑战' || discussMessage.task_operation[0] == '查看实战' ?
|
|
|
|
|
<a className="btn colorblue" href={getTaskUrlById(discussMessage.task_operation[1])}>
|
|
|
|
|
{discussMessage.task_operation[0]}
|
|
|
|
|
</a>
|
|
|
|
|
:
|
|
|
|
|
<a className="btn colorblue" onClick={()=>this.taskoperationId(discussMessage.task_operation[1])}>
|
|
|
|
|
{discussMessage.task_operation[0]}
|
|
|
|
|
</a>):<a className="btn colorblue" >开启中</a>}
|
|
|
|
|
</WordsBtn>:"":""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
</h6>
|
|
|
|
|
|
|
|
|
|
<div className="cl"></div>
|
|
|
|
|
<p className="color-grey mt16 fl">
|
|
|
|
|
<span className="mr50 df">
|
|
|
|
|
<p className="color-grey mt16 fl" style={{"width":"820px"}}>
|
|
|
|
|
<span >
|
|
|
|
|
{/* <a href="/users/innov" className="panel-name-small hide fl mr15 mr30 color-grey3">{discussMessage.author.name}</a> */}
|
|
|
|
|
{ discussMessage.author && <span className="mr15 color-grey-3">{discussMessage.author}</span> }
|
|
|
|
|
{discussMessage.commit_count===undefined?"":<span className="mr15 color-grey9">已开始做题 {discussMessage.commit_count}人</span>}
|
|
|
|
@ -381,7 +414,7 @@ class ShixunhomeWorkItem extends Component{
|
|
|
|
|
{
|
|
|
|
|
discussMessage && discussMessage.upper_category_name &&
|
|
|
|
|
<ConditionToolTip title={discussMessage.upper_category_name} condition={ discussMessage.upper_category_name.length > 22 }>
|
|
|
|
|
{ <span className="mr15 color-grey9 task-hide" 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":"85px"}:{"maxWidth":"272px"}} title={discussMessage.upper_category_name}>{discussMessage.upper_category_name}</span>}
|
|
|
|
|
{ <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":"268px"}:{"maxWidth":"625px"}} title={discussMessage.upper_category_name}>所属目录:{discussMessage.upper_category_name}</div>}
|
|
|
|
|
</ConditionToolTip>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -396,39 +429,6 @@ class ShixunhomeWorkItem extends Component{
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|
{
|
|
|
|
|
`
|
|
|
|
|
.homepagePostSettingname{
|
|
|
|
|
width:192px !important;
|
|
|
|
|
}
|
|
|
|
|
.homepagePostSettingbox{
|
|
|
|
|
width:139px !important;
|
|
|
|
|
}
|
|
|
|
|
`
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
{this.props.isAdmin?<div onClick={(event)=>this.stopPro(event)} className={this.props.isAdminOrCreator()?"homepagePostSetting homepagePostSettingname":"homepagePostSetting homepagePostSettingbox"} style={{"right":"-2px","top":"46px","display":"block"}}>
|
|
|
|
|
<Link className="btn colorblue font-16" to={"/shixuns/"+discussMessage.shixun_identifier+"/challenges"} target={"_blank"}>实训详情</Link>
|
|
|
|
|
{this.props.isAdminOrCreator()?<a onClick={(event)=>this.editname(discussMessage.name,discussMessage.homework_id,event)} className={"btn colorblue ml20 font-16"}>重命名</a>:""}
|
|
|
|
|
{/*<WordsBtn className="btn colorblue ml20 font-16" to={`/courses/${this.props.match.params.coursesId}/${this.state.shixuntypes}/${discussMessage.homework_id}/settings?tab=3`} > 设置</WordsBtn>*/}
|
|
|
|
|
<WordsBtn className="btn colorblue font-16 ml15" to={`/courses/${this.props.match.params.coursesId}/${this.state.shixuntypes}/${discussMessage.homework_id}/settings?tab=3`} > 设置</WordsBtn>
|
|
|
|
|
</div>:""}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{this.props.isStudent===true?this.props.course_identity===5?
|
|
|
|
|
<WordsBtn style="blue" className="colorblue font-16 mr20 fr mt10">
|
|
|
|
|
{startbtn===false?
|
|
|
|
|
(discussMessage.task_operation[0] == '继续挑战' || discussMessage.task_operation[0] == '查看实战' ?
|
|
|
|
|
<a className="btn colorblue" href={getTaskUrlById(discussMessage.task_operation[1])}>
|
|
|
|
|
{discussMessage.task_operation[0]}
|
|
|
|
|
</a>
|
|
|
|
|
:
|
|
|
|
|
<a className="btn colorblue" onClick={()=>this.taskoperationId(discussMessage.task_operation[1])}>
|
|
|
|
|
{discussMessage.task_operation[0]}
|
|
|
|
|
</a>):<a className="btn colorblue" >开启中</a>}
|
|
|
|
|
</WordsBtn>:"":""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|