From 171927a0a7abe6f981068519baefe3bd546b0b4b Mon Sep 17 00:00:00 2001 From: dap <15891557205@163.com> Date: Tue, 16 Sep 2025 20:06:22 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E5=9C=A8=E7=BA=BF=E8=AE=BE?= =?UTF-8?q?=E5=A4=87=E5=BA=8F=E5=8F=B7=E5=88=97=20max=E9=AB=98=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../_core/profile/components/online-device.vue | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/apps/web-antd/src/views/_core/profile/components/online-device.vue b/apps/web-antd/src/views/_core/profile/components/online-device.vue index 52f1b7ed..a578db9a 100644 --- a/apps/web-antd/src/views/_core/profile/components/online-device.vue +++ b/apps/web-antd/src/views/_core/profile/components/online-device.vue @@ -9,15 +9,25 @@ import { useVbenVxeGrid } from '#/adapter/vxe-table'; import { forceLogout2, onlineDeviceList } from '#/api/monitor/online'; import { columns } from '#/views/monitor/online/data'; -const gridOptions: VxeGridProps = { +const onlineDeviceColumns: VxeGridProps['columns'] = [ + { + type: 'seq', + title: '序号', + width: 60, + }, // 个人中心不需要显示重复字段 - columns: columns?.filter( + ...(columns?.filter( (item) => !['deptName', 'userName'].includes(item.field ?? ''), - ), + ) ?? []), +]; + +const gridOptions: VxeGridProps = { + columns: onlineDeviceColumns, keepSource: true, pagerConfig: { enabled: false, }, + maxHeight: 600, proxyConfig: { ajax: { query: async () => { @@ -27,6 +37,7 @@ const gridOptions: VxeGridProps = { }, rowConfig: { keyField: 'tokenId', + isCurrent: true, }, };