|
@@ -1,7 +1,7 @@
|
|
<!--
|
|
<!--
|
|
* @Author: zk
|
|
* @Author: zk
|
|
* @Date: 2022-01-17 10:39:22
|
|
* @Date: 2022-01-17 10:39:22
|
|
- * @LastEditTime: 2022-05-13 16:31:41
|
|
|
|
|
|
+ * @LastEditTime: 2022-05-16 15:59:28
|
|
* @LastEditors: your name
|
|
* @LastEditors: your name
|
|
* @Description: 离港01
|
|
* @Description: 离港01
|
|
-->
|
|
-->
|
|
@@ -200,6 +200,7 @@
|
|
:cell-class-name="cellClass"
|
|
:cell-class-name="cellClass"
|
|
border
|
|
border
|
|
stripe
|
|
stripe
|
|
|
|
+ fit
|
|
@cell-click="cellClick"
|
|
@cell-click="cellClick"
|
|
>
|
|
>
|
|
<el-table-column
|
|
<el-table-column
|
|
@@ -213,6 +214,7 @@
|
|
:key="i"
|
|
:key="i"
|
|
:prop="p.statCode"
|
|
:prop="p.statCode"
|
|
:label="p.statName"
|
|
:label="p.statName"
|
|
|
|
+ :width="p.width"
|
|
:formatter="tableFormat"
|
|
:formatter="tableFormat"
|
|
>
|
|
>
|
|
<template slot="header">
|
|
<template slot="header">
|
|
@@ -267,6 +269,7 @@ import terminalMixin from '../../mixins/terminal'
|
|
import formMixin from '../../mixins/form'
|
|
import formMixin from '../../mixins/form'
|
|
import tableColsMixin from '../../mixins/tableCols'
|
|
import tableColsMixin from '../../mixins/tableCols'
|
|
import { getQuery } from '@/api/flight'
|
|
import { getQuery } from '@/api/flight'
|
|
|
|
+import { commonTableCellClass } from '@/utils/table'
|
|
|
|
|
|
export default {
|
|
export default {
|
|
name: 'DepartureTerminalView',
|
|
name: 'DepartureTerminalView',
|
|
@@ -293,47 +296,42 @@ export default {
|
|
{
|
|
{
|
|
statCode: 'PreFlightNO',
|
|
statCode: 'PreFlightNO',
|
|
statName: '航班号',
|
|
statName: '航班号',
|
|
- width: 122
|
|
|
|
|
|
+ width: 80
|
|
},
|
|
},
|
|
{
|
|
{
|
|
statCode: 'PreFlightDate',
|
|
statCode: 'PreFlightDate',
|
|
statName: '航班日期',
|
|
statName: '航班日期',
|
|
- width: 83
|
|
|
|
|
|
+ width: 100
|
|
},
|
|
},
|
|
{
|
|
{
|
|
statCode: 'PreAirport',
|
|
statCode: 'PreAirport',
|
|
- statName: '起飞机场',
|
|
|
|
- width: 79
|
|
|
|
|
|
+ statName: '起飞机场'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
statCode: 'ActualLandingTime',
|
|
statCode: 'ActualLandingTime',
|
|
statName: '降落时间',
|
|
statName: '降落时间',
|
|
- width: 79
|
|
|
|
|
|
+ width: 100
|
|
},
|
|
},
|
|
{
|
|
{
|
|
statCode: 'LandingBuild',
|
|
statCode: 'LandingBuild',
|
|
- statName: '降落航站楼',
|
|
|
|
- width: 79
|
|
|
|
|
|
+ statName: '降落航站楼'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
statCode: 'Carousel',
|
|
statCode: 'Carousel',
|
|
- statName: '行李转盘',
|
|
|
|
- width: 79
|
|
|
|
|
|
+ statName: '行李转盘'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
statCode: 'StandForLanding',
|
|
statCode: 'StandForLanding',
|
|
- statName: '降落停机位',
|
|
|
|
- width: 79
|
|
|
|
|
|
+ statName: '降落停机位'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
statCode: 'inTransferBaggageCount',
|
|
statCode: 'inTransferBaggageCount',
|
|
- statName: '中转行李数',
|
|
|
|
- width: 58
|
|
|
|
|
|
+ statName: '中转行李数'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
statCode: 'inTransferredBaggageCount',
|
|
statCode: 'inTransferredBaggageCount',
|
|
statName: '已中转行李数',
|
|
statName: '已中转行李数',
|
|
- width: 63
|
|
|
|
|
|
+ width: 100
|
|
}
|
|
}
|
|
]
|
|
]
|
|
},
|
|
},
|
|
@@ -344,7 +342,7 @@ export default {
|
|
{
|
|
{
|
|
statCode: 'FlightNO',
|
|
statCode: 'FlightNO',
|
|
statName: '航班号',
|
|
statName: '航班号',
|
|
- width: 81
|
|
|
|
|
|
+ width: 80
|
|
},
|
|
},
|
|
{
|
|
{
|
|
statCode: 'FlightDate',
|
|
statCode: 'FlightDate',
|
|
@@ -358,28 +356,24 @@ export default {
|
|
},
|
|
},
|
|
{
|
|
{
|
|
statCode: 'TargetAirport',
|
|
statCode: 'TargetAirport',
|
|
- statName: '目的站',
|
|
|
|
- width: 93
|
|
|
|
|
|
+ statName: '目的站'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
statCode: 'DepartureBuild',
|
|
statCode: 'DepartureBuild',
|
|
- statName: '起飞航站楼',
|
|
|
|
- width: 81
|
|
|
|
|
|
+ statName: '起飞航站楼'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
statCode: 'BordingGate',
|
|
statCode: 'BordingGate',
|
|
- statName: '起飞登机口',
|
|
|
|
- width: 81
|
|
|
|
|
|
+ statName: '起飞登机口'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
statCode: 'StandForDepartrue',
|
|
statCode: 'StandForDepartrue',
|
|
- statName: '起飞停机位',
|
|
|
|
- width: 81
|
|
|
|
|
|
+ statName: '起飞停机位'
|
|
},
|
|
},
|
|
{
|
|
{
|
|
statCode: 'outTransferBaggageCount',
|
|
statCode: 'outTransferBaggageCount',
|
|
statName: '中转进行李数',
|
|
statName: '中转进行李数',
|
|
- width: 93
|
|
|
|
|
|
+ width: 100
|
|
},
|
|
},
|
|
{
|
|
{
|
|
statCode: 'outTransferredBaggageCount',
|
|
statCode: 'outTransferredBaggageCount',
|
|
@@ -388,8 +382,7 @@ export default {
|
|
},
|
|
},
|
|
{
|
|
{
|
|
statCode: 'timeDifference',
|
|
statCode: 'timeDifference',
|
|
- statName: '转运时间',
|
|
|
|
- width: 93
|
|
|
|
|
|
+ statName: '转运时间'
|
|
}
|
|
}
|
|
]
|
|
]
|
|
}
|
|
}
|
|
@@ -427,10 +420,12 @@ export default {
|
|
// },
|
|
// },
|
|
// },
|
|
// },
|
|
methods: {
|
|
methods: {
|
|
- cellClass(row, column, rowIndex, columnIndex) {
|
|
|
|
- if (['FlightNO', 'PreFlightNO', 'outTransferBaggageCount'].includes(row.column.property)) {
|
|
|
|
- return 'clickCell'
|
|
|
|
|
|
+ cellClass({ row, column, rowIndex, columnIndex }) {
|
|
|
|
+ let classString = commonTableCellClass({ row, column, rowIndex, columnIndex })
|
|
|
|
+ if (['FlightNO', 'PreFlightNO', 'inTransferBaggageCount'].includes(column.property)) {
|
|
|
|
+ classString += '' + 'clickCell'
|
|
}
|
|
}
|
|
|
|
+ return classString
|
|
},
|
|
},
|
|
cellClick(row, column, cell, event) {
|
|
cellClick(row, column, cell, event) {
|
|
switch (column.property) {
|
|
switch (column.property) {
|
|
@@ -443,12 +438,12 @@ export default {
|
|
this.$router.push({ path: '/transfer/arrival/flightView', query: row2 })
|
|
this.$router.push({ path: '/transfer/arrival/flightView', query: row2 })
|
|
break
|
|
break
|
|
}
|
|
}
|
|
- case 'outTransferBaggageCount':
|
|
|
|
|
|
+ case 'inTransferBaggageCount':
|
|
this.$router.push({
|
|
this.$router.push({
|
|
path: '/advance',
|
|
path: '/advance',
|
|
query: {
|
|
query: {
|
|
- FlightNO: row.PreFlightNO,
|
|
|
|
- transferDeparture: row.FlightNO,
|
|
|
|
|
|
+ FlightNO: row.FlightNO,
|
|
|
|
+ transferArrival: row.PreFlightNO,
|
|
startDate: row.FlightDate,
|
|
startDate: row.FlightDate,
|
|
endDate: row.FlightDate
|
|
endDate: row.FlightDate
|
|
}
|
|
}
|
|
@@ -738,7 +733,7 @@ export default {
|
|
// this.arraySpanMethod();
|
|
// this.arraySpanMethod();
|
|
let that = this
|
|
let that = this
|
|
this.loopEvent = setInterval(function () {
|
|
this.loopEvent = setInterval(function () {
|
|
- console.log(this.contactDot)
|
|
|
|
|
|
+ // console.log(this.contactDot)
|
|
that.getTableData()
|
|
that.getTableData()
|
|
}, 3000)
|
|
}, 3000)
|
|
},
|
|
},
|