chore: 调整render

This commit is contained in:
dap 2024-10-07 13:21:53 +08:00
parent 29f98a3961
commit eaeb6b2b29

View File

@ -60,9 +60,10 @@ export const columns: VxeGridProps['columns'] = [
{ {
title: '操作类型', title: '操作类型',
field: 'businessType', field: 'businessType',
cellRender: { slots: {
name: 'DictTag', default: ({ row }) => {
props: { field: 'businessType', dictName: DictEnum.SYS_OPER_TYPE }, return renderDict(row.businessType, DictEnum.SYS_OPER_TYPE);
},
}, },
}, },
{ field: 'operName', title: '操作人员' }, { field: 'operName', title: '操作人员' },
@ -71,9 +72,10 @@ export const columns: VxeGridProps['columns'] = [
{ {
field: 'status', field: 'status',
title: '操作状态', title: '操作状态',
cellRender: { slots: {
name: 'DictTag', default: ({ row }) => {
props: { field: 'status', dictName: DictEnum.SYS_COMMON_STATUS }, return renderDict(row.status, DictEnum.SYS_COMMON_STATUS);
},
}, },
}, },
{ field: 'operTime', title: '操作日期' }, { field: 'operTime', title: '操作日期' },