From e52fec291acc717ec0a9277bafdc2a83f2f77fe9 Mon Sep 17 00:00:00 2001 From: dap <15891557205@163.com> Date: Fri, 4 Apr 2025 21:06:57 +0800 Subject: [PATCH] =?UTF-8?q?update:=20=E7=A7=BB=E9=99=A4=E4=B8=8D=E9=9C=80?= =?UTF-8?q?=E8=A6=81=E7=9A=84description=20schema?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/monitor/logininfor/data.tsx | 60 ------------------- 1 file changed, 60 deletions(-) diff --git a/apps/web-antd/src/views/monitor/logininfor/data.tsx b/apps/web-antd/src/views/monitor/logininfor/data.tsx index aee19633..88825e4e 100644 --- a/apps/web-antd/src/views/monitor/logininfor/data.tsx +++ b/apps/web-antd/src/views/monitor/logininfor/data.tsx @@ -2,7 +2,6 @@ import type { VNode } from 'vue'; import type { FormSchemaGetter } from '#/adapter/form'; import type { VxeGridProps } from '#/adapter/vxe-table'; -import type { DescItem } from '#/components/description'; import { DictEnum } from '@vben/constants'; @@ -107,62 +106,3 @@ export const columns: VxeGridProps['columns'] = [ width: 150, }, ]; - -export const modalSchema: () => DescItem[] = () => [ - { - field: 'status', - label: '登录状态', - labelMinWidth: 80, - render(value) { - return renderDict(value, DictEnum.SYS_COMMON_STATUS); - }, - }, - { - field: 'clientKey', - label: '登录平台', - render(value) { - if (value) { - return value.toUpperCase(); - } - return ''; - }, - }, - { - field: 'ipaddr', - label: '账号信息', - render(_, data) { - const { ipaddr, loginLocation, userName } = data; - return `账号: ${userName} / ${ipaddr} / ${loginLocation}`; - }, - }, - { - field: 'loginTime', - label: '登录时间', - }, - { - field: 'msg', - label: '登录信息', - render(_, data: any) { - const { msg, status } = data; - return ( - - {msg} - - ); - }, - }, - { - field: 'os', - label: '登录设备', - render(value) { - return renderOsIcon(value); - }, - }, - { - field: 'browser', - label: '浏览器', - render(value) { - return renderBrowserIcon(value); - }, - }, -];