This commit is contained in:
mmc
2026-05-20 15:12:51 +08:00
parent 6fb4e4cbfb
commit 36d64043ef
5 changed files with 532 additions and 420 deletions

View File

@@ -447,14 +447,14 @@ export default function UserRolePage() {
: <Tag color="red">停用</Tag>
},
{
title: '是否有设备权限', dataIndex: 'deviceOperatePerm', width: 80,
title: '是否有设备权限', dataIndex: 'deviceOperatePerm', width: 140,
render: (_, s) => s.deviceOperatePerm == true
? <Tag color="green">有权限</Tag>
: <Tag color="red">无权限</Tag>
},
{
title: '操作',
width: 220,
width: 300,
fixed: 'right',
render: (_, r) => (
<Space wrap>
@@ -478,7 +478,6 @@ export default function UserRolePage() {
onChange={(p) => setUserPagination({ ...userPagination, pageNum: p.current!, pageSize: p.pageSize! })}
bordered
size="middle"
// 👇 下面这行是修复不自适应的关键
scroll={{ x: 'max-content' }}
/>
</TabPane>