feat(account): add basic view of an account"

This commit is contained in:
2021-11-23 01:46:39 +01:00
parent d7b1e51016
commit e332d6ab12
6 changed files with 73 additions and 18 deletions

View File

@@ -0,0 +1,51 @@
<template>
<div class="account-tab">
<b-card no-body>
<b-tabs card>
<b-tab :title=account.name >
</b-tab>
</b-tabs>
</b-card>
</div>
</template>
<script>
import {BCard, BTabs , BTab} from "bootstrap-vue";
import {getAnAccount} from "@/config/noscomptes";
export default {
name: 'account',
data: function () {
return {
account: {},
}
},
beforeCreate() {
let loggedUser = this.$store.state.loggedUser
getAnAccount(loggedUser.oauth_token, loggedUser.nosComptesId, this.$route.params.accountId).then(data => {
this.account = data
})
},
mounted () {
},
methods: {
loadAccount() {
let loggedUser = this.$store.state.loggedUser
getAnAccount(loggedUser.oauth_token, loggedUser.nosComptesId, this.$route.params.accountId).then(data => {
this.account = data
})
},
},
components: {
BCard,
BTabs,
BTab
}
}
</script>
<style>
</style>