|
@@ -6,7 +6,7 @@
|
|
|
:plugin="plugin"
|
|
|
:center="centerPoint"
|
|
|
:zoom="15"
|
|
|
- style="width: 100%; height: 400px"
|
|
|
+ style="width: 100%; height: 550px"
|
|
|
>
|
|
|
<!--车辆当前位置-->
|
|
|
<el-amap-marker
|
|
@@ -50,7 +50,9 @@ import routeInfoApi from "@/api/bus/routeInfo";
|
|
|
import vehicleInfoApi from "@/api/bus/vehicleInfo";
|
|
|
import busIcon from "@/assets/icons/bus.svg";
|
|
|
import stationIcon from "@/assets/icons/station.svg";
|
|
|
-import subIcon from "@/assets/icons/sub.svg";
|
|
|
+import greenIcon from "@/assets/icons/green.svg";
|
|
|
+import redIcon from "@/assets/icons/red.svg";
|
|
|
+
|
|
|
|
|
|
export default {
|
|
|
props :{
|
|
@@ -92,9 +94,9 @@ export default {
|
|
|
|
|
|
console.log(this.centerPoint);
|
|
|
|
|
|
- setTimeout(()=>{
|
|
|
- this.loadVehicle(vehicleId);
|
|
|
- },60000);
|
|
|
+ // setTimeout(()=>{
|
|
|
+ // this.loadVehicle(vehicleId);
|
|
|
+ // },60000);
|
|
|
});
|
|
|
},
|
|
|
loadRouteMap(routeId) {
|
|
@@ -139,11 +141,13 @@ export default {
|
|
|
|
|
|
if(item.stationSubInfoList!=null){
|
|
|
item.stationSubInfoList.forEach(subItem=>{
|
|
|
+ var startToEnd = subItem.startStationId == this.stationList[0].id;
|
|
|
+
|
|
|
this.stationList.push({
|
|
|
id: subItem.id,
|
|
|
- title: item.name + "入口",
|
|
|
+ title: item.name + "入口" + (startToEnd ? "(起)" : "(终)"),
|
|
|
position: [subItem.longitude,subItem.latitude],
|
|
|
- icon: subIcon
|
|
|
+ icon: startToEnd ? greenIcon : redIcon
|
|
|
});
|
|
|
});
|
|
|
}
|