From e51312f005e6431802163c3dd1c64de6e7d2d6bf Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com>
Date: Fri, 25 Oct 2019 15:54:49 +0800
Subject: [PATCH] =?UTF-8?q?=E7=AB=9E=E8=B5=9B22?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/modules/competition/Registration.js | 15 +++--
.../competition/comcss/competition.css | 7 +++
.../personal/PersonalCompetititem.js | 56 +++++++++----------
3 files changed, 45 insertions(+), 33 deletions(-)
diff --git a/public/react/src/modules/competition/Registration.js b/public/react/src/modules/competition/Registration.js
index 76fc40ba8..02ad66ab6 100644
--- a/public/react/src/modules/competition/Registration.js
+++ b/public/react/src/modules/competition/Registration.js
@@ -512,7 +512,7 @@ class Registration extends React.Component {
})
return
}
- if (this.props.user.admin === true) {
+ if (this.props.user.is_teacher === true) {
//老师
if (this.state.teacher_staff === null) {
//禁止老师
@@ -793,9 +793,16 @@ class Registration extends React.Component {
{/*普通账号出现单人 战队弹框*/}
{
type === 2 || type === 3 || type === 5 ?
-
{data[0].creator.name}
+ }}>{item.creator.name}this.props.Exittheteamshow(data[0].id, false)}>删除战队
+this.props.Exittheteamshow(item.id, false)}>删除战队
this.props.Createateamedit(data[0])}>编辑战队
+this.props.Createateamedit(item)}>编辑战队
this.props.Exittheteamshow(data[0].id, false)}>删除战队
+this.props.Exittheteamshow(item.id, false)}>删除战队
this.props.Createateamedit(data[0])}>编辑战队
+this.props.Createateamedit(item)}>编辑战队
this.props.Exittheteamshow(data[0].id, false)}>退出战队
+this.props.Exittheteamshow(item.id, false)}>退出战队