Merge pull request #467 from Lucius-chen/3.0

fix:修复角色关联账户较多时,关联账户显示问题
pull/480/head
vapao 2022-04-04 09:09:58 +08:00 committed by GitHub
commit 7cacb96ffb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -12,7 +12,7 @@ import uStore from '../account/store';
export default observer(function (props) {
const users = uStore.records.filter(x => x.role_ids.includes(props.id))
return (
<Table rowKey="id" dataSource={users} pagination={false}>
<Table rowKey="id" dataSource={users} pagination={false} scroll={{y: 500,x: 500}}>
<Table.Column title="姓名" dataIndex="nickname"/>
<Table.Column title="状态" dataIndex="is_active"
render={v => v ? <Badge status="success" text="正常"/> : <Badge status="default" text="禁用"/>}/>

View File

@ -40,4 +40,5 @@
.roleUser :global(.ant-popover-inner-content) {
padding: 0;
width: 500px;
}