航班信息显示转换

This commit is contained in:
zhouyuejun
2018-11-21 18:55:57 +08:00
parent 526cfe1251
commit 4582b465ee
36 changed files with 862 additions and 401 deletions
+19
View File
@@ -0,0 +1,19 @@
/**
* 计划停机位显示转换
*/
export default function(flight){
if(flight['PSDT']){
if(Array.isArray(flight['PSDT'])&&flight['PSDT'].length>0){
let chkc = [];
for (let i = 0; i < flight['PSDT'].length; i++) {
chkc.push(flight['PSDT'][i]['PSST']);
}
let set = new Set(chkc);
return Array.from(set).join(',');
}else{
return flight['PSDT']['PSST']
}
}else{
return '';
}
}