Browse Source

地图升级

zy 2 years ago
parent
commit
a4dce15cf0

BIN
neim-ui/public/largeScreenImg/80mWs1.png


BIN
neim-ui/public/largeScreenImg/sun.png


+ 20 - 2
neim-ui/src/views/largeScreenPage/Subpage/stationInfo.vue

@@ -150,7 +150,12 @@ export default {
         // console.log(res.data)
         let data = res.data
         this.dataInfo = data.modelT
-        this.coordinates = [Number(data.latitude),Number(data.longitude)]
+        if(data.latitude === undefined ){
+          this.coordinates = []
+        }else{
+          this.coordinates = [Number(data.latitude),Number(data.longitude)]
+        }
+
         this.mapValue ={
           params: new Date(),
           level: 12,//地图层级
@@ -160,7 +165,20 @@ export default {
           allPointInfo:this.allPointInfo,//所有点位信息
         }
       }).catch(err=>{
-        console.log('场站信息获取异常:'+err)
+        this.mapValue ={
+          params: new Date(),
+          level: 6,//地图层级
+          center: [],//中心坐标
+          allStationInfo: null,//场站坐标
+          projectInfo: null,//项目坐标
+          allPointInfo:null,//所有点位信息
+        }
+        if(err.msg === 'Index: 0, Size: 0'){
+          console.log('此场站没有风机与测风塔')
+        }else{
+          console.log('场站信息获取异常:'+err.msg)
+        }
+
       })
     },
     push() {

+ 5 - 1
neim-ui/src/views/largeScreenPage/components/bigeHeatMap.vue

@@ -9,6 +9,9 @@
         当前中心点: 纬度:0.00000,经度:0.00000
       </div>
     </div>
+    <div style="position: fixed;bottom: 8%;left:.5%;z-index: 1000;box-shadow: rgb(56 76 85) 0px 1px 9px 4px inset">
+      <img src="../../../../public/largeScreenImg/80mWs1.png">
+    </div>
     <!--    <el-radio-group v-model="leavel" @change="setData">-->
     <!--      <el-radio class="radio" label="100">100Mb</el-radio>-->
     <!--      <el-radio class="radio" label="250">250Mb</el-radio>-->
@@ -62,7 +65,8 @@ export default {
       let _self = this
       bigemap.then(() => {
         // window.BM.Config.HTTP_URL = 'http://www.bigemap.com:9000';
-        window.BM.Config.HTTP_URL = 'http://192.168.1.181:9000';
+        window.BM.Config.HTTP_URL = 'http://localhost:9000';
+        // window.BM.Config.HTTP_URL = 'http://192.168.1.181:9000';
         // arcgis-satellite
         // amap-satellite
         // zhongkexingtu

+ 5 - 1
neim-ui/src/views/largeScreenPage/components/bigeHeatSunMap.vue

@@ -9,6 +9,9 @@
         当前中心点: 纬度:0.00000,经度:0.00000
       </div>
     </div>
+    <div style="position: fixed;bottom: 8%;left:.5%;z-index: 1000;box-shadow: rgb(56 76 85) 0px 1px 9px 4px inset">
+      <img src="../../../../public/largeScreenImg/sun.png" style="color: white">
+    </div>
     <!--    <el-radio-group v-model="leavel" @change="setData">-->
     <!--      <el-radio class="radio" label="100">100Mb</el-radio>-->
     <!--      <el-radio class="radio" label="250">250Mb</el-radio>-->
@@ -62,7 +65,8 @@ export default {
       let _self = this
       bigemap.then(() => {
         // window.BM.Config.HTTP_URL = 'http://www.bigemap.com:9000';
-        window.BM.Config.HTTP_URL = 'http://192.168.1.181:9000';
+        // window.BM.Config.HTTP_URL = 'http://192.168.1.181:9000';
+        window.BM.Config.HTTP_URL = 'http://localhost:9000';
         // arcgis-satellite
         // amap-satellite
         // zhongkexingtu

+ 2 - 2
neim-ui/src/views/largeScreenPage/components/bigeMap.vue

@@ -62,8 +62,8 @@ export default {
       let _self = this
       bigemap.then(() => {
         // window.BM.Config.HTTP_URL = 'http://www.bigemap.com:9000';
-        // window.BM.Config.HTTP_URL = 'http://localhost:9000';
-        window.BM.Config.HTTP_URL = 'http://192.168.1.181:9000';
+        window.BM.Config.HTTP_URL = 'http://localhost:9000';
+        // window.BM.Config.HTTP_URL = 'http://192.168.1.181:9000';
         // arcgis-satellite
         // amap-satellite
         // zhongkexingtu

+ 1 - 1
neim-ui/src/views/largeScreenPage/components/wdCharts.vue

@@ -152,7 +152,7 @@ export default {
         }).catch(err => {
           this.$message.error('首页获取风向玫瑰图异常:' + err)
           console.log('首页获取风向玫瑰图异常:' + err)
-          this.wdCharts.hideLoading();
+          // this.wdCharts.hideLoading();
         })
       }