quanyawei
2023-10-10 fcf1ab7acf2517d4a9884bc785430769b099b064
src/views/car/index.vue
@@ -496,7 +496,7 @@
  components: { index },
  data() {
    return {
      inputnum: 0,
      inputnum: 50,
      tableData: [],
      fileList: [],
      file: '',
@@ -1260,34 +1260,21 @@
              point.a21005 = parseFloat(value.a21005).toFixed(3)
              point.a05024 = parseInt(value.a05024)
              point.a99054 = parseFloat(value.a99054).toFixed(3)
              //   if (
              //     value.dustld - 0 !== 0 &&
              //     value.dustld - 0 < 150 &&
              //     (that.carMac === 'p5dnd7a0243622' ||
              //       that.carMac === 'p5dnd7a0243625')
              //   ) {
              //     point.dustld = 200
              //   } else if (
              //     value.dustld - 0 !== 0 &&
              //     value.dustld - 0 >= 150 &&
              //     value.dustld - 0 <= 180 &&
              //     (that.carMac === 'p5dnd7a0243622' ||
              //       that.carMac === 'p5dnd7a0243625')
              //   ) {
              //     point.dustld = 220
              //   } else if (
              //     value.dustld - 0 !== 0 &&
              //     value.dustld - 0 > 180 &&
              //     value.dustld - 0 <= 200 &&
              //     (that.carMac === 'p5dnd7a0243622' ||
              //       that.carMac === 'p5dnd7a0243625')
              //   ) {
              //     point.dustld = 230
              //   } else {
              //     point.dustld = value.dustld - 0
              //   }
              if (value.dustld - 0 >= 0 && value.dustld - 0 < 40) {
                point.dustld = value.dustld - 0 + 170
              } else if (value.dustld - 0 >= 40 && value.dustld - 0 < 60) {
                point.dustld = value.dustld - 0 + 130
              } else if (value.dustld - 0 >= 60 && value.dustld - 0 < 100) {
                point.dustld = value.dustld - 0 + 110
              } else if (value.dustld - 0 >= 100 && value.dustld - 0 < 150) {
                point.dustld = value.dustld - 0 + 70
              } else if (value.dustld - 0 >= 150 && value.dustld - 0 < 180) {
                point.dustld = value.dustld - 0 + 30
              } else {
                point.dustld = value.dustld - 0
              }
            }
            point.dustld = value.dustld - 0
            // point.dustld = value.dustld - 0
            point.times = value.time
            trackPoints.push(point)
          }
@@ -1979,10 +1966,10 @@
          // this.bg = require('@/assets/images/tl_TVOCNew.png')
          break
      }
      this.$nextTick(()=>{
      this.$nextTick(() => {
        this.getStart()
      })
      this.initStart();
      this.initStart()
    },
    changeCode1(index) {
      this.changeColor1 = index