zhangzengfei
2021-02-04 0175cda6150656bc74b34c6f6c71edd1e1fc653c
src/pages/panoramicView/components/SlideCanvas.vue
@@ -83,10 +83,6 @@
  methods: {
    refresh(url,cameraId) {
      this.$emit('polygonDataUpdate')
      //let camera = this.cameras.find(one => one.id == cameraId);
      //camera.canvasData.snapshot_url = url;
    },
    getCanvasData(data) {
      let _this = this;
@@ -108,11 +104,17 @@
    },
    pre () {
      this.swiper.activeIndex--
      this.swiper.activeIndex--;
      if(this.swiper.activeIndex == -1){
        this.swiper.activeIndex = this.cameras.length-1;
      }
      this.swiper.slideTo(this.swiper.activeIndex);
    },
    next () {
      this.swiper.activeIndex++
      this.swiper.activeIndex++;
      if(this.swiper.activeIndex == this.cameras.length){
        this.swiper.activeIndex = 0;
      }
      this.swiper.slideTo(this.swiper.activeIndex);
    },
    drawBaseImg (id) {