This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import type { FormSchemaGetter } from '#/adapter/form';
|
||||
import type { VxeGridProps } from '#/adapter/vxe-table';
|
||||
import {getDictOptions} from "#/utils/dict";
|
||||
import {renderDict} from "#/utils/render";
|
||||
|
||||
export const querySchema: FormSchemaGetter = () => [
|
||||
{
|
||||
@@ -49,6 +50,11 @@ export const columns: VxeGridProps['columns'] = [
|
||||
{
|
||||
title: '性别',
|
||||
field: 'gender',
|
||||
slots:{
|
||||
default: ({row})=>{
|
||||
return renderDict(row.gender,'sys_user_sex')
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
field: 'img',
|
||||
@@ -75,7 +81,9 @@ export const columns: VxeGridProps['columns'] = [
|
||||
{
|
||||
title: '状态',
|
||||
field: 'state',
|
||||
// slots: { default: 'state' },
|
||||
slots:{
|
||||
default: 'state'
|
||||
}
|
||||
},
|
||||
{
|
||||
title: '备注',
|
||||
|
Reference in New Issue
Block a user