zy vor 1 Jahr
Ursprung
Commit
3d1fb8751f

+ 6 - 4
neim-ui/src/views/largeScreenPage/Subpage/preProjectResources.vue

@@ -88,7 +88,7 @@
           <span>返回</span>
         </div>
       </div>
-      <div class="dialogMainInfoBg">
+      <div class="dialogMainInfoBg" style="display: flex">
         <div class="projectInfoBox">
             <span class="dialogInfoTitle">
               <img
@@ -507,17 +507,18 @@ export default {
   background: url(../../../assets/largeScreenImg/zaiyunAndqianqi/dialogBg.png) 100% no-repeat;
   background-size: 100% 100%;
   padding: 1%;
-  width: 30%;
+  width: 55%;
   position: absolute;
   top: 10%;
-  left: 30%;
+  left: 20%;
+  z-index: 100001;
 }
 
 .dialogRightTextBtu {
   position: absolute;
   top: 0;
   right: 1%;
-  width: 20%;
+  width: 15%;
 }
 
 .tiltleLeftSign {
@@ -534,6 +535,7 @@ export default {
 
 .projectInfoBox {
   margin-top: 2%;
+  width: 34%;
 }
 
 .dialogInfo {

+ 23 - 9
neim-ui/src/views/largeScreenPage/Subpage/projectInfo.vue

@@ -192,16 +192,30 @@ export default {
         let data = res.data
         this.projectOverview = data.projectOverview
         this.resourcesOverview = data.resourcesOverview
-        this.coordinates = [Number(data.latitude), Number(data.longitude)]
-        this.mapValue = {
-          params: new Date(),
-          level: 12,//地图层级
-          center: this.coordinates,//中心坐标
-          allStationInfo: null,//场站坐标
-          projectInfo: null,//项目坐标
-          id: projectId,
-          allPointInfo: this.allPointInfo,//所有点位信息
+        if(data.latitude !== undefined){
+          this.coordinates = [Number(data.latitude), Number(data.longitude)]
+          this.mapValue = {
+            params: new Date(),
+            level: 12,//地图层级
+            center: this.coordinates,//中心坐标
+            allStationInfo: null,//场站坐标
+            projectInfo: null,//项目坐标
+            id: projectId,
+            allPointInfo: this.allPointInfo,//所有点位信息
+          }
+        }else{
+          this.mapValue = {
+            params: new Date(),
+            level: 12,//地图层级
+            center: [46.69090, 128.13354],//中心坐标
+            allStationInfo: null,//场站坐标
+            projectInfo: null,//项目坐标
+            id: projectId,
+            allPointInfo: this.allPointInfo,//所有点位信息
+          }
+          this.$message.warning('此项目没有填写经纬度,请在后台管理信息中维护')
         }
+
       }).catch(err => {
         console.log('单个项目信获取异常:' + err)
       })