From 5cb89929c20f325ea2c05561fcf4f92c74094fea Mon Sep 17 00:00:00 2001 From: yupan <yupanx@163.com> Date: Thu, 27 Oct 2022 10:46:39 +0800 Subject: [PATCH] 1、新增监测站点数据页面 2、监测因子趋势页面修改显示bug 3、监测因子趋势和监测因子对比修改时间控件 --- src/views/car/index.vue | 22 +++++++++++----------- 1 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/views/car/index.vue b/src/views/car/index.vue index 0856354..849a1f4 100644 --- a/src/views/car/index.vue +++ b/src/views/car/index.vue @@ -418,7 +418,6 @@ } // timeValue: { // handler(newVal, oldVal) { - // console.log('���������', this.timeValue, '���������', this.sensorDate) // this.sensorTime = this.newTime() // console.log(this.sensorTime, 'this.sensorTime') // // if (this.dataValue && this.timeValue) { @@ -573,7 +572,7 @@ }, // ������������ dateChange(e) { - this.sensorDate = e + this.sensorDate = e; // if (this.view) { // this.view.removeAllLayers() // this.map.clearOverlays() @@ -643,7 +642,7 @@ var lon = parseFloat(JSON.parse(msg.data).flylon) if (that.msgTemp.length < 2) { that.msgTemp.push({ lat: lat, lon: lon }) - } + } var distance = that.GetDistance(that.msgTemp[0].lat, that.msgTemp[0].lon, that.msgTemp[1].lat, that.msgTemp[1].lon) if (distance >= 0.05) { that.msgTemp.shift() @@ -653,6 +652,7 @@ that.msgTemp.pop() } } + }, // ��������������������� getStart() { @@ -675,6 +675,7 @@ time2 } }).then(res => { + console.log(res); if (!res.data.length) { this.noneData = true this.loading = false @@ -718,12 +719,11 @@ lat = GPS.gcj_encrypt(lat, lng).lat lng = GPS.bd_encrypt(lat, lng).lon lat = GPS.bd_encrypt(lat, lng).lat - var point = new BMapGL.Point(lng, lat) + var point = new BMapGL.Point(lng, lat); point.a34004 = parseInt(value.a34004) point.a34002 = parseInt(value.a34002) point.a21026 = parseInt(value.a21026) point.a21004 = parseInt(value.a21004) - // point.a21005 = parseInt(value.a21005) point.a21005 = parseFloat(value.a21005).toFixed(3) point.a05024 = parseInt(value.a05024) point.a99054 = parseFloat(value.a99054).toFixed(3) @@ -765,7 +765,7 @@ that.mapZoom = that.viewport.zoom that.centerPoint = that.viewport.center if (that.firstPlayFlag) { - that.map.centerAndZoom(that.centerPoint, that.mapZoom) + that.map.centerAndZoom(that.centerPoint, that.mapZoom) that.view = new mapvgl.View({ map: that.map }) @@ -784,14 +784,14 @@ var levels = getGrading(sensor, type, carMac) $.each(levels, function(index, value) { var color = value.color - var data = value.data + var data = value.data if (data.length > 0) { // ������MapVGL���������������,������������������mapvgl that.shapeLayer = new mapvgl.ShapeLayer({ color: color, // ��������������� enablePicked: true, // ������������������ selectedIndex: -1, // ��������� - selectedColor: '#ee1111', // ��������������� + selectedColor: '#ee1111', // ��������������� autoSelect: true, // ������������������������������������������ riseTime: 1800 // ��������������������������� }) @@ -813,7 +813,7 @@ var sw = getPoint(225, point.lng, point.lat, that.distance) var ne = getPoint(45, point.lng, point.lat, that.distance) var data = point[sensor] - // ������������������������������������ + // ������������������������������������ color = getColorAndLevel(sensor, data).color var polygon = new BMapGL.Polygon([ new BMapGL.Point(sw.lng, sw.lat), // ��������� @@ -846,7 +846,7 @@ var points = [] $.each(trackPoints, function(index, value) { var point = [] - point.push(value['lng'], value['lat']) + point.push(value['lng'],value['lat']) points.push(point) }) data.push({ @@ -857,7 +857,7 @@ }) var lineLayer = new mapvgl.LineLayer({ color: 'red', - width: 3, + width: 3, animation: true, duration: 10, // ������������2s trailLength: 0.1, // ������������������������0.4 -- Gitblit v1.8.0