强制观摩+1

master
吕天方 6 months ago
parent 1266f214ce
commit a3fcbc7cfd

@ -4,7 +4,7 @@
* @Author: JC9527
* @Date: 2024-01-09 23:08:15
* @LastEditors: JC9527
* @LastEditTime: 2024-08-15 16:35:22
* @LastEditTime: 2024-08-15 16:44:12
-->
<template>
<div class="map-main">
@ -630,20 +630,14 @@ export default {
beforeunloadHandler(event){
if(this.personInfo.info.userId && this.personInfo.info.imei) {
this._beforeUnload_time = new Date().getTime();
videoSurveillance({destId:this.personInfo.info.userId,imei:this.personInfo.info.imei,msgType:0}).then(res=>{
this.personInfo.info.userId = "";
this.personInfo.info.imei = "";
})
videoSurveillance({destId:this.personInfo.info.userId,imei:this.personInfo.info.imei,msgType:0}).then(res=>{})
}
},
unloadHandler(e){
this._gap_time = new Date().getTime()-this._beforeUnload_time;
if(this._gap_time <= 5){
if(this.personInfo.info.userId && this.personInfo.info.imei) {
videoSurveillance({destId:this.personInfo.info.userId,imei:this.personInfo.info.imei,msgType:0}).then(res=>{
this.personInfo.info.userId = "";
this.personInfo.info.imei = "";
})
videoSurveillance({destId:this.personInfo.info.userId,imei:this.personInfo.info.imei,msgType:0}).then(res=>{})
}
}
},
@ -1429,10 +1423,7 @@ export default {
setTimeout(()=>{
that.videoUrl = `http://10.236.2.28:54567/bjh-admin-server/jn/live/9999_${that.personInfo.info.userId}.flv`
if(!that.showVideo) {
videoSurveillance({destId:that.personInfo.info.userId,imei:that.personInfo.info.imei,msgType:0}).then(res=>{
that.personInfo.info.userId = "";
that.personInfo.info.imei = "";
})
videoSurveillance({destId:that.personInfo.info.userId,imei:that.personInfo.info.imei,msgType:0}).then(res=>{})
that.destroyVideos();
} else {
that.initVideoPlayer();
@ -1467,6 +1458,7 @@ export default {
//
watchClick(){
if(this.personInfo.info.status == "1") {
console.log(this.personInfo.info);
this.showVideo = true;
videoSurveillance({...this.videoCondition,destID:this.personInfo.info.userId,imei:this.personInfo.info.imei}).then(res=>{
if(res.code == 200 && res.data.msg == '操作成功') {

Loading…
Cancel
Save