Commit c2b5623c authored by 黄奎's avatar 黄奎

机场新增时区显示

parent 91d88884
......@@ -77,6 +77,7 @@
<th>{{$t('system.table_ENname')}}</th>
<th>{{$t('system.query_IATA')}}</th>
<th>{{$t('system.query_ICAO')}}</th>
<th>所属时区</th>
<th>{{$t('system.table_city')}}</th>
<th>{{$t('hotel.table_operater')}}</th>
<th>{{$t('hotel.table_operattime')}}</th>
......@@ -87,6 +88,7 @@
<td>{{item.En_name}}</td>
<td>{{item.IATA}}</td>
<td>{{item.ICAO}}</td>
<td>{{item.UTCZone}}</td>
<td>{{item.CityName}}</td>
<td>{{item.EmName}}</td>
<td>{{item.UpdateDate}}</td>
......@@ -149,7 +151,8 @@
<el-input type="text" v-model="addMsg.En_name" :placeholder="$t('system.ph_ENname')" class="w210"></el-input>
</el-form-item>
<el-form-item :label="$t('system.query_IATA')" prop="IATA">
<el-input type="text" v-model="addMsg.IATA" :placeholder="$t('system.ph_IATA')" maxlength="3" class="w210">
<el-input type="text" v-model="addMsg.IATA" :placeholder="$t('system.ph_IATA')" maxlength="3" class="w210"
@blur="getAirportConfig()">
</el-input>
</el-form-item>
<el-form-item :label="$t('system.query_ICAO')" prop="ICAO">
......@@ -160,6 +163,9 @@
<el-input type="text" v-model="addMsg.RankNum" :placeholder="$t('system.table_rankNum')" class="w210"
@keyup.native="checkInteger(addMsg,'RankNum')"></el-input>
</el-form-item>
<el-form-item label="所属时区">
<el-input type="text" v-model="addMsg.UTCZone" class="w210"></el-input>
</el-form-item>
<el-form-item :label="$t('objFill.jingdu')">
<el-input type="text" v-model="addMsg.Lng" class="w210"></el-input>
</el-form-item>
......@@ -209,6 +215,7 @@
//纬
Lat: '',
TrafficType: 1, //机场
UTCZone: 0, //时区
},
DataList: [],
BranchGetList: [],
......@@ -231,44 +238,32 @@
required: true,
message: this.$t('visaT.qxzguojia'),
trigger: 'change'
}
//{ min: 3, max: 5, message: '长度在 3 到 5 个字符', trigger: 'blur' }
],
}],
Province_id: [{
required: true,
message: this.$t('ground.qxzs'),
trigger: 'change'
}
//{ min: 3, max: 5, message: '长度在 3 到 5 个字符', trigger: 'blur' }
],
}],
City_id: [{
required: true,
message: this.$t('objFill.qxzshi'),
trigger: 'change'
}
//{ min: 3, max: 5, message: '长度在 3 到 5 个字符', trigger: 'blur' }
],
}],
District_id: [{
required: true,
message: this.$t('objFill.qxzquxian'),
trigger: 'change'
}
//{ min: 3, max: 5, message: '长度在 3 到 5 个字符', trigger: 'blur' }
],
}],
Name: [{
required: true,
message: this.$t('system.ph_name'),
trigger: 'blur'
}
//{ min: 3, max: 5, message: '长度在 3 到 5 个字符', trigger: 'blur' }
],
}],
En_name: [{
required: true,
message: this.$t('system.ph_ENname'),
trigger: 'blur'
}
//{ min: 3, max: 5, message: '长度在 3 到 5 个字符', trigger: 'blur' }
],
}],
IATA: [{
required: true,
message: this.$t('system.ph_IATA'),
......@@ -297,6 +292,29 @@
}
},
methods: {
getAirportConfig() {
var pMsg = {
IATA: this.addMsg.IATA,
};
if (pMsg.IATA && pMsg.IATA != '') {
this.apipost('airport_post_GetAirportConfig', pMsg, res => {
if (res.data.resultCode == 1) {
var tempData = res.data.data;
if (tempData) {
if (tempData.UTCZone) {
this.addMsg.UTCZone = tempData.UTCZone;
}
if (tempData.Lat) {
this.addMsg.Lat = tempData.Lat;
}
if (tempData.Lng) {
this.addMsg.Lng = tempData.Lng;
}
}
}
}, err => {})
}
},
getList() { //获取列表
this.loading = true;
if (this.msg.Country_id == '') {
......@@ -507,6 +525,7 @@
this.addMsg.Lng = '';
this.addMsg.Lat = '';
this.addMsg.TrafficType = 1;
this.addMsg.UTCZone = 0;
},
resetPageIndex() { //查询初始化页码
this.msg.pageIndex = 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment