diff --git a/src/views/eam/item/transaction/transaction.data.ts b/src/views/eam/item/transaction/transaction.data.ts index 9462c35..890428b 100644 --- a/src/views/eam/item/transaction/transaction.data.ts +++ b/src/views/eam/item/transaction/transaction.data.ts @@ -94,24 +94,24 @@ export const Transaction = useCrudSchemas(reactive([ sort: 'custom', isSearch: false, }, - { - label: '创建时间', - field: 'createTime', + { + label: '操作人', + field: 'creator', sort: 'custom', - formatter: dateFormatter, isForm: false, + formatter: (_: Recordable, __: TableColumn, cellValue: number) => { + return userListAll.find((account) => account.id == cellValue)?.nickname + }, table: { width: 170 }, }, { - label: '操作人', - field: 'creator', + label: '操作时间', + field: 'createTime', sort: 'custom', + formatter: dateFormatter, isForm: false, - formatter: (_: Recordable, __: TableColumn, cellValue: number) => { - return userListAll.find((account) => account.id == cellValue)?.nickname - }, table: { width: 170 },