|
|
@ -7,6 +7,7 @@ import axios from 'axios';
|
|
|
|
import Modals from '../../modals/Modals';
|
|
|
|
import Modals from '../../modals/Modals';
|
|
|
|
import Associationmodel from '../coursesPublic/Associationmodel';
|
|
|
|
import Associationmodel from '../coursesPublic/Associationmodel';
|
|
|
|
import ModalsRename from '../coursesPublic/ModalsRename';
|
|
|
|
import ModalsRename from '../coursesPublic/ModalsRename';
|
|
|
|
|
|
|
|
import LoginDialog from '../../login/LoginDialog';
|
|
|
|
// import '../../css/members.css'
|
|
|
|
// import '../../css/members.css'
|
|
|
|
import './style.css'
|
|
|
|
import './style.css'
|
|
|
|
|
|
|
|
|
|
|
@ -19,7 +20,8 @@ class ShixunhomeWorkItem extends Component{
|
|
|
|
modalname:"关联项目",
|
|
|
|
modalname:"关联项目",
|
|
|
|
visible:false,
|
|
|
|
visible:false,
|
|
|
|
startbtn:false,
|
|
|
|
startbtn:false,
|
|
|
|
code_review:false
|
|
|
|
code_review:false,
|
|
|
|
|
|
|
|
isRender:false,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// console.log("获取到this.propssssssssssss")
|
|
|
|
// console.log("获取到this.propssssssssssss")
|
|
|
|
// console.log(this.props)
|
|
|
|
// console.log(this.props)
|
|
|
@ -142,7 +144,29 @@ class ShixunhomeWorkItem extends Component{
|
|
|
|
this.setState({
|
|
|
|
this.setState({
|
|
|
|
ModalsRenametype:false,
|
|
|
|
ModalsRenametype:false,
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
Modifyloginvalue=()=>{
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
|
|
|
|
isRender:false,
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
showfiles =(url)=>{
|
|
|
|
|
|
|
|
// console.log("ShixunhomeWorkItemshowfiles");
|
|
|
|
|
|
|
|
// console.log( this.props.current_user.username);
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
if(this.props.current_user.username==="游客"){
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
|
|
|
|
isRender:true,
|
|
|
|
|
|
|
|
match:"",
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}catch (e) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
this.props.history.push(url);
|
|
|
|
|
|
|
|
// this.props.current_user
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
render(){
|
|
|
|
render(){
|
|
|
|
let {
|
|
|
|
let {
|
|
|
|
Modalstype,
|
|
|
|
Modalstype,
|
|
|
@ -158,7 +182,7 @@ class ShixunhomeWorkItem extends Component{
|
|
|
|
startshixunCombattype,
|
|
|
|
startshixunCombattype,
|
|
|
|
shixunsmessage,
|
|
|
|
shixunsmessage,
|
|
|
|
startbtn,
|
|
|
|
startbtn,
|
|
|
|
|
|
|
|
isRender,
|
|
|
|
} = this.state;
|
|
|
|
} = this.state;
|
|
|
|
|
|
|
|
|
|
|
|
const { checkBox,
|
|
|
|
const { checkBox,
|
|
|
@ -179,6 +203,12 @@ class ShixunhomeWorkItem extends Component{
|
|
|
|
cannerNavmoda={()=>this.cannerNavmoda()}
|
|
|
|
cannerNavmoda={()=>this.cannerNavmoda()}
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
:""}
|
|
|
|
:""}
|
|
|
|
|
|
|
|
{isRender===true?<LoginDialog
|
|
|
|
|
|
|
|
Modifyloginvalue={()=>this.Modifyloginvalue()}
|
|
|
|
|
|
|
|
{...this.props}
|
|
|
|
|
|
|
|
{...this.state}
|
|
|
|
|
|
|
|
/>:""}
|
|
|
|
|
|
|
|
|
|
|
|
<Modals
|
|
|
|
<Modals
|
|
|
|
modalsType={Modalstype}
|
|
|
|
modalsType={Modalstype}
|
|
|
|
modalsTopval={Modalstopval}
|
|
|
|
modalsTopval={Modalstopval}
|
|
|
@ -289,28 +319,31 @@ class ShixunhomeWorkItem extends Component{
|
|
|
|
text-overflow:ellipsis;
|
|
|
|
text-overflow:ellipsis;
|
|
|
|
white-space:nowrap
|
|
|
|
white-space:nowrap
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.ShixunhomeWorkItemA{
|
|
|
|
|
|
|
|
}
|
|
|
|
`}</style>
|
|
|
|
`}</style>
|
|
|
|
<h6>
|
|
|
|
<h6>
|
|
|
|
|
|
|
|
|
|
|
|
{/*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?<Link to={"/courses/"+this.props.match.params.coursesId+"/"+this.state.shixuntypes+"/"+discussMessage.homework_id+"/list?tab=0"}
|
|
|
|
this.props.isAdmin?<a onClick={()=>this.showfiles("/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}</Link>:""
|
|
|
|
className=" fl mt3 font-16 font-bd color-dark maxwidth580">{discussMessage.name}</a>:""
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
this.props.isStudent? <Link to={`/courses/${this.props.match.params.coursesId}/${this.state.shixuntypes}/${discussMessage.homework_id}/list?tab=0`}
|
|
|
|
this.props.isStudent? <a onClick={()=>this.showfiles(`/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}</Link>:""
|
|
|
|
className=" fl mt3 font-16 font-bd color-dark maxwidth580">{discussMessage.name}</a>:""
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
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
|
|
|
|
: <Link to={`/courses/${this.props.match.params.coursesId}/${this.state.shixuntypes}/${discussMessage.homework_id}/list?tab=0`}
|
|
|
|
className=" fl mt3 font-16 font-bd color-dark maxwidth580" title={discussMessage.name}>{discussMessage.name}</span>
|
|
|
|
|
|
|
|
: <a onClick={()=>this.showfiles(`/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}</Link>:""
|
|
|
|
className="fl mt3 font-16 font-bd color-dark maxwidth580">{discussMessage.name}</a>:""
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|