guoshipeng
2023-01-05 ffadb97c8ac3cf3c532e36311d2b0d39614e7c1e
src/views/charts/index.vue
@@ -282,20 +282,15 @@
                    },
                  })
                }
              } else if (lockLength < data[i].deviceData.length) {
              } else {
                newLineChartData.series.push({
                  data: [],
                  name: '',
                  type: 'line',
                  label: {
                    show: false,
                    position: 'top',
                  },
                })
              }
              newLineChartData.series[j].name = data[i].deviceData[j].name
              newLineChartData.title.push(data[i].deviceData[j].name)
              lockLength++
              newLineChartData.series[j].data.push(
                data[i].deviceData[j].sensorValue
              )
@@ -307,7 +302,7 @@
          }
          // newLineChartData.title = this.value
          this.lineChartData = newLineChartData
          // console.log(newLineChartData, 'newLineChartData')
          console.log(lineChartData, 'newLineChartData')
        })
        .catch((err) => {
          console.log(err)