import React, { Component } from 'react'; import {Button,Layout,Tabs,Icon, Card, Avatar, Row, Col ,Table} from 'antd'; import {markdownToHTML,getImageUrl} from 'educoder'; import NoneData from "../../courses/shixunHomework/shixunHomework"; const { Content } = Layout; const { TabPane } = Tabs; const { Meta } = Card; class CompetitionContents extends Component{ constructor(props) { super(props) this.state={ } } componentDidMount(){ window.document.title = '竞赛'; } render() { const operations =
const columns = [ { title: 'usersum', dataIndex: 'usersum', key: 'name', render: text => {text}, }, { title: 'userimg', dataIndex: 'userimg', key: 'userimg', render: (text, record) =>( ), }, { title: 'username', dataIndex: 'username', key: 'username', render: text => {text}, }, { title: 'school', dataIndex: 'school', key: 'school', render: text => {text}, }, { title: 'spendtime', dataIndex: 'spendtime', key: 'spendtime', render: text => {text}, }, { title: 'score', dataIndex: 'score', key: 'score', render: text => {text}, }, ]; const data = []; let {chart_rules,chartdata}=this.props; chartdata===undefined?"":chartdata.teams.length===0?"":chartdata.teams.map((item,key)=>{ if(key>3){ let list={ usersum:key, userimg:item.user_image, username:item.record_user_name, school:item.school_name, spendtime:item.spend_time, score:item.score, user_login:item.user_login } data.push(list) } }) // // console.log(this.props.chartdata&&this.props.chartdata.user_ranks) return (
{chart_rules===undefined?"":this.props.Competitioncallback(e)} activeKey={this.props.tabkey} tabBarExtraContent={this.props.current_user&&this.props.current_user.admin===true||this.props.current_user&&this.props.current_user.business===true?this.props.Competitionedittype===false?operations:"":""}> {chart_rules.stages.map((item,key)=>{ return( {chart_rules.rule_contents.map((items,keys)=>{ if(item.id===items.competition_stage_id){ return( ) }else if(item.id===null&&items.competition_stage_id===0){ return( ) } })} ) })} } 总排名
要抓住一切机会,向所有人证明你自己,证明你能够迎接荣耀
{chartdata===undefined?"":chartdata.teams.length===0?"":chartdata.teams.map((item,key)=>{ if(key===1){ return(
  • {item.record_user_name}

  • } >
    {item.school_name}
    {item.spend_time}
    } description={
    {item.score}分
    } /> ) } if(key===2){ return(
  • {item.record_user_name}

  • } >
    {item.school_name}
    {item.spend_time}
    } description={
    {item.score}分
    } />
    ) } if(key===3){ return(
  • {item.user_name}

  • } >
    {item.school_name}
    {item.spend_time}
    } description={
    {item.score}分
    } />
    ) } })} {chartdata===undefined?"":chartdata.teams.length===0?"":} ) } } export default CompetitionContents;