Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -21,8 +21,8 @@ export function getAlarm(alarmId) {
|
|||||||
export function handleAlarm(data) {
|
export function handleAlarm(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/video/alarm/handle',
|
url: '/video/alarm/handle',
|
||||||
method: 'put',
|
method: 'post',
|
||||||
data: data
|
params: data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -30,7 +30,7 @@ export function handleAlarm(data) {
|
|||||||
export function batchHandleAlarm(data) {
|
export function batchHandleAlarm(data) {
|
||||||
return request({
|
return request({
|
||||||
url: '/video/alarm/batchHandle',
|
url: '/video/alarm/batchHandle',
|
||||||
method: 'put',
|
method: 'post',
|
||||||
data: data
|
data: data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
BIN
rtsp-vue/src/assets/images/camera.png
Normal file
BIN
rtsp-vue/src/assets/images/camera.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 360 KiB |
BIN
rtsp-vue/src/assets/images/device.png
Normal file
BIN
rtsp-vue/src/assets/images/device.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.3 KiB |
@@ -15,19 +15,25 @@
|
|||||||
</el-form>
|
</el-form>
|
||||||
|
|
||||||
|
|
||||||
<div style="display: flex;">
|
<div style="display: flex; gap: 20px">
|
||||||
<div class="card" @click="handleVideoCameraFilled(item)" v-for="item in deviceList" :key="item.deviceId">
|
<div class="card" @click="handleVideoCameraFilled(item)" v-for="item in deviceList" :key="item.deviceId">
|
||||||
<div class="card-image">
|
<el-row>
|
||||||
<img :src="item.url" :alt="item.url" style="width: 100%; height: 100%;" />
|
<el-col :span="16">
|
||||||
<!-- <div style="width: 100%; height: 100%;">
|
<h3 style="display: flex; align-items: center;"><img :src="DeviceImage" alt="" style="width: 20px; height: 20px; margin-right: 10px;"> {{ item.ip }}</h3>
|
||||||
{{ item.url }}
|
<div class="li" style="display: flex; align-items: center;">设备分类:<dict-tag :options="device_type" :value="item.type" /></div>
|
||||||
</div> -->
|
<div class="li" style="display: flex; align-items: center;">用户名:{{ item.username ?? '-' }}</div>
|
||||||
|
</el-col>
|
||||||
|
<el-col :span="8">
|
||||||
|
<img :src="CameraImage" alt="设备图片" style="width: 100%;" />
|
||||||
|
</el-col>
|
||||||
|
</el-row>
|
||||||
|
<!-- <div class="card-image">
|
||||||
|
<img :src="DeviceImage" :alt="item.url" style="width: 100%; height: 100%;" />
|
||||||
</div>
|
</div>
|
||||||
<div class="category"><dict-tag :options="device_type" :value="item.type" /></div>
|
<div class="category"><dict-tag :options="device_type" :value="item.type" /></div>
|
||||||
<div class="heading">
|
<div class="heading">
|
||||||
{{ item.ip }}
|
{{ item.ip }}
|
||||||
<!-- <div class="author"> By <span class="name">Abi</span> 4 days ago</div> -->
|
</div> -->
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -89,6 +95,8 @@ import { listDevice } from "@/api/video/device";
|
|||||||
import { listInspectionRecord } from "@/api/video/insRecord";
|
import { listInspectionRecord } from "@/api/video/insRecord";
|
||||||
import { listInspection } from "@/api/video/inspection";
|
import { listInspection } from "@/api/video/inspection";
|
||||||
import { listAlarm } from "@/api/video/alarm";
|
import { listAlarm } from "@/api/video/alarm";
|
||||||
|
import DeviceImage from "@/assets/images/device.png";
|
||||||
|
import CameraImage from "@/assets/images/camera.png";
|
||||||
|
|
||||||
const { proxy } = getCurrentInstance();
|
const { proxy } = getCurrentInstance();
|
||||||
const { device_on_status, device_type, ins_record_status } = proxy.useDict('device_on_status', 'device_type', 'ins_record_status');
|
const { device_on_status, device_type, ins_record_status } = proxy.useDict('device_on_status', 'device_type', 'ins_record_status');
|
||||||
@@ -186,19 +194,17 @@ getList();
|
|||||||
<style scoped>
|
<style scoped>
|
||||||
/* From Uiverse.io by alexmaracinaru */
|
/* From Uiverse.io by alexmaracinaru */
|
||||||
.card {
|
.card {
|
||||||
width: 190px;
|
width: 300px;
|
||||||
background: white;
|
|
||||||
padding: .4em;
|
padding: .4em;
|
||||||
border-radius: 6px;
|
border-radius: 0;
|
||||||
|
border: 1px solid #e0e0e0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.card-image {
|
.card-image {
|
||||||
background-color: rgb(236, 236, 236);
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 130px;
|
height: 130px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
word-break: break-all;
|
word-break: break-all;
|
||||||
border-radius: 6px 6px 0 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.card-image:hover {
|
.card-image:hover {
|
||||||
|
|||||||
@@ -84,10 +84,9 @@
|
|||||||
|
|
||||||
<el-table v-loading="loading" :data="alarmList" @selection-change="handleSelectionChange">
|
<el-table v-loading="loading" :data="alarmList" @selection-change="handleSelectionChange">
|
||||||
<el-table-column type="selection" width="55" align="center" />
|
<el-table-column type="selection" width="55" align="center" />
|
||||||
<el-table-column label="报警ID" align="center" prop="alarmId" />
|
|
||||||
<el-table-column label="任务名称" align="center" prop="taskName" />
|
<el-table-column label="任务名称" align="center" prop="taskName" />
|
||||||
<el-table-column label="设备名称" align="center" prop="deviceName" />
|
<el-table-column label="设备名称" align="center" prop="deviceName" />
|
||||||
<el-table-column label="报警类型" align="center" prop="alarmType" />
|
<!-- <el-table-column label="报警类型" align="center" prop="alarmType" /> -->
|
||||||
<el-table-column label="报警级别" align="center" prop="alarmLevel">
|
<el-table-column label="报警级别" align="center" prop="alarmLevel">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<el-tag v-if="scope.row.alarmLevel === '1'" type="info">低</el-tag>
|
<el-tag v-if="scope.row.alarmLevel === '1'" type="info">低</el-tag>
|
||||||
@@ -109,20 +108,10 @@
|
|||||||
:src="scope.row.imagePath"
|
:src="scope.row.imagePath"
|
||||||
:preview-src-list="[scope.row.imagePath]"
|
:preview-src-list="[scope.row.imagePath]"
|
||||||
fit="cover"
|
fit="cover"
|
||||||
|
preview-teleported
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="报警视频" align="center" prop="videoPath">
|
|
||||||
<template #default="scope">
|
|
||||||
<el-button
|
|
||||||
v-if="scope.row.videoPath"
|
|
||||||
link
|
|
||||||
type="primary"
|
|
||||||
icon="VideoPlay"
|
|
||||||
@click="handleView(scope.row)"
|
|
||||||
>播放</el-button>
|
|
||||||
</template>
|
|
||||||
</el-table-column>
|
|
||||||
<el-table-column label="报警时间" align="center" prop="alarmTime" width="180">
|
<el-table-column label="报警时间" align="center" prop="alarmTime" width="180">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
<span>{{ parseTime(scope.row.alarmTime, '{y}-{m}-{d} {h}:{i}:{s}') }}</span>
|
<span>{{ parseTime(scope.row.alarmTime, '{y}-{m}-{d} {h}:{i}:{s}') }}</span>
|
||||||
@@ -200,10 +189,9 @@
|
|||||||
<!-- 查看详情对话框 -->
|
<!-- 查看详情对话框 -->
|
||||||
<el-dialog title="报警详情" v-model="viewOpen" width="800px" append-to-body>
|
<el-dialog title="报警详情" v-model="viewOpen" width="800px" append-to-body>
|
||||||
<el-descriptions :column="2" border>
|
<el-descriptions :column="2" border>
|
||||||
<el-descriptions-item label="报警ID">{{ viewForm.alarmId }}</el-descriptions-item>
|
|
||||||
<el-descriptions-item label="任务名称">{{ viewForm.taskName }}</el-descriptions-item>
|
<el-descriptions-item label="任务名称">{{ viewForm.taskName }}</el-descriptions-item>
|
||||||
<el-descriptions-item label="设备名称">{{ viewForm.deviceName }}</el-descriptions-item>
|
<el-descriptions-item label="设备名称">{{ viewForm.deviceName }}</el-descriptions-item>
|
||||||
<el-descriptions-item label="报警类型">{{ viewForm.alarmType }}</el-descriptions-item>
|
<!-- <el-descriptions-item label="报警类型">{{ viewForm.alarmType }}</el-descriptions-item> -->
|
||||||
<el-descriptions-item label="报警级别">
|
<el-descriptions-item label="报警级别">
|
||||||
<el-tag v-if="viewForm.alarmLevel === '1'" type="info">低</el-tag>
|
<el-tag v-if="viewForm.alarmLevel === '1'" type="info">低</el-tag>
|
||||||
<el-tag v-else-if="viewForm.alarmLevel === '2'" type="warning">中</el-tag>
|
<el-tag v-else-if="viewForm.alarmLevel === '2'" type="warning">中</el-tag>
|
||||||
@@ -233,15 +221,7 @@
|
|||||||
:src="viewForm.imagePath"
|
:src="viewForm.imagePath"
|
||||||
:preview-src-list="[viewForm.imagePath]"
|
:preview-src-list="[viewForm.imagePath]"
|
||||||
fit="contain"
|
fit="contain"
|
||||||
/>
|
preview-teleported
|
||||||
</div>
|
|
||||||
<div v-if="viewForm.videoPath" style="margin-top: 20px;">
|
|
||||||
<h4>报警视频:</h4>
|
|
||||||
<video
|
|
||||||
:src="viewForm.videoPath"
|
|
||||||
style="width: 100%; max-height: 420px; background: #000"
|
|
||||||
controls
|
|
||||||
preload="metadata"
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
|||||||
Reference in New Issue
Block a user