<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>