import React, {Component} from 'react'; import { BrowserRouter as Router, Route, Switch } from 'react-router-dom'; import axios from 'axios'; import moment from 'moment'; import {SnackbarHOC, WordsBtn, getImageUrl} from 'educoder'; import {TPMIndexHOC} from '../../tpm/TPMIndexHOC'; import competition from '../comcss/competition.css'; import {Button, message, Tooltip} from 'antd'; // 点击按钮复制功能 function jsCopy(s) { var e = document.getElementById(s); e.select(); document.execCommand("Copy"); codesuccess() // const range=document.createRange(); // window.getSelection().removeAllRanges(); // range.selectNode(e.target); // window.getSelection().addRange(range); // const successful =document.execCommand('copy'); // if(successful){ // codesuccess() // } } function codesuccess() { message.success('复制成功'); }; // 团队竞赛报名无报名子组件团队 竞赛报名-已创建战队 class PersonalCompetititem extends React.Component { constructor(props) { super(props) } componentDidMount() { // // ////console.log(this.props.data) } componentDidUpdate = (prevProps) => { // // if (prevProps.data != this.props.data) { // // } } render() { const {key, item, type, mode} = this.props; // ////console.log("PersonalCompetititem"); // ////console.log(data); // ////console.log(data[0]); // ////console.log(data&&data[0].creator.image_url); // const listItems = mydatas.map((item, index) => // // ); // console.log("PersonalCompetititem"); // console.log(data); // console.log("PersonalCompetititem"); // console.log(type); // console.log("sdasjdhahsdas"); // console.log(this.props); return (
{item.name}
this.props.Exittheteamshow(item.id, true)}>删除战队
this.props.Createateamedit(item)}>编辑战队
this.props.Exittheteamshow(item.id, false)}>退出战队
this.props.Exittheteamshow(item.id, true)}>删除战队
this.props.Createateamedit(item)}>编辑战队
this.props.Exittheteamshow(item.id, false)}>退出战队
this.props.Exittheteamshow(item.id, true)}>删除战队
this.props.Createateamedit(item)}>编辑战队
this.props.Exittheteamshow(item.id, false)}>退出战队
this.props.Exittheteamshow(item.id, true)}>删除战队
this.props.Createateamedit(item)}>编辑战队
this.props.Exittheteamshow(item.id, false)}>退出战队
this.props.Exittheteamshow(item.id, false)}>退出战队