Skip to content

Instantly share code, notes, and snippets.

@BerezhniyDmitro
Created July 6, 2018 12:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BerezhniyDmitro/e93dbddc5ee9389d859854d7209aef50 to your computer and use it in GitHub Desktop.
Save BerezhniyDmitro/e93dbddc5ee9389d859854d7209aef50 to your computer and use it in GitHub Desktop.
<template>
<div id="associate-role">
<md-input-container>
<md-autocomplete v-model="selectedProfile" :fetch="profiles" md-dense>
<label>Профили</label>
</md-autocomplete>
</md-input-container>
</div>
</template>
<script>
export default {
name: 'associate-role',
data () {
return {
profiles: [],
users:[],
selectedProfile: null
}
},
created () {
this.getUserData();
},
methods: {
getUserData: function () {
console.log(123);
axios.post('get_user_data').then(
response => {
this.users = response.data.users;
this.profiles = response.data.profiles;
}
).catch(e => {});
},
},
}
</script>
<style lang="sass">
#associate-role
p
color: green
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment