Created
July 6, 2018 12:45
-
-
Save BerezhniyDmitro/e93dbddc5ee9389d859854d7209aef50 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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