前站起飞时间显示规则修改
This commit is contained in:
@@ -392,8 +392,42 @@ export class TransferRenderHandle {
|
||||
}
|
||||
}
|
||||
public padtFormatter(flight) {
|
||||
if (flight['MVIN'] === 'A') {
|
||||
if (flight['PADT']) {
|
||||
if (Array.isArray(flight['ROUT']) && flight['ROUT'].length > 0) {
|
||||
let lastRout = flight['ROUT'][flight['ROUT'].length - 1];
|
||||
if (lastRout['SCDT']){
|
||||
return timeFormatter(flight['PADT']) + '(' + timeFormatter(lastRout['SCDT']) + ')';
|
||||
}else{
|
||||
return timeFormatter(flight['PADT']);
|
||||
}
|
||||
} else if (Object.prototype.toString.call(flight['ROUT']) === '[object Object]') {
|
||||
if (flight['ROUT']['SCDT']){
|
||||
return timeFormatter(flight['PADT']) + '(' + timeFormatter(flight['ROUT']['SCDT']) + ')';
|
||||
}else{
|
||||
return timeFormatter(flight['PADT']);
|
||||
}
|
||||
}else{
|
||||
return timeFormatter(flight['PADT']);
|
||||
}
|
||||
} else {
|
||||
if (Array.isArray(flight['ROUT']) && flight['ROUT'].length > 0) {
|
||||
let lastRout = flight['ROUT'][flight['ROUT'].length - 1];
|
||||
if (lastRout['SCDT']){
|
||||
return '(' + timeFormatter(lastRout['SCDT']) + ')';
|
||||
}else{
|
||||
return '';
|
||||
}
|
||||
} else if (Object.prototype.toString.call(flight['ROUT']) === '[object Object]') {
|
||||
if (flight['ROUT']['SCDT']){
|
||||
return '(' + timeFormatter(flight['ROUT']['SCDT']) + ')';
|
||||
}else{
|
||||
return '';
|
||||
}
|
||||
}else{
|
||||
return '';
|
||||
}
|
||||
}
|
||||
}else{
|
||||
return '';
|
||||
}
|
||||
|
||||
@@ -568,8 +568,42 @@ export default function (dynamicData?) {
|
||||
}
|
||||
},
|
||||
'PADT': function padtFormatter(flight) {
|
||||
if (flight['MVIN'] === 'A') {
|
||||
if (flight['PADT']) {
|
||||
if (Array.isArray(flight['ROUT']) && flight['ROUT'].length > 0) {
|
||||
let lastRout = flight['ROUT'][flight['ROUT'].length - 1];
|
||||
if (lastRout['SCDT']) {
|
||||
return timeFormatter(flight['PADT']) + '(' + timeFormatter(lastRout['SCDT']) + ')';
|
||||
} else {
|
||||
return timeFormatter(flight['PADT']);
|
||||
}
|
||||
} else if (Object.prototype.toString.call(flight['ROUT']) === '[object Object]') {
|
||||
if (flight['ROUT']['SCDT']) {
|
||||
return timeFormatter(flight['PADT']) + '(' + timeFormatter(flight['ROUT']['SCDT']) + ')';
|
||||
} else {
|
||||
return timeFormatter(flight['PADT']);
|
||||
}
|
||||
} else {
|
||||
return timeFormatter(flight['PADT']);
|
||||
}
|
||||
} else {
|
||||
if (Array.isArray(flight['ROUT']) && flight['ROUT'].length > 0) {
|
||||
let lastRout = flight['ROUT'][flight['ROUT'].length - 1];
|
||||
if (lastRout['SCDT']) {
|
||||
return '(' + timeFormatter(lastRout['SCDT']) + ')';
|
||||
} else {
|
||||
return '';
|
||||
}
|
||||
} else if (Object.prototype.toString.call(flight['ROUT']) === '[object Object]') {
|
||||
if (flight['ROUT']['SCDT']) {
|
||||
return '(' + timeFormatter(flight['ROUT']['SCDT']) + ')';
|
||||
} else {
|
||||
return '';
|
||||
}
|
||||
} else {
|
||||
return '';
|
||||
}
|
||||
}
|
||||
} else {
|
||||
return '';
|
||||
}
|
||||
|
||||
@@ -569,8 +569,42 @@ onmessage = function (dynamicData) {
|
||||
}
|
||||
},
|
||||
'PADT': function padtFormatter(flight) {
|
||||
if (flight['MVIN'] === 'A') {
|
||||
if (flight['PADT']) {
|
||||
if (Array.isArray(flight['ROUT']) && flight['ROUT'].length > 0) {
|
||||
let lastRout = flight['ROUT'][flight['ROUT'].length - 1];
|
||||
if (lastRout['SCDT']) {
|
||||
return timeFormatter(flight['PADT']) + '(' + timeFormatter(lastRout['SCDT']) + ')';
|
||||
} else {
|
||||
return timeFormatter(flight['PADT']);
|
||||
}
|
||||
} else if (Object.prototype.toString.call(flight['ROUT']) === '[object Object]') {
|
||||
if (flight['ROUT']['SCDT']) {
|
||||
return timeFormatter(flight['PADT']) + '(' + timeFormatter(flight['ROUT']['SCDT']) + ')';
|
||||
} else {
|
||||
return timeFormatter(flight['PADT']);
|
||||
}
|
||||
} else {
|
||||
return timeFormatter(flight['PADT']);
|
||||
}
|
||||
} else {
|
||||
if (Array.isArray(flight['ROUT']) && flight['ROUT'].length > 0) {
|
||||
let lastRout = flight['ROUT'][flight['ROUT'].length - 1];
|
||||
if (lastRout['SCDT']) {
|
||||
return '(' + timeFormatter(lastRout['SCDT']) + ')';
|
||||
} else {
|
||||
return '';
|
||||
}
|
||||
} else if (Object.prototype.toString.call(flight['ROUT']) === '[object Object]') {
|
||||
if (flight['ROUT']['SCDT']) {
|
||||
return '(' + timeFormatter(flight['ROUT']['SCDT']) + ')';
|
||||
} else {
|
||||
return '';
|
||||
}
|
||||
} else {
|
||||
return '';
|
||||
}
|
||||
}
|
||||
} else {
|
||||
return '';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user