Commit f8db0749 by 匡雅琴

bug修复

1 parent 386a12e4
<template>
<div class="main-container">
<div id="map" class="map-container"></div>
<div class="left-box">
<!-- 饼图组件 -->
<ParCharts class="pie" ref="pieChartsRef" id="pie-chart" height="250px" :list="pieList" />
<!-- 风险分析 -->
......@@ -63,6 +64,8 @@
</div>
</div>
</div>
</div>
<div class="right-box">
<!-- 基本信息 -->
<div class="detail-box">
<div class="title">基本信息</div>
......@@ -122,6 +125,7 @@
<div>暂无里程数据</div>
</div>
</div>
</div>
<!-- 热力图 -->
<div class="hot-box">“历史停留”热力图</div>
</div>
......@@ -164,6 +168,7 @@ export default {
created() {
let _this = this;
const _vehicleId = _this.$route.query.vehicleId
this.vehicleId = _vehicleId
_this.getBasicInformation(_vehicleId)
_this.getResidentInformation(_vehicleId)
_this.getAlarmInformation(_vehicleId)
......@@ -171,9 +176,9 @@ export default {
_this.$mapInit({ version: '1.4.2' }).then(AMap => {
window.AMap = AMap;
_this.initMap();
setTimeout(() => {
_this.getStayPointList(_vehicleId)
})
// setTimeout(() => {
// _this.getStayPointList(_vehicleId)
// })
})
},
......@@ -191,6 +196,7 @@ export default {
this.mapObj = mapService.init("map");
//this.bindEvent();
this.isInitMap = true;
this.getStayPointList(this.vehicleId)
// this.drawPoi()
} else {
this.checkMapLoaded = check();
......@@ -385,10 +391,14 @@ export default {
padding: 0; */
}
.pie {
.left-box {
position: absolute;
top: 40px;
left: 40px;
z-index: 9999;
}
.pie {
width: 340px;
height: 299px;
background: #181C36;
......@@ -397,9 +407,7 @@ export default {
}
.analy-box {
position: absolute;
bottom: 40px;
left: 40px;
margin-top: 16px;
width: 340px;
background: #181C36;
box-shadow: 0 4px 6px 0 #00000014;
......@@ -549,10 +557,14 @@ export default {
}
.detail-box {
.right-box {
position: absolute;
top: 40px;
right: 40px;
z-index: 9999;
}
.detail-box {
width: 340px;
background: #181C36;
box-shadow: 0 4px 6px 0 #00000014;
......@@ -580,8 +592,9 @@ export default {
}
&-right {
flex: 1;
color: #E5E5E8;
text-align: right;
text-align: left;
}
&-desc {
......@@ -591,9 +604,7 @@ export default {
}
.use-car-box {
position: absolute;
bottom: 40px;
right: 40px;
margin-top: 16px;
width: 340px;
height: 264px;
background: #181C36;
......@@ -643,5 +654,4 @@ export default {
.line-charts {
padding-left: 10px;
}
</style>
\ No newline at end of file
}</style>
\ No newline at end of file
......@@ -446,7 +446,8 @@ export default {
pageSize: 10,
loadingMore: false,
placeholderText: "请输入6位以上车架号",
vidCode: undefined
vidCode: undefined,
sourceType: 0
};
},
computed: {
......@@ -937,6 +938,12 @@ export default {
if (!list || list.length <= 0) {
return false;
}
// 跳转到风险评估页面获取有线设备还是无线设备还是两者结合
// 有线设备或者有线+无线组合都正常展示按钮sourceType-1,否则就是0
// let sourceType = 0
list.forEach(item => {
if (item.source == '有线') this.sourceType = 1
})
this.vidCode = list[0].vid;
for (var i = 0, len = list.length; i < len; i++) {
_this.handleSelect(list[i]);
......@@ -1224,6 +1231,7 @@ export default {
item = this.filterGpsBase(item);
item.isSource = relItem.source;
item.vidCode = this.vidCode
item.sourceType = this.sourceType
});
this.monitorList = Object.assign({}, this.monitorList);
let drawData = data.filter(
......
......@@ -528,14 +528,13 @@ MapService.prototype = {
}
}
// 跳转到风险评估页面 无线设备不显示按钮 isSource:1有线,其他无线
// 跳转到风险评估页面 无线设备不显示按钮 sourceType:1有线组合,其他无线
let riskBtn = infoDiv.querySelector('[data-risk]');
if (riskBtn) {
if (info.isSource != 1) {
if (info.sourceType != 1) {
riskBtn.classList.add('resident_btn_hidden');
}
riskBtn.onclick = function() {
console.log(info);
let id = info.vidCode || localStorage.getItem('vehicleId');
queryCode = `vehicleId=${id}`
mapService.openPage(`#/monitor/alarmAnalysis?${queryCode}`)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!