Browse Source

事件详情广播新增事件跳转绑定

付宇航 1 year ago
parent
commit
54a6aaa4ea
2 changed files with 20 additions and 11 deletions
  1. 10 5
      src/views/eventdetailsdialog.vue
  2. 10 6
      src/views/firespread.vue

+ 10 - 5
src/views/eventdetailsdialog.vue

@@ -239,6 +239,7 @@
                   :isSideBySide="false"
                   :isdynamicPlotting="true"
                   @preview="preview"
+                  @jump="jump"
                   :mapToolShowBH="mapToolShowBH"
                 />
                 <!-- <supermapDialog ref="supermapDialog" -->
@@ -2418,7 +2419,7 @@ export default {
           type: "ygb",
           count: "1",
           icon: "sj-icon-labaguangbo",
-          bg: "#0f0773",
+          bg: "#440359",
         });
       });
     },
@@ -2860,12 +2861,12 @@ export default {
           let markersMap = {
             lng: 124.59,
             lat: 43.02,
-            icon: 'marker',
+            icon: 'big-horn',
             bindPopupHtml: '',
-            click: '',
+            click: 'jump',
             parameter: '',
             keepBindPopup: false,
-            isAggregation: true
+            isAggregation: false
           }
           if(res.data[i].broadcastUse == '1'){
             markersMap.icon = 'big-horn-emergency'
@@ -2886,10 +2887,14 @@ export default {
           markersList.push(markersMap)
         }
       setTimeout(() => {
-        this.$refs.supermapDialog1.setMarkersByType(markersList, type)
+        this.$refs.supermapDialog.setMarkersByType(markersList, type)
       }, 1000)
       console.log('云广播资源',res)
     },
+    jump() {
+      // 跳转云广播页面
+      window.open("https://sts.sty1818.com");
+    },
     listResourceByWz(type) {
       if (this.resourcesListCheck.indexOf(type) > -1) {
         this.resourcesListCheck.splice(

+ 10 - 6
src/views/firespread.vue

@@ -137,7 +137,7 @@
                 <supermapDialog1 ref="supermapDialog1" style="position: absolute; top:0;left: 0;"
                                  :mapDiv="'forestWarmSuperMap'"
                                  :mapSite="{doubleClickZoom:true,dragging:true,scrollWheelZoom:true}" :codes="['9fa5']"
-                                 :isSideBySide="false" @preview="preview" :mapToolShowBH="mapToolShowBH"/>
+                                 :isSideBySide="false" @preview="preview" @jump="jump" :mapToolShowBH="mapToolShowBH"/>
                 <!-- 地图end -->
               </div>
             </el-col>
@@ -1589,7 +1589,7 @@ export default {
           type: "ygb",
           count: "1",
           icon: "sj-icon-labaguangbo",
-          bg: "#0f0773",
+          bg: "#440359",
         });
       });
     },
@@ -1607,12 +1607,12 @@ export default {
           let markersMap = {
             lng: 124.59,
             lat: 43.02,
-            icon: 'marker',
+            icon: 'big-born',
             bindPopupHtml: '',
-            click: '',
+            click: 'jump',
             parameter: '',
             keepBindPopup: false,
-            isAggregation: true
+            isAggregation: false
           }
           if(res.data[i].broadcastUse == '1'){
             markersMap.icon = 'big-horn-emergency'
@@ -1633,10 +1633,14 @@ export default {
           markersList.push(markersMap)
         }
       setTimeout(() => {
-        this.$refs.supermapDialog1.setMarkersByType(markersList, type)
+        this.$refs.supermapDialog.setMarkersByType(markersList, type)
       }, 1000)
       console.log('云广播资源',res)
     },
+    jump() {
+      // 跳转云广播页面
+      window.open("https://sts.sty1818.com");
+    },
     fireControlViewPoint(type) {
       let that = this;
       if (that.resourcesListCheck.indexOf(type) > -1) {