Commit c2b5623c authored by 黄奎's avatar 黄奎

机场新增时区显示

parent 91d88884
...@@ -77,6 +77,7 @@ ...@@ -77,6 +77,7 @@
<th>{{$t('system.table_ENname')}}</th> <th>{{$t('system.table_ENname')}}</th>
<th>{{$t('system.query_IATA')}}</th> <th>{{$t('system.query_IATA')}}</th>
<th>{{$t('system.query_ICAO')}}</th> <th>{{$t('system.query_ICAO')}}</th>
<th>所属时区</th>
<th>{{$t('system.table_city')}}</th> <th>{{$t('system.table_city')}}</th>
<th>{{$t('hotel.table_operater')}}</th> <th>{{$t('hotel.table_operater')}}</th>
<th>{{$t('hotel.table_operattime')}}</th> <th>{{$t('hotel.table_operattime')}}</th>
...@@ -87,6 +88,7 @@ ...@@ -87,6 +88,7 @@
<td>{{item.En_name}}</td> <td>{{item.En_name}}</td>
<td>{{item.IATA}}</td> <td>{{item.IATA}}</td>
<td>{{item.ICAO}}</td> <td>{{item.ICAO}}</td>
<td>{{item.UTCZone}}</td>
<td>{{item.CityName}}</td> <td>{{item.CityName}}</td>
<td>{{item.EmName}}</td> <td>{{item.EmName}}</td>
<td>{{item.UpdateDate}}</td> <td>{{item.UpdateDate}}</td>
...@@ -149,7 +151,8 @@ ...@@ -149,7 +151,8 @@
<el-input type="text" v-model="addMsg.En_name" :placeholder="$t('system.ph_ENname')" class="w210"></el-input> <el-input type="text" v-model="addMsg.En_name" :placeholder="$t('system.ph_ENname')" class="w210"></el-input>
</el-form-item> </el-form-item>
<el-form-item :label="$t('system.query_IATA')" prop="IATA"> <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-input>
</el-form-item> </el-form-item>
<el-form-item :label="$t('system.query_ICAO')" prop="ICAO"> <el-form-item :label="$t('system.query_ICAO')" prop="ICAO">
...@@ -160,11 +163,14 @@ ...@@ -160,11 +163,14 @@
<el-input type="text" v-model="addMsg.RankNum" :placeholder="$t('system.table_rankNum')" class="w210" <el-input type="text" v-model="addMsg.RankNum" :placeholder="$t('system.table_rankNum')" class="w210"
@keyup.native="checkInteger(addMsg,'RankNum')"></el-input> @keyup.native="checkInteger(addMsg,'RankNum')"></el-input>
</el-form-item> </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-form-item :label="$t('objFill.jingdu')">
<el-input type="text" v-model="addMsg.Lng" class="w210"></el-input> <el-input type="text" v-model="addMsg.Lng" class="w210"></el-input>
</el-form-item> </el-form-item>
<el-form-item :label="$t('objFill.weidu')"> <el-form-item :label="$t('objFill.weidu')">
<el-input type="text" v-model="addMsg.Lat" class="w210"></el-input> <el-input type="text" v-model="addMsg.Lat" class="w210"></el-input>
</el-form-item> </el-form-item>
</el-form> </el-form>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
...@@ -209,6 +215,7 @@ ...@@ -209,6 +215,7 @@
//纬 //纬
Lat: '', Lat: '',
TrafficType: 1, //机场 TrafficType: 1, //机场
UTCZone: 0, //时区
}, },
DataList: [], DataList: [],
BranchGetList: [], BranchGetList: [],
...@@ -228,47 +235,35 @@ ...@@ -228,47 +235,35 @@
dialogTitle: '', dialogTitle: '',
rules: { //表单必填验证 rules: { //表单必填验证
Country_id: [{ Country_id: [{
required: true, required: true,
message: this.$t('visaT.qxzguojia'), message: this.$t('visaT.qxzguojia'),
trigger: 'change' trigger: 'change'
} }],
//{ min: 3, max: 5, message: '长度在 3 到 5 个字符', trigger: 'blur' }
],
Province_id: [{ Province_id: [{
required: true, required: true,
message: this.$t('ground.qxzs'), message: this.$t('ground.qxzs'),
trigger: 'change' trigger: 'change'
} }],
//{ min: 3, max: 5, message: '长度在 3 到 5 个字符', trigger: 'blur' }
],
City_id: [{ City_id: [{
required: true, required: true,
message: this.$t('objFill.qxzshi'), message: this.$t('objFill.qxzshi'),
trigger: 'change' trigger: 'change'
} }],
//{ min: 3, max: 5, message: '长度在 3 到 5 个字符', trigger: 'blur' }
],
District_id: [{ District_id: [{
required: true, required: true,
message: this.$t('objFill.qxzquxian'), message: this.$t('objFill.qxzquxian'),
trigger: 'change' trigger: 'change'
} }],
//{ min: 3, max: 5, message: '长度在 3 到 5 个字符', trigger: 'blur' }
],
Name: [{ Name: [{
required: true, required: true,
message: this.$t('system.ph_name'), message: this.$t('system.ph_name'),
trigger: 'blur' trigger: 'blur'
} }],
//{ min: 3, max: 5, message: '长度在 3 到 5 个字符', trigger: 'blur' }
],
En_name: [{ En_name: [{
required: true, required: true,
message: this.$t('system.ph_ENname'), message: this.$t('system.ph_ENname'),
trigger: 'blur' trigger: 'blur'
} }],
//{ min: 3, max: 5, message: '长度在 3 到 5 个字符', trigger: 'blur' }
],
IATA: [{ IATA: [{
required: true, required: true,
message: this.$t('system.ph_IATA'), message: this.$t('system.ph_IATA'),
...@@ -297,6 +292,29 @@ ...@@ -297,6 +292,29 @@
} }
}, },
methods: { 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() { //获取列表 getList() { //获取列表
this.loading = true; this.loading = true;
if (this.msg.Country_id == '') { if (this.msg.Country_id == '') {
...@@ -507,6 +525,7 @@ ...@@ -507,6 +525,7 @@
this.addMsg.Lng = ''; this.addMsg.Lng = '';
this.addMsg.Lat = ''; this.addMsg.Lat = '';
this.addMsg.TrafficType = 1; this.addMsg.TrafficType = 1;
this.addMsg.UTCZone = 0;
}, },
resetPageIndex() { //查询初始化页码 resetPageIndex() { //查询初始化页码
this.msg.pageIndex = 1; 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