|
|
@@ -51,7 +51,7 @@ |
|
|
|
<div style="border:1px solid rgb(122, 201, 67);width:90%;margin:0 auto;border-radius:15px;height:.8rem;display:flex;font-size:.3rem;"> |
|
|
|
<div style="flex:1;text-align:center;"> |
|
|
|
<span style="color:rgb(122, 201, 67);line-height:.8rem;">宅基地数:</span> |
|
|
|
<span style="color:rgb(250, 83, 83);line-height:.8rem;">{{qbNums}} <span style="font-size:12px;">户</span></span> |
|
|
|
<span style="color:rgb(250, 83, 83);line-height:.8rem;">{{qbNums}} <span style="font-size:12px;">宗</span></span> |
|
|
|
</div> |
|
|
|
<div style="flex:1;text-align:center;"> |
|
|
|
<span style="color:rgb(122, 201, 67);line-height:.8rem">使用权人数:</span> |
|
|
@@ -508,7 +508,7 @@ |
|
|
|
placeholder="请输入宗地或权利人信息" |
|
|
|
> |
|
|
|
<template #action> |
|
|
|
<div id="query">搜索</div> |
|
|
|
<van-icon name="../../../static/images/onlineHome/home6.png" color="rgba(122,201,67,1)" size=".8rem" id="query" style="vertical-align:middle;"/> |
|
|
|
</template> |
|
|
|
</van-search> |
|
|
|
<div class="searchBox" style="display: none;"> |
|
|
@@ -538,10 +538,10 @@ |
|
|
|
<img src="../../assets/images/housesteadSurvey/tool2.png"> |
|
|
|
<p>全图</p> |
|
|
|
</div> |
|
|
|
<div class="clMap" @click="" id="area"> |
|
|
|
<img src="../../assets/images/housesteadSurvey/tool3.png"> |
|
|
|
<p>测量</p> |
|
|
|
</div> |
|
|
|
<!-- <div class="clMap" @click="" id="area">--> |
|
|
|
<!-- <img src="../../assets/images/housesteadSurvey/tool3.png">--> |
|
|
|
<!-- <p>测量</p>--> |
|
|
|
<!-- </div>--> |
|
|
|
<div class="hcMap" @click="zjdHc"> |
|
|
|
<img src="../../assets/images/housesteadSurvey/tool4.png"> |
|
|
|
<p>核查</p> |
|
|
@@ -570,17 +570,17 @@ |
|
|
|
<van-checkbox-group v-model="checked" @change="handleChecked" ref="checkboxGroup"> |
|
|
|
<van-checkbox name="fsssSx" shape="square" style="margin-bottom: 5px;" id="fsssSx"> |
|
|
|
<template #default> |
|
|
|
附属设施<span style="display: inline-block;background: #00FFFF;height: 5px;width: 20px;vertical-align: middle;margin-left: 10px;"></span> |
|
|
|
附属设施<span style="display: inline-block;background: #FF8C00;height: 5px;width: 20px;vertical-align: middle;margin-left: 10px;"></span> |
|
|
|
</template> |
|
|
|
</van-checkbox> |
|
|
|
<van-checkbox name="zrzSx" shape="square" style="margin-bottom: 5px;" id="zrzSx"> |
|
|
|
<template #default> |
|
|
|
自<i style="margin-right: 0.5em;"></i>然<i style="margin-right: 0.5em;"></i>幢<span style="display: inline-block;background: #FFD306;height: 5px;width: 20px;vertical-align: middle;margin-left: 10px;"></span> |
|
|
|
自<i style="margin-right: 0.5em;"></i>然<i style="margin-right: 0.5em;"></i>幢<span style="display: inline-block;background: #00FA9A;height: 5px;width: 20px;vertical-align: middle;margin-left: 10px;"></span> |
|
|
|
</template> |
|
|
|
</van-checkbox> |
|
|
|
<van-checkbox name="zjdSx" shape="square" style="margin-bottom: 5px;" id="zjdSx"> |
|
|
|
<template #default> |
|
|
|
宅<i style="margin-right: 0.5em;"></i>基<i style="margin-right: 0.5em;"></i>地<span style="display: inline-block;background: #AE57A4;height: 5px;width: 20px;vertical-align: middle;margin-left: 10px;"></span> |
|
|
|
宅<i style="margin-right: 0.5em;"></i>基<i style="margin-right: 0.5em;"></i>地<span style="display: inline-block;background: #7CFC00;height: 5px;width: 20px;vertical-align: middle;margin-left: 10px;"></span> |
|
|
|
</template> |
|
|
|
</van-checkbox> |
|
|
|
</van-checkbox-group> |
|
|
@@ -1198,8 +1198,8 @@ |
|
|
|
|
|
|
|
<div style="text-align: center;margin-top: 3%;"> |
|
|
|
<p class="hzlxBtn" :style="{background: mapZjdData ? '#CCC':'#7ac943'}" @click="zjdTz">宅基地</p> |
|
|
|
<p class="hzlxBtn" :style="{background: mapZjdData ? '#b026ff':'#CCC'}" @click="zrzTz">自然幢</p> |
|
|
|
<p class="hzlxBtn" :style="{background: mapZjdData ? '#3ac2db':'#CCC'}" @click="fsssTz">附属设施</p> |
|
|
|
<!-- <p class="hzlxBtn" :style="{background: mapZjdData ? '#b026ff':'#CCC'}" @click="zrzTz">自然幢</p>--> |
|
|
|
<!-- <p class="hzlxBtn" :style="{background: mapZjdData ? '#3ac2db':'#CCC'}" @click="fsssTz">附属设施</p>--> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</van-popup> |
|
|
@@ -2443,7 +2443,7 @@ |
|
|
|
}, |
|
|
|
getZjdList(){ |
|
|
|
let params = { |
|
|
|
"surveyStatus":"1", |
|
|
|
"surveyStatus":"1,2,3,4,5", |
|
|
|
"pageNum": 1, |
|
|
|
"pageSize":10, |
|
|
|
} |
|
|
@@ -3462,7 +3462,6 @@ |
|
|
|
.catch((error) => { |
|
|
|
console.log("【异常】", error); |
|
|
|
}); |
|
|
|
map.addLayer(zjdTc); |
|
|
|
//宅基地图层查询开始 ------------------start |
|
|
|
var zrzTc; |
|
|
|
//自然幢图层查询开始 ------------------start |
|
|
@@ -3496,321 +3495,7 @@ |
|
|
|
}), |
|
|
|
}); |
|
|
|
map.addLayer(fsssTc); |
|
|
|
// //附属设施图层查询开始 ------------------start |
|
|
|
//使用geoserver服务查询开始 -------------------end |
|
|
|
// if(this.backMap ==1){ |
|
|
|
// var cql = "dept_id='" + that.$cookies.get("item").deptId + "'" + "and zjddm='" + this.mapZjdTeAll.mapZjdAData.zjddm + "'"; |
|
|
|
// var wmsSourceBack = new ol.source.ImageWMS({ |
|
|
|
// crossOrigin: 'anonymous', |
|
|
|
// params: { |
|
|
|
// LAYERS: 'zjd_dc:t_house_survey_all', |
|
|
|
// 'VERSION': '1.1.0', |
|
|
|
// 'FORMAT': "image/png", |
|
|
|
// 'CQL_FILTER': cql |
|
|
|
// }, |
|
|
|
// serverType: 'geoserver', |
|
|
|
// url: that.mapGeoServerUrl + "/wms", |
|
|
|
// }); |
|
|
|
// zjdTc.setSource(wmsSourceBack); |
|
|
|
// ol.view.setResolution(ol.view.getResolution() + Math.random() * 0.00000001);//随机数缩放实现刷新 |
|
|
|
// } |
|
|
|
//数据库直接加载数据渲染方式---------------------------------------------------start |
|
|
|
//判断当前账套是否有数据 |
|
|
|
// var mapTalkAbout = true; |
|
|
|
// //获取镇界线----start |
|
|
|
// if(this.mapTownList.length >0){ |
|
|
|
// for (var i = 0; this.mapTownList.length > i; i++) { |
|
|
|
// if (this.mapTownList[i] != null && this.mapTownList[i].theGeom != null && this.mapTownList[i].theGeom != "") { |
|
|
|
// mapTalkAbout =false; |
|
|
|
// this.mapTownList[i].createBy = 'mapTownList'; |
|
|
|
// var theGeomLine= this.mapTownList[i].theGeom.replaceAll("MultiPolygon","LineString"); |
|
|
|
// theGeomLine = theGeomLine.replaceAll("[[[[","[["); |
|
|
|
// theGeomLine = theGeomLine.replaceAll("]]]]","]]"); |
|
|
|
// hc_land = new ol.layer.Vector({ |
|
|
|
// title: "add Layer", |
|
|
|
// source: new ol.source.Vector({ |
|
|
|
// projection: projection, |
|
|
|
// features: new ol.format.GeoJSON().readFeatures("{\n" + |
|
|
|
// " \"type\": \"Feature\",\n" + |
|
|
|
// " \"geometry\":" + theGeomLine + ", \"properties\":" + JSON.stringify(this.mapTownList[i]) + "}"), |
|
|
|
// }), |
|
|
|
// style: new ol.style.Style({ |
|
|
|
// fill: new ol.style.Fill({ |
|
|
|
// //矢量图层填充颜色,以及透明度 |
|
|
|
// color: "#AE57A4", |
|
|
|
// }), |
|
|
|
// stroke: new ol.style.Stroke({ |
|
|
|
// //边界样式 |
|
|
|
// color: "#FF0000", |
|
|
|
// width: 3, |
|
|
|
// }), |
|
|
|
// // text: new ol.style.Text({ |
|
|
|
// // text: this.mapTownList[i].xzqmc, |
|
|
|
// // font: '30px sans-serif', |
|
|
|
// // textAlign: "center", |
|
|
|
// // textBaseline: "middle", |
|
|
|
// // //font: 'verdana', |
|
|
|
// // fill: new ol.style.Fill({ |
|
|
|
// // color: "#ff0000" |
|
|
|
// // }), |
|
|
|
// // // backgroundFill: new ol.style.Fill({ |
|
|
|
// // // color: "#ff0000" |
|
|
|
// // // }), |
|
|
|
// // font: "30px sans-serif", |
|
|
|
// // stroke: new ol.style.Stroke({ |
|
|
|
// // color: "#ffffff" |
|
|
|
// // // width: 3 |
|
|
|
// // }), |
|
|
|
// // offsetX: parseInt(0, 10), |
|
|
|
// // offsetY: parseInt(0, 10), |
|
|
|
// // placement: "line", //point 则自动计算面的中心k点然后标注 line 则根据面要素的边进行标注 |
|
|
|
// // overflow: false //超出面的部分不显示 |
|
|
|
// //}), |
|
|
|
// }), |
|
|
|
// }); |
|
|
|
// map.addLayer(hc_land); |
|
|
|
// //console.log(hc_land.values_.source.featuresRtree_.rbush_.data); |
|
|
|
// var maxXMap = hc_land.values_.source.featuresRtree_.rbush_.data.maxX; |
|
|
|
// var maxYMap = hc_land.values_.source.featuresRtree_.rbush_.data.maxY; |
|
|
|
// var minXMap = hc_land.values_.source.featuresRtree_.rbush_.data.minX; |
|
|
|
// var minYMap = hc_land.values_.source.featuresRtree_.rbush_.data.minY; |
|
|
|
// // //定位查询位置 |
|
|
|
// var center = ol.extent.getCenter([maxXMap, maxYMap, minXMap, minYMap]); //获取边界区域的中心位置 |
|
|
|
// // console.log(center); |
|
|
|
// map.getView().animate({ |
|
|
|
// // 只设置需要的属性即可 |
|
|
|
// center: center, // 中心点 |
|
|
|
// zoom: 9.8, // 缩放级别 |
|
|
|
// rotation: undefined, // 缩放完成view视图旋转弧度 |
|
|
|
// duration: 1000, // 缩放持续时间,默认不需要设置 |
|
|
|
// }); |
|
|
|
// } |
|
|
|
// } |
|
|
|
// } |
|
|
|
// //获取镇界线----end |
|
|
|
// //获取村界线----start |
|
|
|
// if(this.mapVillageList.length >0){ |
|
|
|
// for (var i = 0; this.mapVillageList.length > i; i++) { |
|
|
|
// if (this.mapVillageList[i] != null && this.mapVillageList[i].theGeom != null && this.mapVillageList[i].theGeom != "") { |
|
|
|
// mapTalkAbout =false; |
|
|
|
// this.mapVillageList[i].createBy = 'mapVillageList'; |
|
|
|
// var theGeomLine= this.mapVillageList[i].theGeom.replaceAll("MultiPolygon","LineString"); |
|
|
|
// theGeomLine = theGeomLine.replaceAll("[[[[","[["); |
|
|
|
// theGeomLine = theGeomLine.replaceAll("]]]]","]]"); |
|
|
|
// hc_land = new ol.layer.Vector({ |
|
|
|
// title: "add Layer", |
|
|
|
// source: new ol.source.Vector({ |
|
|
|
// projection: projection, |
|
|
|
// features: new ol.format.GeoJSON().readFeatures("{\n" + |
|
|
|
// " \"type\": \"Feature\",\n" + |
|
|
|
// " \"geometry\":" + theGeomLine + ", \"properties\":" + JSON.stringify(this.mapVillageList[i]) + "}"), |
|
|
|
// }), |
|
|
|
// style: new ol.style.Style({ |
|
|
|
// fill: new ol.style.Fill({ |
|
|
|
// //矢量图层填充颜色,以及透明度 |
|
|
|
// color: "#AE57A4", |
|
|
|
// }), |
|
|
|
// stroke: new ol.style.Stroke({ |
|
|
|
// //边界样式 |
|
|
|
// color: "#ff00ff", |
|
|
|
// width: 3, |
|
|
|
// }), |
|
|
|
// // text: new ol.style.Text({ |
|
|
|
// // text: this.mapVillageList[i].dcmj, |
|
|
|
// // font: '30px sans-serif', |
|
|
|
// // textAlign: "center", |
|
|
|
// // textBaseline: "middle", |
|
|
|
// // //font: 'verdana', |
|
|
|
// // fill: new ol.style.Fill({ |
|
|
|
// // color: "#ff00ff" |
|
|
|
// // }), |
|
|
|
// // // backgroundFill: new ol.style.Fill({ |
|
|
|
// // // color: "#ff0000" |
|
|
|
// // // }), |
|
|
|
// // font: "30px sans-serif", |
|
|
|
// // stroke: new ol.style.Stroke({ |
|
|
|
// // color: "#ffffff" |
|
|
|
// // // width: 3 |
|
|
|
// // }), |
|
|
|
// // offsetX: parseInt(0, 10), |
|
|
|
// // offsetY: parseInt(0, 10), |
|
|
|
// // placement: "line", //point 则自动计算面的中心k点然后标注 line 则根据面要素的边进行标注 |
|
|
|
// // overflow: false //超出面的部分不显示 |
|
|
|
// // }), |
|
|
|
// }), |
|
|
|
// }); |
|
|
|
// map.addLayer(hc_land); |
|
|
|
// } |
|
|
|
// } |
|
|
|
// } |
|
|
|
// // //获取村界线----end |
|
|
|
// //宅基地定位开始 ---------start |
|
|
|
// if(this.mapTheGeomZjdId.length >0) { |
|
|
|
// for (var i = 0; this.mapTheGeomZjdId.length > i; i++) { |
|
|
|
// if (this.mapTheGeomZjdId[i] !=null && this.mapTheGeomZjdId[i].theGeom != null && this.mapTheGeomZjdId[i].theGeom != "") { |
|
|
|
// mapTalkAbout =false; |
|
|
|
// this.mapTheGeomZjdId[i].createBy = 'mapTheGeomZjdId'; |
|
|
|
// var styleYqr = ""; |
|
|
|
// if(this.mapTheGeomZjdId[i].houseDataConfirmStatus == "CONFIRMED"){ |
|
|
|
// styleYqr = new ol.style.Style({ |
|
|
|
// fill: new ol.style.Fill({ |
|
|
|
// //矢量图层填充颜色,以及透明度 |
|
|
|
// color: "#AE57A4", |
|
|
|
// }), |
|
|
|
// stroke: new ol.style.Stroke({ |
|
|
|
// //边界样式 |
|
|
|
// color: "#28FF28", |
|
|
|
// width: 3, |
|
|
|
// }), |
|
|
|
// }); |
|
|
|
// } else { |
|
|
|
// styleYqr = new ol.style.Style({ |
|
|
|
// fill: new ol.style.Fill({ |
|
|
|
// //矢量图层填充颜色,以及透明度 |
|
|
|
// color: "#AE57A4", |
|
|
|
// }), |
|
|
|
// stroke: new ol.style.Stroke({ |
|
|
|
// //边界样式 |
|
|
|
// color: "rgba(255, 45, 45,1)", |
|
|
|
// width: 3, |
|
|
|
// }), |
|
|
|
// }); |
|
|
|
// } |
|
|
|
// hc_land = new ol.layer.Vector({ |
|
|
|
// title: "add Layer", |
|
|
|
// source: new ol.source.Vector({ |
|
|
|
// projection: projection, |
|
|
|
// features: new ol.format.GeoJSON().readFeatures("{\n" + |
|
|
|
// " \"type\": \"Feature\",\n" + |
|
|
|
// " \"geometry\":" + this.mapTheGeomZjdId[i].theGeom + ", \"properties\":" + JSON.stringify(this.mapTheGeomZjdId[i]) + "}"), |
|
|
|
// }), |
|
|
|
// style: styleYqr |
|
|
|
// }); |
|
|
|
// map.addLayer(hc_land); |
|
|
|
// // var maxXMap = hc_land.values_.source.featuresRtree_.rbush_.data.maxX; |
|
|
|
// // var maxYMap = hc_land.values_.source.featuresRtree_.rbush_.data.maxY; |
|
|
|
// // var minXMap = hc_land.values_.source.featuresRtree_.rbush_.data.minX; |
|
|
|
// // var minYMap = hc_land.values_.source.featuresRtree_.rbush_.data.minY; |
|
|
|
// // //定位查询位置 |
|
|
|
// // var center = ol.extent.getCenter([maxXMap, maxYMap, minXMap, minYMap]); //获取边界区域的中心位置 |
|
|
|
// // map.getView().animate({ |
|
|
|
// // // 只设置需要的属性即可 |
|
|
|
// // center: center, // 中心点 |
|
|
|
// // zoom: 15.8, // 缩放级别 |
|
|
|
// // rotation: undefined, // 缩放完成view视图旋转弧度 |
|
|
|
// // duration: 1000, // 缩放持续时间,默认不需要设置 |
|
|
|
// // }); |
|
|
|
// //自然幢定位开始 ---------start |
|
|
|
// getZrzZjdDmList(this.mapTheGeomZjdId[i].zjddm).then((response) => { |
|
|
|
// if (response.code == 200) { |
|
|
|
// this.mapTheGeomZrzId = response.data; |
|
|
|
// if(this.mapTheGeomZrzId.length >0) { |
|
|
|
// for (var i = 0; this.mapTheGeomZrzId.length > i; i++) { |
|
|
|
// if (this.mapTheGeomZrzId[i] !=null && this.mapTheGeomZrzId[i].theGeom != null && this.mapTheGeomZrzId[i].theGeom != "") { |
|
|
|
// this.mapTheGeomZrzId[i].createBy = 'mapTheGeomZrzId'; |
|
|
|
// var styleZrz = ""; |
|
|
|
// if(this.mapTheGeomZjdId[i].houseDataConfirmStatus == "CONFIRMED"){ |
|
|
|
// styleZrz = new ol.style.Style({ |
|
|
|
// fill: new ol.style.Fill({ |
|
|
|
// //矢量图层填充颜色,以及透明度 |
|
|
|
// color: "#FFD306", |
|
|
|
// }), |
|
|
|
// stroke: new ol.style.Stroke({ |
|
|
|
// //边界样式 |
|
|
|
// color: "#28FF28", |
|
|
|
// width: 3, |
|
|
|
// }), |
|
|
|
// }); |
|
|
|
// } else { |
|
|
|
// styleZrz = new ol.style.Style({ |
|
|
|
// fill: new ol.style.Fill({ |
|
|
|
// //矢量图层填充颜色,以及透明度 |
|
|
|
// color: "#FFD306", |
|
|
|
// }), |
|
|
|
// stroke: new ol.style.Stroke({ |
|
|
|
// //边界样式 |
|
|
|
// color: "rgba(255, 45, 45,1)", |
|
|
|
// width: 3, |
|
|
|
// }), |
|
|
|
// }); |
|
|
|
// } |
|
|
|
// hc_land = new ol.layer.Vector({ |
|
|
|
// title: "add Layer", |
|
|
|
// source: new ol.source.Vector({ |
|
|
|
// projection: projection, |
|
|
|
// features: new ol.format.GeoJSON().readFeatures("{\n" + |
|
|
|
// " \"type\": \"Feature\",\n" + |
|
|
|
// " \"geometry\":" + this.mapTheGeomZrzId[i].theGeom + ", \"properties\":" + JSON.stringify(this.mapTheGeomZrzId[i]) + "}"), |
|
|
|
// }), |
|
|
|
// style: styleZrz |
|
|
|
// }); |
|
|
|
// map.addLayer(hc_land); |
|
|
|
// } |
|
|
|
// } |
|
|
|
// } |
|
|
|
// } |
|
|
|
// }); |
|
|
|
// //自然幢定位结束 ---------end |
|
|
|
// |
|
|
|
// //附属设施定位开始 ---------start |
|
|
|
// getFsssZjdDmList(this.mapTheGeomZjdId[i].zjddm).then((response) => { |
|
|
|
// if (response.code == 200) { |
|
|
|
// this.mapTheGeomFsssId = response.data; |
|
|
|
// if(this.mapTheGeomFsssId.length >0) { |
|
|
|
// for (var i = 0; this.mapTheGeomFsssId.length > i; i++) { |
|
|
|
// if (this.mapTheGeomFsssId[i] !=null && this.mapTheGeomFsssId[i].theGeom != null && this.mapTheGeomFsssId[i].theGeom != "") { |
|
|
|
// this.mapTheGeomFsssId[i].createBy = 'mapTheGeomFsssId'; |
|
|
|
// var styleFsss = ""; |
|
|
|
// if(this.mapTheGeomZjdId[i].houseDataConfirmStatus == "CONFIRMED"){ |
|
|
|
// styleFsss = new ol.style.Style({ |
|
|
|
// fill: new ol.style.Fill({ |
|
|
|
// //矢量图层填充颜色,以及透明度 |
|
|
|
// color: "#00FFFF", |
|
|
|
// }), |
|
|
|
// stroke: new ol.style.Stroke({ |
|
|
|
// //边界样式 |
|
|
|
// color: "#28FF28", |
|
|
|
// width: 3, |
|
|
|
// }), |
|
|
|
// }); |
|
|
|
// } else { |
|
|
|
// styleFsss = new ol.style.Style({ |
|
|
|
// fill: new ol.style.Fill({ |
|
|
|
// //矢量图层填充颜色,以及透明度 |
|
|
|
// color: "#00FFFF", |
|
|
|
// }), |
|
|
|
// stroke: new ol.style.Stroke({ |
|
|
|
// //边界样式 |
|
|
|
// color: "rgba(255, 45, 45,1)", |
|
|
|
// width: 3, |
|
|
|
// }), |
|
|
|
// }); |
|
|
|
// } |
|
|
|
// hc_land = new ol.layer.Vector({ |
|
|
|
// title: "add Layer", |
|
|
|
// source: new ol.source.Vector({ |
|
|
|
// projection: projection, |
|
|
|
// features: new ol.format.GeoJSON().readFeatures("{\n" + |
|
|
|
// " \"type\": \"Feature\",\n" + |
|
|
|
// " \"geometry\":" + this.mapTheGeomFsssId[i].theGeom + ", \"properties\":" + JSON.stringify(this.mapTheGeomFsssId[i]) + "}"), |
|
|
|
// }), |
|
|
|
// style: styleFsss |
|
|
|
// }); |
|
|
|
// map.addLayer(hc_land); |
|
|
|
// } |
|
|
|
// } |
|
|
|
// } |
|
|
|
// } |
|
|
|
// }); |
|
|
|
// //附属设施定位结束 ---------end |
|
|
|
// } |
|
|
|
// } |
|
|
|
// } |
|
|
|
// //宅基地定位结束 ---------end |
|
|
|
//数据库直接加载数据渲染方式---------------------------------------------------end |
|
|
|
|
|
|
|
//地图操作定义------------start |
|
|
|
//定位定义------------start |
|
|
|
map.addLayer(zjdTc); |
|
|
|
var Zb; |
|
|
|
var latitude; |
|
|
|
var longitude; |
|
|
@@ -3841,7 +3526,7 @@ |
|
|
|
$("#dwMapAll").on("click", function () { |
|
|
|
//删除测量记录操作--------start |
|
|
|
//将矢量图层从图中删除 |
|
|
|
//map.removeLayer(helpTooltip); |
|
|
|
map.removeLayer(helpTooltip); |
|
|
|
map.removeLayer(vector); |
|
|
|
map.removeInteraction(draw_cm); |
|
|
|
//map.removeOverlay(helpTooltipElement); |
|
|
@@ -3860,8 +3545,9 @@ |
|
|
|
if(latitude !=null && longitude !=null && latitude !="" && longitude !="" && latitude !=undefined && longitude !=undefined ){ |
|
|
|
Zb = [longitude,latitude]; |
|
|
|
}else { |
|
|
|
Zb =[115.452752, 31.789033]; |
|
|
|
Zb =[122.115038, 46.086317]; |
|
|
|
} |
|
|
|
|
|
|
|
//获取坐标点LocationManager |
|
|
|
// geoGps().then(response => { |
|
|
|
// |
|
|
@@ -3898,6 +3584,7 @@ |
|
|
|
zIndex: 9999, |
|
|
|
}); |
|
|
|
} |
|
|
|
console.info( Zb) |
|
|
|
var newcenterFeature = new ol.Feature({ |
|
|
|
geometry: new ol.geom.Point(ol.proj.fromLonLat(Zb)), //几何信息 |
|
|
|
name: "标注点", |
|
|
@@ -3954,8 +3641,10 @@ |
|
|
|
//提示当前坐标是否绘制完成 |
|
|
|
if (that.coordinate != "" && that.coordinate != null) { |
|
|
|
that.showhzht = true; |
|
|
|
that.htZjdZrzFsss = JSON.stringify(that.coordinate); |
|
|
|
console.log(that.mapZjdData); |
|
|
|
let zbNew = JSON.stringify({"type": "MultiPolygon", "coordinates": [JSON.stringify(that.coordinate).replaceAll("\"","")]}); |
|
|
|
let leftJoin = zbNew.replace("\"[","["); |
|
|
|
let rightJoin = leftJoin.replace("\"]","]"); |
|
|
|
that.htZjdZrzFsss = rightJoin; |
|
|
|
// htMapAllFu(); |
|
|
|
} else { |
|
|
|
$("#htMapAll").trigger("click"); |
|
|
@@ -4753,7 +4442,7 @@ |
|
|
|
service: "WFS", |
|
|
|
version: "1.0.0", |
|
|
|
request: "GetFeature", |
|
|
|
typename: "zjd_dc:t_house_survey_border_village", |
|
|
|
typename: "nsgk_wulanhaote:t_homespace_cjqy", |
|
|
|
//featureNS: 'nsgk_hc',//命名空间 URI |
|
|
|
cql_filter: cql_filter, |
|
|
|
//featurePrefix: 'nationalwater',//工作区名称 |
|
|
@@ -6105,13 +5794,15 @@ |
|
|
|
if(this.mapZjdData =="" && this.mapZjdDataTure =="" && this.mapZjdData !=undefined){ |
|
|
|
this.mapZjdTeAll.active =1; |
|
|
|
this.mapZjdTeAll.mapZjdAData.deptId =JSON.parse(localStorage.getItem("surveyItem")).deptId; |
|
|
|
this.mapZjdTeAll.mapZjdAData.theGeom =this.htZjdZrzFsss; |
|
|
|
this.mapZjdTeAll.mapZjdAData.theGeomJson =this.htZjdZrzFsss; |
|
|
|
//this.mapZjdTeAll.mapZjdAData.deptId = this.$cookies.get("item").deptId; |
|
|
|
//this.$cookies.set("search",this.mapZjdTeAll); |
|
|
|
this.$cookies.set("search","") |
|
|
|
this.$router.push({path:'/homesteadSurvey/add',query: {res: this.mapZjdTeAll}}); |
|
|
|
localStorage.setItem("zjdzdxxItem",JSON.stringify(this.mapZjdTeAll.mapZjdAData)); |
|
|
|
this.$router.push({path:'/homesteadSurvey/add'}); |
|
|
|
}else { |
|
|
|
this.$toast("已选择宅基地,请选择自然幢或附属设施按钮"); |
|
|
|
|
|
|
|
} |
|
|
|
}, |
|
|
|
zrzTz(){ |
|
|
@@ -6122,7 +5813,8 @@ |
|
|
|
//this.mapZjdTeAll.mapZrzAData.deptId = this.$cookies.get("item").deptId; |
|
|
|
//this.$cookies.set("search",this.mapZjdTeAll); |
|
|
|
this.$cookies.set("search","") |
|
|
|
this.$router.push({path:'/homesteadSurvey/add',query: {res: this.mapZjdTeAll}}); |
|
|
|
localStorage.setItem("zjdzdxxItem",JSON.stringify(this.mapZjdTeAll.mapZrzAData)); |
|
|
|
this.$router.push({path:'/homesteadSurvey/add3'}); |
|
|
|
}else { |
|
|
|
this.$toast("请先在地图上选择宅基地后,再选择自然幢按钮"); |
|
|
|
} |
|
|
@@ -6130,12 +5822,13 @@ |
|
|
|
fsssTz(){ |
|
|
|
if(this.mapZjdData !=undefined && this.mapZjdData !="" && this.mapZjdDataTure !=""){ |
|
|
|
this.mapZjdTeAll.active =4; |
|
|
|
this.mapZjdTeAll.mapFsssAData.theGeom =this.htZjdZrzFsss; |
|
|
|
this.mapZjdTeAll.mapFsssAData.theGeomJson =this.htZjdZrzFsss; |
|
|
|
this.mapZjdTeAll.mapFsssAData.deptId =JSON.parse(localStorage.getItem("surveyItem")).deptId; |
|
|
|
//this.mapZjdTeAll.mapFsssAData.deptId = this.$cookies.get("item").deptId; |
|
|
|
//this.$cookies.set("search",this.mapZjdTeAll); |
|
|
|
this.$cookies.set("search","") |
|
|
|
this.$router.push({path:'/homesteadSurvey/add',query: {res: this.mapZjdTeAll}}); |
|
|
|
localStorage.setItem("zjdzdxxItem",JSON.stringify(this.mapZjdTeAll.mapFsssAData)); |
|
|
|
this.$router.push({path:'/homesteadSurvey/add4'}); |
|
|
|
}else { |
|
|
|
this.$toast("请先在地图上选择宅基地后,再选择附属设施按钮"); |
|
|
|
} |
|
|
|