diff --git a/src/views/homestead/index.vue b/src/views/homestead/index.vue
index 29ff6d9e..6ed514f4 100644
--- a/src/views/homestead/index.vue
+++ b/src/views/homestead/index.vue
@@ -135,7 +135,7 @@
v-model="villageValue"
title="请选择所在村"
:options="hcAreaInfoOption"
- @close="villageVisbile = false"
+ @close="hcAreaInfoClose"
@finish="hcAreaInfoFinish"
active-color="#1989fa"
:field-names="hcAreaInfoFieldName"
@@ -182,9 +182,13 @@
@@ -193,9 +197,13 @@
@@ -1117,7 +1125,7 @@ export default {
this.houseLandLookAnmitFun("hide");
}
},
- toggleSearch(){
+ toggleSearch() {
$("#query").trigger("click");
},
//显示农地\农房详情 动画
@@ -1796,7 +1804,10 @@ export default {
$("#texiao_di").trigger("click");
}
},
-
+ //关闭选择地址弹窗
+ hcAreaInfoClose() {
+ this.villageVisbile = false;
+ },
//加载地图
mapBackground() {
let _this = this;
@@ -2224,7 +2235,7 @@ export default {
var nongZt = ["house", "land"];
var texiao_layer_fang;
var texiao_layer_di;
- var delete_map = ["mapHouse","mapLand"];
+ var delete_map = ["mapHouse", "mapLand"];
$("#cun").on("change", function () {
/**
* @api wfs服务空间查询
@@ -2372,18 +2383,18 @@ export default {
var cun = _this.villageDataObj.deptName;
difang = ["nsgk_hc:t_geo_hc_house", "nsgk_hc:t_geo_hc_land"];
- var tach =0;
- var once =0;
+ var tach = 0;
+ var once = 0;
for (var i = 0; i < difang.length; i++) {
map.removeLayer(delete_map[i]);
// 数字验证!
- var reg=/\d/;
+ var reg = /\d/;
//验证汉子
//var han = /^[\u4e00-\u9fa5]+$/;
- if(reg.test(val)){
+ if (reg.test(val)) {
//循环判断查询条件
- cql_filter = "XH='" + val + "'" + "and CM='" + cun + "'";
- }else{
+ cql_filter = "XH='" + val + "'" + "and CM='" + cun + "'";
+ } else {
//循环判断查询条件
if (cun != "all" && cun != "") {
if (difang[i] == "nsgk_hc:t_geo_hc_house") {
@@ -2450,10 +2461,10 @@ export default {
return geojsonmap;
})
.then((data) => {
- tach =tach+1;
- if(data.features !=null && data.features !=""){
- //var datamap = data.bbox;
- var datamap = data.features[0].bbox;
+ tach = tach + 1;
+ if (data.features != null && data.features != "") {
+ //var datamap = data.bbox;
+ var datamap = data.features[0].bbox;
map.getView().animate({
// 只设置需要的属性即可
center: datamap, // 中心点
@@ -2461,10 +2472,10 @@ export default {
rotation: undefined, // 缩放完成view视图旋转弧度
duration: 1000, // 缩放持续时间,默认不需要设置
});
- } else if(tach ==1){
- once = once+1;
- }else{
- if((tach ==2 && once ==1)){
+ } else if (tach == 1) {
+ once = once + 1;
+ } else {
+ if (tach == 2 && once == 1) {
alert("没有找到相关人员农房农地信息");
}
}