Show license device user info

这个提交包含在:
XuqmGroup 2026-05-15 21:30:09 +08:00
父节点 02d64f1cb9
当前提交 690d930a17
共有 2 个文件被更改,包括 34 次插入0 次删除

查看文件

@ -83,6 +83,14 @@ export interface LicenseDevice {
companyId: string companyId: string
deviceId: string deviceId: string
deviceName?: string | null deviceName?: string | null
deviceModel?: string | null
deviceVendor?: string | null
osVersion?: string | null
userId?: string | null
userName?: string | null
userEmail?: string | null
userPhone?: string | null
userInfoJson?: string | null
registeredAt: string registeredAt: string
lastVerifiedAt?: string | null lastVerifiedAt?: string | null
isActive: boolean isActive: boolean

查看文件

@ -80,6 +80,30 @@
<el-table-column prop="deviceName" label="设备名称" min-width="120"> <el-table-column prop="deviceName" label="设备名称" min-width="120">
<template #default="{ row }">{{ row.deviceName || '-' }}</template> <template #default="{ row }">{{ row.deviceName || '-' }}</template>
</el-table-column> </el-table-column>
<el-table-column label="用户" min-width="180">
<template #default="{ row }">
<div class="user-cell">
<span>{{ row.userName || row.userId || '-' }}</span>
<small v-if="row.userName && row.userId">{{ row.userId }}</small>
</div>
</template>
</el-table-column>
<el-table-column label="联系方式" min-width="190">
<template #default="{ row }">
<div class="user-cell">
<span>{{ row.userPhone || '-' }}</span>
<small v-if="row.userEmail">{{ row.userEmail }}</small>
</div>
</template>
</el-table-column>
<el-table-column label="设备信息" min-width="180">
<template #default="{ row }">
<div class="user-cell">
<span>{{ [row.deviceVendor, row.deviceModel].filter(Boolean).join(' ') || '-' }}</span>
<small v-if="row.osVersion">{{ row.osVersion }}</small>
</div>
</template>
</el-table-column>
<el-table-column label="注册时间" width="160"> <el-table-column label="注册时间" width="160">
<template #default="{ row }">{{ formatDate(row.registeredAt) }}</template> <template #default="{ row }">{{ formatDate(row.registeredAt) }}</template>
</el-table-column> </el-table-column>
@ -347,4 +371,6 @@ onMounted(() => {
.table-wrap { overflow-x: auto; } .table-wrap { overflow-x: auto; }
.portal-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; } .portal-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.portal-bar-title { font-size: 18px; font-weight: 600; } .portal-bar-title { font-size: 18px; font-weight: 600; }
.user-cell { display: flex; flex-direction: column; gap: 2px; line-height: 1.35; }
.user-cell small { color: #909399; font-size: 12px; }
</style> </style>