|
|
@ -1,5 +1,7 @@ |
|
|
|
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' |
|
|
|
import {dateFormatter} from "@/utils/formatTime"; |
|
|
|
import * as UserApi from "@/api/system/user"; |
|
|
|
const userListAll = await UserApi.getSimpleUserList() |
|
|
|
|
|
|
|
// 表单校验
|
|
|
|
export const Rules = reactive({ |
|
|
@ -102,6 +104,18 @@ export const Transaction = useCrudSchemas(reactive<CrudSchema[]>([ |
|
|
|
width: 170 |
|
|
|
}, |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '操作人', |
|
|
|
field: 'creator', |
|
|
|
sort: 'custom', |
|
|
|
isForm: false, |
|
|
|
formatter: (_: Recordable, __: TableColumn, cellValue: number) => { |
|
|
|
return userListAll.find((account) => account.id == cellValue)?.nickname |
|
|
|
}, |
|
|
|
table: { |
|
|
|
width: 170 |
|
|
|
}, |
|
|
|
}, |
|
|
|
// {
|
|
|
|
// label: '操作',
|
|
|
|
// field: 'action',
|
|
|
|