From bfb69728c725d05b580f58e290cbb09b814f6fb0 Mon Sep 17 00:00:00 2001
From: guoshipeng <3194674006@qq.com>
Date: Wed, 26 Jul 2023 08:58:47 +0800
Subject: [PATCH] fix

---
 src/views/charts/index.vue |   26 ++++++++++----------------
 1 files changed, 10 insertions(+), 16 deletions(-)

diff --git a/src/views/charts/index.vue b/src/views/charts/index.vue
index 0b9aa32..c79623a 100644
--- a/src/views/charts/index.vue
+++ b/src/views/charts/index.vue
@@ -194,8 +194,7 @@
         one === 'a34002' ||
         one === 'a21004' ||
         one === 'a21026' ||
-        one === 'a05024' ||
-        one === 'a21001'
+        one === 'a05024'
       ) {
         this.selectyz = '(������:ug/m��)'
       } else if (
@@ -223,7 +222,13 @@
         this.selectyz = '(������:pcs/0.1L)'
       } else if (one === 'a00e13') {
         this.selectyz = '(������:db)'
-      } else if (one === 'a21028') {
+      } else if (
+        one === 'a21028' ||
+        one === 'a25002' ||
+        one === 'a21001' ||
+        one === 'a25005' ||
+        one === 'a25003'
+      ) {
         this.selectyz = '(������:ppm)'
       }
     },
@@ -247,6 +252,7 @@
   methods: {
     // ������������
     selectData() {
+      console.log(this.newData)
       var newLineChartData = {
         series: [],
         xAxis: [],
@@ -282,16 +288,6 @@
                     },
                   })
                 }
-              } else if (lockLength < data[i].deviceData.length) {
-                newLineChartData.series.push({
-                  data: [],
-                  name: '',
-                  type: 'line',
-                  label: {
-                    show: true,
-                    position: 'top',
-                  },
-                })
               } else {
                 newLineChartData.series.push({
                   data: [],
@@ -304,9 +300,6 @@
               newLineChartData.series[j].data.push(
                 data[i].deviceData[j].sensorValue
               )
-
-
-
             }
             newLineChartData.xAxis.push(data[i].time)
           }
@@ -354,6 +347,7 @@
     },
     // ���������������������������������
     getSensor() {
+      this.newSensor = []
       // stringMacs.su
       // var newMac = this.newMac[this.newMac.length - 1][this.newMac[this.newMac.length - 1].length - 1]
       // this.newMac1 = this.newMac[this.newMac.length - 1][this.newMac[this.newMac.length - 1].length - 1]

--
Gitblit v1.8.0