车载监控及轨迹、事件图层更换接口

master
吕天方 5 months ago
parent a6e0887676
commit b29b5cfefe

@ -93,3 +93,37 @@ export function statregion(params){
params params
}) })
} }
// 车载监控视频地址获取
export function previewURLs(params){
return request({
url: "/videoSpnl/previewURLs",
method:'get',
headers:{
isToken:false,
},
params
})
}
// 车辆行程轨迹获取
export function carTrack(params) {
return request({
url: "/event/workboatlog/loginfo",
method:'get',
headers:{
isToken:false,
},
params
})
}
// 今日巡查事件
export function listpatrol(params) {
return request({
url: "/event/summary/listpatrol",
method:'get',
params
})
}

@ -125,6 +125,7 @@
background-image: url("../images/popup/popup.png"); background-image: url("../images/popup/popup.png");
background-size: 100% 100%; background-size: 100% 100%;
z-index: 600; z-index: 600;
overflow: hidden;
.person-title { .person-title {
padding: 9px 10px 0 16px; padding: 9px 10px 0 16px;
@ -231,6 +232,7 @@
.car-popup { .car-popup {
width: 262px; width: 262px;
height: 138px; height: 138px;
overflow: hidden;
background-image: url("../images/popup/popup.png"); background-image: url("../images/popup/popup.png");
background-size: 100% 100%; background-size: 100% 100%;
z-index: 600; z-index: 600;
@ -296,11 +298,32 @@
} }
} }
.btn { // .btn {
// margin-top: 19px;
// background-image: url('../images/popup/icon1btn.png');
// background-size: 100% 100%;
// width: 100%;
// height: 30px;
// display: flex;
// align-items: center;
// justify-content: center;
// font-size: 14px;
// font-family: Source Han Sans CN-Regular, Source Han Sans CN;
// font-weight: 400;
// color: #D3EEF2;
// line-height: 20px;
// cursor: pointer;
// }
.btns {
display: flex;
align-items: center;
justify-content: space-between;
margin-top: 19px; margin-top: 19px;
background-image: url('../images/popup/icon1btn.png');
.btn {
background-image: url("../images/popup/icon2btn.png");
background-size: 100% 100%; background-size: 100% 100%;
width: 100%; width: 91px;
height: 30px; height: 30px;
display: flex; display: flex;
align-items: center; align-items: center;
@ -313,6 +336,7 @@
cursor: pointer; cursor: pointer;
} }
} }
}
} }
// //

