修改监控摄像头设备表格显示状态

This commit is contained in:
junleea 2025-06-06 16:21:57 +08:00
parent e2ebe67184
commit f7c690bad7
1 changed files with 9 additions and 1 deletions

View File

@ -425,7 +425,15 @@ export default {
prop="DeviceStatus"
label="设备状态"
width="80"
></el-table-column>
>
<template #default="scope">
<el-tag
:type="scope.row.DeviceStatus === '在线' ? 'success' : 'danger'"
>{{ scope.row.DeviceStatus === "在线" ? '在线' : '离线' }}</el-tag
>
</template>
</el-table-column>
<el-table-column
prop="DeviceType"
label="设备类型"