guoshipeng
2022-12-17 05b03aa8cc49dc9415c011522433dd261704cc5b
src/views/charts/index.vue
@@ -288,14 +288,19 @@
                  name: '',
                  type: 'line',
                  label: {
                    show: false,
                    show: true,
                    position: 'top',
                  },
                })
              } else {
                newLineChartData.series.push({
                  data: [],
                  name: '',
                  type: 'line',
                })
              }
              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 +312,7 @@
          }
          // newLineChartData.title = this.value
          this.lineChartData = newLineChartData
          // console.log(newLineChartData, 'newLineChartData')
          console.log(lineChartData, 'newLineChartData')
        })
        .catch((err) => {
          console.log(err)