This commit is contained in:
duanliang
2025-04-25 12:40:43 +08:00
parent 3b0b9b9b30
commit 8a29b3a6e7
2 changed files with 6 additions and 6 deletions

View File

@@ -233,7 +233,7 @@ let tabsIndex = ref(0)
console.log(item,'item') console.log(item,'item')
if (item.lng && item.lat) { if (item.lng && item.lat) {
if (item.status == '行驶') { if (item.status == '行驶') {
if(item.type==1){ if(item.accstatus==1){
addMarker(shipIcon, [item.lng, item.lat], [36, 50]) addMarker(shipIcon, [item.lng, item.lat], [36, 50])
}else{ }else{
@@ -241,7 +241,7 @@ let tabsIndex = ref(0)
} }
} }
if (item.status == '离线') { if (item.status == '离线') {
if(item.type==1){ if(item.accstatus==1){
addMarker(shipOfflineIcon, [item.lng, item.lat], [36, 50]) addMarker(shipOfflineIcon, [item.lng, item.lat], [36, 50])
}else{ }else{
@@ -251,7 +251,7 @@ let tabsIndex = ref(0)
} }
if (item.status == '静止') { if (item.status == '静止') {
if(item.type==1){ if(item.accstatus==1){
addMarker(shipStopIcon, [item.lng, item.lat], [36, 50]) addMarker(shipStopIcon, [item.lng, item.lat], [36, 50])
}else{ }else{
addMarker(carStopIcon, [item.lng, item.lat], [36, 50]) addMarker(carStopIcon, [item.lng, item.lat], [36, 50])

View File

@@ -220,7 +220,7 @@ import PubSub from 'pubsub-js'
console.log(item,'item') console.log(item,'item')
if (item.lng && item.lat) { if (item.lng && item.lat) {
if (item.status == '行驶') { if (item.status == '行驶') {
if(item.type==1){ if(item.accstatus==1){
addMarker(shipIcon, [item.lng, item.lat], [36, 50]) addMarker(shipIcon, [item.lng, item.lat], [36, 50])
}else{ }else{
@@ -228,7 +228,7 @@ import PubSub from 'pubsub-js'
} }
} }
if (item.status == '离线') { if (item.status == '离线') {
if(item.type==1){ if(item.accstatus==1){
addMarker(shipOfflineIcon, [item.lng, item.lat], [36, 50]) addMarker(shipOfflineIcon, [item.lng, item.lat], [36, 50])
}else{ }else{
@@ -238,7 +238,7 @@ import PubSub from 'pubsub-js'
} }
if (item.status == '静止') { if (item.status == '静止') {
if(item.type==1){ if(item.accstatus==1){
addMarker(shipStopIcon, [item.lng, item.lat], [36, 50]) addMarker(shipStopIcon, [item.lng, item.lat], [36, 50])
}else{ }else{