This commit is contained in:
duanliang
2025-04-15 17:48:25 +08:00
parent 44e612361c
commit d7eeea3efe
6 changed files with 47 additions and 13 deletions

View File

@@ -209,13 +209,27 @@ import PubSub from 'pubsub-js'
console.log(item,'item')
if (item.lng && item.lat) {
if (item.status == '行驶') {
addMarker(shipIcon, [item.lng, item.lat], [36, 50])
if(item.type==0){
addMarker(carIcon, [item.lng, item.lat], [36, 50])
}else{
addMarker(shipIcon, [item.lng, item.lat], [36, 50])
}
}
if (item.status == '离线') {
addMarker(shipOfflineIcon, [item.lng, item.lat], [36, 50])
if(item.type==0){
addMarker(carOfflineIcon, [item.lng, item.lat], [36, 50])
}else{
addMarker(shipOfflineIcon, [item.lng, item.lat], [36, 50])
}
}
if (item.status == '静止') {
addMarker(shipStopIcon, [item.lng, item.lat], [36, 50])
if(item.type==0){
addMarker(carStopIcon, [item.lng, item.lat], [36, 50])
}else{
addMarker(shipStopIcon, [item.lng, item.lat], [36, 50])
}
}
marker.value.addEventListener('click', (e) => {
e.sim = e.target.sim
@@ -497,7 +511,7 @@ import PubSub from 'pubsub-js'
display: none;
}
.dialog {
width: vw(3140);
width: vw(3170);
padding: vw(8);
background-image: url('@/assets/images/dialog-bg.png') !important;
background-size: 100% 100%;
@@ -505,7 +519,7 @@ import PubSub from 'pubsub-js'
height:vh(930);
margin-top:vh(130);
:deep(.el-dialog) {
width: vw(3140);
width: vw(3170);
padding: vw(8);
background-image: url('@/assets/images/dialog-bg.png') !important;
background-size: 100% 100%;