Merge branches 'dev_aliyun' and 'ysm1' of https://bdgit.educoder.net/Hjqreturn/educoder into dev_aliyun
Before Width: | Height: | Size: 169 KiB After Width: | Height: | Size: 169 KiB |
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 3.2 KiB |
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 4.7 KiB |
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 3.6 KiB |
After Width: | Height: | Size: 137 KiB |
@ -0,0 +1,59 @@
|
|||||||
|
import React, {Component} from 'react';
|
||||||
|
import {getImageUrl} from 'educoder';
|
||||||
|
import {Modal, Input, Spin, Tooltip, Icon, Dropdown, Button} from 'antd';
|
||||||
|
import axios from 'axios';
|
||||||
|
import competition from '../comcss/competition.css';
|
||||||
|
import Registrationitem from "../Registrationitem";
|
||||||
|
import InfiniteScroll from 'react-infinite-scroller';
|
||||||
|
// import PersonModaltion from "./PersonModaltion";
|
||||||
|
const {Search} = Input;
|
||||||
|
|
||||||
|
//退出战队
|
||||||
|
class ExittheteamModel extends React.Component {
|
||||||
|
|
||||||
|
constructor(props) {
|
||||||
|
super(props);
|
||||||
|
this.state = {}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
render() {
|
||||||
|
const {
|
||||||
|
addonAfter, test, test3, Numberofteammentors, Thecurrentnumber, person1, person2
|
||||||
|
} = this.state;
|
||||||
|
//Modal
|
||||||
|
//keyboard是否支持键盘 esc 关闭
|
||||||
|
//closable 是否显示右上角的关闭按钮
|
||||||
|
//底部内容,当不需要默认底部按钮时,可以设为 footer={null}
|
||||||
|
//destroyOnClose 关闭时销毁 Modal 里的子元素
|
||||||
|
//centered 垂直居中展示 Modal
|
||||||
|
//visible 弹出框是否显示
|
||||||
|
|
||||||
|
return (
|
||||||
|
|
||||||
|
<Modal
|
||||||
|
keyboard={false}
|
||||||
|
closable={false}
|
||||||
|
footer={null}
|
||||||
|
destroyOnClose={true}
|
||||||
|
title={this.props.messageexit}
|
||||||
|
centered={true}
|
||||||
|
visible={this.props.messageexitol === undefined ? false : this.props.messageexitol}
|
||||||
|
width="480px"
|
||||||
|
>
|
||||||
|
|
||||||
|
<div className="task-popup-content">
|
||||||
|
<div className="task-popup-text-center font-14">{this.props.exitintpermessages}</div>
|
||||||
|
</div>
|
||||||
|
<div className="task-popup-submit clearfix">
|
||||||
|
<a className="pop_close task-btn mb10 mr40 colorFFF"
|
||||||
|
onClick={() => this.props.Exittheteam(false)}>取消</a>
|
||||||
|
<a className="task-btn task-btn-orange fr" onClick={() => this.props.Exittheteam(true)}>确定</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</Modal>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export default ExittheteamModel;
|
After Width: | Height: | Size: 1.1 KiB |
@ -0,0 +1,38 @@
|
|||||||
|
import React, { Component } from 'react';
|
||||||
|
import {Button,Layout} from 'antd';
|
||||||
|
import axios from 'axios';
|
||||||
|
import {markdownToHTML,getImageUrl} from 'educoder';
|
||||||
|
import NoneData from "../../courses/shixunHomework/shixunHomework";
|
||||||
|
|
||||||
|
const { Header, Footer, Sider, Content } = Layout;
|
||||||
|
class CompetitionContents extends Component{
|
||||||
|
constructor(props) {
|
||||||
|
super(props)
|
||||||
|
this.state={
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
componentDidMount(){
|
||||||
|
window.document.title = '竞赛';
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
render() {
|
||||||
|
|
||||||
|
return (
|
||||||
|
|
||||||
|
<div className={"fr"}>
|
||||||
|
<Button className={"fr"} type="primary" ghost>
|
||||||
|
编辑
|
||||||
|
</Button>
|
||||||
|
<Content className={"markdown-body"} dangerouslySetInnerHTML={{__html: markdownToHTML("").replace(/▁/g, "▁▁▁")}}>
|
||||||
|
</Content>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
export default CompetitionContents;
|
@ -0,0 +1,189 @@
|
|||||||
|
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 = '竞赛';
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
render() {
|
||||||
|
const operations = <Icon type="form" />;
|
||||||
|
const columns = [
|
||||||
|
{
|
||||||
|
title: 'Name',
|
||||||
|
dataIndex: 'name',
|
||||||
|
key: 'name',
|
||||||
|
render: text => <a>{text}</a>,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Age',
|
||||||
|
dataIndex: 'age',
|
||||||
|
key: 'age',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Address',
|
||||||
|
dataIndex: 'address',
|
||||||
|
key: 'address',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Tags',
|
||||||
|
key: 'tags',
|
||||||
|
dataIndex: 'tags',
|
||||||
|
render: tags => (
|
||||||
|
<span>
|
||||||
|
123123
|
||||||
|
</span>
|
||||||
|
),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Action',
|
||||||
|
key: 'action',
|
||||||
|
render: (text, record) => (
|
||||||
|
<span>
|
||||||
|
<a>Invite {record.name}</a>
|
||||||
|
<a>Delete</a>
|
||||||
|
</span>
|
||||||
|
),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: 'Values',
|
||||||
|
key: 'values',
|
||||||
|
dataIndex: 'values',
|
||||||
|
render: tags => (
|
||||||
|
<span>
|
||||||
|
123123
|
||||||
|
</span>
|
||||||
|
),
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
||||||
|
const data = [
|
||||||
|
{
|
||||||
|
key: '1',
|
||||||
|
name: 'John Brown',
|
||||||
|
age: 32,
|
||||||
|
address: 'New York No. 1 Lake Park',
|
||||||
|
tags: ['nice', 'developer'],
|
||||||
|
values:123
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: '2',
|
||||||
|
name: 'Jim Green',
|
||||||
|
age: 42,
|
||||||
|
address: 'London No. 1 Lake Park',
|
||||||
|
tags: ['loser'],
|
||||||
|
values:123
|
||||||
|
},
|
||||||
|
{
|
||||||
|
key: '3',
|
||||||
|
name: 'Joe Black',
|
||||||
|
age: 32,
|
||||||
|
address: 'Sidney No. 1 Lake Park',
|
||||||
|
tags: ['cool', 'teacher'],
|
||||||
|
values:123
|
||||||
|
},
|
||||||
|
];
|
||||||
|
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div>
|
||||||
|
<Tabs tabBarExtraContent={operations}>
|
||||||
|
<TabPane tab="总排行榜" key="1">
|
||||||
|
<Content className={"markdown-body"} dangerouslySetInnerHTML={{__html: markdownToHTML("Content of tab 1").replace(/▁/g, "▁▁▁")}}>
|
||||||
|
</Content>
|
||||||
|
</TabPane>
|
||||||
|
<TabPane tab="决赛排行榜" key="2">
|
||||||
|
<Content className={"markdown-body"} dangerouslySetInnerHTML={{__html: markdownToHTML("Content of tab 2").replace(/▁/g, "▁▁▁")}}>
|
||||||
|
</Content>
|
||||||
|
</TabPane>
|
||||||
|
<TabPane tab="预赛排行榜" key="3">
|
||||||
|
<Content className={"markdown-body"} dangerouslySetInnerHTML={{__html: markdownToHTML("Content of tab 3").replace(/▁/g, "▁▁▁")}}>
|
||||||
|
</Content>
|
||||||
|
</TabPane>
|
||||||
|
</Tabs>
|
||||||
|
|
||||||
|
|
||||||
|
<Col className="gutter-row Competitioncharts mt30 mb30">
|
||||||
|
总排名
|
||||||
|
</Col>
|
||||||
|
|
||||||
|
<Row calssName={"Competition399"}>
|
||||||
|
<Col className="mt40" xs={{ span: 5, offset: 1 }} lg={{ span: 6, offset: 2 }}>
|
||||||
|
<Card
|
||||||
|
className={"Competitionthird"}
|
||||||
|
cover={
|
||||||
|
<img
|
||||||
|
alt="example"
|
||||||
|
src="https://gw.alipayobjects.com/zos/rmsportal/JiqGstEfoWAOHiTxclqi.png"
|
||||||
|
/>
|
||||||
|
}
|
||||||
|
>
|
||||||
|
<Meta
|
||||||
|
title="Card title"
|
||||||
|
description="This is the description"
|
||||||
|
/>
|
||||||
|
</Card>
|
||||||
|
</Col>
|
||||||
|
<Col xs={{ span: 11, offset: 1 }} lg={{ span: 6, offset: 1 }}>
|
||||||
|
<Card
|
||||||
|
className={"Competitionfirst"}
|
||||||
|
cover={
|
||||||
|
<img
|
||||||
|
alt="example"
|
||||||
|
src="https://gw.alipayobjects.com/zos/rmsportal/JiqGstEfoWAOHiTxclqi.png"
|
||||||
|
/>
|
||||||
|
}
|
||||||
|
>
|
||||||
|
<Meta
|
||||||
|
title="Card title"
|
||||||
|
description="This is the description"
|
||||||
|
/>
|
||||||
|
</Card>
|
||||||
|
|
||||||
|
</Col>
|
||||||
|
<Col className="mt30" xs={{ span: 5, offset: 1 }} lg={{ span: 6, offset: 1 }}>
|
||||||
|
<Card
|
||||||
|
className={"Competitionsecondary"}
|
||||||
|
cover={
|
||||||
|
<img
|
||||||
|
alt="example"
|
||||||
|
src="https://gw.alipayobjects.com/zos/rmsportal/JiqGstEfoWAOHiTxclqi.png"
|
||||||
|
/>
|
||||||
|
}
|
||||||
|
>
|
||||||
|
<Meta
|
||||||
|
title="Card title"
|
||||||
|
description="This is the description"
|
||||||
|
/>
|
||||||
|
</Card>
|
||||||
|
</Col>
|
||||||
|
</Row>
|
||||||
|
|
||||||
|
<Row className={"mt80 mb80"}>
|
||||||
|
<Table className="Competitiontransparent" columns={columns} dataSource={data} showHeader={false} pagination={false}/>
|
||||||
|
</Row>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
export default CompetitionContents;
|