视频 监控 抓拍记录

This commit is contained in:
likehai 2023-12-15 17:45:26 +08:00
parent 73bc562799
commit 881a9b0177

View File

@ -152,7 +152,9 @@
@pagination="getList"
/>
</el-tab-pane>
<el-tab-pane label="报警趋势分析" name="second">报警趋势分析</el-tab-pane>
<el-tab-pane label="报警趋势分析" name="second">
<div id="chart" style="width: 100%;height: 300px;"></div>
</el-tab-pane>
</el-tabs>
@ -332,6 +334,7 @@ import {
listGodFileUploadComplete,
updateGodFileUploadComplete
} from '@/api/videoSurveillance/godFileUploadComplete'
import { generateBaseOptions, initChartStatic } from '@/utils/bigscreenTool'
export default {
name: 'QyzyWorkRedio',
@ -455,7 +458,89 @@ export default {
},
//tals
handleClick(tab, event) {
console.log(tab, event)
if (this.activeName === "second"){
// console.log(this.activeName," ")
this.$nextTick(() => {
const xAxis = [], baseDate = new Date();
for (let i = 0; i < 8; i++) {
const middleDate = new Date();
middleDate.setTime(baseDate.getTime() - i * 1000 * 60 * 60 * 24)
xAxis.unshift(`${middleDate.getMonth() + 1}-${middleDate.getDate()}`)
}
initChartStatic(
"chart",
generateBaseOptions({
title: {
text: "",
},
legend: {
x: "right", //
y: "top", //
textStyle: {
color: '#252525'
},
},
xAxis: {
data: xAxis,
lineStyle: {
color: '#000'
}
},
yAxis: {
type: "value",
max: 20
},
color: ["#e70d48", "#7fcf52"],
// color: ["#e70d48"],
series: [
{
name: '报警次数',
data: [1, 1, 0, 0,0,2,0,1],
type: "bar",
barWidth: 25,
itemStyle: {
normal: {
label: {
show: true, //
position: "top", //
textStyle: {
//
color: "#00000074",
fontSize: 13,
},
},
},
}
},
{
name: '已处理报警',
data: [1, 1, 0, 0,0,2,0,0],
type: "line",
smooth: true,
itemStyle: {
normal: {
label: {
show: true, //
position: "top", //
textStyle: {
//
color: "#00000074",
fontSize: 13,
},
},
},
}
},
],
grid: {
bottom: '15%',
top: '11%',
}
}, false)
);
})
}
},
/**
* 关闭视频
@ -634,10 +719,10 @@ export default {
this.titleA = '报警处理'
})
this.queryParamsB.reserveOne = row.id
this.getListB()
this.getListB(this.queryParamsB)
},
getListB() {
listGodFileUploadComplete(this.queryParamsB).then(response => {
getListB(re) {
listGodFileUploadComplete(re).then(response => {
this.godFileUploadCompleteList = response.rows
this.totalB = response.total
})