feat: 抽奖增加用户头像显示

This commit is contained in:
hujinbin
2024-11-25 17:10:26 +08:00
parent d7b0fad62f
commit 7aa8fdf234
7 changed files with 76 additions and 4 deletions

View File

@@ -87,6 +87,13 @@ const tableColumns = [
label: '姓名',
props: 'name',
},
{
label: '头像',
props: 'avatar',
formatValue(row: any) {
return row.avatar ? `<img src="${row.avatar}" alt="avatar" style="width: 50px; height: 50px;"/>` : '-';
}
},
{
label: '部门',
props: 'department',

View File

@@ -33,6 +33,13 @@ const tableColumnsList = [
label: '姓名',
props: 'name',
},
{
label: '头像',
props: 'avatar',
formatValue(row: any) {
return row.avatar ? `<img src="${row.avatar}" alt="avatar" style="width: 50px; height: 50px;"/>` : '-';
}
},
{
label: '部门',
props: 'department',
@@ -69,6 +76,13 @@ const tableColumnsDetail = [
label: '姓名',
props: 'name',
},
{
label: '头像',
props: 'avatar',
formatValue(row: any) {
return row.avatar ? `<img src="${row.avatar}" alt="avatar" style="width: 50px; height: 50px;"/>` : '-';
}
},
{
label: '部门',
props: 'department',