Compare commits
3 Commits
87f2d314e0
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| a5e4e73ff3 | |||
| 7593b31af1 | |||
| 5ebd973187 |
@@ -117,6 +117,29 @@ export function useColumns(): VxeTableGridOptions['columns'] {
|
||||
title: '手机号',
|
||||
width: 120,
|
||||
},
|
||||
{
|
||||
field: 'real_name',
|
||||
title: '姓名',
|
||||
width: 100,
|
||||
},
|
||||
{
|
||||
field: 'id_card',
|
||||
title: '身份证',
|
||||
width: 180,
|
||||
formatter: ({
|
||||
cellValue,
|
||||
row,
|
||||
}: {
|
||||
cellValue: unknown;
|
||||
row?: Record<string, unknown>;
|
||||
}) => {
|
||||
const value =
|
||||
cellValue ??
|
||||
row?.id_card ??
|
||||
(row && 'idCard' in row ? row.idCard : '');
|
||||
return value != null && value !== '' ? String(value) : '-';
|
||||
},
|
||||
},
|
||||
{
|
||||
cellRender: {
|
||||
name: 'CellTag',
|
||||
|
||||
Reference in New Issue
Block a user