@ -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-09-02 19:12:35 * @LastEditTime: 2024-09-12 15:45:34
--> -->
<template> <template>
<div class="map-main"> <div class="map-main">
@ -186,7 +186,11 @@
<div class="name">{{carInfo.info.carName}}</div> <div class="name">{{carInfo.info.carName}}</div>
<div class="position">{{carInfo.info.carCode}}</div> <div class="position">{{carInfo.info.carCode}}</div>
</div> </div>
<!-- <div class="btn" @click="travelPath()"></div> -->
<div class="btns">
<div class="btn" @click="travelPath()"></div> <div class="btn" @click="travelPath()"></div>
<div class="btn" @click="watchCarVideo"></div>
</div>
</div> </div>
</div> </div>
</el-amap-info-window> </el-amap-info-window>
@ -433,7 +437,10 @@
<!-- 事件指派人员 --> <!-- 事件指派人员 -->
<crew-assign ref="crewAssign"></crew-assign> <crew-assign ref="crewAssign"></crew-assign>
<!-- <video-wall ref="videoWall"></video-wall> --> <!-- <video-wall ref="videoWall"></video-wall> -->
<!-- 监控视频上墙 -->
<alone-video ref="aloneVideo"></alone-video> <alone-video ref="aloneVideo"></alone-video>
<!-- 车载视频上墙 -->
<car-video ref="carVideo"></car-video>
<!-- 商铺详情 --> <!-- 商铺详情 -->
<shop ref="shop" width="50%" title="商铺详情查看" /> <shop ref="shop" width="50%" title="商铺详情查看" />
<!-- 新增事件 --> <!-- 新增事件 -->
@ -471,14 +478,14 @@ import point from "@/utils/mapJson/point.json";
import jiangninggeo from "@/utils/mapJson/jiangningjingkaiqugeo.json"; import jiangninggeo from "@/utils/mapJson/jiangningjingkaiqugeo.json";
// //
import OneGJ02 from "@/utils/mapJson/1GJ02.json"; // import OneGJ02 from "@/utils/mapJson/1GJ02.json";
import TwoGJ02 from "@/utils/mapJson/2GJ02.json"; // import TwoGJ02 from "@/utils/mapJson/2GJ02.json";
import ThreeGJ02 from "@/utils/mapJson/3GJ02.json"; // import ThreeGJ02 from "@/utils/mapJson/3GJ02.json";
import FourGJ02 from "@/utils/mapJson/4GJ02.json"; // import FourGJ02 from "@/utils/mapJson/4GJ02.json";
import kaifaqu from "@/utils/mapJson/开发区空港开发区GJ02.json"; // import kaifaqu from "@/utils/mapJson/GJ02.json";
import ruanjianyuan from "@/utils/mapJson/开发区软件园GJ02.json"; // import ruanjianyuan from "@/utils/mapJson/GJ02.json";
// //
import gridding from "@/utils/mapJson/中队小网格.json" // import gridding from "@/utils/mapJson/.json"
// import zhongdianluduan from "@/utils/mapJson/zhongdianluduan.json"; // import zhongdianluduan from "@/utils/mapJson/zhongdianluduan.json";
// import zhongdianquyu from "@/utils/mapJson/zhongdianquyu.json"; // import zhongdianquyu from "@/utils/mapJson/zhongdianquyu.json";
@ -491,12 +498,13 @@ import personageTrack from "../../components/personagetrack/index.vue";
import personageTask from "../../components/personageTask/index.vue"; import personageTask from "../../components/personageTask/index.vue";
import crewAssign from "../../components/crewAssign/index.vue"; import crewAssign from "../../components/crewAssign/index.vue";
import videoWall from "../../components/videoWall/index.vue"; import videoWall from "../../components/videoWall/index.vue";
import carVideo from "../../components/carVideo/index.vue";
import shop from "../../components/shop/index.vue"; import shop from "../../components/shop/index.vue";
import aloneVideo from "../../components/video/index.vue" import aloneVideo from "../../components/video/index.vue"
import newEvent from "../../components/newEvent/index.vue" import newEvent from "../../components/newEvent/index.vue"
// import jiangningwangge from "@/utils/data/.json"; // import jiangningwangge from "@/utils/data/.json";
import weilan from "@/utils/data/围栏1.json"; // import weilan from "@/utils/data/1.json";
import { getCenter } from "@/utils/amap" import { getCenter } from "@/utils/amap"
import { import {
regionalsettings, regionalsettings,
@ -514,11 +522,15 @@ import {
getUserByImei, getUserByImei,
dwgjList dwgjList
} from "@/api/bigScreenApi"; } from "@/api/bigScreenApi";
import {
previewURLs,
listpatrol
} from "@/api/bigScreenApi/eventApi.js"
import { import {
robotLogin, robotLogin,
ViewListPage ViewListPage
} from "@/api/bigScreenApi/robot.js" } from "@/api/bigScreenApi/robot.js"
import { setRobotToken } from '@/utils/auth' // import { setRobotToken } from '@/utils/auth'
import flvjs from "flv.js"; import flvjs from "flv.js";
import axios from "axios"; import axios from "axios";
@ -533,7 +545,8 @@ export default {
shop, shop,
aloneVideo, aloneVideo,
newEvent, newEvent,
personageTask personageTask,
carVideo
}, },
data() { data() {
return { return {
@ -654,149 +667,7 @@ export default {
this.layers.text = new AMap.OverlayGroup(); // this.layers.text = new AMap.OverlayGroup(); //
this.layers.text1 = new AMap.OverlayGroup(); // this.layers.text1 = new AMap.OverlayGroup(); //
this.layers.markers = new AMap.OverlayGroup(); // markers this.layers.markers = new AMap.OverlayGroup(); // markers
// this.layers.layer2.setzIndex(10);
// this.layers.layer3.setzIndex(9);
this.$nextTick(() => { this.$nextTick(() => {
// var geojson1 = new AMap.Polygon({
// path:OneGJ02.features[0].geometry.coordinates[0][0],
// strokeColor: '#00C5EC',
// fillColor: '#00AEFF',
// fillOpacity: 0.4,
// // fillOpacity: 0.3,
// editable:false,
// visible:true,
// })
// var text1 = new AMap.Text({
// // position: [element.properties.CENTERX,element.properties.CENTERY],
// position: getCenter(OneGJ02.features[0].geometry.coordinates[0][0]),
// anchor: 'bottom-center',
// text: OneGJ02.features[0].properties.NAME,
// style:{
// 'font-size': '16px',
// 'font-weight': 'bold',
// 'text-align': 'center',
// 'color': '#00AEFF',
// 'text-shadow': '0px 1px 0px rgba(0,0,0,0.3)',
// 'white-space': 'nowrap',
// },
// });
// var geojson2 = new AMap.Polygon({
// path:TwoGJ02.features[0].geometry.coordinates[0][0],
// strokeColor: '#00C5EC',
// fillColor: '#00AEFF',
// fillOpacity: 0.4,
// // fillOpacity: 0.3,
// editable:false,
// visible:true,
// })
// var text2 = new AMap.Text({
// // position: [element.properties.CENTERX,element.properties.CENTERY],
// position: getCenter(TwoGJ02.features[0].geometry.coordinates[0][0]),
// anchor: 'bottom-center',
// text: TwoGJ02.features[0].properties.NAME,
// style:{
// 'font-size': '16px',
// 'font-weight': 'bold',
// 'text-align': 'center',
// 'color': '#00AEFF',
// 'text-shadow': '0px 1px 0px rgba(0,0,0,0.3)',
// 'white-space': 'nowrap',
// },
// });
// var geojson3 = new AMap.Polygon({
// path:ThreeGJ02.features[0].geometry.coordinates[0][0],
// strokeColor: '#00C5EC',
// fillColor: '#00AEFF',
// fillOpacity: 0.4,
// // fillOpacity: 0.3,
// editable:false,
// visible:true,
// })
// var text3 = new AMap.Text({
// // position: [element.properties.CENTERX,element.properties.CENTERY],
// position: getCenter(ThreeGJ02.features[0].geometry.coordinates[0][0]),
// anchor: 'bottom-center',
// text: ThreeGJ02.features[0].properties.NAME,
// style:{
// 'font-size': '16px',
// 'font-weight': 'bold',
// 'text-align': 'center',
// 'color': '#00AEFF',
// 'text-shadow': '0px 1px 0px rgba(0,0,0,0.3)',
// 'white-space': 'nowrap',
// },
// });
// var geojson4 = new AMap.Polygon({
// path:FourGJ02.features[0].geometry.coordinates[0][0],
// strokeColor: '#00C5EC',
// fillColor: '#00AEFF',
// fillOpacity: 0.4,
// // fillOpacity: 0.3,
// editable:false,
// visible:true,
// })
// var text4 = new AMap.Text({
// // position: [element.properties.CENTERX,element.properties.CENTERY],
// position: getCenter(FourGJ02.features[0].geometry.coordinates[0][0]),
// anchor: 'bottom-center',
// text: FourGJ02.features[0].properties.NAME,
// style:{
// 'font-size': '16px',
// 'font-weight': 'bold',
// 'text-align': 'center',
// 'color': '#00AEFF',
// 'text-shadow': '0px 1px 0px rgba(0,0,0,0.3)',
// 'white-space': 'nowrap',
// },
// });
// var geojson5 = new AMap.Polygon({
// path:kaifaqu.features[0].geometry.coordinates[0][0],
// strokeColor: '#00C5EC',
// fillColor: '#00AEFF',
// fillOpacity: 0.4,
// // fillOpacity: 0.3,
// editable:false,
// visible:true,
// })
// var text5 = new AMap.Text({
// // position: [element.properties.CENTERX,element.properties.CENTERY],
// position: getCenter(kaifaqu.features[0].geometry.coordinates[0][0]),
// anchor: 'bottom-center',
// text: kaifaqu.features[0].properties.NAME,
// style:{
// 'font-size': '16px',
// 'font-weight': 'bold',
// 'text-align': 'center',
// 'color': '#00AEFF',
// 'text-shadow': '0px 1px 0px rgba(0,0,0,0.3)',
// 'white-space': 'nowrap',
// },
// });
// var geojson6 = new AMap.Polygon({
// path:ruanjianyuan.features[0].geometry.coordinates[0][0],
// strokeColor: '#00C5EC',
// fillColor: '#00AEFF',
// fillOpacity: 0.4,
// // fillOpacity: 0.3,
// editable:false,
// visible:true,
// })
// var text6 = new AMap.Text({
// // position: [element.properties.CENTERX,element.properties.CENTERY],
// position: getCenter(ruanjianyuan.features[0].geometry.coordinates[0][0]),
// anchor: 'bottom-center',
// text: ruanjianyuan.features[0].properties.NAME,
// style:{
// 'font-size': '16px',
// 'font-weight': 'bold',
// 'text-align': 'center',
// 'color': '#00AEFF',
// 'text-shadow': '0px 1px 0px rgba(0,0,0,0.3)',
// 'white-space': 'nowrap',
// },
// });
levelQywg({level:1}).then(res=>{ levelQywg({level:1}).then(res=>{
let W = []; let W = [];
@ -838,21 +709,6 @@ export default {
this.wanggeData = res.data; this.wanggeData = res.data;
}) })
// this.layers.layer.addOverlay(geojson1);
// this.layers.text.addOverlay(text1);
// this.layers.layer.addOverlay(geojson2);
// this.layers.text.addOverlay(text2);
// this.layers.layer.addOverlay(geojson3);
// this.layers.text.addOverlay(text3);
// this.layers.layer.addOverlay(geojson4);
// this.layers.text.addOverlay(text4);
// this.layers.layer.addOverlay(geojson5);
// this.layers.text.addOverlay(text5);
// this.layers.layer.addOverlay(geojson6);
// this.layers.text.addOverlay(text6);
this.map.add(this.layers.layer); this.map.add(this.layers.layer);
this.map.add(this.layers.text); this.map.add(this.layers.text);
map.setFitView(); map.setFitView();
@ -1131,18 +987,16 @@ export default {
// this.mapLoading = false; // this.mapLoading = false;
// } // }
// }) // })
let data = {'queryValue' : [], "myInstanceClassify" : "all", "parameterValue":[], fks: []} listpatrol({current:1,size:1000}).then(res=>{
ViewListPage({viewCode:'event-all-list', pageNo: 1, pageSize:500}, data).then(res=>{
this.mapLoading = false; this.mapLoading = false;
if(res.code == 200) { if(res.code == 200) {
this.videoPoint = []; this.videoPoint = [];
res.result.records.forEach((element)=>{ res.data.records.forEach((element)=>{
let obj = {position:[]}; let obj = {position:[]};
let location = element.location?.split(','); let location = element.location?.split(',');
// obj.imgSrc = element.status == "0" ? offIcon4 : ico5; // obj.imgSrc = element.status == "0" ? offIcon4 : ico5;
if(location.length > 1) {
if(location) {
obj.position[0] = location[0]; obj.position[0] = location[0];
obj.position[1] = location[1]; obj.position[1] = location[1];
// let lonLat = this.wgs84togcj02(location[0],location[1]); // let lonLat = this.wgs84togcj02(location[0],location[1]);
@ -1173,6 +1027,48 @@ export default {
}) })
} }
}) })
// let data = {'queryValue' : [], "myInstanceClassify" : "all", "parameterValue":[], fks: []}
// ViewListPage({viewCode:'event-all-list', pageNo: 1, pageSize:500}, data).then(res=>{
// this.mapLoading = false;
// if(res.code == 200) {
// this.videoPoint = [];
// res.result.records.forEach((element)=>{
// let obj = {position:[]};
// let location = element.location?.split(',');
// // obj.imgSrc = element.status == "0" ? offIcon4 : ico5;
// if(location) {
// obj.position[0] = location[0];
// obj.position[1] = location[1];
// // let lonLat = this.wgs84togcj02(location[0],location[1]);
// // obj.position[0] = lonLat ? lonLat[0] : 0;
// // obj.position[1] = lonLat ? lonLat[1] : 0;
// obj.lnglat = new AMap.LngLat(location.length > 0 ? location[0] : 0 ,location.length > 0 ? location[1] : 0)
// // obj.lnglat = new AMap.LngLat(lonLat ? lonLat[0] : 0 ,lonLat ? lonLat[1] : 0)
// } else {
// obj.position[0] = 0;
// obj.position[1] = 0;
// }
// obj.imgSrc = ico2;
// obj.info = element
// // this.markers.push(obj)
// this.videoPoint.push(obj)
// })
// this.count = this.videoPoint.length;
// AMap.plugin(['AMap.MarkerCluster'],()=>{
// this.cluster = new AMap.MarkerCluster(this.map,this.videoPoint,{
// gridSize: 60, //
// maxZoom: 17,
// styles: sts,
// // renderClusterMarker: this._renderClusterMarker, //
// renderMarker: this._eventMarker, //
// })
// })
// }
// })
} else if(id == 3){ } else if(id == 3){
// point.features.forEach((element)=>{ // point.features.forEach((element)=>{
// if (element.properties.name == "") { // if (element.properties.name == "") {
@ -1300,15 +1196,6 @@ export default {
renderMarker: this._DrenderMarker, // renderMarker: this._DrenderMarker, //
}) })
}) })
// res.rows.forEach(element => {
// let obj = {position:[]};
// obj.position[0] = element.longitude;
// obj.position[1] = element.latitude;
// obj.imgSrc = ico6;
// obj.info = element;
// this.markers.push(obj)
// this.mapLoading = false;
// })
}).catch(err=>{ }).catch(err=>{
this.mapLoading = false; this.mapLoading = false;
}) })
@ -1873,9 +1760,16 @@ export default {
if(this.actionMap == 1) { if(this.actionMap == 1) {
this.$refs.personageTrack.open("person", this.personInfo.info); this.$refs.personageTrack.open("person", this.personInfo.info);
} else if(this.actionMap == 3) { } else if(this.actionMap == 3) {
this.$refs.personageTrack.open("car", this.car.info); this.$refs.personageTrack.open("car", this.carInfo.info);
} }
}, },
//
watchCarVideo(){
previewURLs({cameraIndexCode:'5ab6cc3745e147918b2a96c2604ecdbb',transmode:1,protocol:'hls',streamType:1}).then(res=>{
let carUrl = JSON.parse(res.data);
this.$refs.carVideo.open(carUrl.data.url);
})
},
// //
divClick(lightedPolygonId){ divClick(lightedPolygonId){
if(this.action == 1) { if(this.action == 1) {

@ -0,0 +1,77 @@
<template>
<dia-log ref="dialog4" width="45%" title="实时监控" @close="Close">
<div class="video-main">
<!-- muted是否静音 -->
<video
id="video"
preload="auto"
controls
autoplay
class="video-js vjs-default-skin vjs-big-play-centered"
style="width: 100%; height: 100%; object-fit: fill"
>
<source :src="videoUrl" type="application/x-mpegURL" />
</video>
</div>
</dia-log>
</template>
<script>
import diaLog from "../../components/dialog/index.vue"
import Videojs from "video.js"
import "videojs-contrib-hls";
// json
import video_zhCN from 'video.js/dist/lang/zh-CN.json'
//
Videojs.addLanguage('zh-CN', video_zhCN)
export default {
components:{diaLog},
data() {
return {
videoUrl: "",
videoPlayer: null,
}
},
props:{},
methods:{
open(url) {
this.$refs.dialog4.open('3');
this.initVideo();
this.videoUrl = url;
},
Close() {
// this.videoPlayer.dispose();
if(this.videoPlayer){
this.videoPlayer.dispose();
}
},
initVideo(){
this.$nextTick(() => {
this.videoPlayer = Videojs(`video`,{
bigPlayButton: true, //
textTrackDisplay: false,
posterImage: false,
errorDisplay: false,
language: 'zh-CN',
controls: true,
height: '100%',
hls: {
withCredentials: true,
},
})
});
},
},
destroyed() {
if(this.videoPlayer){
this.videoPlayer.dispose();
}
}
}
</script>
<style lang="scss" scoped>
.video-main {
width: 100%;
height: 500px;
padding: 0 40px 0 0;
}
</style>

@ -3,8 +3,8 @@
<div class="personage-track"> <div class="personage-track">
<div class="track-title"> <div class="track-title">
<div class="titlebg"></div> <div class="titlebg"></div>
<span class="name">{{ person ? personItem.userName : "执法一队1号车" }}</span> <span class="name">{{ person ? personItem.userName : carItem.carName }}</span>
<span>{{ person ? "执法1队队员" : "苏A568974" }}</span> <span>{{ person ? "执法1队队员" : carItem.carCode }}</span>
</div> </div>
<div class="track-content"> <div class="track-content">
<div class="oneList"> <div class="oneList">
@ -127,6 +127,9 @@ import ruanjianyuan from "@/utils/mapJson/开发区软件园GJ02.json";
// import "@/utils/lib/leaflet-tilelayer-colorizr.js"; // import "@/utils/lib/leaflet-tilelayer-colorizr.js";
import { getLocInfoByImei } from "@/api/bigScreenApi" import { getLocInfoByImei } from "@/api/bigScreenApi"
import { getCenter } from "@/utils/amap" import { getCenter } from "@/utils/amap"
import {
carTrack,
} from "@/api/bigScreenApi/eventApi.js"
export default { export default {
components: { diaLog }, components: { diaLog },
data() { data() {
@ -134,6 +137,10 @@ export default {
title: "人员行程轨迹", title: "人员行程轨迹",
person: false, person: false,
personItem: null, personItem: null,
carItem: {
carName:"",
carCode:""
},
queryTime: { queryTime: {
fromTime: "", fromTime: "",
toTime: "", toTime: "",
@ -150,7 +157,6 @@ export default {
fillColor: 'rgba(64,175,255,0.4)' // 使16#00B2D5 fillColor: 'rgba(64,175,255,0.4)' // 使16#00B2D5
}, },
jiangninggeo:jiangninggeo, jiangninggeo:jiangninggeo,
globalMap: null, globalMap: null,
track: null, track: null,
mapLayer1: null, mapLayer1: null,
@ -336,6 +342,10 @@ export default {
this.queryTime.toTime = this.getCurrentTime(1); this.queryTime.toTime = this.getCurrentTime(1);
this.query(); this.query();
} else { } else {
this.carItem = item;
console.log(this.carItem);
this.queryTime.fromTime = this.getCurrentTime();
this.queryTime.toTime = this.getCurrentTime(1);
this.title = "车辆行程轨迹"; this.title = "车辆行程轨迹";
this.person = false; this.person = false;
} }
@ -412,8 +422,8 @@ export default {
this.$modal.msgError("请选择查询的截止时间"); this.$modal.msgError("请选择查询的截止时间");
} else { } else {
this.loading = true; this.loading = true;
if(this.person){
getLocInfoByImei({...this.queryTime,imei:this.personItem.imei}).then(res=>{ getLocInfoByImei({...this.queryTime,imei:this.personItem.imei}).then(res=>{
console.log(res,'行动轨迹');
this.loading = false; this.loading = false;
if(res.code == 200 && res.data.result == '000') { if(res.code == 200 && res.data.result == '000') {
let arr = [] let arr = []
@ -431,8 +441,10 @@ export default {
} }
this.track = new AMap.Polyline({ this.track = new AMap.Polyline({
path: arr, path: arr,
strokeWeight: 6,
strokeColor: '#F44444', strokeColor: '#F44444',
strokeOpacity: 1, strokeOpacity: 1,
showDir: true,
}) })
this.map.add(this.track); this.map.add(this.track);
const mapInstance = this.$refs.personMap.$$getInstance(); const mapInstance = this.$refs.personMap.$$getInstance();
@ -449,6 +461,39 @@ export default {
this.$modal.msgError(res.data.msg); this.$modal.msgError(res.data.msg);
} }
}) })
} else {
carTrack({startTime:this.queryTime.fromTime,endTime:this.queryTime.toTime,deviceIndexCode:"b91155244ea245708ed8258dfcc4509a"}).then(res=>{
// console.log(res,"");
this.loading = false;
if(res.code == 200) {
let arr = []
res.data.records.forEach(element => {
let arrTwo = [];
arrTwo[1] = element.latitude;
arrTwo[0] = element.longitude;
arr.push(arrTwo);
});
// if(this.track) {
// this.globalMap.removeLayer(this.track);
// }
if(this.map.getAllOverlays('polyline')) {
this.map.remove(this.map.getAllOverlays('polyline'));
}
this.track = new AMap.Polyline({
path: arr,
strokeColor: '#F44444',
strokeOpacity: 1,
showDir: true,
})
this.map.add(this.track);
const mapInstance = this.$refs.personMap.$$getInstance();
// setFitView GeoJSON
mapInstance.setFitView(this.track);
}
}).catch(err => {
this.loading = false;
})
}
} }
}, },
// //

@ -1,11 +1,3 @@
<!--
* @Descripttion:
* @version:
* @Author: JC9527
* @Date: 2023-12-26 13:59:07
* @LastEditors: JC9527
* @LastEditTime: 2023-12-28 14:46:59
-->
<template> <template>
<dia-log ref="dialog4" width="45%" title="实时监控" @close="Close"> <dia-log ref="dialog4" width="45%" title="实时监控" @close="Close">
<div class="video-main"> <div class="video-main">
@ -71,7 +63,6 @@ export default {
}, },
destroyed() { destroyed() {
if(this.videoPlayer){ if(this.videoPlayer){
console.log("1111111111111111111111");
this.videoPlayer.dispose(); this.videoPlayer.dispose();
} }
} }

Loading…
Cancel
Save