|
@@ -23,7 +23,7 @@
|
|
|
:key="station.id"
|
|
|
:position="station.position"
|
|
|
:title="station.title"
|
|
|
- :icon="stationIcon"
|
|
|
+ :icon="station.icon"
|
|
|
></el-amap-marker>
|
|
|
|
|
|
<!--路线-->
|
|
@@ -50,6 +50,7 @@ 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";
|
|
|
|
|
|
export default {
|
|
|
props :{
|
|
@@ -131,10 +132,22 @@ export default {
|
|
|
id: item.id,
|
|
|
title: item.name,
|
|
|
position: item.location.split(","),
|
|
|
+ icon: stationIcon
|
|
|
};
|
|
|
|
|
|
this.stationList.push(station);
|
|
|
|
|
|
+ if(item.stationSubInfoList!=null){
|
|
|
+ item.stationSubInfoList.forEach(subItem=>{
|
|
|
+ this.stationList.push({
|
|
|
+ id: subItem.id,
|
|
|
+ title: item.name + "入口",
|
|
|
+ position: [subItem.longitude,subItem.latitude],
|
|
|
+ icon: subIcon
|
|
|
+ });
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
if (initMapPath) {
|
|
|
this.mapPath.push(station.position);
|
|
|
}
|