Edit/View Airport
This commit is contained in:
@@ -3,19 +3,19 @@
|
||||
<div>
|
||||
<el-row>
|
||||
<el-col :span="7">ICAO :</el-col>
|
||||
<el-col :span="15">{{ this.$store.state.Editable.data.airports[this.$store.state.Editable.index].icao }}</el-col>
|
||||
<el-col :span="15">{{ icao }}</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="7">Name :</el-col>
|
||||
<el-col :span="15">{{ this.$store.state.Editable.data.airports[this.$store.state.Editable.index].name }}</el-col>
|
||||
<el-col :span="15">{{ name }}</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="7">Flights :</el-col>
|
||||
<el-col :span="15">{{ this.$store.state.Editable.data.airports[this.$store.state.Editable.index].flights }}</el-col>
|
||||
<el-col :span="15">{{ flights }}</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="7">Airlines :</el-col>
|
||||
<el-col :span="15">{{ this.$store.state.Editable.data.airports[this.$store.state.Editable.index].airlines }}</el-col>
|
||||
<el-col :span="15">{{ airlines }}</el-col>
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="7">Groundnet :</el-col>
|
||||
@@ -23,7 +23,7 @@
|
||||
</el-row>
|
||||
<el-row>
|
||||
<el-col :span="7">Parking Positions :</el-col>
|
||||
<el-col :span="15">{{ this.$store.state.Editable.data.airports[this.$store.state.Editable.index].parking }}</el-col>
|
||||
<el-col :span="15">{{ parking }}</el-col>
|
||||
</el-row>
|
||||
</div>
|
||||
</div>
|
||||
@@ -32,11 +32,26 @@
|
||||
<script lang="js">
|
||||
export default {
|
||||
computed: {
|
||||
airport: function () {
|
||||
return this.$store.state.Editable.type === 'airport'
|
||||
icao: function () {
|
||||
return this.$store.state.Editable.data.airport.icao
|
||||
},
|
||||
name: function () {
|
||||
return this.$store.state.Editable.data.airport.name
|
||||
},
|
||||
flights: function () {
|
||||
return this.$store.state.Editable.data.airport.flights
|
||||
},
|
||||
airlines: function () {
|
||||
return this.$store.state.Editable.data.airport.airlines
|
||||
},
|
||||
groundnet: function () {
|
||||
return this.$store.state.Editable.data.airports[this.$store.state.Editable.index].groundnet
|
||||
return this.$store.state.Editable.data.airport.groundnet
|
||||
},
|
||||
parking: function () {
|
||||
return this.$store.state.Editable.data.airport.parking
|
||||
},
|
||||
airport: function () {
|
||||
return this.$store.state.Editable.type === 'airport'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user