mirror of
https://github.com/imdap/ruoyi-plus-vben5.git
synced 2026-04-23 00:38:34 +08:00
56 lines
1.1 KiB
TypeScript
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: '操作时间',
|
|
},
|
|
];
|