|
@@ -707,7 +707,7 @@ export default {
|
|
|
background: 'rgba(0, 0, 0, 0.7)'
|
|
|
})
|
|
|
} else {
|
|
|
- this.loading.close()
|
|
|
+ this.loading?.close()
|
|
|
}
|
|
|
}
|
|
|
},
|
|
@@ -728,17 +728,22 @@ export default {
|
|
|
if (!flightNO || !flightDate) {
|
|
|
this.$router.push('/advance')
|
|
|
}
|
|
|
+ this.queryAll([flightNO, flightDate])
|
|
|
},
|
|
|
activated() {
|
|
|
- const { flightNO, flightDate } = this.queryData
|
|
|
- this.queryAll([flightNO, flightDate])
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.$refs['containerTable']?.doLayout()
|
|
|
+ this.$refs['transferInBaggageTable']?.doLayout()
|
|
|
+ this.$refs['transferOutBaggageTable']?.doLayout()
|
|
|
+ this.$refs['flightBaggageTable']?.doLayout()
|
|
|
+ })
|
|
|
},
|
|
|
updated() {
|
|
|
this.$nextTick(() => {
|
|
|
- this.$refs['containerTable'].doLayout()
|
|
|
- this.$refs['transferInBaggageTable'].doLayout()
|
|
|
- this.$refs['transferOutBaggageTable'].doLayout()
|
|
|
- this.$refs['flightBaggageTable'].doLayout()
|
|
|
+ this.$refs['containerTable']?.doLayout()
|
|
|
+ this.$refs['transferInBaggageTable']?.doLayout()
|
|
|
+ this.$refs['transferOutBaggageTable']?.doLayout()
|
|
|
+ this.$refs['flightBaggageTable']?.doLayout()
|
|
|
})
|
|
|
},
|
|
|
deactivated() {
|
|
@@ -946,6 +951,7 @@ export default {
|
|
|
},
|
|
|
async queryAll(dataContent) {
|
|
|
this.fullscreenLoading = true
|
|
|
+ this.flightInfo = {}
|
|
|
try {
|
|
|
const [
|
|
|
flightInfo,
|
|
@@ -960,7 +966,11 @@ export default {
|
|
|
this.queryTrasferInBaggage(dataContent),
|
|
|
this.queryBaggageByFlightNO(dataContent)
|
|
|
])
|
|
|
- flightInfo.length && (this.flightInfo = flightInfo[0])
|
|
|
+ if (flightInfo.length) {
|
|
|
+ this.flightInfo = flightInfo[0]
|
|
|
+ } else {
|
|
|
+ this.$message.info('未查询到航班基础数据')
|
|
|
+ }
|
|
|
this.containerTableData = containerTableDataData
|
|
|
this.transferOutBaggageTableData = transferOutBaggageTableData.map(item => {
|
|
|
item['flightTime'] = item['flightDate'] ? item['flightDate'].split('T')[1] : ''
|