|
|
|
@ -6,7 +6,9 @@
|
|
|
|
|
<span class="label">Coordinates :</span>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="17">
|
|
|
|
|
<el-input placeholder="Please input" v-model="coordinates" :disabled="!editing"></el-input>
|
|
|
|
|
<el-input placeholder="Please input" v-model="coordinates" :disabled="!editing"
|
|
|
|
|
@focus="coordFocussed = true"
|
|
|
|
|
@blur="coordFocussed = false"></el-input>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row>
|
|
|
|
@ -14,7 +16,8 @@
|
|
|
|
|
<span class="label">Is on runway :</span>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="15">
|
|
|
|
|
<el-switch v-model="isOnRunway" :disabled="!editing"></el-switch>
|
|
|
|
|
<el-switch v-model="isOnRunway" :disabled="!editing" @focus="runwayFocussed = true"
|
|
|
|
|
@blur="runwayFocussed = false"></el-switch>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
<el-row>
|
|
|
|
@ -22,12 +25,13 @@
|
|
|
|
|
<span class="label">Holdpoint Type :</span>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="15">
|
|
|
|
|
<el-select v-model="holdPointType" placeholder="Select" :disabled="!editing">
|
|
|
|
|
<el-select v-model="holdPointType" placeholder="Select" :disabled="!editing" >
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="type in options"
|
|
|
|
|
:key="type.value"
|
|
|
|
|
:label="type.label"
|
|
|
|
|
:value="type.value"
|
|
|
|
|
:disabled="type.disabled"
|
|
|
|
|
></el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-col>
|
|
|
|
@ -47,6 +51,11 @@
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
*/
|
|
|
|
|
data () {
|
|
|
|
|
return {
|
|
|
|
|
coordFocussed: false, runwayFocussed: false, holdFocussed: false
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
computed: {
|
|
|
|
|
editing: {
|
|
|
|
|
get: function () {
|
|
|
|
@ -54,7 +63,7 @@
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
options: function () {
|
|
|
|
|
return [{value: 'none', label: 'none'}, {value: 'PushBack', label: 'PushBack'}, {value: 'normal', label: 'normal'}, {value: 'CAT II/III', label: 'CAT II/III'}]
|
|
|
|
|
return [{value: 'none', label: 'none', disabled: false }, {value: 'PushBack', label: 'PushBack'}, {value: 'normal', label: 'normal'}, {value: 'CAT II/III', label: 'CAT II/III'}]
|
|
|
|
|
},
|
|
|
|
|
node: function () {
|
|
|
|
|
return this.$store.state.Editable.type === 'node' || this.$store.state.Editable.type === 'runway'
|
|
|
|
@ -69,10 +78,9 @@
|
|
|
|
|
},
|
|
|
|
|
// setter
|
|
|
|
|
set: function (newValue) {
|
|
|
|
|
if (newValue==='unknown') {
|
|
|
|
|
|
|
|
|
|
if (this.coordFocussed) {
|
|
|
|
|
this.$store.commit('SET_EDIT_NODE_COORDS', newValue)
|
|
|
|
|
}
|
|
|
|
|
this.$store.commit('SET_EDIT_NODE_COORDS', newValue)
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
isOnRunway: {
|
|
|
|
@ -82,7 +90,9 @@
|
|
|
|
|
},
|
|
|
|
|
// setter
|
|
|
|
|
set: function (newValue) {
|
|
|
|
|
this.$store.commit('SET_EDIT_ISONRUNWAY', newValue ? 1 : 0)
|
|
|
|
|
if(!this.runwayFocussed) {
|
|
|
|
|
this.$store.commit('SET_EDIT_ISONRUNWAY', newValue ? 1 : 0)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
holdPointType: {
|
|
|
|
|