240 lines
5.8 KiB
Vue
240 lines
5.8 KiB
Vue
<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" >
|
|
<v-row class="flex-column flex-grow-0 mb-1">
|
|
<Carousel-numbers
|
|
:digitalData="stat"/>
|
|
</v-row>
|
|
<v-row class="pt-1 flex-column mt-0 mb-0 ">
|
|
<v-card class="d-flex flex-column ml-3">
|
|
<div class="fg">
|
|
<v-banner
|
|
lines="one"
|
|
icon="mdi-lock"
|
|
color="deep-purple-accent-4"
|
|
class="my-4"
|
|
>
|
|
<v-banner-text>
|
|
Banner with one line of text.
|
|
</v-banner-text>
|
|
|
|
<template v-slot:actions>
|
|
<v-btn>Action</v-btn>
|
|
</template>
|
|
</v-banner>
|
|
|
|
<v-banner
|
|
lines="two"
|
|
icon="mdi-weather-hurricane"
|
|
color="error"
|
|
class="my-4"
|
|
>
|
|
<v-banner-text>
|
|
Banner with two lines of text. If the text is too long to fit on two lines then an ellipsis will be used to hide the remaining content. So this next line will be hidden.
|
|
</v-banner-text>
|
|
|
|
<template v-slot:actions>
|
|
<v-btn>Action</v-btn>
|
|
</template>
|
|
</v-banner>
|
|
|
|
<v-banner
|
|
lines="three"
|
|
icon="$warning"
|
|
color="warning"
|
|
class="my-4"
|
|
>
|
|
<v-banner-text>
|
|
Banner with three lines of text. One or two lines is preferable. Three lines should be considered the absolute maximum length on desktop in order to keep messages short and actionable.
|
|
</v-banner-text>
|
|
|
|
<template v-slot:actions>
|
|
<v-btn>Action</v-btn>
|
|
</template>
|
|
</v-banner>
|
|
<v-banner
|
|
lines="three"
|
|
icon="$warning"
|
|
color="warning"
|
|
class="my-4"
|
|
>
|
|
<v-banner-text>
|
|
Banner with three lines of text. One or two lines is preferable. Three lines should be considered the absolute maximum length on desktop in order to keep messages short and actionable.
|
|
</v-banner-text>
|
|
|
|
<template v-slot:actions>
|
|
<v-btn>Action</v-btn>
|
|
</template>
|
|
</v-banner>
|
|
</div>
|
|
</v-card>
|
|
|
|
<!-- <Carousel-numbers
|
|
:digitalData="onlines"
|
|
/> -->
|
|
|
|
</v-row>
|
|
|
|
|
|
</v-col>
|
|
<v-col class="pt-1 pr-0 pb-0 flex-col">
|
|
<!-- <v-locale-provider > -->
|
|
<v-date-picker
|
|
class="d-flex pik"
|
|
color="teal-accent-4"
|
|
|
|
/>
|
|
<!-- </v-locale-provider> -->
|
|
</v-col>
|
|
<!-- <v-col>
|
|
<v-btn
|
|
@click="proba">
|
|
Button
|
|
</v-btn>
|
|
{{appStore.countvisitor.totalvisit}}
|
|
</v-col> -->
|
|
</v-row>
|
|
|
|
</v-col>
|
|
|
|
<v-col class="d-flex flex-column justify-space-between px-0 py-2 pb-0" lg=3>
|
|
<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 { ref, onMounted, computed } from 'vue'
|
|
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'
|
|
import { axiosApiInstance } from '@/utils/axios-api'
|
|
import { VDatePicker } from 'vuetify/labs/VDatePicker'
|
|
|
|
|
|
export default {
|
|
|
|
components: {
|
|
NewsList,
|
|
CarouselList,
|
|
CarouselNumbers,
|
|
VDatePicker
|
|
},
|
|
|
|
setup(){
|
|
const t_baseCriteria = ref([])
|
|
const date1 = new Date()
|
|
|
|
|
|
|
|
|
|
onMounted(() => {
|
|
proba()
|
|
})
|
|
|
|
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', img: "/media/newsimage/numbers/med.jpg"},
|
|
|
|
]
|
|
// const onlines = [
|
|
// {status:'Всего', num: 1, img: "/media/newsimage/numbers/calendar.jpg"},
|
|
// {status:'Сегодня', num: 2, img: "/media/newsimage/numbers/sept.jpg"},
|
|
// {status:'Уникальных', num: 3, img: "/media/newsimage/numbers/uni.jpg"},
|
|
// ]
|
|
const onlines = ref([
|
|
{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"},
|
|
])
|
|
|
|
function proba(){
|
|
axiosApiInstance.get('api/feedback/feedbackdata/')
|
|
.then(data => {
|
|
console.log(data.data);
|
|
t_baseCriteria.value = data.data.results
|
|
|
|
// t_baseCriteria.value.map(e=>
|
|
// console.log(e,'e')
|
|
// // e.rating = e.get_criteria[0].rating
|
|
// )
|
|
})
|
|
}
|
|
return {
|
|
|
|
accountStore,
|
|
stat,
|
|
model,
|
|
onlines,
|
|
appStore,
|
|
proba,
|
|
date1,
|
|
|
|
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
</script>
|
|
<style lang="scss">
|
|
|
|
.v-picker-title, .v-picker__header, .v-picker__actions {
|
|
display: none;
|
|
}
|
|
|
|
.pik {
|
|
height: 97%;
|
|
}
|
|
|
|
.hicard {
|
|
height: 40%!important;
|
|
overflow: auto;
|
|
}
|
|
|
|
.fg {
|
|
height: 240px;
|
|
overflow: auto;
|
|
}
|
|
|
|
</style>
|