Browse Source

Merge branch 'prod' of http://git.elinkit.com.cn:7070/r/epmet-oper-gov into prod

shibei_master
dai 4 years ago
parent
commit
d35f21e7b8
  1. 8
      src/views/modules/visual/basicinfo/basicInfoMain.vue
  2. 8
      src/views/modules/visual/components/screen-map/index.vue
  3. 7
      src/views/modules/workSys/mapConfig.vue

8
src/views/modules/visual/basicinfo/basicInfoMain.vue

@ -114,7 +114,7 @@ import BasicInfoCommunity from "./basicInfoCommunity";
import PeopleSearch from "./peopleSearch";
import People from "./people";
import cptCard from "@/views/modules/visual/cpts/card";
var centerPointGlobal = [120.38945519, 36.0722275]
let loading;//
@ -532,11 +532,15 @@ const vueGis = {
},
//
setMapLocation () {
this.centerPoint = []
if (this.orgData.longitude && this.orgData.latitude) {
this.centerPoint = []
this.centerPoint.push(this.orgData.longitude)
this.centerPoint.push(this.orgData.latitude)
} else {
this.centerPoint = centerPointGlobal
}
this.setZoom(this.orgData.agencyLevel)

8
src/views/modules/visual/components/screen-map/index.vue

@ -37,7 +37,7 @@ import { mapGetters } from "vuex";
import { Loading } from 'element-ui'; //Loading
import { requestPost } from "@/js/dai/request";
var centerPointGlobal = [120.38945519, 36.0722275]
let loading;//
@ -433,11 +433,15 @@ const vueGis = {
},
//
setMapLocation () {
this.centerPoint = []
if (this.mapInfo.longitude && this.mapInfo.latitude) {
this.centerPoint = []
this.centerPoint.push(this.mapInfo.longitude)
this.centerPoint.push(this.mapInfo.latitude)
} else {
this.centerPoint = centerPointGlobal
}
this.setZoom(this.mapInfo.level)

7
src/views/modules/workSys/mapConfig.vue

@ -67,7 +67,7 @@ import { Loading } from 'element-ui'; //引入Loading服务
import { requestPost } from "@/js/dai/request";
import { altKeyOnly, click, pointerMove } from 'ol/events/condition';
var centerPointGlobal = [120.38945519, 36.0722275]
let loading;//
let x = 1500
@ -374,11 +374,14 @@ const vueGis = {
},
//
setMapLocation () {
this.centerPoint = []
if (this.orgData.longitude && this.orgData.latitude) {
this.centerPoint = []
this.centerPoint.push(this.orgData.longitude)
this.centerPoint.push(this.orgData.latitude)
} else {
this.centerPoint = centerPointGlobal
}
this.setZoom(this.orgData.agencyLevel)

Loading…
Cancel
Save