Commit 57f9f83c by 潘建波

提交展示页

1 parent 63f4224b
<template>
<el-row :gutter="10" style="padding: 10px 0 10px 10px;width: 100%;overflow:hidden">
<el-col :span="13" >
<el-row
:gutter="10"
style="padding: 10px 0 10px 10px;width: 100%;overflow:hidden"
>
<el-col :span="13">
<div id="map" class="maps">
<showmap></showmap>
<div class="eventlist-box">
......@@ -18,19 +20,19 @@
<div class="header-title">今日抓拍量</div>
<div class="collect-content">
<el-col :span="6" class="content-item">
<div class="item-num">{{snapData.day_total_snap_num}}</div>
<div class="item-num">{{ snapData.day_total_snap_num }}</div>
<div>事件检测总量</div>
</el-col>
<el-col :span="6" class="content-item">
<div class="item-num">{{snapData.day_single_snap_num}}</div>
<div class="item-num">{{ snapData.day_single_snap_num }}</div>
<div>单项总量</div>
</el-col>
<el-col :span="6" class="content-item">
<div class="item-num">{{snapData.month_total_snap_num}}</div>
<div class="item-num">{{ snapData.month_total_snap_num }}</div>
<div>本月事件检测总量</div>
</el-col>
<el-col :span="6" class="content-item">
<div class="item-num">{{snapData.month_single_snap_num}}</div>
<div class="item-num">{{ snapData.month_single_snap_num }}</div>
<div>本月单项总量</div>
</el-col>
</div>
......@@ -61,34 +63,34 @@
</template>
<script>
import showmap from './map'
import videoPlay from '../public/videoPlay'
import behaviortrend from './behaviortrend'
import behaviordis from './behaviordis'
import eventList from './eventList'
import alarmEvent from './alarmEvent'
import devInfo from './devInfo'
export default{
data(){
return{
collects:{},
typeList:[],
tableData:[],
eventTypeList:[],
illageList:[],
setShow:false,
archiveUnid:0,
snap_num:0,
audit_num:0,
snapData:{
day_total_snap_num:0,
day_single_snap_num:0,
month_total_snap_num:0,
month_single_snap_num:0
}
}
import showmap from "./map";
import videoPlay from "../public/videoPlay";
import behaviortrend from "./behaviortrend";
import behaviordis from "./behaviordis";
import eventList from "./eventList";
import alarmEvent from "./alarmEvent";
import devInfo from "./devInfo";
export default {
data() {
return {
collects: {},
typeList: [],
tableData: [],
eventTypeList: [],
illageList: [],
setShow: false,
archiveUnid: 0,
snap_num: 0,
audit_num: 0,
snapData: {
day_total_snap_num: 0,
day_single_snap_num: 0,
month_total_snap_num: 0,
month_single_snap_num: 0
}
};
},
components:{
components: {
showmap,
videoPlay,
behaviortrend,
......@@ -97,31 +99,29 @@ import devInfo from './devInfo'
eventList,
devInfo
},
mounted(){
mounted() {},
methods: {
editVideo(index, row) {
this.setShow = true;
this.archiveUnid = row.archive_unid;
},
methods:{
editVideo(index,row){
this.setShow=true;
this.archiveUnid=row.archive_unid;
},
delFun(index,row){
this.$api.map.delEvent({},row.archive_unid).then((res)=>{
console.log(res)
})
console.log(row)
delFun(index, row) {
this.$api.map.delEvent({}, row.archive_unid).then(res => {
console.log(res);
});
console.log(row);
},
getBehaviorSnap(){
getBehaviorSnap() {
this.$api.show.getBehaviorSna().then(res => {
this.snapData = res;
})
});
}
},
created(){
this.getBehaviorSnap()
}
created() {
this.getBehaviorSnap();
}
};
</script>
<style scoped="scoped" lang="stylus">
......@@ -318,5 +318,4 @@ import devInfo from './devInfo'
top 10px
z-index 1000
}
</style>
<template>
<el-row :gutter="10" style="padding: 10px 0 10px 10px;width: 100%;overflow:hidden">
<el-col :span="13" >
<el-row
:gutter="10"
style="padding: 10px 0 10px 10px;width: 100%;overflow:hidden"
>
<el-col :span="15">
<div id="map" class="maps">
<showmap ref="map" @playvideo="playvideo"></showmap>
<div class="eventlist-box">
<!-- <eventList></eventList> -->
<devInfo></devInfo>
<div class="video-box">
<videoPlay ref="ocx" :playurl="playurl"></videoPlay>
</div>
</div>
</div>
<div style="clear: both;"></div>
</el-col>
<el-col :span="11">
<div class="video-box">
<videoPlay ref="ocx" :playurl="playurl"></videoPlay>
</div>
<el-col :span="9">
<el-row>
<div class="collect-box">
<div class="header-title">今日抓拍量</div>
<div class="collect-content">
<el-col :span="6" class="content-item">
<div class="item-num">{{snapData.kakou_total_snap_num}}</div>
<div class="item-num">{{ snapData.kakou_total_snap_num }}</div>
<div>卡口总量</div>
</el-col>
<el-col :span="6" class="content-item">
<div class="item-num">{{snapData.event_total_snap_num}}</div>
<div class="item-num">{{ snapData.event_total_snap_num }}</div>
<div>事件总量</div>
</el-col>
<el-col :span="6" class="content-item">
<div class="item-num">{{snapData.illega_total_snap_num}}</div>
<div class="item-num">{{ snapData.illega_total_snap_num }}</div>
<div>违法总量</div>
</el-col>
<el-col :span="6" class="content-item">
<div class="item-num">{{snapData.key_vehicle_total_snap_num}}</div>
<div class="item-num">
{{ snapData.key_vehicle_total_snap_num }}
</div>
<div>特殊车辆总量</div>
</el-col>
</div>
</div>
<div style="clear: both;"></div>
</el-col>
<el-col :span="24" class="clearpright">
<el-row :gutter="12" class="bottom-box">
<el-col :span="8">
<div class="bottom-item-box">
<illegaltrend></illegaltrend>
</div>
</el-col>
<el-col :span="5">
<div class="bottom-item-box">
</el-row>
<el-row :gutter="12" class="event-type-box" style="margin-top:1vh">
<el-col :span="16">
<div class="right-item-box">
<eventTypedis></eventTypedis>
</div>
</el-col>
<el-col :span="3">
<div class="bottom-item-box">
<el-col :span="8" style="padding-right:0">
<div class="right-item-box">
<div class="title">重点车辆分布</div>
<!-- <div class="car-dis-info" v-for="(item, index) in keyVehicleData" :key="index">
<div class="left-icon">
<span class="icon-fanxin-bianzu2"></span>
</div>
<div class="right-content">
<div class="">
<span class="car-num">{{item.total_num}}</span>
</div>
<div>{{item.vehicle_name}}</div>
</div>
</div> -->
<div class="car-dis-info">
<div class="left-icon">
<span class="icon-fanxin-bianzu2"></span>
</div>
<div class="right-content">
<div class="">
<span class="car-num">10</span>
</div>
<div class=""><span class="car-num">10</span></div>
<div>渣土车抓拍</div>
</div>
</div>
......@@ -80,9 +65,7 @@
<span class="icon-fanxin-bianzu2"></span>
</div>
<div class="right-content">
<div class="">
<span class="car-num">10</span>
</div>
<div class=""><span class="car-num">10</span></div>
<div>危险品车</div>
</div>
</div>
......@@ -91,55 +74,59 @@
<span class="icon-fanxin-bianzu2"></span>
</div>
<div class="right-content">
<div class="">
<span class="car-num">29</span>
</div>
<div class=""><span class="car-num">29</span></div>
<div>重型罐式车</div>
</div>
</div>
</div>
</el-col>
<el-col :span="8" class="clearpright">
<div class="bottom-item-box">
</el-row>
<el-row style="margin-top:1vh;background:#fff">
<div class="">
<illegaltrend></illegaltrend>
</div>
</el-row>
<el-row class="clearpright" style="margin-top:1vh">
<div class="right-item-box">
<div class="title">实时事件</div>
<alarmEvent @event = "alarmevent"></alarmEvent>
<alarmEvent @event="alarmevent"></alarmEvent>
</div>
</el-col>
</el-row>
<div style="clear: both;"></div>
</el-col>
</el-row>
</template>
<script>
import showmap from './map'
import videoPlay from '../public/videoPlay'
import illegaltrend from './illegaltrend'
import eventTypedis from './eventTypedis'
import eventList from './eventList'
import alarmEvent from './alarmEvent'
import devInfo from '../behaviorShow/devInfo'
export default{
data(){
return{
typeList:[],
tableData:[],
eventTypeList:[],
keyVehicleData:[],
illageList:[],
setShow:false,
archiveUnid:0,
snap_num:0,
playurl:'',
audit_num:0,
snapData:{
illega_total_snap_num:0,
key_vehicle_total_snap_num:0,
event_total_snap_num:0,
kakou_total_snap_num:0,
}
}
import showmap from "./map";
import videoPlay from "../public/videoPlay";
import illegaltrend from "./illegaltrend";
import eventTypedis from "./eventTypedis";
import eventList from "./eventList";
import alarmEvent from "./alarmEvent";
import devInfo from "../behaviorShow/devInfo";
export default {
data() {
return {
typeList: [],
tableData: [],
eventTypeList: [],
keyVehicleData: [],
illageList: [],
setShow: false,
archiveUnid: 0,
snap_num: 0,
playurl: "",
audit_num: 0,
snapData: {
illega_total_snap_num: 0,
key_vehicle_total_snap_num: 0,
event_total_snap_num: 0,
kakou_total_snap_num: 0
}
};
},
components:{
components: {
showmap,
videoPlay,
illegaltrend,
......@@ -148,25 +135,25 @@ import devInfo from '../behaviorShow/devInfo'
devInfo,
eventList
},
mounted(){
},
methods:{
alarmevent(data){
mounted() {},
methods: {
alarmevent(data) {
//移动地图
this.$refs.map.movemap(data)
this.$refs.map.movemap(data);
},
playvideo(data){
playvideo(data) {
let obj = {};
if(data.vchan_name == "视频1"){
obj.rtsp_url= "rtsp://192.168.9.133:20090/6af6f0f9a445463d8b07273fe538694d"
} else if(data.vchan_name == "视频2"){
obj.rtsp_url= "rtsp://192.168.9.133:20090/68504674201c4490bfe1a9d18c86b6ac"
}
this.playurl = obj
if (data.vchan_name == "视频1") {
obj.rtsp_url =
"rtsp://192.168.9.133:20090/6af6f0f9a445463d8b07273fe538694d";
} else if (data.vchan_name == "视频2") {
obj.rtsp_url =
"rtsp://192.168.9.133:20090/68504674201c4490bfe1a9d18c86b6ac";
}
this.playurl = obj;
setTimeout(() => {
this.$refs.ocx.videoPlay()
this.$refs.ocx.videoPlay();
}, 0);
// this.$api.device.getFxStream(this.dev_unid, data.vchan_refid).then(res => {
......@@ -190,25 +177,23 @@ import devInfo from '../behaviorShow/devInfo'
// }
// })
},
getTrafficSnap(){
getTrafficSnap() {
this.$api.show.getTrafficSnap().then(res => {
this.snapData = res;
})
});
},
getKeyVehicle(){
getKeyVehicle() {
this.$api.show.getKeyVehicle().then(res => {
this.keyVehicleData = res;
})
},
},
created(){
this.getTrafficSnap()
this.getKeyVehicle()
});
}
},
created() {
this.getTrafficSnap();
this.getKeyVehicle();
}
};
</script>
<style scoped="scoped" lang="stylus">
......@@ -333,26 +318,27 @@ import devInfo from '../behaviorShow/devInfo'
width: 37px;
}
.maps{
height: 59.3vh;
height: 89.3vh;
width:100%;
margin-bottom: 8px;
position: relative;
background red
}
.el-table__body tr{
background: #FFFFFF!important;
}
.bottom-box{
.event-type-box{
width: 100%;
height: 26.5vh;
overflow: hidden;
}
.bottom-item-box {
.right-item-box {
height: 27vh;
background: #fff;
overflow: hidden;
}
.bottom-item-box .title{
.right-item-box .title{
padding-left: 5px;
line-height 3vh
}
......@@ -402,5 +388,4 @@ import devInfo from '../behaviorShow/devInfo'
top 10px
z-index 1000
}
</style>
This diff could not be displayed because it is too large.
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!