2018-11-21 18:55:57 +08:00
|
|
|
/**
|
|
|
|
|
* 登机桥靠桥时间显示转换
|
|
|
|
|
*/
|
|
|
|
|
import timeFormatter from './time-formatter';
|
|
|
|
|
|
|
|
|
|
export default function (flight) {
|
|
|
|
|
if (flight['ABTM']) {
|
|
|
|
|
if (Array.isArray(flight['ABTM']) && flight['ABTM'].length > 0) {
|
|
|
|
|
for (let i = 0; i < flight['ABTM'].length; i++) {
|
|
|
|
|
if (flight['ABTM'][i]['ABOP'] === 'A') {
|
|
|
|
|
return timeFormatter(flight['ABTM'][i]['AOTM']);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
} else {
|
2018-12-13 18:15:41 +08:00
|
|
|
return '';
|
2018-11-21 18:55:57 +08:00
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
return '';
|
|
|
|
|
}
|
|
|
|
|
}
|