feat equipment_status

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
Ironsp
2026-05-27 12:00:40 +08:00
parent c876b1e527
commit 7ef49859c1

View File

@@ -58,9 +58,9 @@
<el-table-column label="监控区域" align="center" prop="monitoringArea" /> <el-table-column label="监控区域" align="center" prop="monitoringArea" />
<el-table-column label="设备状态" align="center" prop="status" width="100"> <el-table-column label="设备状态" align="center" prop="status" width="100">
<template #default="scope"> <template #default="scope">
<span v-if="scope.row.status === 1 || scope.row.status === '1'">在线</span> <el-tag v-if="scope.row.status === 1 || scope.row.status === '1'">在线</el-tag>
<span v-else-if="scope.row.status === 2 || scope.row.status === '2'">离线</span> <el-tag v-else-if="scope.row.status === 2 || scope.row.status === '2'" type="info">离线</el-tag>
<span v-else>{{ scope.row.status ?? '-' }}</span> <el-tag v-else>{{ scope.row.status ?? '-' }}</el-tag>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="设备型号" align="center" prop="model" /> <el-table-column label="设备型号" align="center" prop="model" />