|
@@ -1,7 +1,7 @@
|
|
|
<!--
|
|
|
* @Author: zk
|
|
|
* @Date: 2022-01-17 10:39:22
|
|
|
- * @LastEditTime: 2022-05-16 16:01:33
|
|
|
+ * @LastEditTime: 2022-05-17 17:08:03
|
|
|
* @LastEditors: your name
|
|
|
* @Description: 离港01
|
|
|
-->
|
|
@@ -139,19 +139,6 @@
|
|
|
active-text="显示中转"
|
|
|
/>
|
|
|
</el-form-item> -->
|
|
|
- <!-- <el-form-item v-is="['i_timeIcon']">
|
|
|
- <el-dropdown>
|
|
|
- <img
|
|
|
- class="checkTime msgImg"
|
|
|
- src="../../../../assets/departure/ic_time.png"
|
|
|
- />切换视角
|
|
|
- <el-dropdown-menu slot="dropdown" class="time-zone">
|
|
|
- <el-dropdown-item>国内Local/国际UTC</el-dropdown-item>
|
|
|
- <el-dropdown-item>Local</el-dropdown-item>
|
|
|
- <el-dropdown-item>UTC</el-dropdown-item>
|
|
|
- </el-dropdown-menu>
|
|
|
- </el-dropdown>
|
|
|
- </el-form-item> -->
|
|
|
<el-form-item v-is="['ti_showTransit']">
|
|
|
<el-button
|
|
|
size="small"
|
|
@@ -160,20 +147,7 @@
|
|
|
>切换视角</el-button>
|
|
|
</el-form-item>
|
|
|
<el-form-item v-is="['i_timeIcon']">
|
|
|
- <el-dropdown>
|
|
|
- <img
|
|
|
- class="checkTime msgImg"
|
|
|
- src="../../../../assets/departure/ic_time.png"
|
|
|
- >
|
|
|
- <el-dropdown-menu
|
|
|
- slot="dropdown"
|
|
|
- class="time-zone"
|
|
|
- >
|
|
|
- <el-dropdown-item>国内Local/国际UTC</el-dropdown-item>
|
|
|
- <el-dropdown-item>Local</el-dropdown-item>
|
|
|
- <el-dropdown-item>UTC</el-dropdown-item>
|
|
|
- </el-dropdown-menu>
|
|
|
- </el-dropdown>
|
|
|
+ <TimeZoneSelector />
|
|
|
</el-form-item>
|
|
|
<el-form-item>
|
|
|
<img
|
|
@@ -232,7 +206,10 @@
|
|
|
:formatter="tableFormat"
|
|
|
>
|
|
|
<template slot="header">
|
|
|
- <el-tooltip :content="p.statName" placement="top"><span>{{ p.statName }}</span></el-tooltip>
|
|
|
+ <el-tooltip
|
|
|
+ :content="p.statName"
|
|
|
+ placement="top"
|
|
|
+ ><span>{{ p.statName }}</span></el-tooltip>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table-column>
|
|
@@ -279,16 +256,18 @@
|
|
|
|
|
|
<script>
|
|
|
import Dialog from '@/layout/components/Dialog'
|
|
|
+import TimeZoneSelector from '@/components/TimeZoneSelector'
|
|
|
import terminalMixin from '../../mixins/terminal'
|
|
|
import formMixin from '../../mixins/form'
|
|
|
import tableColsMixin from '../../mixins/tableCols'
|
|
|
+import timeZoneMixin from '../../mixins/timeZone'
|
|
|
import { getQuery } from '@/api/flight'
|
|
|
import { commonTableCellClass } from '@/utils/table'
|
|
|
|
|
|
export default {
|
|
|
name: 'DepartureTerminalView',
|
|
|
- components: { Dialog },
|
|
|
- mixins: [terminalMixin, formMixin, tableColsMixin],
|
|
|
+ components: { Dialog, TimeZoneSelector },
|
|
|
+ mixins: [terminalMixin, formMixin, tableColsMixin, timeZoneMixin],
|
|
|
data() {
|
|
|
return {
|
|
|
optionProps: {
|
|
@@ -423,6 +402,15 @@ export default {
|
|
|
created() {
|
|
|
this.getAirPortData()
|
|
|
},
|
|
|
+ mounted() {
|
|
|
+ const that = this
|
|
|
+ this.loopEvent = setInterval(function () {
|
|
|
+ that.getTableData()
|
|
|
+ }, 3000)
|
|
|
+ },
|
|
|
+ beforeDestroy() {
|
|
|
+ clearInterval(this.loopEvent)
|
|
|
+ },
|
|
|
methods: {
|
|
|
cellClass({ row, column, rowIndex, columnIndex }) {
|
|
|
let classString = commonTableCellClass({ row, column, rowIndex, columnIndex })
|
|
@@ -467,7 +455,7 @@ export default {
|
|
|
this.upAviationData()
|
|
|
// this.getTableData();
|
|
|
},
|
|
|
- //选择机场
|
|
|
+ // 选择机场
|
|
|
async getAirPortData() {
|
|
|
try {
|
|
|
const res = await getQuery({
|
|
@@ -487,7 +475,7 @@ export default {
|
|
|
console.log('出错了', error)
|
|
|
}
|
|
|
},
|
|
|
- //选择航司
|
|
|
+ // 选择航司
|
|
|
async getAviationData() {
|
|
|
try {
|
|
|
const res = await getQuery({
|
|
@@ -504,7 +492,7 @@ export default {
|
|
|
console.log('出错了', error)
|
|
|
}
|
|
|
},
|
|
|
- //选择航司
|
|
|
+ // 选择航司
|
|
|
async upAviationData() {
|
|
|
try {
|
|
|
const res = await getQuery({
|
|
@@ -522,8 +510,8 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
tableRowClassName({ row, rowIndex }) {
|
|
|
- if (row.hasTakenOff == 0) {
|
|
|
- if (rowIndex == this.leaveCount - 1) {
|
|
|
+ if (row.hasTakenOff === 0) {
|
|
|
+ if (rowIndex === this.leaveCount - 1) {
|
|
|
return 'bgl-hui redBorder'
|
|
|
} else {
|
|
|
return 'bgl-hui'
|
|
@@ -558,9 +546,9 @@ export default {
|
|
|
// this.formData.inboundCarrier,
|
|
|
// this.formData.outgoingAirline,
|
|
|
// ];
|
|
|
- let arrs1 = [this.formData.inboundCarrier.length == 0 ? '' : this.formData.inboundCarrier[0]]
|
|
|
- let arrs2 = [this.formData.outgoingAirline.length == 0 ? '' : this.formData.outgoingAirline[0]]
|
|
|
- let arr = [
|
|
|
+ const arrs1 = [this.formData.inboundCarrier.length === 0 ? '' : this.formData.inboundCarrier[0]]
|
|
|
+ const arrs2 = [this.formData.outgoingAirline.length === 0 ? '' : this.formData.outgoingAirline[0]]
|
|
|
+ const arr = [
|
|
|
this.formData.currentAirport,
|
|
|
this.formData.startDate,
|
|
|
this.formData.endDate,
|
|
@@ -598,7 +586,7 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
- //this.initTableData(res.returnData);
|
|
|
+ // this.initTableData(res.returnData);
|
|
|
} else {
|
|
|
console.log(res.message)
|
|
|
}
|
|
@@ -611,7 +599,7 @@ export default {
|
|
|
this.leaveCount = 0
|
|
|
this.baggageCount = 0
|
|
|
tableData.forEach(item => {
|
|
|
- if (item.hasTakenOff == 0) {
|
|
|
+ if (item.hasTakenOff === 0) {
|
|
|
this.leaveCount++
|
|
|
}
|
|
|
// item["waitfanj"] = item["noCheckInNumber"] - item["unLoad"];
|
|
@@ -710,15 +698,6 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- },
|
|
|
- mounted() {
|
|
|
- let that = this
|
|
|
- this.loopEvent = setInterval(function () {
|
|
|
- that.getTableData()
|
|
|
- }, 3000)
|
|
|
- },
|
|
|
- beforeDestroy() {
|
|
|
- clearInterval(this.loopEvent)
|
|
|
}
|
|
|
}
|
|
|
</script>
|