This commit is contained in:
zhouyuejun
2019-01-02 14:20:45 +08:00
parent e178eb6ee1
commit abbe9cfc22
2 changed files with 18 additions and 3 deletions
+5 -3
View File
@@ -143,7 +143,8 @@ export class FlightsDataHandle {
flights_item['renderFlight'] = Object.assign({}, render_flight);
}
} catch (error) {
alert('数据有误,处理失败,请检查数据');
console.log('数据有误,处理失败,请检查数据');
console.log(item);
throw error;
} finally {
return flights_item;
@@ -250,7 +251,8 @@ export class FlightsDataHandle {
item['renderReaFlight']['FLTY'] = flightTypes.find(val => val.flightTypeCode === item['renderReaFlight']['FLTY']).flightTypeNameCn;
}
} catch (error) {
alert('数据有误,处理失败,请检查数据');
console.log('基础数据转换有误,处理失败,请检查数据');
console.log(item);
throw error;
} finally {
return item;
@@ -633,7 +635,7 @@ export class FlightsDataHandle {
}
}
} catch (error) {
alert('航班号为:' + message.FLNO + ' - 消息有误,处理失败,请检查消息数据');
console.log('航班号为:' + message.FLNO + ' - 消息有误,处理失败,请检查消息数据');
throw error;
} finally {
return {