调整国赛运行图显示

This commit is contained in:
zyy 2020-11-03 16:18:15 +08:00
parent ffbd8a06f8
commit 4c00fa1a90
2 changed files with 4 additions and 4 deletions

View File

@ -113,7 +113,7 @@ export default {
// pointdata.name = `${service.serviceNumber}${train.directionCode}${train.tripNumber}`;
pointdata.name = `${service.serviceNumber}${train.tripNumber}`;
pointdata.color = '#000' || lineStyle.color;
pointdata.directionCode = train.directionCode;
pointdata.directionCode = train.right ? '2' : '1';
pointdata.coord = [train.stationTimeList[1].secondTime, this.getCoordYByElem(stations, kmRangeCoordMap, train.stationTimeList[1], train.right, false)];
/** 给服务对象添加服务名称和标记点*/
@ -212,7 +212,7 @@ export default {
const result = serie.markPoint.data.some(ele => ele.name == `(${elem.groupNumber})${elem.serviceNumber}${elem.tripNumber}`);
if (!result) {
serie.markPoint.data.push(createMartPoint({
directionCode: elem.directionCode,
directionCode: elem.right ? '2' : '1',
coord: [parseInt(elem.secondTime), this.getCoordYByElem(stations, kmRangeCoordMap, elem, false)],
name: `(${elem.groupNumber})${elem.serviceNumber}${elem.tripNumber}`,
color: lineStyle.color || '#000'

View File

@ -69,8 +69,8 @@ export function createMarkLineModels(stations, computedYaxis) {
markLineModel.markLine.silent = true;
markLineModel.markLine.data = [];
markLineModel.markLine.lineStyle = { color: '#B0C4DE', width: 0.5 };
markLineModel.markLine.symbol = 'none';
markLineModel.elements = []
markLineModel.markLine.symbol = 'none';
markLineModel.elements = [];
stations.forEach((elem, index) => {
markLineModel.markLine.data.push(
{