Browse Source

优化地图

wulanhaote
hbao 3 years ago
parent
commit
c52fe9e49e
1 changed files with 11 additions and 4 deletions
  1. +11
    -4
      src/views/homesteadSurvey/add.vue

+ 11
- 4
src/views/homesteadSurvey/add.vue View File

@@ -22,7 +22,7 @@
<van-row> <van-row>
<van-col span="4" :offset="1" style="text-align:center;" > <van-col span="4" :offset="1" style="text-align:center;" >
<div @click="active=1"> <div @click="active=1">
<van-icon :name="require('../../assets/images/housesteadSurvey/zjd'+(active==1?'A':'D')+'.png')" size="1rem" @click="mapClickLoading" style="margin-top:0px;"/>
<van-icon :name="require('../../assets/images/housesteadSurvey/zjd'+(active==1?'A':'D')+'.png')" size="1rem" :message="form.message" @click="mapClickLoading" style="margin-top:0px;"/>
<p :style="{color:(active==1?'rgb(34, 183, 242)':'#000')}">宅基地</p> <p :style="{color:(active==1?'rgb(34, 183, 242)':'#000')}">宅基地</p>
</div> </div>
</van-col> </van-col>
@@ -2584,7 +2584,10 @@
this.getBaseUrl(); this.getBaseUrl();
}, },
mounted(){ mounted(){
this.mapClickLoading();
if(this.active ==1){
this.form.theGeom = this.item.theGeom;
this.mapClickLoading();
}
}, },
methods: { methods: {
getBaseUrl(){ getBaseUrl(){
@@ -3590,7 +3593,8 @@
fwjg:'02', fwjg:'02',
fwjgName:'钢和钢筋混凝土结构', fwjgName:'钢和钢筋混凝土结构',
sjly:'04', sjly:'04',
sjlyName:'农村宅基地使用权确权登记发证'
sjlyName:'农村宅基地使用权确权登记发证',
theGeom:this.form3.theGeom,
} }
}else{ }else{
this.form3 = item this.form3 = item
@@ -3607,6 +3611,7 @@
} }
this.showzrz = true; this.showzrz = true;
this.active = 3; this.active = 3;
console.log(item);
this.mapClickLoading(); this.mapClickLoading();
} }
}, },
@@ -3757,7 +3762,8 @@
jzwqkName:'正常', jzwqkName:'正常',
tdzk:'3', tdzk:'3',
tdzkName:'其他', tdzkName:'其他',
sfsgcf:'N'
sfsgcf:'N',
theGeom:this.form4.theGeom,
} }
}else{ }else{
this.form4=item this.form4=item
@@ -3960,6 +3966,7 @@
//地图加载js------start //地图加载js------start
mapClickLoading(){ mapClickLoading(){
console.log(1) console.log(1)
console.log(this.form);
setTimeout(() => { setTimeout(() => {
this.$refs.drewingClickLoading.drawingPaceCountryDarw(); this.$refs.drewingClickLoading.drawingPaceCountryDarw();
}, 500); }, 500);


Loading…
Cancel
Save