|
@@ -252,8 +252,8 @@ export default {
|
|
|
const { actualTakeOffTime, estimateTakeOffTime, scheduleTakeOffTime, actualLandInTime, estimateLandInTime, scheduleLandInTime } = itemObj
|
|
|
newObj.newTakeoff_time = actualTakeOffTime ? actualTakeOffTime : estimateTakeOffTime ? estimateTakeOffTime : scheduleTakeOffTime
|
|
|
newObj.newLand_time = actualLandInTime ? actualLandInTime : estimateLandInTime ? estimateLandInTime : scheduleLandInTime
|
|
|
- newObj.takeTime = newObj.newTakeoff_time.split('T').at(-1)
|
|
|
- newObj.landTime = newObj.newLand_time.split('T').at(-1)
|
|
|
+ newObj.takeTime = newObj.newTakeoff_time ? newObj.newTakeoff_time.split('T').at(-1) : newObj.newTakeoff_time
|
|
|
+ newObj.landTime = newObj.newLand_time ? newObj.newLand_time.split('T').at(-1) : newObj.newLand_time
|
|
|
newArr[index] = Object.assign(newArr[index], newObj)
|
|
|
}
|
|
|
})
|