From 8c172b59a575562913df6b17d77c16f376a915c0 Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期二, 10 九月 2024 17:10:48 +0800 Subject: [PATCH] # --- zy-acs-flow/src/page/user/UserList.jsx | 25 +++++++++++++++++++------ 1 files changed, 19 insertions(+), 6 deletions(-) diff --git a/zy-acs-flow/src/page/user/UserList.jsx b/zy-acs-flow/src/page/user/UserList.jsx index ba3dc7f..5a55c8b 100644 --- a/zy-acs-flow/src/page/user/UserList.jsx +++ b/zy-acs-flow/src/page/user/UserList.jsx @@ -43,7 +43,7 @@ import { PAGE_DRAWER_WIDTH, OPERATE_MODE } from '@/config/setting'; import * as Common from '@/utils/common'; import UserListAside from "./UserListAside"; -import RolesField from './RolesField'; +import RolesField from './RolesField'; const StyledDatagrid = styled(DatagridConfigurable)(({ theme }) => ({ '& .css-1vooibu-MuiSvgIcon-root': { @@ -52,13 +52,26 @@ '& .RaDatagrid-row': { cursor: 'auto' }, - '& .column-name': { + '& .column-username': { + maxWidth: '10em', + overflow: 'hidden', + textOverflow: 'ellipsis', + whiteSpace: 'nowrap', + }, + '& .column-nickname': { + maxWidth: '10em', + overflow: 'hidden', + textOverflow: 'ellipsis', + whiteSpace: 'nowrap', + }, + '& .column-deptId': { + maxWidth: '10em', + overflow: 'hidden', + textOverflow: 'ellipsis', + whiteSpace: 'nowrap', }, '& .opt': { width: 200 - }, - '& .column-deptId': { - maxWidth: 80 }, '& .column-statusBool': { maxWidth: 60 @@ -137,7 +150,7 @@ rowClick={(id, resource, record) => false} expand={() => <UserPanel />} expandSingle={true} - omit={['id', 'email', 'idCard', 'birthday', 'updateTime', 'createTime', 'memo']} + omit={['id', 'email', 'idCard', 'birthday', 'realName', 'updateTime', 'createTime', 'memo']} > <NumberField source="id" /> <TextField source="username" label="table.field.user.username" /> -- Gitblit v1.9.1