diff --git a/src/jmapNew/theme/aus_00/planConvert.js b/src/jmapNew/theme/aus_00/planConvert.js index 4d7b31991..6e6ecdc31 100644 --- a/src/jmapNew/theme/aus_00/planConvert.js +++ b/src/jmapNew/theme/aus_00/planConvert.js @@ -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; },