|
@@ -11,6 +11,11 @@
|
|
|
<div ref="formWrap" class="terminal-form-wrap">
|
|
|
<el-form ref="form" :inline="true" :model="formData" :rules="rules" class="form">
|
|
|
<div class="form-left">
|
|
|
+ <!-- <el-form-item prop="company">
|
|
|
+ <el-select v-model="formData.company" class="input-shadow" size="small" style="width: 150px" filterable default-first-option placeholder="请选择航班属性" @change="airPortChange">
|
|
|
+ <el-option v-for="(item, index) in companyOptions" :key="index" :label="item.label" :value="item.value" />
|
|
|
+ </el-select>
|
|
|
+ </el-form-item> -->
|
|
|
<el-form-item prop="currentAirport">
|
|
|
<el-select v-model="formData.currentAirport" class="input-shadow" size="small" style="width: 150px" filterable default-first-option placeholder="请选择机场" @change="airPortChange">
|
|
|
<el-option v-for="(item, index) in AirportList" :key="index" :label="item.IATACode" :value="item.IATACode" />
|
|
@@ -80,7 +85,8 @@ export default {
|
|
|
},
|
|
|
loading: false,
|
|
|
AirportList: [],
|
|
|
- tableTag: {}
|
|
|
+ tableTag: {},
|
|
|
+ timer: null
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
@@ -92,6 +98,15 @@ export default {
|
|
|
created () {
|
|
|
this.getAirPortData()
|
|
|
},
|
|
|
+ mounted () {
|
|
|
+ this.timer = setInterval(() => {
|
|
|
+ this.getAirPortData()
|
|
|
+ }, LOOP_INTERVAL.departureTable)
|
|
|
+ },
|
|
|
+ destroyed () {
|
|
|
+ clearInterval(this.timer)
|
|
|
+ this.timer = null
|
|
|
+ },
|
|
|
methods: {
|
|
|
airPortChange (val) {
|
|
|
this.formData.currentAirport = val
|