|
|
@ -124,13 +124,19 @@ class ShixunhomeWorkItem extends Component{
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
editname = (name,id) => {
|
|
|
|
// 实训详情,阻止冒泡
|
|
|
|
|
|
|
|
stopPro = (event) => {
|
|
|
|
|
|
|
|
event.stopPropagation()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
editname = (name,id,event) => {
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
ModalsRenametype:true,
|
|
|
|
ModalsRenametype:true,
|
|
|
|
NavmodalValue:name,
|
|
|
|
NavmodalValue:name,
|
|
|
|
Navmodalname:"重命名",
|
|
|
|
Navmodalname:"重命名",
|
|
|
|
url:`/homework_commons/${id}/alter_name.json`
|
|
|
|
url:`/homework_commons/${id}/alter_name.json`
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
event.stopPropagation()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
cannerNavmoda=()=>{
|
|
|
|
cannerNavmoda=()=>{
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
@ -157,23 +163,12 @@ class ShixunhomeWorkItem extends Component{
|
|
|
|
|
|
|
|
|
|
|
|
const { checkBox,
|
|
|
|
const { checkBox,
|
|
|
|
discussMessage,
|
|
|
|
discussMessage,
|
|
|
|
taskid,
|
|
|
|
taskid,index
|
|
|
|
} = this.props;
|
|
|
|
} = this.props;
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// allow_late: true //是否开启补交
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// homework_id: 9250
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// shixun_identifier: "25ykhpvl"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// console.log("this.props.isAdmin");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return(
|
|
|
|
return(
|
|
|
|
<div className="graduateTopicList boardsList">
|
|
|
|
<React.Fragment>
|
|
|
|
{this.state.ModalsRenametype===true?
|
|
|
|
{
|
|
|
|
|
|
|
|
this.state.ModalsRenametype===true?
|
|
|
|
<ModalsRename
|
|
|
|
<ModalsRename
|
|
|
|
{...this.props}
|
|
|
|
{...this.props}
|
|
|
|
Navmodalnametype={this.state.ModalsRenametype}
|
|
|
|
Navmodalnametype={this.state.ModalsRenametype}
|
|
|
@ -184,7 +179,6 @@ class ShixunhomeWorkItem extends Component{
|
|
|
|
cannerNavmoda={()=>this.cannerNavmoda()}
|
|
|
|
cannerNavmoda={()=>this.cannerNavmoda()}
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
:""}
|
|
|
|
:""}
|
|
|
|
|
|
|
|
|
|
|
|
<Modals
|
|
|
|
<Modals
|
|
|
|
modalsType={Modalstype}
|
|
|
|
modalsType={Modalstype}
|
|
|
|
modalsTopval={Modalstopval}
|
|
|
|
modalsTopval={Modalstopval}
|
|
|
@ -193,7 +187,6 @@ class ShixunhomeWorkItem extends Component{
|
|
|
|
modalSave={cardsModalsavetype}
|
|
|
|
modalSave={cardsModalsavetype}
|
|
|
|
loadtype={loadtype}
|
|
|
|
loadtype={loadtype}
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
|
|
{visible===true?<Associationmodel
|
|
|
|
{visible===true?<Associationmodel
|
|
|
|
modalname={modalname}
|
|
|
|
modalname={modalname}
|
|
|
|
visible={visible}
|
|
|
|
visible={visible}
|
|
|
@ -201,8 +194,6 @@ class ShixunhomeWorkItem extends Component{
|
|
|
|
taskid={taskid}
|
|
|
|
taskid={taskid}
|
|
|
|
funlist={this.props.funlist}
|
|
|
|
funlist={this.props.funlist}
|
|
|
|
/>:""}
|
|
|
|
/>:""}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<Modal
|
|
|
|
<Modal
|
|
|
|
keyboard={false}
|
|
|
|
keyboard={false}
|
|
|
|
title="提示"
|
|
|
|
title="提示"
|
|
|
@ -218,6 +209,7 @@ class ShixunhomeWorkItem extends Component{
|
|
|
|
onClick={() => this.hidestartshixunsreplace(hidestartshixunsreplacevalue)}>知道了</a>
|
|
|
|
onClick={() => this.hidestartshixunsreplace(hidestartshixunsreplacevalue)}>知道了</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</Modal>
|
|
|
|
</Modal>
|
|
|
|
|
|
|
|
|
|
|
|
<Modal
|
|
|
|
<Modal
|
|
|
|
keyboard={false}
|
|
|
|
keyboard={false}
|
|
|
|
title="提示"
|
|
|
|
title="提示"
|
|
|
@ -238,7 +230,7 @@ class ShixunhomeWorkItem extends Component{
|
|
|
|
{/*</p>*/}
|
|
|
|
{/*</p>*/}
|
|
|
|
</Modal>
|
|
|
|
</Modal>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div className="graduateTopicList boardsList" style={{cursor : this.props.isAdmin ? "pointer" : "default"}} onClick={() => window.$(`.shixunitem${index} input`).click() } >
|
|
|
|
<style>{`
|
|
|
|
<style>{`
|
|
|
|
.boardsList .ant-checkbox-wrapper{
|
|
|
|
.boardsList .ant-checkbox-wrapper{
|
|
|
|
margin-top: -35px;
|
|
|
|
margin-top: -35px;
|
|
|
@ -284,7 +276,11 @@ class ShixunhomeWorkItem extends Component{
|
|
|
|
|
|
|
|
|
|
|
|
`}</style>
|
|
|
|
`}</style>
|
|
|
|
|
|
|
|
|
|
|
|
{this.props.isAdmin?checkBox:""}
|
|
|
|
{this.props.isAdmin?
|
|
|
|
|
|
|
|
<span className={`shixunitem${index} fl`} style={{"height":"55px"}}>{checkBox}</span>
|
|
|
|
|
|
|
|
:
|
|
|
|
|
|
|
|
""
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
<div className="clearfix ds pr pt5 contentSection" >
|
|
|
|
<div className="clearfix ds pr pt5 contentSection" >
|
|
|
|
<style>{`
|
|
|
|
<style>{`
|
|
|
@ -299,23 +295,23 @@ class ShixunhomeWorkItem extends Component{
|
|
|
|
|
|
|
|
|
|
|
|
{/*to={`/courses/${this.props.match.params.coursesId}/${discussMessage.homework_id}/jobsettings`}*/}
|
|
|
|
{/*to={`/courses/${this.props.match.params.coursesId}/${discussMessage.homework_id}/jobsettings`}*/}
|
|
|
|
{
|
|
|
|
{
|
|
|
|
this.props.isAdmin?<a href={"/courses/"+this.props.match.params.coursesId+"/"+this.state.shixuntypes+"/"+discussMessage.homework_id+"/list?tab=0"}
|
|
|
|
this.props.isAdmin?<Link to={"/courses/"+this.props.match.params.coursesId+"/"+this.state.shixuntypes+"/"+discussMessage.homework_id+"/list?tab=0"}
|
|
|
|
title={discussMessage.name}
|
|
|
|
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 maxwidth580">{discussMessage.name}</Link>:""
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
this.props.isStudent? <a href={`/courses/${this.props.match.params.coursesId}/${this.state.shixuntypes}/${discussMessage.homework_id}/list?tab=0`}
|
|
|
|
this.props.isStudent? <Link to={`/courses/${this.props.match.params.coursesId}/${this.state.shixuntypes}/${discussMessage.homework_id}/list?tab=0`}
|
|
|
|
title={discussMessage.name}
|
|
|
|
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 maxwidth580">{discussMessage.name}</Link>:""
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
this.props.isNotMember===true? this.props.discussMessage.private_icon===true?
|
|
|
|
this.props.isNotMember===true? this.props.discussMessage.private_icon===true?
|
|
|
|
<span className="fl mt3 font-16 font-bd color-dark maxwidth580" title={discussMessage.name}>{discussMessage.name}</span>
|
|
|
|
<span className="fl mt3 font-16 font-bd color-dark maxwidth580" title={discussMessage.name}>{discussMessage.name}</span>
|
|
|
|
: <a href={`/courses/${this.props.match.params.coursesId}/${this.state.shixuntypes}/${discussMessage.homework_id}/list?tab=0`}
|
|
|
|
: <Link to={`/courses/${this.props.match.params.coursesId}/${this.state.shixuntypes}/${discussMessage.homework_id}/list?tab=0`}
|
|
|
|
title={discussMessage.name}
|
|
|
|
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 maxwidth580">{discussMessage.name}</Link>:""
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -383,9 +379,9 @@ class ShixunhomeWorkItem extends Component{
|
|
|
|
`
|
|
|
|
`
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</style>
|
|
|
|
{this.props.isAdmin?<div className={this.props.isAdminOrCreator()?"homepagePostSetting homepagePostSettingname":"homepagePostSetting homepagePostSettingbox"} style={{"right":"-2px","top":"44px","display":"block"}}>
|
|
|
|
{this.props.isAdmin?<div onClick={(event)=>this.stopPro(event)} className={this.props.isAdminOrCreator()?"homepagePostSetting homepagePostSettingname":"homepagePostSetting homepagePostSettingbox"} style={{"right":"-2px","top":"44px","display":"block"}}>
|
|
|
|
<a className="btn colorblue font-16" href={"/shixuns/"+discussMessage.shixun_identifier+"/challenges"} target={"_blank"}>实训详情</a>
|
|
|
|
<Link className="btn colorblue font-16" to={"/shixuns/"+discussMessage.shixun_identifier+"/challenges"} target={"_blank"}>实训详情</Link>
|
|
|
|
{this.props.isAdminOrCreator()?<a onClick={()=>this.editname(discussMessage.name,discussMessage.homework_id)} className={"btn colorblue ml20 font-16"}>重命名</a>:""}
|
|
|
|
{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 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>
|
|
|
|
<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>:""}
|
|
|
|
</div>:""}
|
|
|
@ -408,6 +404,7 @@ class ShixunhomeWorkItem extends Component{
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</React.Fragment>
|
|
|
|
)
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|