Галерея главного экрана
This commit is contained in:
1 parent
6b080ec5f1
commit
3da223f07c
11 files changed
+76
-41
No files matched your search
Generated
+2
-2
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "front",
|
"name": "front",
|
||||||
"version": "0.0.40",
|
"version": "0.0.41",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "front",
|
"name": "front",
|
||||||
"version": "0.0.40",
|
"version": "0.0.41",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@mdi/font": "7.0.96",
|
"@mdi/font": "7.0.96",
|
||||||
"@vuelidate/core": "^2.0.3",
|
"@vuelidate/core": "^2.0.3",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "front",
|
"name": "front",
|
||||||
"version": "0.0.40",
|
"version": "0.0.41",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
"build": "vite build",
|
"build": "vite build",
|
||||||
|
|||||||
@@ -53,4 +53,15 @@ import {useAccountStore} from '@/store/AccountStore'
|
|||||||
background: linear-gradient(to top right, rgba(19,84,122,.8), rgba(128,208,199,.8));
|
background: linear-gradient(to top right, rgba(19,84,122,.8), rgba(128,208,199,.8));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.bgCard {
|
||||||
|
/* #ffffff6b #ffffff8c*/
|
||||||
|
background: #ffffff38 ;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bgText {
|
||||||
|
background: #ffffffb0;
|
||||||
|
line-height: 2.1rem!important;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
@@ -103,16 +103,6 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
.bgCard {
|
|
||||||
/* #ffffff6b #ffffff8c*/
|
|
||||||
background: #ffffff38 ;
|
|
||||||
}
|
|
||||||
|
|
||||||
.bgText {
|
|
||||||
background: #ffffffb0;
|
|
||||||
line-height: 2.1rem!important;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
.titles {
|
.titles {
|
||||||
font-family: cursive !important;
|
font-family: cursive !important;
|
||||||
|
|||||||
@@ -278,12 +278,23 @@
|
|||||||
class="h-100 w-100 d-flex justify-center rounded-0 flex-column"
|
class="h-100 w-100 d-flex justify-center rounded-0 flex-column"
|
||||||
:image="`${burl}${scrimg}`"
|
:image="`${burl}${scrimg}`"
|
||||||
>
|
>
|
||||||
<div class="bgCard h-100">
|
<v-card-text class="justify-center bgCard h-100 ma-3 d-flex flex-column">
|
||||||
<div class="bgText">
|
<v-row class="bgText flex-grow-0">
|
||||||
<p class="text-center">Добро пожаловать на портал МИ ФНС России по ЦОД № 2</p>
|
<v-col class="text-center textcolor font-weight-black text-h3 pb-0">
|
||||||
<p class="mt-3 text-subtitle-1 text-center">Авторизуйтесь для получения доступа к контенту портала</p>
|
Добро пожаловать на портал МИ ФНС России по ЦОД № 2
|
||||||
|
</v-col>
|
||||||
|
</v-row>
|
||||||
|
<v-row class="bgText flex-grow-0">
|
||||||
|
<v-col class="text-subtitle-1 text-center textcolor pt-0">
|
||||||
|
Авторизуйтесь для получения доступа к контенту портала
|
||||||
|
</v-col>
|
||||||
|
</v-row>
|
||||||
|
</v-card-text>
|
||||||
|
<!-- <div class=" bgCard h-100 ma-3">
|
||||||
|
|
||||||
</div></div>
|
|
||||||
|
|
||||||
|
</div> -->
|
||||||
<!-- <p class="text-center textcolor font-weight-black">Добро пожаловать на портал МИ ФНС России по ЦОД № 2</p>
|
<!-- <p class="text-center textcolor font-weight-black">Добро пожаловать на портал МИ ФНС России по ЦОД № 2</p>
|
||||||
<p class="mt-3 text-subtitle-1 text-center textcolor">Авторизуйтесь для получения доступа к контенту портала</p> -->
|
<p class="mt-3 text-subtitle-1 text-center textcolor">Авторизуйтесь для получения доступа к контенту портала</p> -->
|
||||||
</v-card>
|
</v-card>
|
||||||
@@ -495,7 +506,7 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.textcolor {
|
.textcolor {
|
||||||
color: #00b9f3;
|
color: #2f535e
|
||||||
}
|
}
|
||||||
|
|
||||||
#tr-popup {
|
#tr-popup {
|
||||||
|
|||||||
@@ -1,14 +1,14 @@
|
|||||||
<template>
|
<template>
|
||||||
<v-row>
|
<v-row>
|
||||||
<!-- <v-col
|
<v-col
|
||||||
class="text-h6 text-grey text-center align-self-center text--lighten-1 font-weight-light"
|
class="text-h6 text-grey text-center align-self-center text--lighten-1 font-weight-light"
|
||||||
>
|
>
|
||||||
Об инспекции
|
Об инспекции
|
||||||
</v-col> -->
|
|
||||||
|
|
||||||
<v-col>
|
|
||||||
<line-graph :data="data" :options="options"/>
|
|
||||||
</v-col>
|
</v-col>
|
||||||
|
|
||||||
|
<!-- <v-col>
|
||||||
|
<line-graph :data="data" :options="options"/>
|
||||||
|
</v-col> -->
|
||||||
</v-row>
|
</v-row>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
@@ -1,26 +1,21 @@
|
|||||||
<template>
|
<template>
|
||||||
<v-row>
|
<v-row>
|
||||||
<v-col
|
<v-col
|
||||||
|
class="text-h6 text-grey text-center align-self-center text--lighten-1 font-weight-light"
|
||||||
|
>
|
||||||
|
О портале
|
||||||
|
</v-col>
|
||||||
|
<!-- <v-col
|
||||||
class="d-flex flex-column"
|
class="d-flex flex-column"
|
||||||
lg=4
|
lg=4
|
||||||
>
|
>
|
||||||
<v-row class="flex-grow-0">
|
<v-row class="flex-grow-0">
|
||||||
<v-col class="bg-orange">
|
<v-col class="bg-orange">
|
||||||
<!-- {{ countvis() }} -->
|
|
||||||
<v-card
|
<v-card
|
||||||
class="d-flex flex-column my-2 ml-3 text-center"
|
class="d-flex flex-column my-2 ml-3 text-center"
|
||||||
title="Количество посещений">
|
title="Количество посещений">
|
||||||
<!-- <div class="mb-3 pl-3 d-flex flex-column align-start text-subtitle-1">
|
|
||||||
<p class="pb-1">
|
|
||||||
Посетителей сегодня: {{ countvis()['now'] }}
|
|
||||||
</p>
|
|
||||||
<p class="pb-1">
|
|
||||||
Посетителей на прошлой неделе: {{ countvis()['week'] }}
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
Посетителей с начала года {{ countvis()['year'] }}
|
|
||||||
</p>
|
|
||||||
</div> -->
|
|
||||||
<v-list class="d-flex flex-column align-start text-subtitle-1">
|
<v-list class="d-flex flex-column align-start text-subtitle-1">
|
||||||
<v-list-item>
|
<v-list-item>
|
||||||
Посетителей сегодня: {{ countvis()['now'] }}
|
Посетителей сегодня: {{ countvis()['now'] }}
|
||||||
@@ -77,10 +72,7 @@
|
|||||||
</v-table>
|
</v-table>
|
||||||
</v-card>
|
</v-card>
|
||||||
|
|
||||||
<!-- <div v-for="(val, key) in countgrupp()" :key = key>
|
|
||||||
{{key}} : {{ val.now }} {{ val.week }} {{ val.year }}
|
|
||||||
|
|
||||||
</div> -->
|
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col class="bg-black">
|
<v-col class="bg-black">
|
||||||
<div v-for="(val, key) in activuser()" :key = key>
|
<div v-for="(val, key) in activuser()" :key = key>
|
||||||
@@ -94,7 +86,7 @@
|
|||||||
</v-row>
|
</v-row>
|
||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
</v-row>
|
||||||
</v-col>
|
</v-col> -->
|
||||||
</v-row>
|
</v-row>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
@@ -207,6 +207,15 @@
|
|||||||
z-index: 2;
|
z-index: 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.bgCard {
|
||||||
|
/* #ffffff6b #ffffff8c*/
|
||||||
|
background: #ffffff38 ;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bgText {
|
||||||
|
background: #ffffffb0;
|
||||||
|
line-height: 2.1rem!important;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
@@ -110,6 +110,14 @@ class ScreensaverAdmin(admin.ModelAdmin):
|
|||||||
|
|
||||||
get_html_photo.short_description="Превью изображения"
|
get_html_photo.short_description="Превью изображения"
|
||||||
|
|
||||||
|
|
||||||
|
class HolidaysAdmin(admin.ModelAdmin):
|
||||||
|
list_display = ('name', 'code')
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
admin.site.register(Links, LinksAdmin)
|
admin.site.register(Links, LinksAdmin)
|
||||||
admin.site.register(News, NewsAdmin)
|
admin.site.register(News, NewsAdmin)
|
||||||
admin.site.register(Carousels, CarouselsAdmin)
|
admin.site.register(Carousels, CarouselsAdmin)
|
||||||
@@ -119,3 +127,4 @@ admin.site.register(CommentNews, CommentNewsAdmin)
|
|||||||
admin.site.register(BirthdayImage, BirthdayImageAdmin)
|
admin.site.register(BirthdayImage, BirthdayImageAdmin)
|
||||||
admin.site.register(BirthdayText, BirthdayTextAdmin)
|
admin.site.register(BirthdayText, BirthdayTextAdmin)
|
||||||
admin.site.register(Screensaver, ScreensaverAdmin)
|
admin.site.register(Screensaver, ScreensaverAdmin)
|
||||||
|
admin.site.register(Holidays, HolidaysAdmin)
|
||||||
@@ -156,6 +156,7 @@ class BirthdayText(models.Model):
|
|||||||
class Screensaver(models.Model):
|
class Screensaver(models.Model):
|
||||||
img = models.ImageField(upload_to='screengallery/%Y/%m/%d', null=True, verbose_name='Изображение')
|
img = models.ImageField(upload_to='screengallery/%Y/%m/%d', null=True, verbose_name='Изображение')
|
||||||
cdate =models.DateTimeField(auto_now_add=True, null=True, verbose_name='Дата создания')
|
cdate =models.DateTimeField(auto_now_add=True, null=True, verbose_name='Дата создания')
|
||||||
|
code = models.ForeignKey(BaseSender, on_delete=models.PROTECT, related_name='get_holidays', verbose_name='Код праздника или сезона', null =True)
|
||||||
|
|
||||||
class Meta:
|
class Meta:
|
||||||
|
|
||||||
@@ -164,3 +165,15 @@ class Screensaver(models.Model):
|
|||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return str(self.img)
|
return str(self.img)
|
||||||
|
|
||||||
|
class Holidays(models.Model):
|
||||||
|
name = models.TextField(max_length=260, null=True, verbose_name='Название праздника или сезона')
|
||||||
|
code = models.IntegerField(verbose_name='Код праздника или сезона', blank=True)
|
||||||
|
|
||||||
|
class Meta:
|
||||||
|
|
||||||
|
verbose_name = "Код для сезона и праздников"
|
||||||
|
verbose_name_plural = "Код для сезонов и праздников"
|
||||||
|
|
||||||
|
def __str__(self):
|
||||||
|
return str(self.name)
|
||||||
@@ -218,7 +218,7 @@ class CarouselsAPIView(ListAPIView):
|
|||||||
|
|
||||||
class ScreensaverAPIView(ListAPIView):
|
class ScreensaverAPIView(ListAPIView):
|
||||||
def get(self, request):
|
def get(self, request):
|
||||||
queryset = Screensaver.objects.filter(id=2)
|
queryset = Screensaver.objects.order_by("?")[:1]
|
||||||
print('----')
|
print('----')
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user