增加AUS运行图工具的代码
This commit is contained in:
parent
d68824b79a
commit
80fb7641ae
@ -16,22 +16,23 @@ export default {
|
||||
/** 按车次遍历数据*/
|
||||
if (tripList && tripList.length) {
|
||||
tripList.forEach(trip => {
|
||||
const opt = { name: `run-${trip.tripNo}`, type: 'line', markPoint: { data: [] }, data: []};
|
||||
const opt = { name: `run-${trip.tripNo}`, type: 'line', showAllSymbol:true, symbolKeepAspect: false, symbolSize: 6, markPoint: { data: [] }, data: []};
|
||||
|
||||
if (trip.tripNo &&
|
||||
trip.stationTimeList.length) {
|
||||
opt.markPoint.data.push(createMartPointReverse({
|
||||
name: `${trip.tripNo}`,
|
||||
color: '#000' || lineStyle.color,
|
||||
coord: [
|
||||
trip.stationTimeList[0].arrivalTime,
|
||||
this.getCoordYByElem(stations, kmRangeCoordMap, trip.stationTimeList[0])
|
||||
]
|
||||
}));
|
||||
}
|
||||
// const length = trip.stationTimeList.length;
|
||||
// if (trip.tripNo &&
|
||||
// trip.stationTimeList.length) {
|
||||
// opt.markPoint.data.push(createMartPointReverse({
|
||||
// name: `${trip.tripNo}`,
|
||||
// color: '#000' || lineStyle.color,
|
||||
// coord: [
|
||||
// trip.stationTimeList[0].arrivalTime,
|
||||
// this.getCoordYByElem(stations, kmRangeCoordMap, trip.stationTimeList[0])
|
||||
// ]
|
||||
// }));
|
||||
// }
|
||||
|
||||
/** 计算停站点坐标集合*/
|
||||
trip.stationTimeList.forEach(elem => {
|
||||
trip.stationTimeList.forEach((elem,idx) => {
|
||||
if (elem.arrivalTime) {
|
||||
opt.data.push([elem.arrivalTime, this.getCoordYByElem(stations, kmRangeCoordMap, elem), elem.stationCode, trip.tripNo]);
|
||||
}
|
||||
@ -45,8 +46,6 @@ export default {
|
||||
});
|
||||
}
|
||||
|
||||
console.log(models);
|
||||
|
||||
return models;
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user