添加航班日期列

This commit is contained in:
zhouyuejun
2019-01-05 10:00:07 +08:00
parent edb95f4c2b
commit 2af5e30184
4 changed files with 47 additions and 2 deletions
+8 -1
View File
@@ -1,6 +1,6 @@
import timeFormatter from './time-formatter';
import dateWithNotimeFormatter from './date-with-notime-formatter';
export class TransferRenderHandle {
public gctmFormatter(flight) {
if (flight['GTDT']) {
if (Array.isArray(flight['GTDT']) && flight['GTDT'].length > 0) {
@@ -271,4 +271,11 @@ export class TransferRenderHandle {
return '';
}
}
public fldtFormatter(flight){
if (flight['SODT']) {
return dateWithNotimeFormatter(flight['SODT']);
} else {
return '';
}
}
}