强制观摩+1

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

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

Loading…
Cancel
Save