Browse Source

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

napier 3 years ago
parent
commit
9ab7df5a17
2 changed files with 15 additions and 1 deletions
  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.printFeature('markLayer', data, type, true, true, true)
           that.isShow = true
           that.isShow = true
+          bus.$emit('closeList')
         } else {
         } else {
           that.closePopup()
           that.closePopup()
         }
         }

+ 14 - 1
src/components/mobileBar.vue

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