From f954be3b1b16c9d89872ec4d3449ec3b324fc768 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com> Date: Sat, 19 Oct 2019 09:44:44 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AB=9E=E8=B5=9B=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/modules/competition/Registration.js | 40 +++++++++---- .../modules/competition/Registrationitem.js | 58 +++++++++++++++---- 2 files changed, 74 insertions(+), 24 deletions(-) diff --git a/public/react/src/modules/competition/Registration.js b/public/react/src/modules/competition/Registration.js index 911ea2f0c..465a041d0 100644 --- a/public/react/src/modules/competition/Registration.js +++ b/public/react/src/modules/competition/Registration.js @@ -25,7 +25,7 @@ class Registration extends React.Component { loadingstate: false, page: 1, limit: 20, - + type: 5, } } @@ -37,7 +37,7 @@ class Registration extends React.Component { }) } render() { - const {persons, page, limit} = this.state; + const {persons, page, limit, type} = this.state; const listItems = persons.map((item, index) => ); @@ -55,26 +55,42 @@ class Registration extends React.Component {

{/*大图*/} - + {/*大图结尾*/} {/*没数据*/} {/**/} - - - - + { + type === 4 || type === 5 ? + + : "" + } + { + type === 4 || type === 5 ? + + : + "" + } + + + {type === 4 || type === 5 ? listItems + : + "" } {/**/} + { + type === 5 ? +
+ +
+ : "" + } -
- -
diff --git a/public/react/src/modules/competition/Registrationitem.js b/public/react/src/modules/competition/Registrationitem.js index 9db982d45..5dd6e0b53 100644 --- a/public/react/src/modules/competition/Registrationitem.js +++ b/public/react/src/modules/competition/Registrationitem.js @@ -86,19 +86,53 @@ class Registrationitem extends React.Component { }} > -
-
-

战队详情

-
-
-

退出战队

-
+ { + this.props.type === 5 ? +
+
+

删除战队

+
+
+

编辑战队

+
+ +
+ : this.props.type === 2 ? +
+
+

战队详情

+
+
+

退出战队

+
+ +
+ : + this.props.type === 2 ? +
+ +
+

退出战队

+
+ +
+ : + "" + + } -