|
|
|
@ -129,12 +129,16 @@ class Fileslistitem extends Component{
|
|
|
|
|
.catch(function (error) {
|
|
|
|
|
console.log(error);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
eventStop = (event) =>{
|
|
|
|
|
event.stopPropagation()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
render(){
|
|
|
|
|
|
|
|
|
|
const { checkBox,
|
|
|
|
|
discussMessage,
|
|
|
|
|
discussMessage,index
|
|
|
|
|
} = this.props;
|
|
|
|
|
|
|
|
|
|
return(
|
|
|
|
@ -190,9 +194,9 @@ class Fileslistitem extends Component{
|
|
|
|
|
white-space:nowrap
|
|
|
|
|
}
|
|
|
|
|
`}</style>
|
|
|
|
|
<div className="clearfix ds pr contentSection">
|
|
|
|
|
<h6>
|
|
|
|
|
<span className="fl mr12 mt3">
|
|
|
|
|
<div className="clearfix ds pr contentSection" style={{cursor : this.props.isAdmin ? "pointer" : "default"}} onClick={() => window.$(`.sourceitem${index} input`).click() }>
|
|
|
|
|
<h6 onClick={(event)=>this.eventStop(event)}>
|
|
|
|
|
<span className={`sourceitem${index} fl mr12 mt3`}>
|
|
|
|
|
{checkBox}
|
|
|
|
|
</span>
|
|
|
|
|
{
|
|
|
|
@ -283,16 +287,15 @@ class Fileslistitem extends Component{
|
|
|
|
|
</span>
|
|
|
|
|
</span>
|
|
|
|
|
{this.props.isAdmin?
|
|
|
|
|
<span className={"fr mrf2 mr10"}>
|
|
|
|
|
|
|
|
|
|
<span className={"fr mrf2 mr10"} onClick={(event)=>this.eventStop(event)}>
|
|
|
|
|
<WordsBtn style="blue" className="colorblue font-16 mr20 fr">
|
|
|
|
|
<a className="btn colorblue"
|
|
|
|
|
onClick={()=>this.settingList()}>设置</a>
|
|
|
|
|
</WordsBtn>
|
|
|
|
|
<a className="btn colorblue"
|
|
|
|
|
onClick={()=>this.settingList()}>设置</a>
|
|
|
|
|
</WordsBtn>
|
|
|
|
|
</span>:""}
|
|
|
|
|
|
|
|
|
|
{this.props.isStudent===true&&this.props.current_user.login===discussMessage.author.login?
|
|
|
|
|
<span className={"fr mrf2 mr10"}>
|
|
|
|
|
<span className={"fr mrf2 mr10"} onClick={(event)=>this.eventStop(event)}>
|
|
|
|
|
|
|
|
|
|
<WordsBtn style="blue" className="colorblue font-16 mr20 fr">
|
|
|
|
|
<a className="btn colorblue"
|
|
|
|
|