From 614d837075f6a489966b3baaa3ff46d8961de004 Mon Sep 17 00:00:00 2001 From: "Jingwei.Zhang" Date: Fri, 5 May 2023 10:43:43 +0800 Subject: [PATCH] fix: optimize the Transfer Optimize the UE of the Transfer component, when click the row of the right table in the Transfer, the row's selection can be changed. Optimized operations: project manage user, project manage user group, set project when create user Change-Id: I932ce902f146072b46c05519e3e1f94db6556ff0 --- .../identity/containers/Project/actions/ManageUser.jsx | 8 +++++++- .../containers/Project/actions/ManageUserGroup.jsx | 8 +++++++- src/pages/identity/containers/User/actions/Create.jsx | 8 +++++++- 3 files changed, 21 insertions(+), 3 deletions(-) diff --git a/src/pages/identity/containers/Project/actions/ManageUser.jsx b/src/pages/identity/containers/Project/actions/ManageUser.jsx index bd8f8824..d59813ad 100644 --- a/src/pages/identity/containers/Project/actions/ManageUser.jsx +++ b/src/pages/identity/containers/Project/actions/ManageUser.jsx @@ -130,6 +130,12 @@ export class ManageUser extends ModalAction { ]; } + onClickSelect = (e) => { + if (e && e.stopPropagation) { + e.stopPropagation(); + } + }; + renderSelect = (id) => { return ( { this.onSubChange(value, option, groupId); }} + onClick={this.onClickSelect} /> ); }; @@ -206,7 +213,6 @@ export class ManageUserGroup extends ModalAction { onChange: this.onChangeUserGroup, wrapperCol: this.wrapperCol, loading: this.userGroupStore.list.isLoading, - onRowRight: () => null, }, ]; } diff --git a/src/pages/identity/containers/User/actions/Create.jsx b/src/pages/identity/containers/User/actions/Create.jsx index 8dc5e899..1dde4333 100644 --- a/src/pages/identity/containers/User/actions/Create.jsx +++ b/src/pages/identity/containers/User/actions/Create.jsx @@ -161,6 +161,12 @@ export class Create extends FormAction { this.setState({ projectRoles }); }; + onClickSelect = (e) => { + if (e && e.stopPropagation) { + e.stopPropagation(); + } + }; + renderSelect = (projectId) => { return (