From 936633659148e800a8d09322a9f1e646104010a7 Mon Sep 17 00:00:00 2001
From: yichenxi <yichenxi0601@163.com>
Date: Mon, 12 Dec 2022 14:14:57 +0800
Subject: [PATCH] 1、尘负荷走航路段报告
---
src/views/charts/index.vue | 20 ++++++++++++++++----
1 files changed, 16 insertions(+), 4 deletions(-)
diff --git a/src/views/charts/index.vue b/src/views/charts/index.vue
index ecfdd9b..0b9aa32 100644
--- a/src/views/charts/index.vue
+++ b/src/views/charts/index.vue
@@ -168,7 +168,6 @@
}
// ������������������������������������������
this.getSensor()
- console.log(this.newMac1)
},
// ������dataType���������������
select1(nv, ov) {
@@ -267,13 +266,23 @@
})
.then((res) => {
// console.log('������������������������������')
- console.log(res)
const data = res.data
let lockLength = 0
for (let i = 0; i < data.length; i++) {
for (let j = 0; j < data[i].deviceData.length; j++) {
- // console.log(data[i].deviceData);
- if (res.data[0].deviceData.length == 1) {
+ if (res.data[0].deviceData.length === 1) {
+ if (lockLength < data[i].deviceData.length) {
+ newLineChartData.series.push({
+ data: [],
+ name: '',
+ type: 'line',
+ label: {
+ show: true,
+ position: 'top',
+ },
+ })
+ }
+ } else if (lockLength < data[i].deviceData.length) {
newLineChartData.series.push({
data: [],
name: '',
@@ -295,6 +304,9 @@
newLineChartData.series[j].data.push(
data[i].deviceData[j].sensorValue
)
+
+
+
}
newLineChartData.xAxis.push(data[i].time)
}
--
Gitblit v1.8.0