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)