作者 shenhailong

完善航班列表显示问题

... ... @@ -12,13 +12,13 @@
<el-table :data="flightData" stripe style="font-size: 14px" border>
<el-table-column label="航班号" width="180px" align="center">
<template slot-scope="scope">
<span>{{ scope.row.carrier }}{{ scope.row.flightNo }}</span>
<span>{{ scope.row.carrier }}{{ scope.row.flightno }}</span>
</template>
</el-table-column>
<el-table-column label="航班日期" width="190px" align="center">
<template slot-scope="scope">
<i class="el-icon-time"></i>
<span>{{ scope.row.flightDate }}</span>
<span>{{ scope.row.flightdate }}</span>
</template>
</el-table-column>
<el-table-column label="始发站" width="160px" align="center">
... ... @@ -75,8 +75,8 @@
},
getList() {
getFlightListForParam(this.listQuery).then(res => {
this.flightData = res.data.dataList
this.total = res.data.count
this.flightData = res.data.data.list
this.total = res.data.data.total
})
},
handleSearch() {
... ... @@ -84,26 +84,26 @@
},
handleLoading(row) {
row.messageType = 'MT4201'
row.flightdate = row.flightDate
row.flightno = row.flightNo
row.flightdate = row.flightdate
row.flightno = row.flightno
this.$router.push({name: '出港航班信息', params: {scopeRow: row}})
},
handleTidy(row) {
row.messageType = 'MT5202'
row.flightdate = row.flightDate
row.flightno = row.flightNo
row.flightdate = row.flightdate
row.flightno = row.flightno
this.$router.push({name: '出港航班信息', params: {scopeRow: row}})
},
handleArrive(row) {
row.messageType = 'MT3201'
row.flightdate = row.flightDate
row.flightno = row.flightNo
row.flightdate = row.flightdate
row.flightno = row.flightno
this.$router.push({name: '出港航班信息', params: {scopeRow: row}})
},
handlePre(row) {
row.messageType = 'MT2201'
row.flightdate = row.flightDate
row.flightno = row.flightNo
row.flightdate = row.flightdate
row.flightno = row.flightno
this.$router.push({name: '出港航班信息', params: {scopeRow: row}})
}
},
... ...
... ... @@ -117,7 +117,7 @@
this.flight.originstation = this.$route.params.scopeRow.originstation
this.flight.destinationstation = this.$route.params.scopeRow.destinationstation
this.flight.messageType = this.$route.params.scopeRow.messageType
if (this.$route.params.scopeRow.awba !== undefined) {
if (this.$route.params.scopeRow.awba !== undefined && this.$route.params.scopeRow.awba != null) {
this.flight.awba = this.$route.params.scopeRow.awba.replace('-', '')
}
}
... ...
... ... @@ -556,9 +556,9 @@
this.listLoading = true
if (this.loadingQuery.awba !== undefined && this.loadingQuery.awba !== '') {
getMt4201ListForParam(this.loadingQuery).then(res => {
this.loadingData = res.data.dataList
this.total = res.data.count
if (res.data.count > 0) {
this.loadingData = res.data.data.list
this.total = res.data.data.total
if (res.data.data.total > 0) {
this.loadingQuery.carrier = this.loadingData[0].carrier
this.loadingQuery.flightno = this.loadingData[0].flightno
this.loadingQuery.flightdate = this.loadingData[0].flightdate
... ... @@ -572,8 +572,8 @@
})
} else {
getMt4201ListForParam(this.loadingQuery).then(res => {
this.loadingData = res.data.dataList
this.total = res.data.count
this.loadingData = res.data.data.list
this.total = res.data.data.total
setTimeout(() => {
this.listLoading = false
}, 1.5 * 1000)
... ...