This commit is contained in:
zlwu committed 2026-06-14 17:20:52 +08:00
1 parent a79aee2614
commit 427bcb1551
274 files changed
+59416 -38342

No files matched your search

+31 -4
View File
@@ -120,10 +120,17 @@
<el-table-column
prop="nickName"
label="用户名"
min-width="100"
align="center"
header-align="center"
/>
min-width="140"
align="left"
header-align="left"
>
<template #default="{ row }">
<div class="user-nick-cell">
<el-avatar :size="24" :src="resolveUserAvatarFromInfo(row)" />
<span class="user-nick-cell__name">{{ row.nickName }}</span>
</div>
</template>
</el-table-column>
<el-table-column
prop="deptName"
label="所属组织"
@@ -342,6 +349,7 @@
fetchRoleOptions
} from '@/api/admin'
import { buildPathLabelMapFromTreeRoots } from '@/utils/tree-path'
import { resolveUserAvatarFromInfo } from '@/utils/user-avatar'
const roleOptions = ref<Array<{ label: string; value: string }>>([])
@@ -730,4 +738,23 @@
margin-bottom: 0;
}
}
.user-nick-cell {
display: inline-flex;
align-items: center;
gap: 10px;
max-width: 100%;
:deep(.el-avatar) {
flex-shrink: 0;
--el-avatar-bg-color: transparent;
background: transparent;
}
&__name {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
}
</style>