소스 검색

地图跳转优化

wulanhaote
hbao 3 년 전
부모
커밋
811e08338f
2개의 변경된 파일18개의 추가작업 그리고 24개의 파일을 삭제
  1. +2
    -2
      src/views/homesteadSurvey/add.vue
  2. +16
    -22
      src/views/homesteadSurvey/list.vue

+ 2
- 2
src/views/homesteadSurvey/add.vue 파일 보기

@@ -3223,8 +3223,8 @@
this.backMap.backMapZjdAData = this.cookiesInfo.mapZjdAData;
this.backMap.deptId = this.cookiesInfo.mapZjdAData.deptId;
this.backMap.zjddm = this.cookiesInfo.mapZjdAData.zjddm;
//this.form.theGeom = this.cookiesInfo.mapZjdAData.theGeom;
//this.enterMapZjddm = this.cookiesInfo.mapZjdAData.zjddm;
this.form.theGeom = this.cookiesInfo.mapZjdAData.theGeom;
this.enterMapZjddm = this.cookiesInfo.mapZjdAData.zjddm;
//返回地图值记录----end
this.active = this.cookiesInfo.active;
this.item = this.cookiesInfo.mapZjdAData;


+ 16
- 22
src/views/homesteadSurvey/list.vue 파일 보기

@@ -1441,7 +1441,6 @@
});
this.yhzgxOptions = arr;
});

if(this.$cookies.get("search") != null && this.$cookies.get("search") !="" && this.$cookies.get("search")!=undefined){
if(this.$cookies.get("search").activeBtn !=null){
if(this.$cookies.get("search").activeBtn == 4){
@@ -3059,12 +3058,7 @@
// map.addLayer(zhenTc);
//镇边界查询开始 ------------------------------end
//村边界查询开始 ------------------------------start
var cql_filter
if (that.mapAddJumpNum == 1) {
cql_filter = "dept_id='" + that.mapAddJump + "'";
} else {
cql_filter = "dept_id='" + that.$cookies.get("item").deptId + "'";
}
var cql_filter = "dept_id='" + that.$cookies.get("item").deptId + "'";
var cunTc = new ol.layer.Image({
source: new ol.source.ImageWMS({
url: that.mapGeoServerUrl + "/geoserver/zjd_dc/wms",
@@ -5466,9 +5460,9 @@
this.mapZjdData = response.data;
this.mapZjdTeAll.active = 1;
this.mapZjdTeAll.mapZjdAData = this.mapZjdData;
this.$cookies.set("search",this.mapZjdTeAll);
//this.$cookies.set("search",this.mapZjdTeAll);
setTimeout(() => {
this.$router.push({path:'/homesteadSurvey/add'});
this.$router.push({path:'/homesteadSurvey/add',query: {res: this.mapZjdTeAll}});
}, 500);
});
}else if(item.typeTc =="自然幢"){
@@ -5477,9 +5471,9 @@
this.mapZrzData = response.data;
this.mapZjdTeAll.active = 3;
this.mapZjdTeAll.mapZrzAData = this.mapZrzData;
this.$cookies.set("search",this.mapZjdTeAll);
//this.$cookies.set("search",this.mapZjdTeAll);
setTimeout(() => {
this.$router.push({path:'/homesteadSurvey/add'});
this.$router.push({path:'/homesteadSurvey/add',query: {res: this.mapZjdTeAll}});
}, 500);
});
}else if(item.typeTc =="附属设施"){
@@ -5487,9 +5481,9 @@
this.mapFsssData = response.data;
this.mapZjdTeAll.active = 4;
this.mapZjdTeAll.mapFsssAData = this.mapFsssData;
this.$cookies.set("search",this.mapZjdTeAll);
//this.$cookies.set("search",this.mapZjdTeAll);
setTimeout(() => {
this.$router.push({path:'/homesteadSurvey/add'});
this.$router.push({path:'/homesteadSurvey/add',query: {res: this.mapZjdTeAll}});
}, 500);
});
}else{
@@ -5552,9 +5546,9 @@
if(this.mapZjdData =="" && this.mapZjdDataTure =="" && this.mapZjdData !=undefined){
this.mapZjdTeAll.active =1;
this.mapZjdTeAll.mapZjdAData.theGeom =this.htZjdZrzFsss;
this.mapZjdTeAll.mapZjdAData.deptId = this.$cookies.get("item").deptId;
this.$cookies.set("search",this.mapZjdTeAll);
this.$router.push({path:'/homesteadSurvey/add'});
//this.mapZjdTeAll.mapZjdAData.deptId = this.$cookies.get("item").deptId;
//this.$cookies.set("search",this.mapZjdTeAll);
this.$router.push({path:'/homesteadSurvey/add',query: {res: this.mapZjdTeAll}});
}else {
this.$toast("已选择宅基地,请选择自然幢或附属设施按钮");
}
@@ -5563,9 +5557,9 @@
if(this.mapZjdData !=undefined && this.mapZjdData !="" && this.mapZjdDataTure !=""){
this.mapZjdTeAll.active =3;
this.mapZjdTeAll.mapZrzAData.theGeom =this.htZjdZrzFsss;
this.mapZjdTeAll.mapZrzAData.deptId = this.$cookies.get("item").deptId;
this.$cookies.set("search",this.mapZjdTeAll);
this.$router.push({path:'/homesteadSurvey/add'});
//this.mapZjdTeAll.mapZrzAData.deptId = this.$cookies.get("item").deptId;
//this.$cookies.set("search",this.mapZjdTeAll);
this.$router.push({path:'/homesteadSurvey/add',query: {res: this.mapZjdTeAll}});
}else {
this.$toast("请先在地图上选择宅基地后,再选择自然幢按钮");
}
@@ -5574,9 +5568,9 @@
if(this.mapZjdData !=undefined && this.mapZjdData !="" && this.mapZjdDataTure !=""){
this.mapZjdTeAll.active =4;
this.mapZjdTeAll.mapFsssAData.theGeom =this.htZjdZrzFsss;
this.mapZjdTeAll.mapFsssAData.deptId = this.$cookies.get("item").deptId;
this.$cookies.set("search",this.mapZjdTeAll);
this.$router.push({path:'/homesteadSurvey/add'});
//this.mapZjdTeAll.mapFsssAData.deptId = this.$cookies.get("item").deptId;
//this.$cookies.set("search",this.mapZjdTeAll);
this.$router.push({path:'/homesteadSurvey/add',query: {res: this.mapZjdTeAll}});
}else {
this.$toast("请先在地图上选择宅基地后,再选择附属设施按钮");
}


불러오는 중...
취소
저장