mirror of
https://gitee.com/dapppp/ruoyi-plus-vben5.git
synced 2026-04-11 07:43:15 +08:00
refactor: 在线设备序号列 max高度
This commit is contained in:
@@ -9,15 +9,25 @@ import { useVbenVxeGrid } from '#/adapter/vxe-table';
|
|||||||
import { forceLogout2, onlineDeviceList } from '#/api/monitor/online';
|
import { forceLogout2, onlineDeviceList } from '#/api/monitor/online';
|
||||||
import { columns } from '#/views/monitor/online/data';
|
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 ?? ''),
|
(item) => !['deptName', 'userName'].includes(item.field ?? ''),
|
||||||
),
|
) ?? []),
|
||||||
|
];
|
||||||
|
|
||||||
|
const gridOptions: VxeGridProps = {
|
||||||
|
columns: onlineDeviceColumns,
|
||||||
keepSource: true,
|
keepSource: true,
|
||||||
pagerConfig: {
|
pagerConfig: {
|
||||||
enabled: false,
|
enabled: false,
|
||||||
},
|
},
|
||||||
|
maxHeight: 600,
|
||||||
proxyConfig: {
|
proxyConfig: {
|
||||||
ajax: {
|
ajax: {
|
||||||
query: async () => {
|
query: async () => {
|
||||||
@@ -27,6 +37,7 @@ const gridOptions: VxeGridProps = {
|
|||||||
},
|
},
|
||||||
rowConfig: {
|
rowConfig: {
|
||||||
keyField: 'tokenId',
|
keyField: 'tokenId',
|
||||||
|
isCurrent: true,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user