feat: 在线用户增加最后活跃时间显示

This commit is contained in:
2024-05-14 00:01:20 +08:00
parent 68d8f0f5b3
commit fff4de56f3

View File

@@ -8,7 +8,7 @@
:loading="loading" :loading="loading"
:scroll="{ x: '100%', y: '100%', minWidth: 1000 }" :scroll="{ x: '100%', y: '100%', minWidth: 1000 }"
:pagination="pagination" :pagination="pagination"
:disabled-tools="['size', 'setting']" :disabled-tools="['size']"
@refresh="search" @refresh="search"
> >
<template #custom-left> <template #custom-left>
@@ -80,7 +80,8 @@ const columns: TableInstanceColumns[] = [
{ title: '登录地点', dataIndex: 'address', ellipsis: true, tooltip: true }, { title: '登录地点', dataIndex: 'address', ellipsis: true, tooltip: true },
{ title: '浏览器', dataIndex: 'browser', ellipsis: true, tooltip: true }, { title: '浏览器', dataIndex: 'browser', ellipsis: true, tooltip: true },
{ title: '终端系统', dataIndex: 'os', ellipsis: true, tooltip: true }, { title: '终端系统', dataIndex: 'os', ellipsis: true, tooltip: true },
{ title: '登录时间', dataIndex: 'loginTime', width: 180 }, { title: '最后活跃时间', dataIndex: 'lastActiveTime', width: 180 },
{ title: '登录时间', dataIndex: 'loginTime', width: 180, show: false },
{ {
title: '操作', title: '操作',
slotName: 'action', slotName: 'action',