diff --git a/src/views/vehicles/components/big-map.vue b/src/views/vehicles/components/big-map.vue index 589cdc3..45cfa01 100644 --- a/src/views/vehicles/components/big-map.vue +++ b/src/views/vehicles/components/big-map.vue @@ -8,6 +8,7 @@
{ + scenicSpotId.value = item.scenicSpotId tabsListIndex.value = item.id PubSub.publish('tabsListChange', item) } @@ -243,7 +245,6 @@ import PubSub from 'pubsub-js' // console.log(item,'item') if (item.lng && item.lat) { - console.log(item,2255555555) // if (item.status == '行驶') { // console.log(item,'8888888888888888') // if(item.type==1){ @@ -254,7 +255,6 @@ import PubSub from 'pubsub-js' // } // } if (item.accStatus == 1) { - console.log(item,9999999999) if(item.type==1){ addMarker(shipIcon, [item.lng, item.lat], [36, 50]) @@ -364,7 +364,6 @@ import PubSub from 'pubsub-js' currentMarker.value = null }) } else { - console.log(222,infoBox.value,'infoBox.value') if (lastInfoBox.value) lastInfoBox.value?.close() infoBox.value.setContent(setHtml(data)) lastInfoBox.value = infoBox.value diff --git a/src/views/vehicles/index.vue b/src/views/vehicles/index.vue index 7863c22..2520ca8 100644 --- a/src/views/vehicles/index.vue +++ b/src/views/vehicles/index.vue @@ -62,7 +62,8 @@ }) PubSub.subscribe('tabsListChange', (msg, data) => { console.log(data.scenicSpotId,22222222) - sendMessage(JSON.stringify({ action: 'start', type: '',"keyword":keyword.value, scenicSpotId: data.scenicSpotId })) + scenicSpotId.value = data.scenicSpotId + sendMessage(JSON.stringify({ action: 'start', type: '',"keyword":keyword.value, scenicSpotId: scenicSpotId.value })) }) })