Files
ruoyi-plus-vben5-h/apps/web-antd/src/views/monitor/operlog/data.ts
2024-09-24 11:23:02 +08:00

56 lines
1.1 KiB
TypeScript

import type { FormSchemaGetter } from '#/adapter';
import { DictEnum } from '@vben/constants';
import { getDictOptions } from '#/utils/dict';
export const querySchema: FormSchemaGetter = () => [
{
component: 'Input',
componentProps: {
placeholder: '请输入',
},
fieldName: 'title',
label: '系统模块',
},
{
component: 'Input',
componentProps: {
placeholder: '请输入',
},
fieldName: 'operName',
label: '操作人员',
},
{
component: 'Select',
componentProps: {
options: getDictOptions(DictEnum.SYS_OPER_TYPE),
placeholder: '请选择',
},
fieldName: 'businessType',
label: '操作类型',
},
{
component: 'Input',
componentProps: {
placeholder: '请输入',
},
fieldName: 'operIp',
label: '操作IP',
},
{
component: 'Select',
componentProps: {
options: getDictOptions(DictEnum.SYS_COMMON_STATUS),
placeholder: '请选择',
},
fieldName: 'status',
label: '状态',
},
{
component: 'RangePicker',
fieldName: 'createTime',
label: '操作时间',
},
];