import type { VNode } from 'vue'; import type { FormSchemaGetter } from '#/adapter/form'; import type { VxeGridProps } from '#/adapter/vxe-table'; import dayjs from 'dayjs'; import { renderBrowserIcon, renderOsIcon } from '#/utils/render'; export const querySchema: FormSchemaGetter = () => [ { component: 'Input', fieldName: 'ipaddr', label: 'IP地址', }, { component: 'Input', fieldName: 'userName', label: '用户账号', }, ]; export const columns: VxeGridProps['columns'] = [ { title: '登录平台', field: 'deviceType', }, { title: '登录账号', field: 'userName', }, { title: '部门名称', field: 'deptName', }, { title: 'IP地址', field: 'ipaddr', }, { title: '登录地址', field: 'loginLocation', }, { title: '浏览器', field: 'browser', slots: { default: ({ row }) => { return (