guoshipeng
2023-08-23 f4ce0b2b134b58b9404d403c93fe03371e265096
src/views/charts/index.vue
@@ -140,6 +140,10 @@
      medium: '',
      isSelect: false,
      options1: [
         {
          label: '五分钟报',
          value: '五分钟报',
        },
        {
          label: '小时报',
          value: '小时报',
@@ -183,6 +187,9 @@
      } else if (nv === '小时报') {
        this.dataType = 'HourPicker1'
        this.unit = 'hour'
      } else if (nv === '五分钟报') {
        this.dataType = 'HourPicker1'
        this.unit = 'FiveMinute'
      } else {
        this.dataType = 'CustomPicker'
        this.unit = 'hour'
@@ -280,6 +287,7 @@
                if (lockLength < data[i].deviceData.length) {
                  newLineChartData.series.push({
                    data: [],
                    // large: true,
                    name: '',
                    type: 'line',
                    label: {
@@ -292,6 +300,7 @@
                newLineChartData.series.push({
                  data: [],
                  name: '',
                  // large: true,
                  type: 'line',
                })
              }
@@ -347,6 +356,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]