import React, { Component } from 'react'; import {Button,Layout,Tabs,Icon, Card, Avatar, Row, Col ,Table} from 'antd'; import axios from 'axios'; import {markdownToHTML,getImageUrl} from 'educoder'; import NoneData from "../../courses/shixunHomework/shixunHomework"; const { Header, Footer, Sider, Content } = Layout; const { TabPane } = Tabs; const { Meta } = Card; class CompetitionContents extends Component{ constructor(props) { super(props) this.state={ } } componentDidMount(){ window.document.title = '竞赛'; this.gettitledata() } gettitledata=()=>{ let url=`/competitions/${this.props.match.params.identifier}/chart_rules.json`; axios.get(url) .then((response) => { console.log(response) }).catch((error) => { console.log(error) }) } render() { const operations = ; const columns = [ { title: 'usersum', dataIndex: 'usersum', key: 'name', render: text => {text}, }, { title: 'userimg', dataIndex: 'userimg', key: 'userimg', render: text => , }, { 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 = [ { usersum: '1', userimg: 'John Brown', username: "小头鹰", school: '吉首大学', spendtime: '15:00:00', score:123123 } ]; return (
总排名
  • 蒙睿

  • } >
    吉首大学
    78:01:02
    } description={
    3423.45分
    } />
  • 李羿锟

  • } >
    吉首大学
    78:01:02
    } description={
    3423.45分
    } />
  • 陈翊

  • } >
    吉首大学
    78:01:02
    } description={
    3423.45分
    } />
    ) } } export default CompetitionContents;