|
|
@@ -1322,15 +1322,15 @@ |
|
|
|
mapTheGeomZjdId: null, |
|
|
|
mapTheGeomFsssId: null, |
|
|
|
drawInsert:null, |
|
|
|
mapZjdData:{}, |
|
|
|
mapZrzData:{}, |
|
|
|
mapFsssData:{}, |
|
|
|
mapZjdData:"", |
|
|
|
mapZrzData:"", |
|
|
|
mapFsssData:"", |
|
|
|
mapZjdDataTure:"", |
|
|
|
mapZjdTeAll:{ |
|
|
|
active:"", |
|
|
|
mapZjdAData:{}, |
|
|
|
mapZrzAData:{}, |
|
|
|
mapFsssAData:{}, |
|
|
|
mapZjdAData:"", |
|
|
|
mapZrzAData:"", |
|
|
|
mapFsssAData:"", |
|
|
|
}, |
|
|
|
mapHaDataValue:false, |
|
|
|
mapHasDateStatus: 0, //0附属设施 1自然幢 2宅基地 |
|
|
@@ -1346,6 +1346,7 @@ |
|
|
|
checked:['zjdSx', 'zrzSx', 'fsssSx'], |
|
|
|
checkAllMap: false, |
|
|
|
sx:"", |
|
|
|
drawingClick:true, |
|
|
|
//搜索---start |
|
|
|
seachText: "", |
|
|
|
selectionIconShow: false, |
|
|
@@ -1421,13 +1422,16 @@ |
|
|
|
this.getDicts("member_remark").then(response => { |
|
|
|
this.cybzOptions = response.data; |
|
|
|
}); |
|
|
|
console.log(this.$cookies.get("item")); |
|
|
|
if(this.$cookies.get("item").activeBtn !=null){ |
|
|
|
if(this.$cookies.get("item").activeBtn == 4){ |
|
|
|
this.activeBtn = this.$cookies.get("item").activeBtn; |
|
|
|
this.item = this.$cookies.get("item").backMapZjdAData; |
|
|
|
this.mapAddJump = this.$cookies.get("item").backMapZjdAData.deptId; |
|
|
|
this.backTheGeom = this.$cookies.get("item").backMapZjdAData.theGeom; |
|
|
|
this.mapZjdData = this.$cookies.get("item").backMapZjdAData; |
|
|
|
this.mapZjdTeAll.mapZjdAData = this.$cookies.get("item").backMapZjdAData; |
|
|
|
this.zjdHcDy = 1; |
|
|
|
this.mapZjdDataTure = 1; |
|
|
|
this.mapAddJumpNum =1; |
|
|
|
this.mapShow(); |
|
|
|
this.getZjdList(); |
|
|
@@ -3448,65 +3452,82 @@ |
|
|
|
|
|
|
|
//开始绘制图层- -----start |
|
|
|
$("#htMapAll").on("click", function () { |
|
|
|
//删除之前 测距操作添加map中的绘图 --------start |
|
|
|
//map.removeLayer(helpTooltip); |
|
|
|
map.removeLayer(vector); |
|
|
|
map.removeInteraction(draw_cm); |
|
|
|
//map.removeOverlay(helpTooltipElement); |
|
|
|
map.removeLayer(measureTooltipElement); |
|
|
|
//删除之前 测距操作添加map中的绘图 --------end |
|
|
|
|
|
|
|
//删除之前画图图层,重新绘制图层 |
|
|
|
map.removeInteraction(draw_map); |
|
|
|
map.removeLayer(drawing); |
|
|
|
//var source = new ol.source.Vector({wrapX: false}); |
|
|
|
drawing = new ol.layer.Vector({ |
|
|
|
source: new ol.source.Vector(), |
|
|
|
}); |
|
|
|
map.addLayer(drawing); |
|
|
|
if(that.drawingClick) { |
|
|
|
that.drawingClick=false; |
|
|
|
//删除之前 测距操作添加map中的绘图 --------start |
|
|
|
//map.removeLayer(helpTooltip); |
|
|
|
map.removeLayer(vector); |
|
|
|
map.removeInteraction(draw_cm); |
|
|
|
//map.removeOverlay(helpTooltipElement); |
|
|
|
map.removeLayer(measureTooltipElement); |
|
|
|
//删除之前 测距操作添加map中的绘图 --------end |
|
|
|
|
|
|
|
function addInteraction() { |
|
|
|
draw_map = new ol.interaction.Draw({ |
|
|
|
source: drawing.getSource(), |
|
|
|
type: "Polygon", |
|
|
|
}); |
|
|
|
draw_map.on("drawend", function (evt) { |
|
|
|
var feature = evt.feature; |
|
|
|
var geometry = feature.getGeometry(); |
|
|
|
that.coordinate = geometry.getCoordinates(); |
|
|
|
//_this.coordinateList = coordinate.toString(); |
|
|
|
//提示当前坐标是否绘制完成 |
|
|
|
if(that.coordinate != "" && that.coordinate !=null) { |
|
|
|
that.showhzht = true; |
|
|
|
that.htZjdZrzFsss =that.coordinate; |
|
|
|
// htMapAllFu(); |
|
|
|
}else { |
|
|
|
$("#htMapAll").trigger("click"); |
|
|
|
} |
|
|
|
//删除之前画图图层,重新绘制图层 |
|
|
|
map.removeInteraction(draw_map); |
|
|
|
map.removeLayer(drawing); |
|
|
|
//var source = new ol.source.Vector({wrapX: false}); |
|
|
|
drawing = new ol.layer.Vector({ |
|
|
|
source: new ol.source.Vector(), |
|
|
|
}); |
|
|
|
map.addInteraction(draw_map); |
|
|
|
} |
|
|
|
map.addLayer(drawing); |
|
|
|
|
|
|
|
function htMapAllFu() { |
|
|
|
//that.drawMapPolygonFun(); |
|
|
|
//绘制多边形地图 |
|
|
|
that.$dialog |
|
|
|
.confirm({ |
|
|
|
title: "提示", |
|
|
|
message: "是否重新绘制画图", |
|
|
|
}) |
|
|
|
.then(() => { |
|
|
|
//$("#drawRemove").trigger("click"); |
|
|
|
map.removeInteraction(draw_map); |
|
|
|
that.coordinate = ""; |
|
|
|
}) |
|
|
|
.catch(() => { |
|
|
|
//删除画图点 |
|
|
|
map.removeInteraction(draw_map); |
|
|
|
function addInteraction() { |
|
|
|
draw_map = new ol.interaction.Draw({ |
|
|
|
source: drawing.getSource(), |
|
|
|
type: "Polygon", |
|
|
|
}); |
|
|
|
} |
|
|
|
draw_map.on("drawend", function (evt) { |
|
|
|
var feature = evt.feature; |
|
|
|
var geometry = feature.getGeometry(); |
|
|
|
that.coordinate = geometry.getCoordinates(); |
|
|
|
//_this.coordinateList = coordinate.toString(); |
|
|
|
//提示当前坐标是否绘制完成 |
|
|
|
if (that.coordinate != "" && that.coordinate != null) { |
|
|
|
that.showhzht = true; |
|
|
|
that.htZjdZrzFsss = that.coordinate; |
|
|
|
// htMapAllFu(); |
|
|
|
} else { |
|
|
|
$("#htMapAll").trigger("click"); |
|
|
|
} |
|
|
|
}); |
|
|
|
map.addInteraction(draw_map); |
|
|
|
} |
|
|
|
|
|
|
|
function htMapAllFu() { |
|
|
|
//that.drawMapPolygonFun(); |
|
|
|
//绘制多边形地图 |
|
|
|
that.$dialog |
|
|
|
.confirm({ |
|
|
|
title: "提示", |
|
|
|
message: "是否重新绘制画图", |
|
|
|
}) |
|
|
|
.then(() => { |
|
|
|
//$("#drawRemove").trigger("click"); |
|
|
|
map.removeInteraction(draw_map); |
|
|
|
that.coordinate = ""; |
|
|
|
}) |
|
|
|
.catch(() => { |
|
|
|
//删除画图点 |
|
|
|
map.removeInteraction(draw_map); |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
addInteraction(); |
|
|
|
addInteraction(); |
|
|
|
} else { |
|
|
|
that.drawingClick=true; |
|
|
|
//删除之前 测距操作添加map中的绘图 --------start |
|
|
|
//map.removeLayer(helpTooltip); |
|
|
|
map.removeLayer(vector); |
|
|
|
map.removeInteraction(draw_cm); |
|
|
|
//map.removeOverlay(helpTooltipElement); |
|
|
|
map.removeLayer(measureTooltipElement); |
|
|
|
//删除之前 测距操作添加map中的绘图 --------end |
|
|
|
|
|
|
|
//删除之前画图图层,重新绘制图层 |
|
|
|
map.removeInteraction(draw_map); |
|
|
|
map.removeLayer(drawing); |
|
|
|
//var source = new ol.source.Vector({wrapX: false}); |
|
|
|
} |
|
|
|
}); |
|
|
|
//删除之前绘制图层 |
|
|
|
$("#deleteHistory").on("click", function () { |
|
|
@@ -3557,7 +3578,6 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
listZjdzd(params).then((response) => { |
|
|
|
console.log(response); |
|
|
|
if(response.rows.length != 0){ |
|
|
|
that.mapDataAll = response.rows; |
|
|
|
for(var hg=0; hg < that.mapDataAll.length; hg++){ |
|
|
@@ -4381,6 +4401,8 @@ |
|
|
|
var zb = evt.coordinate; |
|
|
|
var url; |
|
|
|
var url_bbox; |
|
|
|
//点击空白删除之前图层 |
|
|
|
map.removeLayer(hc_land_on); |
|
|
|
if(that.fsssSx && that.zjdSx && that.zrzSx){ |
|
|
|
url = wmsSource.getFeatureInfoUrl( |
|
|
|
evt.coordinate, |
|
|
@@ -4475,9 +4497,9 @@ |
|
|
|
that.mapZrzData =""; |
|
|
|
that.mapFsssData =""; |
|
|
|
//that.mapZjdTeAll.active ="1"; |
|
|
|
that.mapZjdTeAll.mapZjdAData ={}; |
|
|
|
that.mapZjdTeAll.mapZrzAData ={}; |
|
|
|
that.mapZjdTeAll.mapFsssAData ={}; |
|
|
|
that.mapZjdTeAll.mapZjdAData =""; |
|
|
|
that.mapZjdTeAll.mapZrzAData =""; |
|
|
|
that.mapZjdTeAll.mapFsssAData =""; |
|
|
|
that.mapZjdDataTure =""; |
|
|
|
setTimeout(() => { |
|
|
|
if ($("#info .featureInfo .featureInfo").text() == "t_house_survey_zjdzd") { |
|
|
@@ -4580,7 +4602,7 @@ |
|
|
|
} else if($("#info .featureInfo .featureInfo").text() == "t_house_survey_zrz"){ |
|
|
|
//that.mapZjdTeAll.mapZjdAData ={}; |
|
|
|
that.mapZjdDataTure=""; |
|
|
|
that.mapZjdTeAll.mapFsssAData ={}; |
|
|
|
that.mapZjdTeAll.mapFsssAData =""; |
|
|
|
map.removeLayer(hc_land_on); |
|
|
|
let obj = {}; |
|
|
|
that.mapHasDateStatus = 1; |
|
|
@@ -4644,7 +4666,7 @@ |
|
|
|
}); |
|
|
|
}); |
|
|
|
} else if($("#info .featureInfo .featureInfo").text() == "t_house_survey_fsss"){ |
|
|
|
that.mapZjdTeAll.mapZrzAData ={}; |
|
|
|
that.mapZjdTeAll.mapZrzAData =""; |
|
|
|
that.mapZjdDataTure=""; |
|
|
|
//that.mapZjdTeAll.mapZjdAData ={}; |
|
|
|
map.removeLayer(hc_land_on); |
|
|
@@ -5154,6 +5176,7 @@ |
|
|
|
}, |
|
|
|
//宅基地点击地图核查 |
|
|
|
zjdHc(){ |
|
|
|
console.log(this.mapZjdTeAll); |
|
|
|
if(this.zjdHcDy != "" && this.zjdHcDy != "undefined"){ |
|
|
|
if(this.mapZjdData !=undefined && this.mapZjdData !="" && this.mapZjdDataTure !=""){ |
|
|
|
this.mapZjdTeAll.active =1; |
|
|
|