refactor: 在线设备序号列 max高度

master
dap 4 months ago
parent 2ce341ffe1
commit 171927a0a7

@ -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,
},
};

Loading…
Cancel
Save