This commit is contained in:
iriska-gri committed 2023-09-05 16:07:55 +03:00
commit 8c95bbf909
126 files changed
+16922

No files matched your search

+115
View File
@@ -0,0 +1,115 @@
<template>
<v-container fluid class="d-flex mx-0">
<v-row>
<v-col class="d-flex flex-column">
<v-row class="flex-grow-0">
<v-col class="pr-0">
<Carousel-list/>
</v-col>
</v-row>
<v-row>
<v-col class="pt-1 flex-column d-flex mt-3" lg=8>
<v-row class="flex-column">
<Carousel-numbers
:digitalData="stat"/>
</v-row>
<v-row class="pt-1 flex-column mt-0">
<Carousel-numbers
:digitalData="onlines"
/>
</v-row>
</v-col>
</v-row>
</v-col>
<v-col class="d-flex flex-column justify-space-between px-0 py-2 pb-0" lg=4>
<v-card
class="h-100 bg-transparent "
elevation="0"
>
<News-list v-if="accountStore.cod2user"/>
</v-card>
</v-col>
</v-row>
</v-container>
</template>
<script>
import {useAppStore} from '@/store/app'
import {useAccountStore} from '@/store/AccountStore'
import {pagecounter} from '@/utils/universal_functions'
import NewsList from '@/components/news-list.vue'
import CarouselList from '@/components/carousel-list.vue'
import CarouselNumbers from '@/components/carousel-numbers.vue'
export default {
components: {
NewsList,
CarouselList,
CarouselNumbers
},
setup(){
const appStore = useAppStore()
pagecounter()
const model= null
const accountStore = useAccountStore()
const stat = [
{status:'Работают', num:'57', img: "/media/newsimage/default.jpg"},
{status:'В отпуске', num:'13', img: "/media/newsimage/numbers/vacation.jpg"},
{status:'Болеют', num:'3', img: "/media/newsimage/numbers/med.jpg"},
{status:'На море', num:'45', img: "/media/newsimage/numbers/vacation.jpg"},
{status:'В запое', num:'1,5', img: "/media/newsimage/numbers/med.jpg"},
]
const onlines = [
{status:'Всего', num: appStore.countvisitor.totalvisit, img: "/media/newsimage/numbers/calendar.jpg"},
{status:'Сегодня', num: appStore.countvisitor.visittoday, img: "/media/newsimage/numbers/sept.jpg"},
{status:'Уникальных', num: appStore.countvisitor.uniqtoday, img: "/media/newsimage/numbers/uni.jpg"},
]
return {
accountStore,
stat,
model,
onlines,
appStore,
}
}
}
</script>
<style lang="scss">
</style>