| @@ -1162,7 +1162,6 @@ export default { | |||||
| drawMapPolygonFun() { | drawMapPolygonFun() { | ||||
| let drawMapPolygon = this.draw.drawMapPolygon; | let drawMapPolygon = this.draw.drawMapPolygon; | ||||
| if (drawMapPolygon == false) { | if (drawMapPolygon == false) { | ||||
| console.log(this.coordinateList); | |||||
| if (this.coordinateList == "") { | if (this.coordinateList == "") { | ||||
| this.$set(this.draw, "drawMapPolygon", true); | this.$set(this.draw, "drawMapPolygon", true); | ||||
| $("#drawPolygon").trigger("click"); | $("#drawPolygon").trigger("click"); | ||||
| @@ -1540,7 +1539,6 @@ export default { | |||||
| this.$toast("修改农地信息成功"); | this.$toast("修改农地信息成功"); | ||||
| //this.initDraw(); | //this.initDraw(); | ||||
| getLand(landInfoList.id).then((res) => { | getLand(landInfoList.id).then((res) => { | ||||
| console.log(res.data.frontland); | |||||
| if (res.code == 200) { | if (res.code == 200) { | ||||
| this.farmhouseStatus=1; | this.farmhouseStatus=1; | ||||
| this.landInfoList.frontland =res.data.frontland; | this.landInfoList.frontland =res.data.frontland; | ||||
| @@ -1771,7 +1769,6 @@ export default { | |||||
| } else { | } else { | ||||
| currDeptId = content[0].value; | currDeptId = content[0].value; | ||||
| } | } | ||||
| // console.log(currDeptId); | |||||
| //获取村详细信息 | //获取村详细信息 | ||||
| this.deptGetFun(currDeptId); | this.deptGetFun(currDeptId); | ||||
| //获取地图 | //获取地图 | ||||
| @@ -2347,7 +2344,6 @@ export default { | |||||
| map.removeLayer(texiao_layer_fang); | map.removeLayer(texiao_layer_fang); | ||||
| map.removeLayer(texiao_layer_di); | map.removeLayer(texiao_layer_di); | ||||
| //删除之前加载的图层 | //删除之前加载的图层 | ||||
| let currObjNum = _this.villageDataObj; | let currObjNum = _this.villageDataObj; | ||||
| map.getView().animate({ | map.getView().animate({ | ||||
| // 只设置需要的属性即可 | // 只设置需要的属性即可 | ||||
| @@ -2375,7 +2371,6 @@ export default { | |||||
| //图层加载 | //图层加载 | ||||
| //地的数据判断 | //地的数据判断 | ||||
| var difang = ["nsgk_hc:t_geo_hc_house", "nsgk_hc:t_geo_hc_land"]; | var difang = ["nsgk_hc:t_geo_hc_house", "nsgk_hc:t_geo_hc_land"]; | ||||
| console.log("++++++++++++" + cun); | |||||
| //业务图层 wms服务 | //业务图层 wms服务 | ||||
| for (var i = 0; i < difang.length; i++) { | for (var i = 0; i < difang.length; i++) { | ||||
| if (difang[i] == "nsgk_hc:t_geo_hc_house") { | if (difang[i] == "nsgk_hc:t_geo_hc_house") { | ||||
| @@ -2419,7 +2414,6 @@ export default { | |||||
| url_dw = url_dw + key + "=" + param_dw[key] + "&"; | url_dw = url_dw + key + "=" + param_dw[key] + "&"; | ||||
| } | } | ||||
| url_dw = url_dw.substr(0, url_dw.length - 1); | url_dw = url_dw.substr(0, url_dw.length - 1); | ||||
| console.log(url_dw); | |||||
| fetch(url_dw, { | fetch(url_dw, { | ||||
| method: "POST", // *GET, POST, PUT, DELETE, etc. | method: "POST", // *GET, POST, PUT, DELETE, etc. | ||||
| }) | }) | ||||
| @@ -2442,6 +2436,40 @@ export default { | |||||
| console.log("【异常】", error); | console.log("【异常】", error); | ||||
| }); | }); | ||||
| map.addLayer(nongZt[i]); | map.addLayer(nongZt[i]); | ||||
| //切换村底部盒子隐藏 | |||||
| _this.hasTable = false; | |||||
| if ($(".searchBar_wrap").css("bottom") != "0px") { | |||||
| $(".landHomestead_wrap").css({bottom: "0"}); | |||||
| $(".landHomestead_wrap").animate( | |||||
| { | |||||
| bottom: "-100%", | |||||
| }, | |||||
| 300 | |||||
| ); | |||||
| $(".searchBar_wrap").css({bottom: "-100%"}); | |||||
| $(".searchBar_wrap").animate( | |||||
| { | |||||
| bottom: "0", | |||||
| }, | |||||
| 400 | |||||
| ); | |||||
| let searchBarWrapPadding = $(".searchBar_wrap") | |||||
| .css("paddingTop") | |||||
| .replace("px", ""); | |||||
| let searchBarWrapHeight = $(".searchBar_wrap").height(); | |||||
| $(".rightIcon_wrap").animate( | |||||
| { | |||||
| bottom: | |||||
| searchBarWrapHeight + | |||||
| searchBarWrapPadding * 2 + | |||||
| 10 + | |||||
| "px", | |||||
| }, | |||||
| 200 | |||||
| ); | |||||
| } | |||||
| } | } | ||||
| }); | }); | ||||
| //村定位查询-------------------------------------end | //村定位查询-------------------------------------end | ||||
| @@ -2703,9 +2731,7 @@ export default { | |||||
| var feature = evt.feature; | var feature = evt.feature; | ||||
| var geometry = feature.getGeometry(); | var geometry = feature.getGeometry(); | ||||
| var coordinate = geometry.getCoordinates(); | var coordinate = geometry.getCoordinates(); | ||||
| console.log("打印" + coordinate); | |||||
| _this.coordinateList = coordinate.toString(); | _this.coordinateList = coordinate.toString(); | ||||
| console.log(_this.coordinateList); | |||||
| $("#drawRemove").trigger("click"); | $("#drawRemove").trigger("click"); | ||||
| _this.$set(_this.draw, "drawMapPolygon", false); | _this.$set(_this.draw, "drawMapPolygon", false); | ||||
| @@ -3061,8 +3087,6 @@ export default { | |||||
| this.houseInfoList.tdxz = value.dictLabel; | this.houseInfoList.tdxz = value.dictLabel; | ||||
| this.tdxzOptionsVibile = false; | this.tdxzOptionsVibile = false; | ||||
| console.log(value); | |||||
| console.log(this.houseInfoList); | |||||
| }, | }, | ||||
| //农房 - 是否有审批 选择值 | //农房 - 是否有审批 选择值 | ||||
| xfCirculationFun(value) { | xfCirculationFun(value) { | ||||