feat 添加报警图片

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
Ironsp
2026-06-09 08:54:03 +08:00
parent dc4415a1ff
commit b404d4ff29
2 changed files with 13 additions and 4 deletions

View File

@@ -5,10 +5,6 @@
"ComputedRef": true,
"DirectiveBinding": true,
"EffectScope": true,
"ElLoading": true,
"ElMessage": true,
"ElMessageBox": true,
"ElNotification": true,
"ExtractDefaultPropTypes": true,
"ExtractPropTypes": true,
"ExtractPublicPropTypes": true,

View File

@@ -52,6 +52,19 @@
<el-table-column label="报警时间" align="center" prop="alarmTime" min-width="170" />
<el-table-column label="所属设备" align="center" prop="deviceName" min-width="120" show-overflow-tooltip />
<el-table-column label="报警区域" align="center" prop="monitoringArea" min-width="120" show-overflow-tooltip />
<el-table-column label="报警图片" align="center" prop="alarmImage" min-width="120">
<template #default="scope">
<el-image
v-if="scope.row.alarmImage"
:src="scope.row.alarmImage"
:preview-src-list="[scope.row.alarmImage]"
preview-teleported
fit="cover"
style="width: 60px; height: 60px; border-radius: 4px"
/>
<span v-else>暂无图片</span>
</template>
</el-table-column>
<el-table-column label="处理状态" align="center" prop="status" width="100">
<template #default="scope">
<el-tag v-if="scope.row.status === 0" type="warning">未处理</el-tag>