From c748495762da3fdaeffa3bfbfde6607cd4f45a42 Mon Sep 17 00:00:00 2001 From: hanbaoshan <hanbaoshan@aiotlink.com> Date: 星期四, 24 十二月 2020 17:30:51 +0800 Subject: [PATCH] 实景图固定区域高度调整 --- src/pages/panoramicView/components/TracePlot.vue | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/pages/panoramicView/components/TracePlot.vue b/src/pages/panoramicView/components/TracePlot.vue index 6790ea6..695e000 100644 --- a/src/pages/panoramicView/components/TracePlot.vue +++ b/src/pages/panoramicView/components/TracePlot.vue @@ -22,8 +22,8 @@ ></canvas> --> <canvas ref="trackArea" - width="960" - height="540" + :width="fixedW" + :height="fixedH" :style="{backgroundImage:`url(${panoramaPath})`,backgroundSize:`${bgW}px ${bgH}px`}" ></canvas> </div> @@ -51,7 +51,7 @@ searchStartTimeStamp: 0, searchEndTimeStamp: 0, fixedW: 960, - fixedH: 540, + fixedH: 700, bgW: 0, bgH: 0 } @@ -73,8 +73,8 @@ getPanoramaPic().then(res => { let { panoramaPath, width, height } = res.data; _this.panoramaPath = panoramaPath + '?' + Math.random(); - //_this.cW = width; - //_this.cH = height; + _this.cW = width; + _this.cH = height; //鍒ゆ柇闀垮姣� let ratio = res.data.width/res.data.height; if(ratio > (_this.fixedW/_this.fixedH)){ -- Gitblit v1.8.0