Галерея главного экрана
This commit is contained in:
1 parent
6b080ec5f1
commit
3da223f07c
11 files changed
+80
-45
No files matched your search
Generated
+2
-2
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "front",
|
||||
"version": "0.0.40",
|
||||
"version": "0.0.41",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "front",
|
||||
"version": "0.0.40",
|
||||
"version": "0.0.41",
|
||||
"dependencies": {
|
||||
"@mdi/font": "7.0.96",
|
||||
"@vuelidate/core": "^2.0.3",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "front",
|
||||
"version": "0.0.40",
|
||||
"version": "0.0.41",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
"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));
|
||||
}
|
||||
|
||||
.bgCard {
|
||||
/* #ffffff6b #ffffff8c*/
|
||||
background: #ffffff38 ;
|
||||
}
|
||||
|
||||
.bgText {
|
||||
background: #ffffffb0;
|
||||
line-height: 2.1rem!important;
|
||||
|
||||
}
|
||||
|
||||
</style>
|
||||
@@ -103,16 +103,6 @@ export default {
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.bgCard {
|
||||
/* #ffffff6b #ffffff8c*/
|
||||
background: #ffffff38 ;
|
||||
}
|
||||
|
||||
.bgText {
|
||||
background: #ffffffb0;
|
||||
line-height: 2.1rem!important;
|
||||
|
||||
}
|
||||
|
||||
.titles {
|
||||
font-family: cursive !important;
|
||||
|
||||
@@ -278,12 +278,23 @@
|
||||
class="h-100 w-100 d-flex justify-center rounded-0 flex-column"
|
||||
:image="`${burl}${scrimg}`"
|
||||
>
|
||||
<div class="bgCard h-100">
|
||||
<div class="bgText">
|
||||
<p class="text-center">Добро пожаловать на портал МИ ФНС России по ЦОД № 2</p>
|
||||
<p class="mt-3 text-subtitle-1 text-center">Авторизуйтесь для получения доступа к контенту портала</p>
|
||||
<v-card-text class="justify-center bgCard h-100 ma-3 d-flex flex-column">
|
||||
<v-row class="bgText flex-grow-0">
|
||||
<v-col class="text-center textcolor font-weight-black text-h3 pb-0">
|
||||
Добро пожаловать на портал МИ ФНС России по ЦОД № 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="mt-3 text-subtitle-1 text-center textcolor">Авторизуйтесь для получения доступа к контенту портала</p> -->
|
||||
</v-card>
|
||||
@@ -495,7 +506,7 @@ export default {
|
||||
}
|
||||
|
||||
.textcolor {
|
||||
color: #00b9f3;
|
||||
color: #2f535e
|
||||
}
|
||||
|
||||
#tr-popup {
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
<template>
|
||||
<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>
|
||||
<line-graph :data="data" :options="options"/>
|
||||
</v-col>
|
||||
|
||||
<!-- <v-col>
|
||||
<line-graph :data="data" :options="options"/>
|
||||
</v-col> -->
|
||||
</v-row>
|
||||
</template>
|
||||
|
||||
|
||||
@@ -1,26 +1,21 @@
|
||||
<template>
|
||||
<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"
|
||||
lg=4
|
||||
>
|
||||
<v-row class="flex-grow-0">
|
||||
<v-col class="bg-orange">
|
||||
<!-- {{ countvis() }} -->
|
||||
|
||||
<v-card
|
||||
class="d-flex flex-column my-2 ml-3 text-center"
|
||||
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-item>
|
||||
Посетителей сегодня: {{ countvis()['now'] }}
|
||||
@@ -77,10 +72,7 @@
|
||||
</v-table>
|
||||
</v-card>
|
||||
|
||||
<!-- <div v-for="(val, key) in countgrupp()" :key = key>
|
||||
{{key}} : {{ val.now }} {{ val.week }} {{ val.year }}
|
||||
|
||||
</div> -->
|
||||
|
||||
</v-col>
|
||||
<v-col class="bg-black">
|
||||
<div v-for="(val, key) in activuser()" :key = key>
|
||||
@@ -94,7 +86,7 @@
|
||||
</v-row>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-col>
|
||||
</v-col> -->
|
||||
</v-row>
|
||||
</template>
|
||||
|
||||
|
||||
@@ -207,6 +207,15 @@
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.bgCard {
|
||||
/* #ffffff6b #ffffff8c*/
|
||||
background: #ffffff38 ;
|
||||
}
|
||||
|
||||
.bgText {
|
||||
background: #ffffffb0;
|
||||
line-height: 2.1rem!important;
|
||||
|
||||
}
|
||||
|
||||
</style>
|
||||
+10
-1
@@ -110,6 +110,14 @@ class ScreensaverAdmin(admin.ModelAdmin):
|
||||
|
||||
get_html_photo.short_description="Превью изображения"
|
||||
|
||||
|
||||
class HolidaysAdmin(admin.ModelAdmin):
|
||||
list_display = ('name', 'code')
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
admin.site.register(Links, LinksAdmin)
|
||||
admin.site.register(News, NewsAdmin)
|
||||
admin.site.register(Carousels, CarouselsAdmin)
|
||||
@@ -118,4 +126,5 @@ admin.site.register(ScoreNews, ScoreNewsAdmin)
|
||||
admin.site.register(CommentNews, CommentNewsAdmin)
|
||||
admin.site.register(BirthdayImage, BirthdayImageAdmin)
|
||||
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):
|
||||
img = models.ImageField(upload_to='screengallery/%Y/%m/%d', 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:
|
||||
|
||||
@@ -163,4 +164,16 @@ class Screensaver(models.Model):
|
||||
verbose_name_plural = "Изображения главного экрана"
|
||||
|
||||
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):
|
||||
def get(self, request):
|
||||
queryset = Screensaver.objects.filter(id=2)
|
||||
queryset = Screensaver.objects.order_by("?")[:1]
|
||||
print('----')
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user