浏览代码

事件定位列表清空

王通 1 年之前
父节点
当前提交
dc5b3670bb
共有 1 个文件被更改,包括 15 次插入0 次删除
  1. 15 0
      src/components/eventLocation.vue

+ 15 - 0
src/components/eventLocation.vue

@@ -161,6 +161,15 @@ export default {
     eventdetailsdialog,
     TVWall
   },
+  beforeDestroy() {
+    this.cameraList=[]
+    this.eventList=[]
+  },
+  create()
+  {
+    this.cameraList=[]
+    this.eventList=[]
+  },
   data() {
     return {
       /** ----------------------------------摄像头预览开始------------------------------------- */
@@ -298,6 +307,8 @@ export default {
       return y + '-' + m + '-' + d
     },
     cancelEventLocationShow() {
+      this.cameraList=[]
+      this.eventList=[]
       this.longitude=""
       this.latitude=""
       if (this.oWebControl != null) {
@@ -313,6 +324,8 @@ export default {
       this.$refs.eventdetailsdialog.showEventDialog(eventCode)
     },
     getNearEvent() {
+      this.cameraList=[]
+      this.eventList=[]
       if (this.longitude == null || this.longitude == '' || this.latitude == null || this.latitude == '') {
         this.$modal.msgError('请输入经纬度!')
         return
@@ -424,6 +437,8 @@ export default {
       })
     },
     handleClick(tab, event) {
+      this.cameraList=[]
+      this.eventList=[]
       let that = this
       that.$refs.eventLocationSupermap.controlLevel(8)
       let marker = [{