| @@ -468,7 +468,7 @@ | |||||
| </template> | </template> | ||||
| </van-search> | </van-search> | ||||
| <div class="searchBox" style="display: none;"> | <div class="searchBox" style="display: none;"> | ||||
| <van-cell center v-for="(item,index) in mapDataAll"> | |||||
| <van-cell center v-for="(item,index) in mapDataAll" :key="index"> | |||||
| <template #title> | <template #title> | ||||
| <p><van-icon name="manager" /><span>{{item.syqr}}</span><span style="background: rgba(122, 201, 67, 0.4);color:#7ac943">{{item.paceType}}</span> | <p><van-icon name="manager" /><span>{{item.syqr}}</span><span style="background: rgba(122, 201, 67, 0.4);color:#7ac943">{{item.paceType}}</span> | ||||
| <span style="background: rgba(122, 201, 67, 0.4);color:#7ac943">{{item.typeTc}}</span></p> | <span style="background: rgba(122, 201, 67, 0.4);color:#7ac943">{{item.typeTc}}</span></p> | ||||
| @@ -1168,7 +1168,7 @@ | |||||
| import {listShyqr} from "@/api/homesteadSurvey/shyqr"; | import {listShyqr} from "@/api/homesteadSurvey/shyqr"; | ||||
| import {listSuyqr,updateSuyqr,addSuyqr} from "@/api/homesteadSurvey/suyqr"; | import {listSuyqr,updateSuyqr,addSuyqr} from "@/api/homesteadSurvey/suyqr"; | ||||
| import {listZrz,getZrzZjdDmList,getZrz} from "@/api/homesteadSurvey/zrz"; | import {listZrz,getZrzZjdDmList,getZrz} from "@/api/homesteadSurvey/zrz"; | ||||
| import {listFsss,getFsssZjdDmList,getfsss} from "@/api/homesteadSurvey/fsss"; | |||||
| import {listFsss,getFsssZjdDmList,getFsss} from "@/api/homesteadSurvey/fsss"; | |||||
| import { listTown, getTown } from "@/api/homesteadSurvey/town"; | import { listTown, getTown } from "@/api/homesteadSurvey/town"; | ||||
| import { listVillage} from "@/api/homesteadSurvey/village"; | import { listVillage} from "@/api/homesteadSurvey/village"; | ||||
| import $ from "jquery"; | import $ from "jquery"; | ||||
| @@ -3784,9 +3784,13 @@ | |||||
| // } | // } | ||||
| // }); | // }); | ||||
| console.log(obj.id); | console.log(obj.id); | ||||
| getZjdzd(obj.id).then((response) => { | |||||
| let params = { | |||||
| "deptId" : that.$cookies.get("item").deptId, | |||||
| "zjddm" : obj.zjddm, | |||||
| } | |||||
| listZjdzd(params).then((response) => { | |||||
| console.log(response); | console.log(response); | ||||
| that.mapZjdData = response.data; | |||||
| that.mapZjdData = response.rows[0]; | |||||
| that.mapZjdData.active = 1; | that.mapZjdData.active = 1; | ||||
| that.mapZjdTeAll.mapZjdAData =that.mapZjdData; | that.mapZjdTeAll.mapZjdAData =that.mapZjdData; | ||||
| that.mapZjdDataTure = 1; | that.mapZjdDataTure = 1; | ||||
| @@ -3806,8 +3810,36 @@ | |||||
| " \"type\": \"Feature\",\n" + | " \"type\": \"Feature\",\n" + | ||||
| " \"geometry\":" + that.mapZjdData.theGeom + ", \"properties\":" + JSON.stringify(that.mapZjdData) + "}"), | " \"geometry\":" + that.mapZjdData.theGeom + ", \"properties\":" + JSON.stringify(that.mapZjdData) + "}"), | ||||
| }), | }), | ||||
| style: styleZjd | style: styleZjd | ||||
| }); | }); | ||||
| // function createLabelStyle() { | |||||
| // return new ol.style.Style({ | |||||
| // text: new ol.style.Text({ | |||||
| // text: that.textMjAll+"㎡", | |||||
| // textAlign: "center", //位置 | |||||
| // textBaseline: "middle", //基准线 | |||||
| // font: "normal 12px 微软雅黑", //文字样式 | |||||
| // //text: "标注点", //文本内容 | |||||
| // fill: new ol.style.Fill({ | |||||
| // //文本填充样式(即文字颜色) | |||||
| // color: "#FFFFFF", | |||||
| // width: 10, | |||||
| // }), | |||||
| // overflow: false //超出面的部分不显示 | |||||
| // }), | |||||
| // zIndex: 9999, | |||||
| // }); | |||||
| // } | |||||
| // var newcenterFeatureMap = new ol.Feature({ | |||||
| // geometry: new ol.geom.Point(that.clickBbox), //几何信息 | |||||
| // //name: "标注点", | |||||
| // }); | |||||
| // var sourceMapLook = new ol.source.Vector({wrapX: false}); | |||||
| // vector_drawing_delete = new ol.layer.Vector({ | |||||
| // source: sourceMapLook, | |||||
| // }); | |||||
| // map.addLayer(vector_drawing_delete); | |||||
| map.addLayer(hc_land_on); | map.addLayer(hc_land_on); | ||||
| var maxXMap = hc_land_on.values_.source.featuresRtree_.rbush_.data.maxX; | var maxXMap = hc_land_on.values_.source.featuresRtree_.rbush_.data.maxX; | ||||
| var maxYMap = hc_land_on.values_.source.featuresRtree_.rbush_.data.maxY; | var maxYMap = hc_land_on.values_.source.featuresRtree_.rbush_.data.maxY; | ||||
| @@ -4097,7 +4129,7 @@ | |||||
| that.mapZjdData = response.rows[0]; | that.mapZjdData = response.rows[0]; | ||||
| that.mapZjdData.active = 1; | that.mapZjdData.active = 1; | ||||
| that.mapZjdTeAll.mapZjdAData = that.mapZjdData; | that.mapZjdTeAll.mapZjdAData = that.mapZjdData; | ||||
| getfsss(obj.id).then((response) => { | |||||
| getFsss(obj.id).then((response) => { | |||||
| //that.mapfsssData.active = 4; | //that.mapfsssData.active = 4; | ||||
| that.mapfsssData = response.data; | that.mapfsssData = response.data; | ||||
| that.mapZjdTeAll.mapFsssAData = that.mapfsssData; | that.mapZjdTeAll.mapFsssAData = that.mapfsssData; | ||||
| @@ -4646,7 +4678,7 @@ | |||||
| }, 500); | }, 500); | ||||
| }); | }); | ||||
| }else if(item.typeTc =="附属设施"){ | }else if(item.typeTc =="附属设施"){ | ||||
| getfsss(item.id).then((response) => { | |||||
| getFsss(item.id).then((response) => { | |||||
| this.mapFsssData = response.data; | this.mapFsssData = response.data; | ||||
| console.log(this.mapZjdData); | console.log(this.mapZjdData); | ||||
| this.mapZjdTeAll.active = 4; | this.mapZjdTeAll.active = 4; | ||||