Переглянути джерело

地图跳转优化

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.backMapZjdAData = this.cookiesInfo.mapZjdAData;
this.backMap.deptId = this.cookiesInfo.mapZjdAData.deptId; this.backMap.deptId = this.cookiesInfo.mapZjdAData.deptId;
this.backMap.zjddm = this.cookiesInfo.mapZjdAData.zjddm; 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 //返回地图值记录----end
this.active = this.cookiesInfo.active; this.active = this.cookiesInfo.active;
this.item = this.cookiesInfo.mapZjdAData; this.item = this.cookiesInfo.mapZjdAData;


+ 16
- 22
src/views/homesteadSurvey/list.vue Переглянути файл

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

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


Завантаження…
Відмінити
Зберегти