🎨 用户在线状态展示

🎨 用户在线状态展示
This commit is contained in:
ronger 2021-12-06 20:34:49 +08:00
parent 2109475ffa
commit d4c820c3b7

View File

@ -53,6 +53,14 @@
label="最后在线时间" label="最后在线时间"
width="180" width="180"
prop="lastOnlineTime"> prop="lastOnlineTime">
<template slot-scope="scope">
<span v-if="scope.row.onlineStatus === 0">
{{ scope.row.lastOnlineTime }}
</span>
<el-tag type="success" disable-transitions>
Online now
</el-tag>
</template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
label="状态" label="状态"