diff --git a/src/components/VEquipment.vue b/src/components/VEquipment.vue
index 92cb023..cd4a55f 100644
--- a/src/components/VEquipment.vue
+++ b/src/components/VEquipment.vue
@@ -66,8 +66,7 @@ export default {
watch:{
equipment:{//深度监听,可监听到对象、数组的变化
handler(val){
- this.equipvalue = val
- console.log(val.PDA)
+
},
deep:true
}
diff --git a/src/components/VInout.vue b/src/components/VInout.vue
index c3c2332..ec2ef62 100644
--- a/src/components/VInout.vue
+++ b/src/components/VInout.vue
@@ -3,7 +3,7 @@
进出场消息
-
{{inoutmsg}} 进场 {{inouttime}}
+
{{inoutmsg}} {{inouttime|formatDate}}
@@ -13,6 +13,8 @@
diff --git a/src/components/VMap.vue b/src/components/VMap.vue
index 768c16e..7f217c1 100644
--- a/src/components/VMap.vue
+++ b/src/components/VMap.vue
@@ -17,7 +17,18 @@ export default {
}
},
mounted(){
- this.drawMap()
+
+
+ },
+ watch:{
+ // mapdata:function (newVal) {
+ // console.log(newVal)
+ // }
+ mapdata: function () {
+ this.$nextTick(()=>{
+ this.drawMap()
+ })
+ }
},
methods:{
initMap(){
@@ -35,7 +46,7 @@ export default {
// let data = this.data
map = new BMap.Map('map', {enableMapClick: false})
var point = new BMap.Point(mapData[0].lonId, mapData[0].latId)
- map.centerAndZoom(point, 15)
+ map.centerAndZoom(point, 22)
var mapStyle={ style : "midnight" }
map.enableScrollWheelZoom(false);
map.setMapStyle(mapStyle);
@@ -94,8 +105,8 @@ export default {