|
|
@ -10,9 +10,9 @@ class GraduateTopicItem extends Component{
|
|
|
|
constructor(props){
|
|
|
|
constructor(props){
|
|
|
|
super(props);
|
|
|
|
super(props);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
editTopic=(topicId)=>{
|
|
|
|
editTopic=(topicId)=>{
|
|
|
|
let courseId=this.props.match.params.coursesId;
|
|
|
|
let courseId=this.props.match.params.coursesId;
|
|
|
|
this.props.history.push(`/courses/${courseId}/graduation_topics/${topicId}/edit`);
|
|
|
|
this.props.history.push(`/classrooms/${courseId}/graduation_topics/${topicId}/edit`);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
toDetailPage=(topicId)=>{
|
|
|
|
toDetailPage=(topicId)=>{
|
|
|
|
|
|
|
|
|
|
|
@ -32,7 +32,7 @@ class GraduateTopicItem extends Component{
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
let courseId=this.props.match.params.coursesId;
|
|
|
|
let courseId=this.props.match.params.coursesId;
|
|
|
|
this.props.history.push(`/courses/${courseId}/graduation_topics/${topicId}/detail`);
|
|
|
|
this.props.history.push(`/classrooms/${courseId}/graduation_topics/${topicId}/detail`);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
render(){
|
|
|
|
render(){
|
|
|
|
const { checkBox, discussMessage, index,chooseTopic,
|
|
|
|
const { checkBox, discussMessage, index,chooseTopic,
|
|
|
@ -107,17 +107,17 @@ class GraduateTopicItem extends Component{
|
|
|
|
<i className="iconfont icon-guansuo color-grey-c ml10 font-16 fl mt4"></i>
|
|
|
|
<i className="iconfont icon-guansuo color-grey-c ml10 font-16 fl mt4"></i>
|
|
|
|
</Tooltip>
|
|
|
|
</Tooltip>
|
|
|
|
:""
|
|
|
|
:""
|
|
|
|
}
|
|
|
|
}
|
|
|
|
<CoursesListType typelist={[map[`${discussMessage.status}`]]} typesylename={""} />
|
|
|
|
<CoursesListType typelist={[map[`${discussMessage.status}`]]} typesylename={""} />
|
|
|
|
</h6>
|
|
|
|
</h6>
|
|
|
|
|
|
|
|
|
|
|
|
<div className="cl"></div>
|
|
|
|
<div className="cl"></div>
|
|
|
|
<p className="color-grey mt20 clearfix">
|
|
|
|
<p className="color-grey mt20 clearfix">
|
|
|
|
<span className="fl mr40 mt1">
|
|
|
|
<span className="fl mr40 mt1">
|
|
|
|
<Tooltip title="指导老师" placement="bottom">
|
|
|
|
<Tooltip title="指导老师" placement="bottom">
|
|
|
|
<span className="color-grey3">{discussMessage.author}</span>
|
|
|
|
<span className="color-grey3">{discussMessage.author}</span>
|
|
|
|
</Tooltip>
|
|
|
|
</Tooltip>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
<span className="fl mr20 color-grey-9 mt1">{discussMessage.selected_count} 已选</span>
|
|
|
|
<span className="fl mr20 color-grey-9 mt1">{discussMessage.selected_count} 已选</span>
|
|
|
|
<span className="fl color-grey-9 mt1">{discussMessage.confirmation_count} 已确认</span>
|
|
|
|
<span className="fl color-grey-9 mt1">{discussMessage.confirmation_count} 已确认</span>
|
|
|
|
<span className="fr">
|
|
|
|
<span className="fr">
|
|
|
@ -136,13 +136,13 @@ class GraduateTopicItem extends Component{
|
|
|
|
isStudent && data.user_selected == true && discussMessage.user_topic_status==0 &&
|
|
|
|
isStudent && data.user_selected == true && discussMessage.user_topic_status==0 &&
|
|
|
|
<WordsBtn onClick={()=>chooseTopic(`${discussMessage.id}`,index,true)} style="blue" className="font-16 mr20">
|
|
|
|
<WordsBtn onClick={()=>chooseTopic(`${discussMessage.id}`,index,true)} style="blue" className="font-16 mr20">
|
|
|
|
取消选题
|
|
|
|
取消选题
|
|
|
|
</WordsBtn>
|
|
|
|
</WordsBtn>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
{
|
|
|
|
isStudent && data.user_selected==false && (discussMessage.user_topic_status == null || discussMessage.user_topic_status == 2) &&
|
|
|
|
isStudent && data.user_selected==false && (discussMessage.user_topic_status == null || discussMessage.user_topic_status == 2) &&
|
|
|
|
<WordsBtn onClick={()=>chooseTopic(`${discussMessage.id}`,index,false)} style="blue" className="font-16 mr20">
|
|
|
|
<WordsBtn onClick={()=>chooseTopic(`${discussMessage.id}`,index,false)} style="blue" className="font-16 mr20">
|
|
|
|
选题
|
|
|
|
选题
|
|
|
|
</WordsBtn>
|
|
|
|
</WordsBtn>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -154,4 +154,4 @@ class GraduateTopicItem extends Component{
|
|
|
|
)
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
export default GraduateTopicItem;
|
|
|
|
export default GraduateTopicItem;
|
|
|
|