filter = ['KC', 'Z9', 'DV'];
[
{
"price": 27000,
"flightDuration": "330",
"flights": [
{
"cities": {
"departureCity": "Алматы",
"departureAirportName": "Алматы",
"arrivalCity": "Актобе",
"arrivalAirportName": "Актобе"
},
"departureTime": "23:00",
"departureDate": "21 ноября",
"arrivalTime": "00:45",
"arrivalDate": "22 ноября",
"airline": {
"code": "KC",
"name": "Air Astana"
}
},
{
"cities": {
"departureCity": "Актобе",
"departureAirportName": "Актобе",
"arrivalCity": "Астана",
"arrivalAirportName": "Астана"
},
"departureTime": "03:00",
"departureDate": "22 ноября",
"arrivalTime": "04:30",
"arrivalDate": "22 ноября",
"airline": {
"code": "KC",
"name": "Air Astana"
}
}
]
},
// И Т.Д.
]
<div v-for="item in flightsData">
<div>Price: {{ item.price }}</div>
<div v-for="f in item.flights">
<div>Departure: {{ f.cities.departureCity }}, {{ f.departureTime }}</div>
<div>Arrival: {{ f.cities.arrivalCity }}, {{ f.arrivalTime }}</div>
</div>
</div>
this.flightsData = response.data.filter(n => val.includes(n.flights[0].airline.code));