You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

24 lines
527 B

<template>
<md-select v-model="selected">
<md-option :value="null">Выбрать все</md-option>
<md-option v-for="srv in servers" :key="srv['srv']" :value="srv['srv']">{{srv['name']}}</md-option>
</md-select>
</template>
<script>
export default {
name: "ServerSelect",
data: () => ({
servers: [],
selected: null
}),
beforeMount() {
this.servers = this.$API.getServers4Selector();
console.log(this.servers);
},
methods: {
getSelected() { return this.selected; }
}
}
</script>