Комметнарии

This commit is contained in:
iriska-gri committed 2023-10-09 17:00:12 +03:00
1 parent eb48b4360c
commit a5cf33553b
10 files changed
+163 -87

No files matched your search

+21 -27
View File
@@ -19,23 +19,7 @@
title="Портал МиФНС по ЦОД № 2"
variant="text"
:to="'/'" />
<!-- @click="drawer = !drawer" -->
<!-- <v-app-bar-nav-icon
:to="'/'"
>
<img
style="cursor:pointer"
:src="imageSrc"
/>
</v-app-bar-nav-icon> -->
<!-- <v-toolbar-title >
Портал МиФНС по ЦОД № 2
</v-toolbar-title> -->
<template v-slot:image>
<v-img gradient="to top right, rgba(19,84,122,.8), rgba(128,208,199,.8)" />
</template>
@@ -111,7 +95,7 @@
</template>
</template>
</v-app-bar>
<v-navigation-drawer :rail="rail" permanent v-model="drawer">
<v-navigation-drawer :width="245" :rail="rail" permanent v-model="drawer">
<v-row class="my-0 h-100">
<v-col class="flex-column d-flex">
<v-row><v-col>
@@ -127,11 +111,12 @@
color="navigation">
<template v-slot:prepend>
<v-icon :icon="x.ico" />
<v-icon :icon="x.ico"/>
</template>
</v-list-item>
<v-list-group v-else
:class="rail?'railmenu':''"
:key="key"
:value="x.name">
<template v-slot:activator="{ props }">
@@ -141,12 +126,13 @@
:prepend-icon="x.ico" />
</template>
<v-list-item v-for="(child, k) in x.submenu"
:href="child.link"
:key="k"
:value="child.name"
:title="child.name"
:title="!rail?child.name:menuTruncated(child.name)"
:to="child.path"
:prepend-icon="child.subIcon">
>
</v-list-item>
</v-list-group>
</template>
@@ -167,8 +153,8 @@
</v-col>
</v-row>
<v-row class="flex-grow-0">
<v-col class="py-0 pl-1">
<v-list>
<v-col class="py-0 pl-1 d-flex flex-column">
<v-list class=" d-flex flex-column ">
<v-list-item v-if="!rail" class="text-caption font-weight-bold text-truncate">
<p>Посещений всего: {{ appStore.countvisitor.totalvisit }}</p>
@@ -180,12 +166,12 @@
</v-list-item>
<v-list-item v-else>
<v-list-item v-else class="align-center ml-2">
<v-tooltip
v-model="showTooltip"
location="top">
<template v-slot:activator="{ props }">
<v-icon v-bind="props" color="grey">
<v-icon v-bind="props" color="#7A7A7A">
mdi-account-eye
</v-icon>
</template>
@@ -398,9 +384,12 @@ export default {
const drawer_right = ref(true)
const menuGetUserDialog = ref(false)
const LikeDialog = ref(false)
const rail = ref(true)
const rail = ref(false)
const showTooltip = ref(false)
const menuTruncated = (menus) => {
return menus.slice(0,2).toUpperCase()
}
const toggleTheme = () => {
theme.global.name.value = theme.global.current.value.dark ? 'light' : 'dark'
@@ -485,7 +474,8 @@ export default {
// userlinks,
appStore,
rail,
showTooltip
showTooltip,
menuTruncated
}
}
@@ -504,4 +494,8 @@ export default {
display: flex;
align-items: center;
}
.railmenu .v-list-group__items .v-list-item {
padding-inline-start: 11px!important;
}
</style>