feat: search form

This commit is contained in:
dap
2024-09-24 11:23:02 +08:00
parent c5971e4407
commit c1e58831e1
32 changed files with 924 additions and 49 deletions

View File

@@ -1,13 +1,48 @@
import type { ColumnsType } from 'ant-design-vue/es/table';
import type { FormSchemaGetter } from '#/adapter';
import type { DescItem } from '#/components/description';
import { DictEnum } from '@vben/constants';
import { Tooltip } from 'ant-design-vue';
import { getDictOptions } from '#/utils/dict';
import { renderBrowserIcon, renderDict, renderOsIcon } from '#/utils/render';
export const querySchema: FormSchemaGetter = () => [
{
component: 'Input',
componentProps: {
placeholder: '请输入',
},
fieldName: 'ipaddr',
label: 'IP地址',
},
{
component: 'Input',
componentProps: {
placeholder: '请输入',
},
fieldName: 'userName',
label: '用户账号',
},
{
component: 'Select',
componentProps: {
options: getDictOptions(DictEnum.SYS_COMMON_STATUS),
placeholder: '请选择',
},
fieldName: 'status',
label: '登录状态',
},
{
component: 'RangePicker',
fieldName: 'dateTime',
label: '登录日期',
},
];
export const columns: ColumnsType = [
{
align: 'center',