fix: 看板最近访问记录合并登录+访问埋点(显示昵称/来源/终端/路径),修复只显示登录日志看不到最新访问的问题

This commit is contained in:
Hermes Agent
2026-09-16 06:49:39 +08:00
parent 7fd32685ce
commit c5e12c67fa
2 changed files with 41 additions and 17 deletions
+10 -5
View File
@@ -40,15 +40,20 @@
<el-table-column prop="createdAt" label="时间" width="160">
<template #default="{ row }">{{ fmt(row.createdAt) }}</template>
</el-table-column>
<el-table-column prop="openid" label="用户" width="150">
<template #default="{ row }">{{ (row.openid || '-').slice(0, 12) }}</template>
<el-table-column label="用户/来源" width="130">
<template #default="{ row }">{{ row.userName || row.openid || '-' }}</template>
</el-table-column>
<el-table-column prop="type" label="类型" width="70" />
<el-table-column prop="method" label="方式" width="110" />
<el-table-column label="方式/终端" width="120">
<template #default="{ row }">{{ row.method || '-' }}</template>
</el-table-column>
<el-table-column prop="ip" label="IP" width="120" />
<el-table-column label="结果">
<el-table-column label="结果 / 路径" min-width="150" show-overflow-tooltip>
<template #default="{ row }">
<el-tag :type="row.success ? 'success' : 'danger'" size="small">{{ row.success ? '成功' : (row.failReason || '失败') }}</el-tag>
<template v-if="row.kind === 'login'">
<el-tag :type="row.success ? 'success' : 'danger'" size="small">{{ row.success ? '成功' : (row.failReason || '失败') }}</el-tag>
</template>
<template v-else>{{ row.path || '-' }}</template>
</template>
</el-table-column>
</el-table>