Преглед на файлове

优化地图

wulanhaote
hbao преди 3 години
родител
ревизия
776dbaf47f
променени са 2 файла, в които са добавени 5 реда и са изтрити 3 реда
  1. +1
    -1
      src/components/Map/MapGisDrawing.vue
  2. +4
    -2
      src/views/homesteadSurvey/add.vue

+ 1
- 1
src/components/Map/MapGisDrawing.vue Целия файл

@@ -606,7 +606,7 @@ export default {
}) })
.then((data) => { .then((data) => {
console.log(data); console.log(data);
let resolution = map.getView().getResolutionForExtent(data.bbox,map.getSize());
let resolution = that.map.getView().getResolutionForExtent(data.bbox,map.getSize());
resolution:resolution + Math.random() * 0.00000001, resolution:resolution + Math.random() * 0.00000001,
that.map.getView().fit(data.bbox); that.map.getView().fit(data.bbox);
that.map.getView().setResolution(resolution); that.map.getView().setResolution(resolution);


+ 4
- 2
src/views/homesteadSurvey/add.vue Целия файл

@@ -5481,7 +5481,9 @@
} }
}) })
} }

if(this.form3.theGeom == null){
this.form3.theGeom = this.form.theGeom;
}
} }
this.showzrz = true; this.showzrz = true;
this.zrzProduct(); this.zrzProduct();
@@ -5783,7 +5785,7 @@
this.form4.sfsgcf = "N" this.form4.sfsgcf = "N"
} }
if(this.form4.theGeom==null||this.form4.theGeom==""){ if(this.form4.theGeom==null||this.form4.theGeom==""){
this.form4.theGeom = this.form4.theGeom
this.form4.theGeom = this.form.theGeom
} }
this.fssslxOptions.map(res => { this.fssslxOptions.map(res => {
if(res.dictValue == item.fssslx){ if(res.dictValue == item.fssslx){


Зареждане…
Отказ
Запис