fix: 修复用户管理表格布局问题

- 增加操作列宽度从250px到320px(容纳3个按钮)
- 添加表格横向滚动配置(scroll x: 1200)
- 确保固定的操作列不会遮挡其他内容
This commit is contained in:
Your Name 2026-01-03 10:50:41 +08:00
parent c62fe7853f
commit 93781bb202

View File

@ -317,6 +317,7 @@
:loading="userLoading"
row-key="id"
:pagination="{ pageSize: 15 }"
:scroll="{ x: 1200 }"
>
<template #bodyCell="{ column, record }">
<template v-if="column.key === 'userInfo'">
@ -1625,7 +1626,7 @@ const userManagementColumns = [
{ title: '管理员', key: 'isAdmin', width: 100 },
{ title: '状态', key: 'status', width: 100 },
{ title: '创建时间', key: 'createTime', width: 160 },
{ title: '操作', key: 'actions', width: 250, fixed: 'right' }
{ title: '操作', key: 'actions', width: 320, fixed: 'right' }
]
// 所有用户的扁平列表(用于表格展示)