浏览代码

补充了Mobile端点击地图弹出消息时最小化卡片

napier 3 年之前
父节点
当前提交
9ab7df5a17
共有 2 个文件被更改,包括 15 次插入1 次删除
  1. 1 0
      src/components/map.vue
  2. 14 1
      src/components/mobileBar.vue

+ 1 - 0
src/components/map.vue

@@ -650,6 +650,7 @@ export default {
           }
           that.printFeature('markLayer', data, type, true, true, true)
           that.isShow = true
+          bus.$emit('closeList')
         } else {
           that.closePopup()
         }

+ 14 - 1
src/components/mobileBar.vue

@@ -228,6 +228,19 @@ export default {
           this.expandClass -= 1
           break
       }
+    },
+
+    /**
+     * @description: eventBus的bus.$on 触发事件汇总
+     */
+    busOnAction: function () {
+      var that = this
+
+      // 最小化列表
+      bus.$on('closeList', () => {
+        that.resetListener = false
+        that.expandClass = 0
+      })
     }
   },
   watch: {
@@ -310,7 +323,7 @@ export default {
     this.heightListener('mobilebarBox')
     this.getReportList()
     this.setSize()
-    // this.busOnAction()
+    this.busOnAction()
   }
 }
 </script>