| | |
| | | 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; |
| | |
| | | }, |
| | | |
| | | 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) { |