From 776dbaf47fad6858b702824ba3bc9a5e96bb741b Mon Sep 17 00:00:00 2001 From: hbao Date: Wed, 16 Mar 2022 09:59:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=9C=B0=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Map/MapGisDrawing.vue | 2 +- src/views/homesteadSurvey/add.vue | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/components/Map/MapGisDrawing.vue b/src/components/Map/MapGisDrawing.vue index 0ea3b368..623160b6 100644 --- a/src/components/Map/MapGisDrawing.vue +++ b/src/components/Map/MapGisDrawing.vue @@ -606,7 +606,7 @@ export default { }) .then((data) => { console.log(data); - let resolution = map.getView().getResolutionForExtent(data.bbox,map.getSize()); + let resolution = that.map.getView().getResolutionForExtent(data.bbox,map.getSize()); resolution:resolution + Math.random() * 0.00000001, that.map.getView().fit(data.bbox); that.map.getView().setResolution(resolution); diff --git a/src/views/homesteadSurvey/add.vue b/src/views/homesteadSurvey/add.vue index a6528133..bb60d019 100644 --- a/src/views/homesteadSurvey/add.vue +++ b/src/views/homesteadSurvey/add.vue @@ -5481,7 +5481,9 @@ } }) } - + if(this.form3.theGeom == null){ + this.form3.theGeom = this.form.theGeom; + } } this.showzrz = true; this.zrzProduct(); @@ -5783,7 +5785,7 @@ this.form4.sfsgcf = "N" } if(this.form4.theGeom==null||this.form4.theGeom==""){ - this.form4.theGeom = this.form4.theGeom + this.form4.theGeom = this.form.theGeom } this.fssslxOptions.map(res => { if(res.dictValue == item.fssslx){