Commit a806727f by 匡雅琴

bug修复

1 parent 5323cfba
......@@ -125,16 +125,22 @@ export default {
if (!storedList.length) {
return `无警情\n{b|${value}}`;
} else {
return `${storedList[0].alarmLevel / 1}级警情\n{b|${value}}`;
return `{a|${storedList[0].alarmLevel / 1}级}\n警情\n{b|${value}}`;
}
},
rich: {
a: {
fontSize: 30,
color: '#ffffff',
fontweight: 'bold',
},
b: {
color: pointerData > 0 ? '#F38906' : '#4ED5D7'
color: pointerData > 0 ? '#F38906' : '#4ED5D7',
fontSize: 14,
}
},
textStyle: {
fontSize: 12,
fontSize: 18,
color: '#ffffff',
top: '80%',
},
......
<template>
<div class="main-container">
<div id="map" class="map-container"></div>
<div class="left-box">
<div id="alarmMap" class="map-container"></div>
<div class="left-box" v-show="boxShow">
<!-- 饼图组件 -->
<ParCharts class="pie" ref="pieChartsRef" id="pie-chart" height="250px" :list="pieList" />
<!-- 风险分析 -->
......@@ -65,7 +65,7 @@
</div>
</div>
</div>
<div class="right-box">
<div class="right-box" v-show="boxShow">
<!-- 基本信息 -->
<div class="detail-box">
<div class="title">基本信息</div>
......@@ -99,7 +99,7 @@
<!-- <div class="detail-msg-desc"> {{ basicData.deviceInformationVOList ?
basicData.deviceInformationVOList[0].deviceStateStr : '-' }}</div> -->
<template v-if="basicData.deviceInformationVOList.length">
<div>
<div class="detail-msg-right">
<div class="detail-msg-desc" v-for="item in basicData.deviceInformationVOList">
<div>{{ item.sourceStr }}-{{ item.sn }}</div>
<div v-show="item.deviceStateStr">{{ item.deviceStateStr }}</div>
......@@ -161,24 +161,18 @@ export default {
xAxisDataList: [],
pieList: [],
resultList: [],
linetype: 1
linetype: 1,
boxShow: false
};
},
created() {
mounted() {
let _this = this;
const _vehicleId = _this.$route.query.vehicleId
this.vehicleId = _vehicleId
_this.getBasicInformation(_vehicleId)
_this.getResidentInformation(_vehicleId)
_this.getAlarmInformation(_vehicleId)
_this.getUserBehaviorInformation(_vehicleId)
_this.$mapInit({ version: '1.4.2' }).then(AMap => {
window.AMap = AMap;
_this.initMap();
// setTimeout(() => {
// _this.getStayPointList(_vehicleId)
// })
})
},
......@@ -193,9 +187,16 @@ export default {
!this.mapObj
) {
window.AMap = AMap;
this.mapObj = mapService.init("map");
this.mapObj = mapService.init("alarmMap");
this.isInitMap = true;
this.getStayPointList(this.vehicleId)
this.$nextTick(() => {
this.boxShow = true
this.getStayPointList(this.vehicleId)
this.getBasicInformation(this.vehicleId)
this.getResidentInformation(this.vehicleId)
this.getAlarmInformation(this.vehicleId)
this.getUserBehaviorInformation(this.vehicleId)
}, 500)
} else {
this.checkMapLoaded = check();
}
......@@ -214,51 +215,7 @@ export default {
})
return
}
// let _data = [
// {
// workOrderNo: "PAGL-2730216-2022ZLTJ100331902-ZL-01-0630143536375",
// ownerName: "岳**",
// sn: "15204130097",
// standno: "L6T7*********1722",
// shopName: "无锡拓炎汽车服务有限公司",
// beginTime: "2024-03-19 10:59:56",
// endTime: "2024-03-19 16:27:53",
// duration: "05 时 27 分 57 秒",
// locationType: "GPS",
// elat: "41.652284",
// elng: "117.066791",
// address: '江苏省无锡市滨湖区蠡湖大道1800号'
// },
// {
// workOrderNo: "PAGL-2730216-2022ZLTJ100331902-ZL-01-0630143536375",
// ownerName: "岳**",
// sn: "15204130097",
// standno: "L6T7*********1722",
// shopName: "无锡拓炎汽车服务有限公司",
// beginTime: "2024-03-19 09:43:51",
// endTime: "2024-03-19 10:32:26",
// duration: "48 分 35 秒",
// locationType: "GPS",
// elat: "41.579062",
// elng: "117.107705",
// address: '江苏省无锡市滨湖区蠡湖大道1800号'
// },
// {
// workOrderNo: "PAGL-2730216-2022ZLTJ100331902-ZL-01-0630143536375",
// ownerName: "岳**",
// sn: "15204130097",
// standno: "L6T7*********1722",
// shopName: "无锡拓炎汽车服务有限公司",
// beginTime: "2024-03-18 09:24:30",
// endTime: "2024-03-18 12:25:22",
// duration: "03 时 00 分 52 秒",
// locationType: "GPS",
// elat: "41.330770",
// elng: "117.731553",
// address: '江苏省无锡市滨湖区蠡湖大道1800号'
// }
// ]
let _data = res.data
let _data = res.data || []
if (!_data.length) {
this.$message({
type: "info",
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!