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
This commit is contained in:
parent
ce254bd808
commit
614d837075
@ -130,6 +130,12 @@ export class ManageUser extends ModalAction {
|
|||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
onClickSelect = (e) => {
|
||||||
|
if (e && e.stopPropagation) {
|
||||||
|
e.stopPropagation();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
renderSelect = (id) => {
|
renderSelect = (id) => {
|
||||||
return (
|
return (
|
||||||
<Select
|
<Select
|
||||||
@ -141,6 +147,7 @@ export class ManageUser extends ModalAction {
|
|||||||
onChange={(value, option) => {
|
onChange={(value, option) => {
|
||||||
this.onSelectChange(value, option, id);
|
this.onSelectChange(value, option, id);
|
||||||
}}
|
}}
|
||||||
|
onClick={this.onClickSelect}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@ -206,7 +213,6 @@ export class ManageUser extends ModalAction {
|
|||||||
filterOption: transferFilterOption,
|
filterOption: transferFilterOption,
|
||||||
wrapperCol: this.wrapperCol,
|
wrapperCol: this.wrapperCol,
|
||||||
loading: this.userStore.list.isLoading,
|
loading: this.userStore.list.isLoading,
|
||||||
onRowRight: () => null,
|
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@ -118,6 +118,12 @@ export class ManageUserGroup extends ModalAction {
|
|||||||
return nameDomainColumns;
|
return nameDomainColumns;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
onClickSelect = (e) => {
|
||||||
|
if (e && e.stopPropagation) {
|
||||||
|
e.stopPropagation();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
renderSelect = (groupId) => {
|
renderSelect = (groupId) => {
|
||||||
return (
|
return (
|
||||||
<Select
|
<Select
|
||||||
@ -129,6 +135,7 @@ export class ManageUserGroup extends ModalAction {
|
|||||||
onChange={(value, option) => {
|
onChange={(value, option) => {
|
||||||
this.onSubChange(value, option, groupId);
|
this.onSubChange(value, option, groupId);
|
||||||
}}
|
}}
|
||||||
|
onClick={this.onClickSelect}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@ -206,7 +213,6 @@ export class ManageUserGroup extends ModalAction {
|
|||||||
onChange: this.onChangeUserGroup,
|
onChange: this.onChangeUserGroup,
|
||||||
wrapperCol: this.wrapperCol,
|
wrapperCol: this.wrapperCol,
|
||||||
loading: this.userGroupStore.list.isLoading,
|
loading: this.userGroupStore.list.isLoading,
|
||||||
onRowRight: () => null,
|
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@ -161,6 +161,12 @@ export class Create extends FormAction {
|
|||||||
this.setState({ projectRoles });
|
this.setState({ projectRoles });
|
||||||
};
|
};
|
||||||
|
|
||||||
|
onClickSelect = (e) => {
|
||||||
|
if (e && e.stopPropagation) {
|
||||||
|
e.stopPropagation();
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
renderSelect = (projectId) => {
|
renderSelect = (projectId) => {
|
||||||
return (
|
return (
|
||||||
<Select
|
<Select
|
||||||
@ -172,6 +178,7 @@ export class Create extends FormAction {
|
|||||||
onChange={(value, option) => {
|
onChange={(value, option) => {
|
||||||
this.onSelectChange(value, option, projectId);
|
this.onSelectChange(value, option, projectId);
|
||||||
}}
|
}}
|
||||||
|
onClick={this.onClickSelect}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
@ -332,7 +339,6 @@ export class Create extends FormAction {
|
|||||||
onChange: this.onChangeProject,
|
onChange: this.onChangeProject,
|
||||||
filterOption: transferFilterOption,
|
filterOption: transferFilterOption,
|
||||||
loading: this.projectStore.list.isLoading,
|
loading: this.projectStore.list.isLoading,
|
||||||
onRowRight: () => null,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'select_user_group',
|
name: 'select_user_group',
|
||||||
|
Loading…
Reference in New Issue
Block a user