西安一号线 运行图导入 添加trackName字段

This commit is contained in:
joylink_cuiweidong 2021-08-16 14:59:34 +08:00
parent 448edcf4b7
commit 1ccf237b6d

View File

@ -21,6 +21,7 @@ export default {
sepField: '车次号', sepField: '车次号',
columns: { columns: {
'停车站名称': { key: 'stationName', formatter: (val) => { return val; } }, '停车站名称': { key: 'stationName', formatter: (val) => { return val; } },
'停车轨名称':{key: 'trackName', formatter: (val) => { return val; }},
'到达时间': { key: 'arriveTime', formatter: (val) => { return val; } }, '到达时间': { key: 'arriveTime', formatter: (val) => { return val; } },
'出发时间': { key: 'departureTime', formatter: (val) => { return val; } } '出发时间': { key: 'departureTime', formatter: (val) => { return val; } }
} }
@ -82,7 +83,7 @@ export default {
// 添加字段值 // 添加字段值
if (Object.keys(stationObj).length) { if (Object.keys(stationObj).length) {
if (stationObj.arriveTime) { if (stationObj.trackName || stationObj.arriveTime) {
tripObj.arrivalList.push(stationObj); tripObj.arrivalList.push(stationObj);
} }
} }