彭宇 2 роки тому
батько
коміт
a44bb92327
1 змінених файлів з 18 додано та 15 видалено
  1. 18 15
      src/components/eventLocation.vue

+ 18 - 15
src/components/eventLocation.vue

@@ -206,13 +206,12 @@
           <el-tab-pane label="实时画面" name="frame">
           </el-tab-pane>
           <el-tab-pane label="地理位置" name="point">
-			  <div class="info-button-group">
-			  	<button>视频联动</button>
-			  	<button>矢量标记</button>
-			  	<button>测面</button>
-			  	<button>测距</button>
-			  </div>
-			    <supermapNotProcessed ref="supermapNotProcessed" v-if="'point' === eventInfoVisibleActiveName"  style="width:100% ;height: 75vh;"   :mapDiv="'supermapNotProcessedSuperMap'" :mapSite="{doubleClickZoom:false}" :codes="['9fa5']" @preview="preview" :isSideBySide="false"></supermapNotProcessed>
+          <div class="info-button-group">            <button>视频联动</button>
+            <button>矢量标记</button>
+            <button>测面</button>
+            <button>测距</button>
+          </div>
+			    <notProcessedSupermap ref="notProcessedSupermap" v-if="'point' === eventInfoVisibleActiveName"  style="width:100% ;height: 75vh;"   :mapDiv="'notProcessedSupermap'" :mapSite="{doubleClickZoom:false}" :codes="['9fa5']" @preview="preview" :isSideBySide="false"></notProcessedSupermap>
           </el-tab-pane>
         </el-tabs>
       </el-dialog>
@@ -352,7 +351,7 @@
 							<button>测面</button>
 							<button>测距</button>
 						</div>
-						<supermapProcessed v-if="'point' === eventInfoVisibleActiveName" ref="supermapProcessed"  style="width:100% ;height: 75vh;" :mapDiv="'supermapProcessedSuperMap'" :mapSite="{doubleClickZoom:false}" :codes="['9fa5']" @preview="preview" :isSideBySide="false"></supermapProcessed>
+						<processedSupermap v-if="'point' === eventInfoVisibleActiveName" ref="processedSupermap"  style="width:100% ;height: 75vh;" :mapDiv="'processedSuperMap'" :mapSite="{doubleClickZoom:false}" :codes="['9fa5']" @preview="preview" :isSideBySide="false"></processedSupermap>
           </el-tab-pane>
         </el-tabs>
       </el-dialog>
@@ -371,6 +370,8 @@
 
 
   import eventLocationSupermap from '@/components/supermap' //超图
+  import notProcessedSupermap from '@/components/supermap' //超图
+  import processedSupermap from '@/components/supermap' //超图
   /** ----------------------------------摄像头预览开始------------------------------------- */
   import { getDahuaVideoServer } from '@/api/dahua/dahua'
   import DHWs from '@/dahua/lib/DHWs'
@@ -379,7 +380,9 @@
   export default {
     dicts: ['event_source'],
     components: {
-      eventLocationSupermap
+      eventLocationSupermap,
+      notProcessedSupermap,
+      processedSupermap
     },
     data() {
       return {
@@ -911,9 +914,9 @@
                   that.markersMapList.push(marke)
                 }
               }
-              that.$refs.supermapNotProcessed.dropLocation(information.lat ,information.lng)
-              that.$refs.supermapNotProcessed.clearM(false)
-              that.$refs.supermapNotProcessed.setMarkers(that.markersMapList)
+              that.$refs.notProcessedSupermap.dropLocation(information.lat ,information.lng)
+              that.$refs.notProcessedSupermap.clearM(false)
+              that.$refs.notProcessedSupermap.setMarkers(that.markersMapList)
             })
           }, 1000);
 
@@ -991,9 +994,9 @@
                   that.markersMapList.push(marke)
                 }
               }
-              that.$refs.supermapProcessed.dropLocation(information.lat,information.lng)
-              that.$refs.supermapProcessed.clearM(false)
-              that.$refs.supermapProcessed.setMarkers(that.markersMapList)
+              that.$refs.processedSupermap.dropLocation(information.lat,information.lng)
+              that.$refs.processedSupermap.clearM(false)
+              that.$refs.processedSupermap.setMarkers(that.markersMapList)
             })
           }, 1000);