Ver código fonte

事件列表图片加载失败 显示默认图片
事件详情地图聚合问题

王通 1 ano atrás
pai
commit
faa68d9208
3 arquivos alterados com 26 adições e 17 exclusões
  1. 1 2
      src/views/eventdetailsdialog.vue
  2. 20 14
      src/views/firespread.vue
  3. 5 1
      src/views/forest.vue

+ 1 - 2
src/views/eventdetailsdialog.vue

@@ -107,7 +107,7 @@
                               </div>
                             </div>
                             <a :href="visuForestCloudYuAnBo.fileUrl">{{
-                                visuForestCloudYuAnBo.reserveName | ellipsisFont6
+                              visuForestCloudYuAnBo.reserveName | ellipsisFont6
                               }}</a>
                           </el-tooltip>
                         </el-carousel-item>
@@ -232,7 +232,6 @@
                   style="position: absolute; top: 0; left: 0"
                   :mapDiv="'forestWarmSuperMap'"
                   :mapSite="{
-                    zoom: 12,
                     doubleClickZoom: false,
                     dragging: false,
                     scrollWheelZoom: false,

+ 20 - 14
src/views/firespread.vue

@@ -72,7 +72,7 @@
                 <!-- 地图 -->
                 <supermapDialog1 ref="supermapDialog1" style="position: absolute; top:0;left: 0;"
                                  :mapDiv="'forestWarmSuperMap'"
-                                 :mapSite="{zoom:16,doubleClickZoom:true,dragging:true,scrollWheelZoom:true}" :codes="['9fa5']"
+                                 :mapSite="{doubleClickZoom:true,dragging:true,scrollWheelZoom:true}" :codes="['9fa5']"
                                  :isSideBySide="false" @preview="preview" />
                 <!-- 地图end -->
               </div>
@@ -2077,12 +2077,12 @@ export default {
           obj.type = data.type;
           obj.count = data.num;
           obj.icon = icon;
-          _this.resourcesList.push(obj);
+          _this.resourcesList1.push(obj);
           console.log("icon_" + (index + 1) + "=", icon);
           //每个图标对应固定颜色
-          _this.$set(_this.resourcesList[index], "bg", getIconBg(icon));
+          _this.$set(_this.resourcesList1[index], "bg", getIconBg(icon));
         });
-        _this.resourcesList.push({
+        _this.resourcesList1.push({
           resourceName: "摄像头",
           type: "sxt",
           count: "1",
@@ -3183,11 +3183,14 @@ export default {
           markersMapList.push(markersMap)
         }
         setTimeout(() => {
-          that.$refs.supermapDialog1.dropLocation10(res.data.catalogue.latitude, res.data.catalogue.longitude)
-          that.$refs.supermapDialog1.clearM(false)
-          that.$refs.supermapDialog1.clearM(true)
-          that.$refs.supermapDialog1.setMarkersRadius(markersMapList)
-        }, 2000)
+          that.$refs.supermapDialog1.dropLocation10(
+            res.data.catalogue.latitude,
+            res.data.catalogue.longitude
+          );
+          that.$refs.supermapDialog1.clearM(false);
+          that.$refs.supermapDialog1.clearM(true);
+          that.$refs.supermapDialog1.setMarkersRadius(markersMapList);
+        }, 2000);
       })
     },
     refreshEvent(eventCode) {
@@ -3280,11 +3283,14 @@ export default {
           markersMapList.push(markersMap)
         }
         setTimeout(() => {
-          that.$refs.supermapDialog1.clearM(false)
-          that.$refs.supermapDialog1.clearM(true)
-          that.$refs.supermapDialog1.setMarkersRadius(markersMapList)
-          that.$refs.supermapDialog1.dropLocation10(res.data.catalogue.latitude, res.data.catalogue.longitude)
-        }, 2000)
+          that.$refs.supermapDialog1.dropLocation10(
+            res.data.catalogue.latitude,
+            res.data.catalogue.longitude
+          );
+          that.$refs.supermapDialog1.clearM(false);
+          that.$refs.supermapDialog1.clearM(true);
+          that.$refs.supermapDialog1.setMarkersRadius(markersMapList);
+        }, 2000);
       })
     },
     refreshEventDialog(eventCode) {

Diferenças do arquivo suprimidas por serem muito extensas
+ 5 - 1
src/views/forest.vue