From e800eb37d94c1390886eac76ea73aa4be0c78f48 Mon Sep 17 00:00:00 2001 From: hbao Date: Fri, 4 Mar 2022 09:20:44 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E7=84=B6=E5=B9=A2=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/homesteadSurvey/add.vue | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/src/views/homesteadSurvey/add.vue b/src/views/homesteadSurvey/add.vue index 12aeb614..3a4e1083 100644 --- a/src/views/homesteadSurvey/add.vue +++ b/src/views/homesteadSurvey/add.vue @@ -3084,6 +3084,8 @@ }, //记录是否从地图进入 enterMap: "", + //记录从地图进入宅基地代码 + enterMapZjddm:"", }; }, created(){ @@ -3200,6 +3202,7 @@ this.backMap.activeBtn = 4; this.enterMap =1; this.backMap.backMapZjdAData =this.$cookies.get("search").mapZjdAData; + this.enterMapZjddm = this.$cookies.get("search").mapZjdAData.zjddm; //返回地图值记录----end this.active = this.$cookies.get("search").active this.item = this.$cookies.get("search").mapZjdAData @@ -5024,9 +5027,16 @@ .generate() // 使用生成器调用把签字的图片转换成为base64图片格式 .then((res) => { this.resultImg = res; - if(this.$cookies.get("search").zjddm !="" && this.$cookies.get("search").zjddm !=undefined && this.$cookies.get("search").zjddm !=null){ - updateZrzZt(this.$cookies.get("search").zjddm).then(response => {}); - updateFsssZt(this.$cookies.get("search").zjddm).then(response => {}); + if(this.enterMap ==1){ + if(this.enterMapZjddm !="" && this.enterMapZjddm !=undefined && this.enterMapZjddm !=null){ + updateZrzZt(this.enterMapZjddm).then(response => {}); + updateFsssZt(this.enterMapZjddm).then(response => {}); + } + }else { + if(this.$cookies.get("search").zjddm !="" && this.$cookies.get("search").zjddm !=undefined && this.$cookies.get("search").zjddm !=null){ + updateZrzZt(this.$cookies.get("search").zjddm).then(response => {}); + updateFsssZt(this.$cookies.get("search").zjddm).then(response => {}); + } } }) .catch((err) => {