浏览代码

切换村底部隐藏

wulanhaote
hbao 3 年前
父节点
当前提交
6361693654
共有 1 个文件被更改,包括 34 次插入10 次删除
  1. +34
    -10
      src/views/homestead/index.vue

+ 34
- 10
src/views/homestead/index.vue 查看文件

@@ -1162,7 +1162,6 @@ export default {
drawMapPolygonFun() {
let drawMapPolygon = this.draw.drawMapPolygon;
if (drawMapPolygon == false) {
console.log(this.coordinateList);
if (this.coordinateList == "") {
this.$set(this.draw, "drawMapPolygon", true);
$("#drawPolygon").trigger("click");
@@ -1540,7 +1539,6 @@ export default {
this.$toast("修改农地信息成功");
//this.initDraw();
getLand(landInfoList.id).then((res) => {
console.log(res.data.frontland);
if (res.code == 200) {
this.farmhouseStatus=1;
this.landInfoList.frontland =res.data.frontland;
@@ -1771,7 +1769,6 @@ export default {
} else {
currDeptId = content[0].value;
}
// console.log(currDeptId);
//获取村详细信息
this.deptGetFun(currDeptId);
//获取地图
@@ -2347,7 +2344,6 @@ export default {
map.removeLayer(texiao_layer_fang);
map.removeLayer(texiao_layer_di);
//删除之前加载的图层

let currObjNum = _this.villageDataObj;
map.getView().animate({
// 只设置需要的属性即可
@@ -2375,7 +2371,6 @@ export default {
//图层加载
//地的数据判断
var difang = ["nsgk_hc:t_geo_hc_house", "nsgk_hc:t_geo_hc_land"];
console.log("++++++++++++" + cun);
//业务图层 wms服务
for (var i = 0; i < difang.length; i++) {
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.substr(0, url_dw.length - 1);
console.log(url_dw);
fetch(url_dw, {
method: "POST", // *GET, POST, PUT, DELETE, etc.
})
@@ -2442,6 +2436,40 @@ export default {
console.log("【异常】", error);
});
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
@@ -2703,9 +2731,7 @@ export default {
var feature = evt.feature;
var geometry = feature.getGeometry();
var coordinate = geometry.getCoordinates();
console.log("打印" + coordinate);
_this.coordinateList = coordinate.toString();
console.log(_this.coordinateList);
$("#drawRemove").trigger("click");
_this.$set(_this.draw, "drawMapPolygon", false);

@@ -3061,8 +3087,6 @@ export default {
this.houseInfoList.tdxz = value.dictLabel;

this.tdxzOptionsVibile = false;
console.log(value);
console.log(this.houseInfoList);
},
//农房 - 是否有审批 选择值
xfCirculationFun(value) {


正在加载...
取消
保存