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