mirror of https://github.com/openspug/spug
fix:修复角色关联账户较多时,关联账户显示问题
parent
96521a5ef1
commit
eef002d8b0
|
@ -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="禁用"/>}/>
|
||||
|
|
|
@ -40,4 +40,5 @@
|
|||
|
||||
.roleUser :global(.ant-popover-inner-content) {
|
||||
padding: 0;
|
||||
width: 500px;
|
||||
}
|
Loading…
Reference in New Issue