import React,{ Component } from "react"; import CoursesListType from '../../coursesPublic/CoursesListType'; import { WordsBtn } from 'educoder' import {Tooltip} from 'antd' import axios from 'axios' const map={0:"待选中",1:"待确认",2:"已确认"} class GraduateTopicItem extends Component{ constructor(props){ super(props); } editTopic=(topicId)=>{ let courseId=this.props.match.params.coursesId; this.props.history.push(`/courses/${courseId}/graduation_topics/${topicId}/edit`); } toDetailPage=(topicId)=>{ let courseId=this.props.match.params.coursesId; this.props.history.push(`/courses/${courseId}/graduation_topics/${topicId}/detail`); } render(){ const { checkBox, discussMessage, index,chooseTopic, data, courseId } = this.props; const isAdmin = this.props.isAdmin(); const isStudent=this.props.isStudent(); const isNotMember=this.props.isNotMember(); if (!discussMessage || !discussMessage.author) { return ''; } return(