diff --git a/src/components/UserPanel.vue b/src/components/UserPanel.vue index d6acb9a99..6037b6405 100644 --- a/src/components/UserPanel.vue +++ b/src/components/UserPanel.vue @@ -9,12 +9,14 @@ import { useSession } from 'src/composables/useSession'; import { localeEquivalence } from 'src/i18n/index'; import VnSelectFilter from 'src/components/common/VnSelectFilter.vue'; import VnRow from 'components/ui/VnRow.vue'; +import FetchData from 'components/FetchData.vue'; const state = useState(); const session = useSession(); const router = useRouter(); const { t, locale } = useI18n(); import { useClipboard } from 'src/composables/useClipboard'; +import { ref } from 'vue'; const { copyText } = useClipboard(); const userLocale = computed({ get() { @@ -47,6 +49,9 @@ const darkMode = computed({ const user = state.getUser(); const token = session.getToken(); +const warehousesData = ref(); +const companiesData = ref(); +const accountBankData = ref(); onMounted(async () => { updatePreferences(); @@ -86,12 +91,35 @@ function logout() { function copyUserToken() { copyText(session.getToken(), { label: 'components.userPanel.copyToken' }); } + +console.log('userWarehouse1', user); +console.log('userWarehouse', user.value); +console.log('userWarehouse', user.value.warehouseFk); +console.log('userWarehouse', user.value.warehouseFk.name); @@ -181,6 +237,16 @@ function copyUserToken() { cursor: alias; } } + +.icon { + align-items: center; + padding-left: 7.5%; +} + +.center { + display: flex; + flex: 0.96; +}