None type parking disabled

This commit is contained in:
portree_kid 2020-06-15 21:52:32 +02:00
parent dea6a9bf19
commit ac0879b7b8
2 changed files with 9 additions and 3 deletions

View File

@ -102,6 +102,7 @@
:key="type.value"
:label="type.label"
:value="type.value"
:disabled="type.disabled"
></el-option>
</el-select>
</el-col>
@ -213,6 +214,10 @@
set: function (newValue) {
if (newValue==='unknown') {
}
if( newValue.match(/,/g).length === 3) {
newValue = newValue.replace(', ', ' ').replace(/,/g, '.').replace(' ', ', ');
}
this.$store.commit('SET_EDIT_PARKING_COORDS', newValue)
}
@ -278,7 +283,7 @@
// ga (general aviation), cargo (cargo), gate (commercial passenger traffic),
// mil-fighter (military fighter), mil-cargo (military transport)
options: function () {
return [{value: 'none', label: 'none'},
return [{value: 'none', label: 'none', disabled: true},
{value: 'ga', label: 'general aviation'},
{value: 'cargo', label: 'cargo'},
{value: 'gate', label: 'commercial passenger traffic'},

View File

@ -9,6 +9,7 @@
:key="type.value"
:label="type.label"
:value="type.value"
:disabled="type.disabled"
></el-option>
</el-select>
</div>
@ -31,7 +32,7 @@
},
computed: {
options: function () {
return [{value: 'none', label: 'none'},
return [{value: 'none', label: 'none', disabled: true},
{value: 'ga', label: 'general aviation'},
{value: 'cargo', label: 'cargo'},
{value: 'gate', label: 'commercial passenger traffic'},