45 lines
1.7 KiB
Vue
45 lines
1.7 KiB
Vue
<template>
|
|
<v-app-bar v-if="props.isAuth" density="compact" color="teal-darken-4" elevation="1">
|
|
<template v-slot:image>
|
|
<v-img gradient="to top right, rgba(19,84,122,.8), rgba(128,208,199,.8)" />
|
|
</template>
|
|
<v-icon :icon="props.showSideBar ? 'mdi-chevron-right' : 'mdi-chevron-left'" rounded="0" @click="$emit('showSide')" class="pl-7" size="small"/>
|
|
<v-col cols="3" class="d-flex align-center ml-3 cursor-pointer" @click="router.push('/')">
|
|
<v-img :src="props.logo" max-height="45" max-width="45"/>
|
|
<v-app-bar-title class="pl-2 text-h6 font-weight-bold">Портал МИ ФНС России по ЦОД № 2</v-app-bar-title>
|
|
</v-col>
|
|
<v-col class="d-flex justify-end align-center">
|
|
<vcard-user :author="props.author"/>
|
|
<AppNavigation />
|
|
</v-col>
|
|
</v-app-bar>
|
|
<v-app-bar v-else density="compact" color="teal-darken-4" elevation="1">
|
|
<template v-slot:image>
|
|
<v-img gradient="to top right, rgba(19,84,122,.8), rgba(128,208,199,.8)" />
|
|
</template>
|
|
<v-col class="d-flex justify-end">
|
|
<AuthForm @challengealert="alarm= true"/>
|
|
</v-col>
|
|
</v-app-bar>
|
|
</template>
|
|
|
|
<script setup>
|
|
import router from '@/router';
|
|
import vcardUser from '@/components/UI/fiousercard/vcardUser.vue';
|
|
import AppNavigation from '@/components/UI/AppHeader/AppNavigation.vue';
|
|
import AuthForm from '@/components/UI/Auth-form.vue';
|
|
|
|
import { ref } from 'vue';
|
|
|
|
const props = defineProps({
|
|
showSideBar: Boolean,
|
|
logo: String,
|
|
author: Object,
|
|
isAuth: Boolean,
|
|
})
|
|
|
|
defineEmits(['showSide'])
|
|
|
|
const alarm = ref(false)
|
|
|
|
</script> |