From 487a2f0495666382bee6acb713581a3bfac67499 Mon Sep 17 00:00:00 2001 From: caishi <1149225589@qq.com> Date: Mon, 19 Apr 2021 11:53:19 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=84=E7=BB=87=E5=9B=A2=E9=98=9F-=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E4=B8=80=E4=B8=AA=E5=9B=A2=E9=98=9F=E6=A0=87=E8=AF=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/forge/Team/Group/GroupDetails.jsx | 2 +- src/forge/Team/Group/GroupForm.jsx | 26 ++++++++++++++++++++++++-- src/forge/Team/TeamGroupItems.jsx | 2 +- 3 files changed, 26 insertions(+), 4 deletions(-) diff --git a/src/forge/Team/Group/GroupDetails.jsx b/src/forge/Team/Group/GroupDetails.jsx index 9d27767d..8d1c519b 100644 --- a/src/forge/Team/Group/GroupDetails.jsx +++ b/src/forge/Team/Group/GroupDetails.jsx @@ -101,7 +101,7 @@ export default ((props) => { group ?
- {group.name} + {group.nickname} {group.is_member && !group.is_admin ? @@ -144,10 +155,21 @@ export default Form.create()(
{helper( - '团队名称:', + '团队标识:', "name", + [ + { required: true, message: "请输入团队标识" }, + { + validator:checkname + } + ], + , true + )} + {helper( + '团队名称:', + "nickname", [{ required: true, message: "请输入团队名称" }], - , true + , true )} {helper( 团队描述:(描述团队的目的或作用), diff --git a/src/forge/Team/TeamGroupItems.jsx b/src/forge/Team/TeamGroupItems.jsx index fe73c505..fd66f1eb 100644 --- a/src/forge/Team/TeamGroupItems.jsx +++ b/src/forge/Team/TeamGroupItems.jsx @@ -75,7 +75,7 @@ function TeamGroupItems({organizeDetail,limit, count , history}){ return(

- {item.name} + {item.nickname} { item.is_admin && item.authorize!=="owner" && disMissGroup(item.id)}>解散团队} { item.is_member && }