From bf6c920ff28af1a2b283d6f9d9cfb95875edb436 Mon Sep 17 00:00:00 2001 From: kun <1422840143@qq.com> Date: Fri, 23 Feb 2024 16:07:45 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20BUG=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/projectFront/highModulus/planConfig.vue | 8 ++++---- src/views/projectFront/highSlopeMonitor/dataConfig.vue | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/views/projectFront/highModulus/planConfig.vue b/src/views/projectFront/highModulus/planConfig.vue index 441038db..b406d775 100644 --- a/src/views/projectFront/highModulus/planConfig.vue +++ b/src/views/projectFront/highModulus/planConfig.vue @@ -185,8 +185,8 @@ export default { activeImgIndex: 0, activeImgUrl: false, isEditPoint: false, - imgWidth: 0, - imgHeight: 0, + imgWidth: 721, + imgHeight: 545, activeImgUrl: false, pointList: [], detailList: [], @@ -352,8 +352,8 @@ export default { natureSize.width = img.width; natureSize.height = img.height; console.log('------', natureSize) - _this.imgWidth = natureSize.width - _this.imgHeight = natureSize.height + // _this.imgWidth = natureSize.width + // _this.imgHeight = natureSize.height _this.imgStartWidth = img.width; _this.imgStartHeight = img.width; console.log(_this.$refs['mapbox'].clientWidth, _this.$refs['mapbox'].clientHeight) diff --git a/src/views/projectFront/highSlopeMonitor/dataConfig.vue b/src/views/projectFront/highSlopeMonitor/dataConfig.vue index 9bde6e03..7f752cab 100644 --- a/src/views/projectFront/highSlopeMonitor/dataConfig.vue +++ b/src/views/projectFront/highSlopeMonitor/dataConfig.vue @@ -1171,8 +1171,8 @@ export default { pointStatus: 'none', pointTop: 0, pointLeft: 0, - imgWidth: 0, - imgHeight: 0, + imgWidth: 721, + imgHeight: 545, imgStartWidth: 0, imgStartHeight: 0, imgZoom: 1, @@ -2275,8 +2275,8 @@ export default { natureSize.width = img.width natureSize.height = img.height console.log('------', natureSize) - _this.imgWidth = natureSize.width - _this.imgHeight = natureSize.height + // _this.imgWidth = natureSize.width + // _this.imgHeight = natureSize.height _this.imgStartWidth = img.width _this.imgStartHeight = img.width console.log(_this.$refs['mapbox'].clientWidth, _this.$refs['mapbox'].clientHeight)