|
@@ -823,6 +823,9 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
selectedAirline(val) {
|
|
|
+ if (!val) {
|
|
|
+ return
|
|
|
+ }
|
|
|
const { flightNO, flightDate } = this.queryData
|
|
|
const [departureAirport, landingAirport] = val.split('-')
|
|
|
this.queryAll([flightNO, flightDate, departureAirport, landingAirport])
|
|
@@ -1115,6 +1118,10 @@ export default {
|
|
|
},
|
|
|
async queryAirline(dataContent) {
|
|
|
try {
|
|
|
+ this.selectedAirline = ''
|
|
|
+ this.flightInfo = {}
|
|
|
+ this.containerTableData = []
|
|
|
+ this.flightBaggageTableData = []
|
|
|
const listValues = await myQuery(DATACONTENT_ID.flightAirline, ...dataContent)
|
|
|
this.airlineList = listValues.map(({ departureAirport, landingAirport, departureBuild, landingBuild }) => ({
|
|
|
label: `${departureAirport}${departureBuild ? `(${departureBuild})` : ''}-${landingAirport}${
|
|
@@ -1124,6 +1131,8 @@ export default {
|
|
|
}))
|
|
|
if (this.airlineList.length) {
|
|
|
this.selectedAirline = this.airlineList[0].value
|
|
|
+ } else {
|
|
|
+ this.$message.info('未查询到航班数据')
|
|
|
}
|
|
|
} catch (error) {
|
|
|
this.$message.error('失败')
|