|
|
@ -1226,7 +1226,7 @@ export default {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 各个点位获取
|
|
|
|
// 各个点位获取
|
|
|
|
getMarkers(id){
|
|
|
|
getMarkers(id,status){
|
|
|
|
let ico1 = require("../../../assets/images/icon/icon1.png");
|
|
|
|
let ico1 = require("../../../assets/images/icon/icon1.png");
|
|
|
|
let ico2 = require("../../../assets/images/icon/icon2.png");
|
|
|
|
let ico2 = require("../../../assets/images/icon/icon2.png");
|
|
|
|
let ico3 = require("../../../assets/images/icon/icon3.png");
|
|
|
|
let ico3 = require("../../../assets/images/icon/icon3.png");
|
|
|
@ -1238,7 +1238,7 @@ export default {
|
|
|
|
let offIcon3 = require("../../../assets/images/icon/offLine3.png");
|
|
|
|
let offIcon3 = require("../../../assets/images/icon/offLine3.png");
|
|
|
|
let offIcon4 = require("../../../assets/images/icon/offLine4.png");
|
|
|
|
let offIcon4 = require("../../../assets/images/icon/offLine4.png");
|
|
|
|
this.markers = [];
|
|
|
|
this.markers = [];
|
|
|
|
this.mapLoading = true;
|
|
|
|
this.mapLoading = status ? false : true;
|
|
|
|
if(id == 1) {
|
|
|
|
if(id == 1) {
|
|
|
|
this.personLine = [];
|
|
|
|
this.personLine = [];
|
|
|
|
getDeviceList({ imei: "861316060216403,861316060216619,861316060207857,861316060214648,861316060214317,861316060215553,861316060212493,861316060214804,861316060207931,861316060216056" }).then((res) => {
|
|
|
|
getDeviceList({ imei: "861316060216403,861316060216619,861316060207857,861316060214648,861316060214317,861316060215553,861316060212493,861316060214804,861316060207931,861316060216056" }).then((res) => {
|
|
|
@ -2757,6 +2757,7 @@ export default {
|
|
|
|
this.markerOffset = new AMap.Pixel(-27, -94);
|
|
|
|
this.markerOffset = new AMap.Pixel(-27, -94);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.getMarkers(id);
|
|
|
|
this.getMarkers(id);
|
|
|
|
|
|
|
|
// this.markerInterval()
|
|
|
|
|
|
|
|
|
|
|
|
// if (id == 1) {
|
|
|
|
// if (id == 1) {
|
|
|
|
// this.getTem();
|
|
|
|
// this.getTem();
|
|
|
@ -2780,14 +2781,26 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
getCarList(){
|
|
|
|
getCarList(){
|
|
|
|
getCarManageList({pageNum: 1,pageSize: 10}).then(res=>{
|
|
|
|
getCarManageList({pageNum: 1,pageSize: 10}).then(res=>{
|
|
|
|
console.log(res);
|
|
|
|
// console.log(res);
|
|
|
|
this.carLine = res.rows
|
|
|
|
this.carLine = res.rows
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
// 定时器
|
|
|
|
|
|
|
|
markerInterval(){
|
|
|
|
|
|
|
|
let timer
|
|
|
|
|
|
|
|
if(this.actionMap == 1) {
|
|
|
|
|
|
|
|
timer = setInterval(() => {
|
|
|
|
|
|
|
|
this.getMarkers(1,true)
|
|
|
|
|
|
|
|
}, 10000);
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
clearInterval(timer)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
mounted() {
|
|
|
|
mounted() {
|
|
|
|
this.getCarList()
|
|
|
|
this.getCarList()
|
|
|
|
|
|
|
|
// this.markerInterval()
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|