完善前端WebSocket更新逻辑

This commit is contained in:
BBIT-Kai
2025-12-30 17:56:07 +08:00
parent 3c1128b356
commit d6c7f209c7
6 changed files with 32 additions and 37 deletions
@@ -172,12 +172,6 @@ export function useColumns<T = SystemUserApi.SystemUser>(
title: '当前状态',
width: 100,
},
{
field: 'project',
slots: { default: 'project' },
title: '所属IoT项目',
width: 100,
},
{
field: 'device_type',
slots: { default: 'deviceType' },
@@ -187,7 +181,7 @@ export function useColumns<T = SystemUserApi.SystemUser>(
{
field: 'dept_name',
minWidth: 120,
title: '所属组织',
title: '所属组织/项目',
},
{
cellRender: {
@@ -207,11 +201,6 @@ export function useColumns<T = SystemUserApi.SystemUser>(
title: '管理员',
width: 100,
},
{
field: 'created_at',
title: '创建时间',
width: 150,
},
{
field: 'remark',
title: '备注',
@@ -259,8 +248,13 @@ export function useColumns<T = SystemUserApi.SystemUser>(
},
{
field: 'last_seen',
title: '信息更新时间',
width: 100,
title: '设备信息更新时间',
width: 150,
},
{
field: 'created_at',
title: '创建时间',
width: 150,
},
{
field: 'operation',