瀏覽代碼

事件列表图片加载失败 显示默认图片

JX.LI 1 年之前
父節點
當前提交
9fb7266161
共有 3 個文件被更改,包括 22 次插入14 次删除
  1. 0 1
      src/views/eventdetailsdialog.vue
  2. 17 11
      src/views/firespread.vue
  3. 5 2
      src/views/forest.vue

+ 0 - 1
src/views/eventdetailsdialog.vue

@@ -232,7 +232,6 @@
                   style="position: absolute; top: 0; left: 0"
                   :mapDiv="'forestWarmSuperMap'"
                   :mapSite="{
-                    zoom: 12,
                     doubleClickZoom: false,
                     dragging: false,
                     scrollWheelZoom: false,

+ 17 - 11
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>
@@ -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) {

文件差異過大導致無法顯示
+ 5 - 2
src/views/forest.vue