hanbaoshan
2020-12-29 8a84c8e9e646f234006c6bbf4607776a4c4ed6b4
轨迹图查询条件判空处理
1个文件已修改
18 ■■■■ 已修改文件
src/pages/panoramicView/components/TracePlot.vue 18 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/panoramicView/components/TracePlot.vue
@@ -65,6 +65,7 @@
        //this.$moment().format("YYYY-MM-DD HH:mm:ss")
      ],
      timer: null,
      intervalTime: 5000,
      colorArr: ['#F4DA40', '#0092BC', '#97D700', '#D0006F', '#D86018', '#653279', '#A45A2A', '#004B87', '#008C95', '#AA0061'],
      searchStartTimeStamp: 0,
      searchEndTimeStamp: 0,
@@ -80,9 +81,7 @@
  mounted () {
    this.searchData();
    this.getPanorama();
    this.timer = setInterval(() => {
      this.searchData();
    }, 7000);
  },
  beforeDestroy () {
    console.log('beforeDestroy')
@@ -190,6 +189,14 @@
      // }
    },
    searchData () {
      if(!this.searchTime){
        this.$notify({
          type:'warning',
          message:'请选择时间!'
        });
        clearInterval(this.timer);
        return;
      }
      let _this = this;
      var param = {
        page: 1,
@@ -278,7 +285,10 @@
          })
        }
        console.log(new Date().getTime(), _this.actObj)
        _this.drawTracePath()
        _this.drawTracePath();
        _this.timer = setTimeout(()=>{
          _this.searchData()
        },_this.intervalTime)
      })
    }
  }