Merge branch 'develop' into 38_calendar_back
This commit is contained in:
commit
c2f0c6061a
40 files changed
+2548
-2099
No files matched your search
@@ -2,12 +2,12 @@ from django.contrib import admin
|
||||
from .models import *
|
||||
from userauth.models import DictDepartment
|
||||
from django.db.models import Q
|
||||
|
||||
class InspectionDirectionsAdmin(admin.ModelAdmin):
|
||||
list_display=('direction_title',)
|
||||
fields=('direction_title','icon_name',)
|
||||
def get_form(self, request, obj=None, **kwargs):
|
||||
form = super().get_form(request, obj, **kwargs)
|
||||
print("form.base_fields")
|
||||
form.base_fields['direction_title'].label += " инспекции"
|
||||
return form
|
||||
|
||||
@@ -21,9 +21,14 @@ class VacanciesAdmin(admin.ModelAdmin):
|
||||
form = super().get_form(request, obj, **kwargs)
|
||||
form.base_fields['department'].queryset = DictDepartment.objects.filter(~Q(name="Все сотрудники"),deleted=0)
|
||||
return form
|
||||
|
||||
class ResponseVacancyAdmin(admin.ModelAdmin):
|
||||
list_display = ('fio', 'cdate', 'email', 'tel', 'vacancy')
|
||||
readonly_fields = ('fio', 'cdate', 'text', 'email', 'tel', 'file', 'vacancy')
|
||||
list_filter = ('cdate', 'vacancy__department')
|
||||
|
||||
admin.site.register(Vacancies,VacanciesAdmin)
|
||||
admin.site.register(StateSize)
|
||||
admin.site.register(FactSize)
|
||||
admin.site.register(InspectionDirections, InspectionDirectionsAdmin)
|
||||
|
||||
admin.site.register(ResponseVacancy, ResponseVacancyAdmin)
|
||||
@@ -11,6 +11,7 @@ class StateSize(models.Model):
|
||||
verbose_name_plural = "Штатная численность"
|
||||
def __str__(self):
|
||||
return str(self.statesize)
|
||||
|
||||
#Модель Фактическая численность
|
||||
class FactSize(models.Model):
|
||||
factsize = models.IntegerField( verbose_name="Фактическая численность")
|
||||
@@ -45,4 +46,20 @@ class Vacancies(models.Model):
|
||||
verbose_name = "Вакансия "
|
||||
verbose_name_plural = "Вакансии"
|
||||
def __str__(self):
|
||||
return self.name
|
||||
return self.name
|
||||
|
||||
# Отклик на вакансию
|
||||
class ResponseVacancy(models.Model):
|
||||
fio = models.CharField(max_length=300, verbose_name='ФИО')
|
||||
cdate = models.DateTimeField(auto_now_add=True, verbose_name='Дата создания')
|
||||
text = models.TextField(null=True, verbose_name='Сообщение')
|
||||
email = models.CharField(null=True,max_length=300, verbose_name='Почта')
|
||||
tel = models.CharField(null=True,max_length=300, verbose_name='Номер телефона')
|
||||
file = models.FileField(null=True, upload_to='response/%Y/%m/%d', verbose_name='Файл резюме')
|
||||
vacancy = models.ForeignKey(Vacancies, on_delete=models.PROTECT, related_name='get_vacancies', verbose_name='Вакансия')
|
||||
|
||||
class Meta:
|
||||
verbose_name = "Отклик на вакансию"
|
||||
verbose_name_plural = "Отклики на вакансию"
|
||||
def __str__(self):
|
||||
return self.fio
|
||||
@@ -5,14 +5,14 @@ from userauth.serializers import *
|
||||
|
||||
# Сериализатор модели StateSize (Штатная численность)
|
||||
class StateSizeSerializer(serializers.ModelSerializer):
|
||||
|
||||
size= serializers.IntegerField(source='statesize')
|
||||
class Meta:
|
||||
model = StateSize
|
||||
fields ='__all__'
|
||||
|
||||
# Сериализатор модели FactSize (Фактическая численность)
|
||||
class FactSizeSerializer(serializers.ModelSerializer):
|
||||
|
||||
size= serializers.IntegerField(source='factsize')
|
||||
class Meta:
|
||||
model = FactSize
|
||||
fields ='__all__'
|
||||
|
||||
@@ -9,6 +9,7 @@ urlpatterns = [
|
||||
path('getinspectiondirections/', GetInspectionDirections.as_view(), name='getinspectiondirections'),
|
||||
path('getstructure/', GetStructure.as_view(), name='getstructure'),
|
||||
path('getvacancy/', GetVacancies.as_view(), name='getvacancy'),
|
||||
path('postresponsevacancy/', PostResponseVacancies.as_view(), name='postresponsevacancy'),
|
||||
|
||||
|
||||
]
|
||||
@@ -5,21 +5,33 @@ from datetime import date
|
||||
from .models import *
|
||||
from .serializers import *
|
||||
from rest_framework.response import Response
|
||||
import json
|
||||
import requests
|
||||
|
||||
|
||||
class GetStateSize(ListAPIView):
|
||||
def get(self, request):
|
||||
state_size = StateSize.objects.latest('date_created')
|
||||
return Response(StateSizeSerializer(state_size).data)
|
||||
state_size ={}
|
||||
try:
|
||||
state_size = StateSizeSerializer(StateSize.objects.latest('date_created')).data
|
||||
except Exception as e:
|
||||
pass
|
||||
|
||||
return Response(state_size)
|
||||
|
||||
|
||||
class GetFactSize(ListAPIView):
|
||||
def get(self, request):
|
||||
fact_size = FactSize.objects.latest('date_created')
|
||||
return Response(FactSizeSerializer(fact_size).data)
|
||||
fact_size = {}
|
||||
try:
|
||||
fact_size = FactSizeSerializer(FactSize.objects.latest('date_created')).data
|
||||
except Exception as e:
|
||||
pass
|
||||
return Response(fact_size)
|
||||
|
||||
|
||||
class GetInspectionDirections(ListAPIView):
|
||||
|
||||
queryset = InspectionDirections.objects.filter(department__isnull=True)
|
||||
serializer_class = InspectionDirectionsSerializer
|
||||
# отключает вывод информации о пагинации(count,previous,next, results)
|
||||
@@ -34,4 +46,19 @@ class GetStructure(ListAPIView):
|
||||
class GetVacancies(ListAPIView):
|
||||
def get(self, request):
|
||||
queryset = Vacancies.objects.filter(published=True).order_by('department__order_department')
|
||||
return Response(VacanciesSerializer(queryset, many=True).data)
|
||||
return Response(VacanciesSerializer(queryset, many=True).data)
|
||||
|
||||
class PostResponseVacancies(ListAPIView):
|
||||
def post(self, request):
|
||||
print('!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!')
|
||||
a = ResponseVacancy.objects.create(**json.loads(request.data['data']), file = request.data['file'] if 'file' in request.data else None)
|
||||
|
||||
data = {'sendto':[a.vacancy.department.id_chief.lotus], 'subject': f'Отклик на вакансию {a.vacancy.name} от {a.fio}', 'body_text':f'Почта:{a.email} ----- Телефон: {a.tel} ---- Сопроводительное письмо: {a.text}'}
|
||||
|
||||
try:
|
||||
requests.post('http://10.252.44.13:8005/', data = data, files = [request.data['file']] if 'file' in request.data else [], timeout=2)
|
||||
except Exception as e:
|
||||
print(e)
|
||||
|
||||
|
||||
return Response('Ваше резюме отправленно')
|
||||
@@ -19,4 +19,4 @@ class UserJSONRenderer(JSONRenderer):
|
||||
return json.dumps({
|
||||
'user': data,
|
||||
|
||||
})
|
||||
})
|
||||
@@ -10,15 +10,6 @@ class CalendarEventsName(models.Model):
|
||||
name=models.CharField(max_length=300, verbose_name='Название Календаря')
|
||||
author = models.ForeignKey(settings.AUTH_USER_MODEL, editable=False, on_delete=models.PROTECT, verbose_name='Автор Календаря')
|
||||
|
||||
class Meta:
|
||||
|
||||
verbose_name = "Вход. Изображение"
|
||||
verbose_name_plural = "Вход. Изображения"
|
||||
|
||||
def __str__(self):
|
||||
return str(self.name)
|
||||
|
||||
|
||||
class EnumChoice(Enum):
|
||||
@classmethod
|
||||
def get_choices(cls):
|
||||
@@ -36,9 +27,7 @@ class CalendarEvents(models.Model):
|
||||
""" Основные данные по событиям"""
|
||||
name=models.CharField(max_length=300, verbose_name='Название события')
|
||||
description = RichTextUploadingField(null=True, blank= True, verbose_name='Описание события')
|
||||
content = RichTextUploadingField(null=True, blank= True, verbose_name='Краткое описание события')
|
||||
cdate =models.DateTimeField(default=datetime.now, verbose_name='Дата создания')
|
||||
startdate =models.DateTimeField(default=datetime.now, verbose_name='Дата начала события')
|
||||
enddate = models.DateTimeField(null=True, blank= True, default=datetime.now().replace(hour=23,minute=0,second=0,microsecond=0) + timedelta(days=7), verbose_name='Дата снятия с публикации')
|
||||
frequency = models.JSONField(verbose_name='Периодичность', null=True, blank= True)
|
||||
author = models.ForeignKey(settings.AUTH_USER_MODEL, editable=False, on_delete=models.PROTECT, verbose_name='Автор события')
|
||||
@@ -55,16 +44,10 @@ class CalendarEvents(models.Model):
|
||||
|
||||
class FilesEvent(models.Model):
|
||||
""" Прикрепленные файлы к событию"""
|
||||
name = models.CharField(max_length=300, null=True, blank=True, verbose_name='Название файла')
|
||||
link = models.FileField(upload_to='calendar/%Y/%m/%d')
|
||||
event = models.ForeignKey(CalendarEvents, on_delete=models.PROTECT, null=True, blank= True, related_name='get_calendar_events_files', verbose_name='Событие к которому привязаны файлы')
|
||||
|
||||
class Meta:
|
||||
verbose_name = "Файл к событию"
|
||||
verbose_name_plural = "Файлы к событиям"
|
||||
|
||||
def __str__(self):
|
||||
return str(self.link)
|
||||
|
||||
class ParticipantsEvent(models.Model):
|
||||
""" Участники события """
|
||||
participant = models.ForeignKey(settings.AUTH_USER_MODEL, editable=False, on_delete=models.PROTECT, verbose_name='Участник события')
|
||||
|
||||
@@ -78,7 +78,7 @@ class DailyRoundUpAPIView(APIView):
|
||||
|
||||
pass
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -3,7 +3,6 @@ class Settings():
|
||||
self.secret_key=''
|
||||
self.redis_hosts = []
|
||||
self.db = {
|
||||
|
||||
}
|
||||
|
||||
pass
|
||||
@@ -33,7 +33,7 @@ CHANNEL_LAYERS = {
|
||||
"hosts":stngs.redis_hosts,
|
||||
},
|
||||
},
|
||||
|
||||
|
||||
}
|
||||
|
||||
# Application definition
|
||||
@@ -52,6 +52,7 @@ INSTALLED_APPS = [
|
||||
'navigation.apps.NavigationConfig',
|
||||
'drf_yasg',
|
||||
'accounts',
|
||||
'safety',
|
||||
# 'orgmanagment',
|
||||
'corsheaders',
|
||||
'watcher.apps.WatcherConfig',
|
||||
|
||||
@@ -24,7 +24,7 @@ from drf_yasg.views import get_schema_view
|
||||
from drf_yasg import openapi
|
||||
from django.conf.urls.static import static
|
||||
from django.conf import settings
|
||||
|
||||
|
||||
|
||||
schema_view = get_schema_view(
|
||||
openapi.Info(
|
||||
@@ -66,5 +66,5 @@ urlpatterns = [
|
||||
path('api/general_vacation/', include('general_vacation.urls')),
|
||||
path('api/about_inspection/', include('about_inspection.urls')),
|
||||
path('api/calendar_of_events/', include('calendar_of_events.urls')),
|
||||
|
||||
path('api/safety/', include('safety.urls'))
|
||||
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
|
||||
@@ -1,13 +1,16 @@
|
||||
from django.contrib import admin
|
||||
|
||||
from .models import SafetyFile
|
||||
from .models import SafetyFile, SafetyType, SafetyDocumentCategory
|
||||
# Register your models here.
|
||||
|
||||
|
||||
class SafetyFileAdmin(admin.ModelAdmin):
|
||||
list_display = ('name', 'chapter_id', 'category_id', 'sign_date')
|
||||
list_editable = ('sign_date', 'category_id')
|
||||
list_filter = ('name', 'sign_date', 'category_id',)
|
||||
fields = ('name', 'url', 'chapter_id', 'category_id', 'sign_date')
|
||||
|
||||
admin.site.register(SafetyFile, SafetyFileAdmin)
|
||||
|
||||
list_display = ('name', 'chapter', 'category', 'sign_date', 'formainpage')
|
||||
list_editable = ('sign_date', 'category', 'formainpage')
|
||||
list_filter = ('name', 'sign_date', 'category',)
|
||||
fields = ('name', 'url', 'chapter', 'category', 'sign_date', 'formainpage')
|
||||
|
||||
admin.site.register(SafetyType)
|
||||
admin.site.register(SafetyDocumentCategory)
|
||||
admin.site.register(SafetyFile, SafetyFileAdmin)
|
||||
+13
-28
@@ -1,42 +1,27 @@
|
||||
from django.db import models
|
||||
from enum import Enum
|
||||
|
||||
# Create your models here.
|
||||
|
||||
class EnumChoice(Enum):
|
||||
@classmethod
|
||||
def get_choices(cls):
|
||||
return [(enum_.name, enum_.value) for enum_ in cls]
|
||||
class SafetyDocumentCategory(models.Model):
|
||||
name = models.CharField(max_length=255)
|
||||
|
||||
class SafetyChapter(EnumChoice):
|
||||
fire_safety = "Пожарная безопасность"
|
||||
information_safety = "Информационная безопасность"
|
||||
occupational_safety = "Охрана труда"
|
||||
access_mode = "Пропускной и внутриобъектовый режим"
|
||||
civil_defense = "Гражданская оборона"
|
||||
state_secrets = "Защита гостайны"
|
||||
military_registration = "Мобилизационная подготовка и воинский учет"
|
||||
def __str__(self):
|
||||
return str(self.name)
|
||||
|
||||
class SafetyDocumentCategory(EnumChoice):
|
||||
regulations = "Нормативные документы"
|
||||
instructions = "Инструкции"
|
||||
orders = "Приказы"
|
||||
provisions = "Положения"
|
||||
educational_materials = "Учебные материалы"
|
||||
laws = "Законы"
|
||||
decrees = "Указы"
|
||||
resolutions = "Постановления"
|
||||
thematic_materials = "Тематические материалы"
|
||||
methodological_materials = "Методологические материалы"
|
||||
evacuation_plan = 'План эвакуации'
|
||||
|
||||
class SafetyType(models.Model):
|
||||
name = models.CharField(max_length=255)
|
||||
path = models.CharField(max_length=255, null=True)
|
||||
|
||||
def __str__(self):
|
||||
return str(self.name)
|
||||
|
||||
# Общая модель для раздела "Безопасность"
|
||||
class SafetyFile(models.Model):
|
||||
name = models.CharField(verbose_name='Имя документа', max_length=255)
|
||||
url = models.FileField(verbose_name='Путь до файла',upload_to='safety')
|
||||
chapter_id = models.CharField(verbose_name='Раздел', max_length=255, blank=False, db_index=True, choices=SafetyChapter.get_choices())
|
||||
category_id = models.CharField(verbose_name='Категория документа', max_length=255, blank=False, db_index=True, choices=SafetyDocumentCategory.get_choices())
|
||||
chapter = models.ForeignKey('SafetyType', models.DO_NOTHING, null=True, verbose_name='Раздел', related_name="type_file")
|
||||
category = models.ForeignKey('SafetyDocumentCategory', models.DO_NOTHING, null=True, verbose_name='Категория документа')
|
||||
formainpage = models.BooleanField(default=False, verbose_name="Основная информация")
|
||||
sign_date = models.DateField(verbose_name='Дата документа')
|
||||
created_at = models.DateTimeField(verbose_name='Дата загрузки файла', auto_now_add=True)
|
||||
update_at = models.DateTimeField(verbose_name='Дата обновления файла', auto_now=True)
|
||||
|
||||
@@ -1,10 +1,43 @@
|
||||
from rest_framework import serializers
|
||||
from .models import *
|
||||
from django.db.models import Count
|
||||
|
||||
|
||||
|
||||
class OneFileSerializer(serializers.ModelSerializer):
|
||||
class Meta:
|
||||
model = SafetyFile
|
||||
fields = '__all__'
|
||||
|
||||
|
||||
class SafetyTypeSerializer(serializers.ModelSerializer):
|
||||
|
||||
class Meta:
|
||||
model = SafetyType
|
||||
fields = '__all__'
|
||||
|
||||
|
||||
class SafetyFileSerializer(serializers.ModelSerializer):
|
||||
chapter_name = serializers.CharField(source='get_chapter_id_display')
|
||||
category_name = serializers.CharField(source='get_category_id_display')
|
||||
|
||||
# chapter_name = serializers.CharField(source='get_chapter_id_display')
|
||||
# category_name = serializers.CharField(source='get_category_id_display')
|
||||
categories = serializers.SerializerMethodField('get_categories')
|
||||
class Meta:
|
||||
model = SafetyFile
|
||||
fields = '__all__'
|
||||
model = SafetyType
|
||||
fields = '__all__'
|
||||
|
||||
def get_categories(self, obj):
|
||||
|
||||
files = obj.type_file.all().order_by('category__name')
|
||||
categories = files.values("category","category__name").distinct()
|
||||
for x in files:
|
||||
for y in categories:
|
||||
if 'files' not in y.keys():
|
||||
y['files'] = []
|
||||
if x.category.id == y['category']:
|
||||
y['files'].append(OneFileSerializer(x).data)
|
||||
|
||||
return categories
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@ from rest_framework.routers import DefaultRouter
|
||||
from .views import *
|
||||
|
||||
urlpatterns = [
|
||||
path('gettypes/', SafetyTypeAPIView.as_view(), name="SafetyTypeAPIView"),
|
||||
path('files/', SafetyFileAPIView.as_view(), name='safety_files'),
|
||||
path('responsibility/', SafetyResponsebilityAPIView.as_view(), name='responsibility'),
|
||||
path('committee_files/', CommitteeFilesAPIView.as_view(), name='committee_files')
|
||||
|
||||
+10
-22
@@ -1,5 +1,6 @@
|
||||
from itertools import groupby
|
||||
|
||||
from django.db.models import Count
|
||||
from rest_framework.generics import ListAPIView
|
||||
from django.shortcuts import render
|
||||
from rest_framework.views import APIView
|
||||
from rest_framework.response import Response
|
||||
@@ -9,30 +10,17 @@ from userauth.serializers import *
|
||||
from userauth.models import *
|
||||
# Create your views here.
|
||||
|
||||
class SafetyTypeAPIView(ListAPIView):
|
||||
def get(self, request):
|
||||
chapters = SafetyType.objects.annotate(Count("type_file")).filter(type_file__count__gt=0)
|
||||
return Response(SafetyTypeSerializer(chapters, many=True).data)
|
||||
|
||||
class SafetyFileAPIView(APIView):
|
||||
def get(self, request):
|
||||
|
||||
chapters = self.request.query_params.get('chapter_id', 1)
|
||||
all_file = SafetyFile.objects.filter(chapter_id=chapters).order_by('chapter_id', 'category_id').all()
|
||||
serializer_for_file = SafetyFileSerializer(instance=all_file, many=True)
|
||||
|
||||
data = []
|
||||
|
||||
for (chapter_id, chapter_name), row in groupby(serializer_for_file.data, lambda x: (x['chapter_id'], x['chapter_name'])):
|
||||
chapter = {
|
||||
'id': chapter_id,
|
||||
'name': chapter_name,
|
||||
'categories': []
|
||||
}
|
||||
data.append(chapter)
|
||||
for (category_id, category_name), files in groupby(row, lambda x: (x['category_id'], x['category_name'])):
|
||||
chapter['categories'].append({
|
||||
'id': category_id,
|
||||
'name': category_name,
|
||||
'files': [file for file in files]
|
||||
})
|
||||
|
||||
return Response(data)
|
||||
chapters = self.request.query_params.get('chapter', "fire_safety")
|
||||
safety_group = SafetyType.objects.get(path=chapters)
|
||||
return Response(SafetyFileSerializer(safety_group).data)
|
||||
|
||||
class SafetyResponsebilityAPIView(APIView):
|
||||
|
||||
|
||||
@@ -27,8 +27,21 @@ class DictDepartmentAdmin(admin.ModelAdmin):
|
||||
qs = super().get_queryset(request)
|
||||
qs = qs.filter(deleted=0)
|
||||
return qs
|
||||
# class DictEmployeeAdmin(admin.ModelAdmin):
|
||||
class IlineComitteeFiles(admin.StackedInline):
|
||||
# readonly_fields = ['file_name']
|
||||
model = Committee1Files
|
||||
extra = 0
|
||||
|
||||
class InlineComiteePeople(admin.StackedInline):
|
||||
model = Committee2
|
||||
extra = 0
|
||||
|
||||
class Committee1Admin(admin.ModelAdmin):
|
||||
# list_display = ('name', 'num_start', 'date_start', 'num_finish', 'date_finish')
|
||||
inlines = [IlineComitteeFiles, InlineComiteePeople]
|
||||
|
||||
|
||||
|
||||
admin.site.register(Committee1, Committee1Admin)
|
||||
admin.site.register(DictEmployee,DictEmployeeAdmin)
|
||||
admin.site.register(DictDepartment, DictDepartmentAdmin )
|
||||
@@ -23,16 +23,26 @@ class Committee1(models.Model):
|
||||
db_table = 'committee1'
|
||||
db_table_comment = '╤яшёюъ ъюьшёёшщ'
|
||||
|
||||
def __str__(self):
|
||||
return str(self.name)
|
||||
|
||||
|
||||
class Committee1Files(models.Model):
|
||||
id_committee1 = models.ForeignKey(Committee1, models.DO_NOTHING, db_column='id_committee1', db_comment='╚─ ъюьшёёшш')
|
||||
file_name = models.CharField(max_length=1024, db_comment='╚ь Їрщыр')
|
||||
file_name = models.FileField(null=True, blank=True, upload_to='comitee_files')
|
||||
# file_name = models.CharField(max_length=1024, db_comment='╚ь Їрщыр')
|
||||
is_actual = models.IntegerField(db_comment='╧Ёшчэръ ръЄєры№эюёЄш Їрщыр')
|
||||
|
||||
class Meta:
|
||||
managed = False
|
||||
db_table = 'committee1_files'
|
||||
|
||||
def __str__(self):
|
||||
return str(self.file_name)
|
||||
def save(self, *args, **kwargs):
|
||||
|
||||
super().save(*args, **kwargs)
|
||||
|
||||
|
||||
class Committee2(models.Model):
|
||||
id_committee1 = models.ForeignKey(Committee1, models.DO_NOTHING, db_column='id_committee1', db_comment='╙эшъры№э√щ эюьхЁ ъюьшёёшш')
|
||||
@@ -45,6 +55,9 @@ class Committee2(models.Model):
|
||||
db_table = 'committee2'
|
||||
db_table_comment = '╤юёЄрт ъюьшёёшщ'
|
||||
|
||||
def __str__(self):
|
||||
return str(self.id_dict_committee_position.name)
|
||||
|
||||
|
||||
class DictCommitteeExpert(models.Model):
|
||||
fio = models.CharField(max_length=250, blank=True, null=True, db_comment='╘╚╬ ¤ъёяхЁЄр')
|
||||
@@ -54,6 +67,9 @@ class DictCommitteeExpert(models.Model):
|
||||
managed = False
|
||||
db_table = 'dict_committee_expert'
|
||||
db_table_comment = '╤яЁртюўэшъ эхчртшёшь√ї ¤ъёяхЁЄют'
|
||||
|
||||
def __str__(self):
|
||||
return str(self.fio)
|
||||
|
||||
|
||||
class DictCommitteeOrderAddon(models.Model):
|
||||
@@ -79,6 +95,9 @@ class DictCommitteePosition(models.Model):
|
||||
db_table = 'dict_committee_position'
|
||||
db_table_comment = '╤яЁртюўэшъ фюыцэюёЄхщ ъюьшёёшщ'
|
||||
|
||||
def __str__(self):
|
||||
return str(self.name_short)
|
||||
|
||||
|
||||
class DictCommitteeType(models.Model):
|
||||
name = models.CharField(max_length=100, blank=True, null=True, db_comment='═ршьхэютрэшх тшфр ъюьшёёшш')
|
||||
@@ -88,6 +107,9 @@ class DictCommitteeType(models.Model):
|
||||
db_table = 'dict_committee_type'
|
||||
db_table_comment = '╤яЁртюўэшъ тшфют ъюьшёёшщ'
|
||||
|
||||
def __str__(self):
|
||||
return str(self.name)
|
||||
|
||||
|
||||
class DictCompetences(models.Model):
|
||||
id_dict_competences_type = models.ForeignKey('DictCompetencesType', models.DO_NOTHING, db_column='id_dict_competences_type', db_comment='шфхэЄшЇшърЄюЁ уЁєяя√ ъюьяхЄхэЎшш')
|
||||
@@ -155,6 +177,7 @@ class DictEmployee(models.Model):
|
||||
is_responsible = models.PositiveIntegerField(db_comment='╙фрышЄ№')
|
||||
is_changed = models.PositiveIntegerField(db_comment='╧Ёшчэръ эрышўш шчьхэхэшщ')
|
||||
birthdate = models.DateField(db_column='BirthDate', blank=True, null=True, db_comment='─рЄр Ёюцфхэш ёюЄЁєфэшър') # Field name made lowercase.
|
||||
lotus = models.CharField(db_column='lotus', max_length=200, blank=True, null=True, db_comment='ёЄрЄєё єўхЄэющ чряшёш(Enabled)') # Field name made lowercase.
|
||||
|
||||
class Meta:
|
||||
managed = False
|
||||
|
||||
@@ -31,7 +31,7 @@ class OrderResponsibilitySerializer(serializers.ModelSerializer):
|
||||
fields = '__all__'
|
||||
|
||||
def respons_users(self,obj):
|
||||
data = OrderResponsibilityEmployee.objects.filter(id_order_responsibility=obj.id)
|
||||
data = OrderResponsibilityEmployee.objects.filter(id_order_responsibility=obj.id).order_by("id_dict_employee_id__id_dict_position__order_position","id_dict_employee_id__familyname")
|
||||
return ResponsibilityUsersSerializer(data,many=True).data
|
||||
|
||||
class Committee1FilesSerializer(serializers.ModelSerializer):
|
||||
@@ -40,7 +40,7 @@ class Committee1FilesSerializer(serializers.ModelSerializer):
|
||||
"""
|
||||
class Meta:
|
||||
model = Committee1Files
|
||||
exclude=['id_committee1']
|
||||
fields = '__all__'
|
||||
|
||||
class Committee1Serializer(serializers.ModelSerializer):
|
||||
""" Забирает всю информацию по комиссиям с типом
|
||||
|
||||
Generated
+167
-506
@@ -9,9 +9,6 @@
|
||||
"version": "0.0.63",
|
||||
"dependencies": {
|
||||
"-": "^0.0.1",
|
||||
"@ckeditor/ckeditor5-build-classic": "^41.3.1",
|
||||
"@ckeditor/ckeditor5-dev-translations": "^39.8.0",
|
||||
"@ckeditor/ckeditor5-vue": "^5.1.0",
|
||||
"@mdi/font": "7.0.96",
|
||||
"@vue-flow/background": "^1.3.0",
|
||||
"@vue-flow/controls": "^1.1.1",
|
||||
@@ -34,6 +31,7 @@
|
||||
"pinia": "^2.0.23",
|
||||
"roboto-fontface": "*",
|
||||
"v-tooltip": "^2.1.3",
|
||||
"vee-validate": "^4.12.8",
|
||||
"vue": "^3.2.0",
|
||||
"vue-cal": "^4.8.1",
|
||||
"vue-chartjs": "^5.3.0",
|
||||
@@ -42,8 +40,9 @@
|
||||
"vue-router": "^4.0.0",
|
||||
"vue3-autocounter": "^1.0.6",
|
||||
"vuelidate": "^0.7.7",
|
||||
"vuetify": "^3.6.6",
|
||||
"webfontloader": "^1.0.0"
|
||||
"vuetify": "^3.0.0",
|
||||
"webfontloader": "^1.0.0",
|
||||
"yup": "^1.4.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/addon-essentials": "^7.4.6",
|
||||
@@ -479,9 +478,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@babel/parser": {
|
||||
"version": "7.23.5",
|
||||
"resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.23.5.tgz",
|
||||
"integrity": "sha512-hOOqoiNXrmGdFbhgCzu6GiURxUgM27Xwd/aPuu8RfHEZPBzL1Z54okAHAQjXfcQNwvrlkAmAp4SlRTZ45vlthQ==",
|
||||
"version": "7.24.5",
|
||||
"resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.24.5.tgz",
|
||||
"integrity": "sha512-EOv5IK8arwh3LI47dz1b0tKUb/1uhHAnHJOrjgtQMIpu1uXd9mlFrJg9IUgGUgZ41Ch0K8REPTYpO7B76b4vJg==",
|
||||
"bin": {
|
||||
"parser": "bin/babel-parser.js"
|
||||
},
|
||||
@@ -554,360 +553,6 @@
|
||||
"node": ">=6.9.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@ckeditor/ckeditor5-adapter-ckfinder": {
|
||||
"version": "41.3.1",
|
||||
"resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-adapter-ckfinder/-/ckeditor5-adapter-ckfinder-41.3.1.tgz",
|
||||
"integrity": "sha512-7KvvYRxK6w0qn/KW54pXJMC/aNVQdqMcaEKcAZ2GbqcKr9TNoi23JYXsRmCg9WTc/XQPSMZx7a1m4pkw5/wx0Q==",
|
||||
"dependencies": {
|
||||
"ckeditor5": "41.3.1"
|
||||
}
|
||||
},
|
||||
"node_modules/@ckeditor/ckeditor5-autoformat": {
|
||||
"version": "41.3.1",
|
||||
"resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-autoformat/-/ckeditor5-autoformat-41.3.1.tgz",
|
||||
"integrity": "sha512-0QklAfIeUxo/gfuGT9rC0WhDuqTbpcfvinkJOH7fcqcu81TB4WqLjI1qfXL9In6uih8c39te2x74yZZ+f/M4iQ==",
|
||||
"dependencies": {
|
||||
"ckeditor5": "41.3.1"
|
||||
}
|
||||
},
|
||||
"node_modules/@ckeditor/ckeditor5-basic-styles": {
|
||||
"version": "41.3.1",
|
||||
"resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-basic-styles/-/ckeditor5-basic-styles-41.3.1.tgz",
|
||||
"integrity": "sha512-vr0UR5JdQtHUhXFVF+7yebaQ/iEugmXIH2eC+pC5BNJuBwuFt1Hxt6U6qRh7f7ve4UFBky3MZ84lGuGsheirCA==",
|
||||
"dependencies": {
|
||||
"ckeditor5": "41.3.1"
|
||||
}
|
||||
},
|
||||
"node_modules/@ckeditor/ckeditor5-block-quote": {
|
||||
"version": "41.3.1",
|
||||
"resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-block-quote/-/ckeditor5-block-quote-41.3.1.tgz",
|
||||
"integrity": "sha512-iRm6MthhcyRbUpPxjjXhLuZpNGGNnUqp8RurN8rSzX3KcBXKHm/vfxOugk06ebF2FFbP0u5aiL3K7fIniuo2pQ==",
|
||||
"dependencies": {
|
||||
"ckeditor5": "41.3.1"
|
||||
}
|
||||
},
|
||||
"node_modules/@ckeditor/ckeditor5-build-classic": {
|
||||
"version": "41.3.1",
|
||||
"resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-build-classic/-/ckeditor5-build-classic-41.3.1.tgz",
|
||||
"integrity": "sha512-eeaED7PBenWwEXJsi8cjgafNSeBUAJ2ZqgiQOjaOeugT6yJACSif32TG0OGW4bq/W4PporsCiRaq6wscq4DZig==",
|
||||
"dependencies": {
|
||||
"@ckeditor/ckeditor5-adapter-ckfinder": "41.3.1",
|
||||
"@ckeditor/ckeditor5-autoformat": "41.3.1",
|
||||
"@ckeditor/ckeditor5-basic-styles": "41.3.1",
|
||||
"@ckeditor/ckeditor5-block-quote": "41.3.1",
|
||||
"@ckeditor/ckeditor5-ckbox": "41.3.1",
|
||||
"@ckeditor/ckeditor5-ckfinder": "41.3.1",
|
||||
"@ckeditor/ckeditor5-cloud-services": "41.3.1",
|
||||
"@ckeditor/ckeditor5-easy-image": "41.3.1",
|
||||
"@ckeditor/ckeditor5-editor-classic": "41.3.1",
|
||||
"@ckeditor/ckeditor5-essentials": "41.3.1",
|
||||
"@ckeditor/ckeditor5-heading": "41.3.1",
|
||||
"@ckeditor/ckeditor5-image": "41.3.1",
|
||||
"@ckeditor/ckeditor5-indent": "41.3.1",
|
||||
"@ckeditor/ckeditor5-link": "41.3.1",
|
||||
"@ckeditor/ckeditor5-list": "41.3.1",
|
||||
"@ckeditor/ckeditor5-media-embed": "41.3.1",
|
||||
"@ckeditor/ckeditor5-paragraph": "41.3.1",
|
||||
"@ckeditor/ckeditor5-paste-from-office": "41.3.1",
|
||||
"@ckeditor/ckeditor5-table": "41.3.1",
|
||||
"@ckeditor/ckeditor5-typing": "41.3.1"
|
||||
}
|
||||
},
|
||||
"node_modules/@ckeditor/ckeditor5-ckbox": {
|
||||
"version": "41.3.1",
|
||||
"resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-ckbox/-/ckeditor5-ckbox-41.3.1.tgz",
|
||||
"integrity": "sha512-TwAbnnJmvAje5UvnZkAmH4MxxrFJwDF4pROjY9hrFb7eSnGSnXEnESiXOit8scHQZUzu1oEopIP5550lRkHZ0w==",
|
||||
"dependencies": {
|
||||
"blurhash": "2.0.5",
|
||||
"ckeditor5": "41.3.1",
|
||||
"lodash-es": "4.17.21"
|
||||
}
|
||||
},
|
||||
"node_modules/@ckeditor/ckeditor5-ckfinder": {
|
||||
"version": "41.3.1",
|
||||
"resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-ckfinder/-/ckeditor5-ckfinder-41.3.1.tgz",
|
||||
"integrity": "sha512-jMS8zhONHiPtrx9IlGGiFs1VrNOShLGtr1mvzaFEkVOK9aJquop+4EZX1x12FYm0cjzUawjFH5RLS6xBGXFvAg==",
|
||||
"dependencies": {
|
||||
"ckeditor5": "41.3.1"
|
||||
}
|
||||
},
|
||||
"node_modules/@ckeditor/ckeditor5-clipboard": {
|
||||
"version": "41.3.1",
|
||||
"resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-clipboard/-/ckeditor5-clipboard-41.3.1.tgz",
|
||||
"integrity": "sha512-6S7tq6FlnHYZmPACeqdf135Jx2bTKHVY8mHQ+CHC8ZZu0XVm62vVeeSLS2IcdtYmHjf4ced1G7suTUBHlfBCLw==",
|
||||
"dependencies": {
|
||||
"@ckeditor/ckeditor5-core": "41.3.1",
|
||||
"@ckeditor/ckeditor5-engine": "41.3.1",
|
||||
"@ckeditor/ckeditor5-ui": "41.3.1",
|
||||
"@ckeditor/ckeditor5-utils": "41.3.1",
|
||||
"@ckeditor/ckeditor5-widget": "41.3.1",
|
||||
"lodash-es": "4.17.21"
|
||||
}
|
||||
},
|
||||
"node_modules/@ckeditor/ckeditor5-cloud-services": {
|
||||
"version": "41.3.1",
|
||||
"resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-cloud-services/-/ckeditor5-cloud-services-41.3.1.tgz",
|
||||
"integrity": "sha512-24JLTt0d2cKkY7rtl2bKxI7MYZjlwqBLoTgePwBC1EtgRJ/2gd1CM1bMwiKJPgJ34NnLtnV8R/W0yuz5RQjJsA==",
|
||||
"dependencies": {
|
||||
"ckeditor5": "41.3.1"
|
||||
}
|
||||
},
|
||||
"node_modules/@ckeditor/ckeditor5-core": {
|
||||
"version": "41.3.1",
|
||||
"resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-core/-/ckeditor5-core-41.3.1.tgz",
|
||||
"integrity": "sha512-h+PgPtCpS2vjO3HbKMYtddRPW+B3AJx9qpixmHJnUZMiFCmRjUZjXATjpi3j+kSQISs4L2Yghq+lsAQxyGHb+A==",
|
||||
"dependencies": {
|
||||
"@ckeditor/ckeditor5-engine": "41.3.1",
|
||||
"@ckeditor/ckeditor5-utils": "41.3.1",
|
||||
"lodash-es": "4.17.21"
|
||||
}
|
||||
},
|
||||
"node_modules/@ckeditor/ckeditor5-dev-translations": {
|
||||
"version": "39.8.0",
|
||||
"resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-dev-translations/-/ckeditor5-dev-translations-39.8.0.tgz",
|
||||
"integrity": "sha512-xtOwhGpZtYum57h4+0NHniz465kngHF9/wP+Dp1G4VAiVaXY5+z8ZJlr4ZppmMX25KU8SLZPA5/fyIAiQWgfuA==",
|
||||
"dependencies": {
|
||||
"@babel/parser": "^7.18.9",
|
||||
"@babel/traverse": "^7.18.9",
|
||||
"chalk": "^4.0.0",
|
||||
"pofile": "^1.0.9",
|
||||
"rimraf": "^3.0.2",
|
||||
"webpack-sources": "^2.0.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18.0.0",
|
||||
"npm": ">=5.7.1"
|
||||
}
|
||||
},
|
||||
"node_modules/@ckeditor/ckeditor5-dev-translations/node_modules/webpack-sources": {
|
||||
"version": "2.3.1",
|
||||
"resolved": "https://registry.npmjs.org/webpack-sources/-/webpack-sources-2.3.1.tgz",
|
||||
"integrity": "sha512-y9EI9AO42JjEcrTJFOYmVywVZdKVUfOvDUPsJea5GIr1JOEGFVqwlY2K098fFoIjOkDzHn2AjRvM8dsBZu+gCA==",
|
||||
"dependencies": {
|
||||
"source-list-map": "^2.0.1",
|
||||
"source-map": "^0.6.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=10.13.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@ckeditor/ckeditor5-easy-image": {
|
||||
"version": "41.3.1",
|
||||
"resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-easy-image/-/ckeditor5-easy-image-41.3.1.tgz",
|
||||
"integrity": "sha512-M/9f3Y35hRC/lbNRMjorKTKxCLZxV4CUguA2jghHIS8WNnQUI41C0dcfkK+y/nijRWsWCfg92RiZsNn913LdiQ==",
|
||||
"dependencies": {
|
||||
"ckeditor5": "41.3.1"
|
||||
}
|
||||
},
|
||||
"node_modules/@ckeditor/ckeditor5-editor-classic": {
|
||||
"version": "41.3.1",
|
||||
"resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-editor-classic/-/ckeditor5-editor-classic-41.3.1.tgz",
|
||||
"integrity": "sha512-DBP2F0A50BpDwnbCfsz0DBp+NVW7xrXp4lH5SJHax8B58Z1uY1rw/N6Wf2O91tzo5obcUSpoj8WlzIsxDYPd+A==",
|
||||
"dependencies": {
|
||||
"ckeditor5": "41.3.1",
|
||||
"lodash-es": "4.17.21"
|
||||
}
|
||||
},
|
||||
"node_modules/@ckeditor/ckeditor5-engine": {
|
||||
"version": "41.3.1",
|
||||
"resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-engine/-/ckeditor5-engine-41.3.1.tgz",
|
||||
"integrity": "sha512-Me4cnkCrknDH50db/jPczuhgzaxUhHbkh2gv8N8Ypken9ZnOPvMD9W1gCFFTLaxikpPmBQwk3u1BSjOKk3r6kw==",
|
||||
"dependencies": {
|
||||
"@ckeditor/ckeditor5-utils": "41.3.1",
|
||||
"lodash-es": "4.17.21"
|
||||
}
|
||||
},
|
||||
"node_modules/@ckeditor/ckeditor5-enter": {
|
||||
"version": "41.3.1",
|
||||
"resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-enter/-/ckeditor5-enter-41.3.1.tgz",
|
||||
"integrity": "sha512-iwhvJpfsutqcv/bf8QPMKhMolb7GtShaOT+UIDW3OXjMZaBKZOTyR8OceijwgBmZeillTaXQq9y2e9lbJd46xg==",
|
||||
"dependencies": {
|
||||
"@ckeditor/ckeditor5-core": "41.3.1",
|
||||
"@ckeditor/ckeditor5-engine": "41.3.1",
|
||||
"@ckeditor/ckeditor5-utils": "41.3.1"
|
||||
}
|
||||
},
|
||||
"node_modules/@ckeditor/ckeditor5-essentials": {
|
||||
"version": "41.3.1",
|
||||
"resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-essentials/-/ckeditor5-essentials-41.3.1.tgz",
|
||||
"integrity": "sha512-Tr8fIhRith4OVg5yYm8UbbRUjuj15AQ27H3AiwOzRMRr+EYCI07ni5quqBwOMlkOQQ2H9U21gS8mYKqkqU5osw==",
|
||||
"dependencies": {
|
||||
"ckeditor5": "41.3.1"
|
||||
}
|
||||
},
|
||||
"node_modules/@ckeditor/ckeditor5-heading": {
|
||||
"version": "41.3.1",
|
||||
"resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-heading/-/ckeditor5-heading-41.3.1.tgz",
|
||||
"integrity": "sha512-WFu/zYXHqJ4Q6UI/IM7/WwmXCwKFVBDhuOeYnlRY1vgmFciaVtrbJW/tECBr+2TBVR4lANvmivWMFDLpN0fW+g==",
|
||||
"dependencies": {
|
||||
"ckeditor5": "41.3.1"
|
||||
}
|
||||
},
|
||||
"node_modules/@ckeditor/ckeditor5-image": {
|
||||
"version": "41.3.1",
|
||||
"resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-image/-/ckeditor5-image-41.3.1.tgz",
|
||||
"integrity": "sha512-v8lcXET3TDP/yPKhdUCmIcukMQ6GNdTyVAjkTip5JhVKFv8bFWBp5Xn616L6T+8OeQ6DggF9QVGcskmTiGQv7g==",
|
||||
"dependencies": {
|
||||
"@ckeditor/ckeditor5-ui": "41.3.1",
|
||||
"ckeditor5": "41.3.1",
|
||||
"lodash-es": "4.17.21"
|
||||
}
|
||||
},
|
||||
"node_modules/@ckeditor/ckeditor5-indent": {
|
||||
"version": "41.3.1",
|
||||
"resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-indent/-/ckeditor5-indent-41.3.1.tgz",
|
||||
"integrity": "sha512-JYXF/Clfw+j06wt1+qo43n+y3fmVKPSaN5NXzw4a5Rce0dMaWctH53X8KP3tIuOfEzW9xPhsTUQBJI8rsc+f9g==",
|
||||
"dependencies": {
|
||||
"ckeditor5": "41.3.1"
|
||||
}
|
||||
},
|
||||
"node_modules/@ckeditor/ckeditor5-link": {
|
||||
"version": "41.3.1",
|
||||
"resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-link/-/ckeditor5-link-41.3.1.tgz",
|
||||
"integrity": "sha512-tl+vnEWUKP0cK/4g+KkQt1YujklG9aUb2NxkkF0HSo7/0m6JnKf+1LVwY1OP2702FLCJO1vdC09oY0JDXGmkfg==",
|
||||
"dependencies": {
|
||||
"@ckeditor/ckeditor5-ui": "41.3.1",
|
||||
"ckeditor5": "41.3.1",
|
||||
"lodash-es": "4.17.21"
|
||||
}
|
||||
},
|
||||
"node_modules/@ckeditor/ckeditor5-list": {
|
||||
"version": "41.3.1",
|
||||
"resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-list/-/ckeditor5-list-41.3.1.tgz",
|
||||
"integrity": "sha512-X1PDaqNnQUTlqYgTYASirJuityG25hxthrGlnEvqPZIxivbxDcefWxkBlNXvmnHOy/EUES0cEZ2H0GUr6CPz2g==",
|
||||
"dependencies": {
|
||||
"ckeditor5": "41.3.1"
|
||||
}
|
||||
},
|
||||
"node_modules/@ckeditor/ckeditor5-media-embed": {
|
||||
"version": "41.3.1",
|
||||
"resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-media-embed/-/ckeditor5-media-embed-41.3.1.tgz",
|
||||
"integrity": "sha512-3yXePmVPR2WmzeT+fj6WotMbEIJ6lYka0aUG02LxZV0oCL5LU8nF1wFIFhk77wrQVlQtjmLVtvaPcSdNIz/+pA==",
|
||||
"dependencies": {
|
||||
"@ckeditor/ckeditor5-ui": "41.3.1",
|
||||
"ckeditor5": "41.3.1"
|
||||
}
|
||||
},
|
||||
"node_modules/@ckeditor/ckeditor5-paragraph": {
|
||||
"version": "41.3.1",
|
||||
"resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-paragraph/-/ckeditor5-paragraph-41.3.1.tgz",
|
||||
"integrity": "sha512-weRPLyO/1Z8PpU9+lET4gYgJ8adDuCjYiREup81URSuS1DDQ8vb3D29xA+4Ov7lwg8BaNAMCpTBdp07GHHzv6w==",
|
||||
"dependencies": {
|
||||
"@ckeditor/ckeditor5-core": "41.3.1",
|
||||
"@ckeditor/ckeditor5-ui": "41.3.1",
|
||||
"@ckeditor/ckeditor5-utils": "41.3.1"
|
||||
}
|
||||
},
|
||||
"node_modules/@ckeditor/ckeditor5-paste-from-office": {
|
||||
"version": "41.3.1",
|
||||
"resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-paste-from-office/-/ckeditor5-paste-from-office-41.3.1.tgz",
|
||||
"integrity": "sha512-bvDNGQXIUVCiAgmIcvnOw461XWAG8lscQrJaZFXNfayJJah73zvDbOJDkv5hm/N/jYaPTsTnSv1jg5xM9XqfCw==",
|
||||
"dependencies": {
|
||||
"ckeditor5": "41.3.1"
|
||||
}
|
||||
},
|
||||
"node_modules/@ckeditor/ckeditor5-select-all": {
|
||||
"version": "41.3.1",
|
||||
"resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-select-all/-/ckeditor5-select-all-41.3.1.tgz",
|
||||
"integrity": "sha512-a/LAPO+O9fwHjQ/8s3UNtyrqQRieAnpnPw2IhLlGqOS7nxPKMR2vkb6WnG2LUdO+wYqkCzxUDpBlfVkjkQEI0w==",
|
||||
"dependencies": {
|
||||
"@ckeditor/ckeditor5-core": "41.3.1",
|
||||
"@ckeditor/ckeditor5-ui": "41.3.1",
|
||||
"@ckeditor/ckeditor5-utils": "41.3.1"
|
||||
}
|
||||
},
|
||||
"node_modules/@ckeditor/ckeditor5-table": {
|
||||
"version": "41.3.1",
|
||||
"resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-table/-/ckeditor5-table-41.3.1.tgz",
|
||||
"integrity": "sha512-Lx2xnWdeuiekXOuRERjvf1I3zhTZwK/IRna9FgTW/ldj6rBH9fVqhY+z/Y/nIpI1LgWee3R0DWZBGXgj1QNFcQ==",
|
||||
"dependencies": {
|
||||
"ckeditor5": "41.3.1",
|
||||
"lodash-es": "4.17.21"
|
||||
}
|
||||
},
|
||||
"node_modules/@ckeditor/ckeditor5-typing": {
|
||||
"version": "41.3.1",
|
||||
"resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-typing/-/ckeditor5-typing-41.3.1.tgz",
|
||||
"integrity": "sha512-4Oeafc3if6fTITOest1ILQ573fnkzE9/tn5eNm3zWnHVYR79mRCYxaha9yUlKVQiqaxZ48EVo2FjHiouXmn9+Q==",
|
||||
"dependencies": {
|
||||
"@ckeditor/ckeditor5-core": "41.3.1",
|
||||
"@ckeditor/ckeditor5-engine": "41.3.1",
|
||||
"@ckeditor/ckeditor5-utils": "41.3.1",
|
||||
"lodash-es": "4.17.21"
|
||||
}
|
||||
},
|
||||
"node_modules/@ckeditor/ckeditor5-ui": {
|
||||
"version": "41.3.1",
|
||||
"resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-ui/-/ckeditor5-ui-41.3.1.tgz",
|
||||
"integrity": "sha512-xN7OAiRp7ALKYXUp6Qe/AjkjrhyLuoz9nxq7Jdsnsyb/XXfsXDloMcOuvNRoUgr4gIFHMOoZZxsIn8qegBvcYA==",
|
||||
"dependencies": {
|
||||
"@ckeditor/ckeditor5-core": "41.3.1",
|
||||
"@ckeditor/ckeditor5-utils": "41.3.1",
|
||||
"color-convert": "2.0.1",
|
||||
"color-parse": "1.4.2",
|
||||
"lodash-es": "4.17.21",
|
||||
"vanilla-colorful": "0.7.2"
|
||||
}
|
||||
},
|
||||
"node_modules/@ckeditor/ckeditor5-undo": {
|
||||
"version": "41.3.1",
|
||||
"resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-undo/-/ckeditor5-undo-41.3.1.tgz",
|
||||
"integrity": "sha512-PElWTnlIwuQ94mvdhuH7Mno99oocSnOWPMHi9UuWe6+zVgznQwn0f0diBZvX3l5y8hFgK6q/pQ/CCmbvvYnovA==",
|
||||
"dependencies": {
|
||||
"@ckeditor/ckeditor5-core": "41.3.1",
|
||||
"@ckeditor/ckeditor5-engine": "41.3.1",
|
||||
"@ckeditor/ckeditor5-ui": "41.3.1"
|
||||
}
|
||||
},
|
||||
"node_modules/@ckeditor/ckeditor5-upload": {
|
||||
"version": "41.3.1",
|
||||
"resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-upload/-/ckeditor5-upload-41.3.1.tgz",
|
||||
"integrity": "sha512-ugTgGEgA9qsSl5+qptTmawdfYaONr6b3uTG4byZ76JMdf0qiniZjBF/TtGAVmBkCipcVWFoaZKteiz0fhQMHjA==",
|
||||
"dependencies": {
|
||||
"@ckeditor/ckeditor5-core": "41.3.1",
|
||||
"@ckeditor/ckeditor5-utils": "41.3.1"
|
||||
}
|
||||
},
|
||||
"node_modules/@ckeditor/ckeditor5-utils": {
|
||||
"version": "41.3.1",
|
||||
"resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-utils/-/ckeditor5-utils-41.3.1.tgz",
|
||||
"integrity": "sha512-jJu9ndn6Y7+ffBYdDCRXX7OnV9Ddgms2HSF1pmhjZN0uoL96XworuUOn8hx3Zs/KBPjJEwbtYWJMjG9aohrgaQ==",
|
||||
"dependencies": {
|
||||
"lodash-es": "4.17.21"
|
||||
}
|
||||
},
|
||||
"node_modules/@ckeditor/ckeditor5-vue": {
|
||||
"version": "5.1.0",
|
||||
"resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-vue/-/ckeditor5-vue-5.1.0.tgz",
|
||||
"integrity": "sha512-KEx4Tj2Irr4ZbLG8LnaKpb0Dgd8qmLmKFWeiKkQwM3RAAeYRYOCcBVB2Y168I9KA8wRosPxgOO9jbQ92yopYHA==",
|
||||
"hasInstallScript": true,
|
||||
"engines": {
|
||||
"node": ">=16.0.0",
|
||||
"npm": ">=5.7.1"
|
||||
}
|
||||
},
|
||||
"node_modules/@ckeditor/ckeditor5-watchdog": {
|
||||
"version": "41.3.1",
|
||||
"resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-watchdog/-/ckeditor5-watchdog-41.3.1.tgz",
|
||||
"integrity": "sha512-iDwdYxC8euSKxfRq4y5vVOX9GVUbEbC9z6glkXpxa1BogqYh39+fywjt+s4o3Ub3b8FJ/EUYuNc+/vK+CzEg4g==",
|
||||
"dependencies": {
|
||||
"lodash-es": "4.17.21"
|
||||
}
|
||||
},
|
||||
"node_modules/@ckeditor/ckeditor5-widget": {
|
||||
"version": "41.3.1",
|
||||
"resolved": "https://registry.npmjs.org/@ckeditor/ckeditor5-widget/-/ckeditor5-widget-41.3.1.tgz",
|
||||
"integrity": "sha512-rdBxGS3bxWNhp+yxyBYkcbRV6/mdTDab+konDVhZ/ME1jVZ5cf8OBZcgHUqAxzuWt4XMEdzKINbo1OnSDwApUg==",
|
||||
"dependencies": {
|
||||
"@ckeditor/ckeditor5-core": "41.3.1",
|
||||
"@ckeditor/ckeditor5-engine": "41.3.1",
|
||||
"@ckeditor/ckeditor5-enter": "41.3.1",
|
||||
"@ckeditor/ckeditor5-typing": "41.3.1",
|
||||
"@ckeditor/ckeditor5-ui": "41.3.1",
|
||||
"@ckeditor/ckeditor5-utils": "41.3.1",
|
||||
"lodash-es": "4.17.21"
|
||||
}
|
||||
},
|
||||
"node_modules/@colors/colors": {
|
||||
"version": "1.5.0",
|
||||
"resolved": "https://registry.npmjs.org/@colors/colors/-/colors-1.5.0.tgz",
|
||||
@@ -4228,49 +3873,49 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@vue/compiler-core": {
|
||||
"version": "3.3.4",
|
||||
"resolved": "https://registry.npmjs.org/@vue/compiler-core/-/compiler-core-3.3.4.tgz",
|
||||
"integrity": "sha512-cquyDNvZ6jTbf/+x+AgM2Arrp6G4Dzbb0R64jiG804HRMfRiFXWI6kqUVqZ6ZR0bQhIoQjB4+2bhNtVwndW15g==",
|
||||
"version": "3.4.27",
|
||||
"resolved": "https://registry.npmjs.org/@vue/compiler-core/-/compiler-core-3.4.27.tgz",
|
||||
"integrity": "sha512-E+RyqY24KnyDXsCuQrI+mlcdW3ALND6U7Gqa/+bVwbcpcR3BRRIckFoz7Qyd4TTlnugtwuI7YgjbvsLmxb+yvg==",
|
||||
"dependencies": {
|
||||
"@babel/parser": "^7.21.3",
|
||||
"@vue/shared": "3.3.4",
|
||||
"@babel/parser": "^7.24.4",
|
||||
"@vue/shared": "3.4.27",
|
||||
"entities": "^4.5.0",
|
||||
"estree-walker": "^2.0.2",
|
||||
"source-map-js": "^1.0.2"
|
||||
"source-map-js": "^1.2.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@vue/compiler-dom": {
|
||||
"version": "3.3.4",
|
||||
"resolved": "https://registry.npmjs.org/@vue/compiler-dom/-/compiler-dom-3.3.4.tgz",
|
||||
"integrity": "sha512-wyM+OjOVpuUukIq6p5+nwHYtj9cFroz9cwkfmP9O1nzH68BenTTv0u7/ndggT8cIQlnBeOo6sUT/gvHcIkLA5w==",
|
||||
"version": "3.4.27",
|
||||
"resolved": "https://registry.npmjs.org/@vue/compiler-dom/-/compiler-dom-3.4.27.tgz",
|
||||
"integrity": "sha512-kUTvochG/oVgE1w5ViSr3KUBh9X7CWirebA3bezTbB5ZKBQZwR2Mwj9uoSKRMFcz4gSMzzLXBPD6KpCLb9nvWw==",
|
||||
"dependencies": {
|
||||
"@vue/compiler-core": "3.3.4",
|
||||
"@vue/shared": "3.3.4"
|
||||
"@vue/compiler-core": "3.4.27",
|
||||
"@vue/shared": "3.4.27"
|
||||
}
|
||||
},
|
||||
"node_modules/@vue/compiler-sfc": {
|
||||
"version": "3.3.4",
|
||||
"resolved": "https://registry.npmjs.org/@vue/compiler-sfc/-/compiler-sfc-3.3.4.tgz",
|
||||
"integrity": "sha512-6y/d8uw+5TkCuzBkgLS0v3lSM3hJDntFEiUORM11pQ/hKvkhSKZrXW6i69UyXlJQisJxuUEJKAWEqWbWsLeNKQ==",
|
||||
"version": "3.4.27",
|
||||
"resolved": "https://registry.npmjs.org/@vue/compiler-sfc/-/compiler-sfc-3.4.27.tgz",
|
||||
"integrity": "sha512-nDwntUEADssW8e0rrmE0+OrONwmRlegDA1pD6QhVeXxjIytV03yDqTey9SBDiALsvAd5U4ZrEKbMyVXhX6mCGA==",
|
||||
"dependencies": {
|
||||
"@babel/parser": "^7.20.15",
|
||||
"@vue/compiler-core": "3.3.4",
|
||||
"@vue/compiler-dom": "3.3.4",
|
||||
"@vue/compiler-ssr": "3.3.4",
|
||||
"@vue/reactivity-transform": "3.3.4",
|
||||
"@vue/shared": "3.3.4",
|
||||
"@babel/parser": "^7.24.4",
|
||||
"@vue/compiler-core": "3.4.27",
|
||||
"@vue/compiler-dom": "3.4.27",
|
||||
"@vue/compiler-ssr": "3.4.27",
|
||||
"@vue/shared": "3.4.27",
|
||||
"estree-walker": "^2.0.2",
|
||||
"magic-string": "^0.30.0",
|
||||
"postcss": "^8.1.10",
|
||||
"source-map-js": "^1.0.2"
|
||||
"magic-string": "^0.30.10",
|
||||
"postcss": "^8.4.38",
|
||||
"source-map-js": "^1.2.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@vue/compiler-ssr": {
|
||||
"version": "3.3.4",
|
||||
"resolved": "https://registry.npmjs.org/@vue/compiler-ssr/-/compiler-ssr-3.3.4.tgz",
|
||||
"integrity": "sha512-m0v6oKpup2nMSehwA6Uuu+j+wEwcy7QmwMkVNVfrV9P2qE5KshC6RwOCq8fjGS/Eak/uNb8AaWekfiXxbBB6gQ==",
|
||||
"version": "3.4.27",
|
||||
"resolved": "https://registry.npmjs.org/@vue/compiler-ssr/-/compiler-ssr-3.4.27.tgz",
|
||||
"integrity": "sha512-CVRzSJIltzMG5FcidsW0jKNQnNRYC8bT21VegyMMtHmhW3UOI7knmUehzswXLrExDLE6lQCZdrhD4ogI7c+vuw==",
|
||||
"dependencies": {
|
||||
"@vue/compiler-dom": "3.3.4",
|
||||
"@vue/shared": "3.3.4"
|
||||
"@vue/compiler-dom": "3.4.27",
|
||||
"@vue/shared": "3.4.27"
|
||||
}
|
||||
},
|
||||
"node_modules/@vue/component-compiler-utils": {
|
||||
@@ -4332,65 +3977,53 @@
|
||||
"integrity": "sha512-ncTzHV7NvsQZkYe1DW7cbDLm0YpzHmZF5r/iyP3ZnQtMiJ+pjzisCiMNI+Sj+xQF5pXhSHxSB3uDbsBTzY/c2A=="
|
||||
},
|
||||
"node_modules/@vue/devtools-api": {
|
||||
"version": "6.5.0",
|
||||
"resolved": "https://registry.npmjs.org/@vue/devtools-api/-/devtools-api-6.5.0.tgz",
|
||||
"integrity": "sha512-o9KfBeaBmCKl10usN4crU53fYtC1r7jJwdGKjPT24t348rHxgfpZ0xL3Xm/gLUYnc0oTp8LAmrxOeLyu6tbk2Q=="
|
||||
"version": "6.6.1",
|
||||
"resolved": "https://registry.npmjs.org/@vue/devtools-api/-/devtools-api-6.6.1.tgz",
|
||||
"integrity": "sha512-LgPscpE3Vs0x96PzSSB4IGVSZXZBZHpfxs+ZA1d+VEPwHdOXowy/Y2CsvCAIFrf+ssVU1pD1jidj505EpUnfbA=="
|
||||
},
|
||||
"node_modules/@vue/reactivity": {
|
||||
"version": "3.3.4",
|
||||
"resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.3.4.tgz",
|
||||
"integrity": "sha512-kLTDLwd0B1jG08NBF3R5rqULtv/f8x3rOFByTDz4J53ttIQEDmALqKqXY0J+XQeN0aV2FBxY8nJDf88yvOPAqQ==",
|
||||
"version": "3.4.27",
|
||||
"resolved": "https://registry.npmjs.org/@vue/reactivity/-/reactivity-3.4.27.tgz",
|
||||
"integrity": "sha512-kK0g4NknW6JX2yySLpsm2jlunZJl2/RJGZ0H9ddHdfBVHcNzxmQ0sS0b09ipmBoQpY8JM2KmUw+a6sO8Zo+zIA==",
|
||||
"dependencies": {
|
||||
"@vue/shared": "3.3.4"
|
||||
}
|
||||
},
|
||||
"node_modules/@vue/reactivity-transform": {
|
||||
"version": "3.3.4",
|
||||
"resolved": "https://registry.npmjs.org/@vue/reactivity-transform/-/reactivity-transform-3.3.4.tgz",
|
||||
"integrity": "sha512-MXgwjako4nu5WFLAjpBnCj/ieqcjE2aJBINUNQzkZQfzIZA4xn+0fV1tIYBJvvva3N3OvKGofRLvQIwEQPpaXw==",
|
||||
"dependencies": {
|
||||
"@babel/parser": "^7.20.15",
|
||||
"@vue/compiler-core": "3.3.4",
|
||||
"@vue/shared": "3.3.4",
|
||||
"estree-walker": "^2.0.2",
|
||||
"magic-string": "^0.30.0"
|
||||
"@vue/shared": "3.4.27"
|
||||
}
|
||||
},
|
||||
"node_modules/@vue/runtime-core": {
|
||||
"version": "3.3.4",
|
||||
"resolved": "https://registry.npmjs.org/@vue/runtime-core/-/runtime-core-3.3.4.tgz",
|
||||
"integrity": "sha512-R+bqxMN6pWO7zGI4OMlmvePOdP2c93GsHFM/siJI7O2nxFRzj55pLwkpCedEY+bTMgp5miZ8CxfIZo3S+gFqvA==",
|
||||
"version": "3.4.27",
|
||||
"resolved": "https://registry.npmjs.org/@vue/runtime-core/-/runtime-core-3.4.27.tgz",
|
||||
"integrity": "sha512-7aYA9GEbOOdviqVvcuweTLe5Za4qBZkUY7SvET6vE8kyypxVgaT1ixHLg4urtOlrApdgcdgHoTZCUuTGap/5WA==",
|
||||
"dependencies": {
|
||||
"@vue/reactivity": "3.3.4",
|
||||
"@vue/shared": "3.3.4"
|
||||
"@vue/reactivity": "3.4.27",
|
||||
"@vue/shared": "3.4.27"
|
||||
}
|
||||
},
|
||||
"node_modules/@vue/runtime-dom": {
|
||||
"version": "3.3.4",
|
||||
"resolved": "https://registry.npmjs.org/@vue/runtime-dom/-/runtime-dom-3.3.4.tgz",
|
||||
"integrity": "sha512-Aj5bTJ3u5sFsUckRghsNjVTtxZQ1OyMWCr5dZRAPijF/0Vy4xEoRCwLyHXcj4D0UFbJ4lbx3gPTgg06K/GnPnQ==",
|
||||
"version": "3.4.27",
|
||||
"resolved": "https://registry.npmjs.org/@vue/runtime-dom/-/runtime-dom-3.4.27.tgz",
|
||||
"integrity": "sha512-ScOmP70/3NPM+TW9hvVAz6VWWtZJqkbdf7w6ySsws+EsqtHvkhxaWLecrTorFxsawelM5Ys9FnDEMt6BPBDS0Q==",
|
||||
"dependencies": {
|
||||
"@vue/runtime-core": "3.3.4",
|
||||
"@vue/shared": "3.3.4",
|
||||
"csstype": "^3.1.1"
|
||||
"@vue/runtime-core": "3.4.27",
|
||||
"@vue/shared": "3.4.27",
|
||||
"csstype": "^3.1.3"
|
||||
}
|
||||
},
|
||||
"node_modules/@vue/server-renderer": {
|
||||
"version": "3.3.4",
|
||||
"resolved": "https://registry.npmjs.org/@vue/server-renderer/-/server-renderer-3.3.4.tgz",
|
||||
"integrity": "sha512-Q6jDDzR23ViIb67v+vM1Dqntu+HUexQcsWKhhQa4ARVzxOY2HbC7QRW/ggkDBd5BU+uM1sV6XOAP0b216o34JQ==",
|
||||
"version": "3.4.27",
|
||||
"resolved": "https://registry.npmjs.org/@vue/server-renderer/-/server-renderer-3.4.27.tgz",
|
||||
"integrity": "sha512-dlAMEuvmeA3rJsOMJ2J1kXU7o7pOxgsNHVr9K8hB3ImIkSuBrIdy0vF66h8gf8Tuinf1TK3mPAz2+2sqyf3KzA==",
|
||||
"dependencies": {
|
||||
"@vue/compiler-ssr": "3.3.4",
|
||||
"@vue/shared": "3.3.4"
|
||||
"@vue/compiler-ssr": "3.4.27",
|
||||
"@vue/shared": "3.4.27"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"vue": "3.3.4"
|
||||
"vue": "3.4.27"
|
||||
}
|
||||
},
|
||||
"node_modules/@vue/shared": {
|
||||
"version": "3.3.4",
|
||||
"resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.3.4.tgz",
|
||||
"integrity": "sha512-7OjdcV8vQ74eiz1TZLzZP4JwqM5fA94K6yntPS5Z25r9HDuGNzaGdgvwKYq6S+MxwF0TFRwe50fIR/MYnakdkQ=="
|
||||
"version": "3.4.27",
|
||||
"resolved": "https://registry.npmjs.org/@vue/shared/-/shared-3.4.27.tgz",
|
||||
"integrity": "sha512-DL3NmY2OFlqmYYrzp39yi3LDkKxa5vZVwxWdQ3rG0ekuWscHraeIbnI8t+aZK7qhYqEqWKTUdijadunb9pnrgA=="
|
||||
},
|
||||
"node_modules/@vuelidate/core": {
|
||||
"version": "2.0.3",
|
||||
@@ -5387,11 +5020,6 @@
|
||||
"resolved": "https://registry.npmjs.org/bluebird/-/bluebird-3.7.2.tgz",
|
||||
"integrity": "sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg=="
|
||||
},
|
||||
"node_modules/blurhash": {
|
||||
"version": "2.0.5",
|
||||
"resolved": "https://registry.npmjs.org/blurhash/-/blurhash-2.0.5.tgz",
|
||||
"integrity": "sha512-cRygWd7kGBQO3VEhPiTgq4Wc43ctsM+o46urrmPOiuAe+07fzlSB9OJVdpgDL0jPqXUVQ9ht7aq7kxOeJHRK+w=="
|
||||
},
|
||||
"node_modules/bn.js": {
|
||||
"version": "5.2.1",
|
||||
"resolved": "https://registry.npmjs.org/bn.js/-/bn.js-5.2.1.tgz",
|
||||
@@ -6128,26 +5756,6 @@
|
||||
"safe-buffer": "^5.0.1"
|
||||
}
|
||||
},
|
||||
"node_modules/ckeditor5": {
|
||||
"version": "41.3.1",
|
||||
"resolved": "https://registry.npmjs.org/ckeditor5/-/ckeditor5-41.3.1.tgz",
|
||||
"integrity": "sha512-pBK1YZV9Sy4R53XG70TEeLFOvTFC7tg8AmS6d6zizegtwkH8seblkcERkykcNuvmfzZ/2h9JbafJ4kisZOwiUQ==",
|
||||
"dependencies": {
|
||||
"@ckeditor/ckeditor5-clipboard": "41.3.1",
|
||||
"@ckeditor/ckeditor5-core": "41.3.1",
|
||||
"@ckeditor/ckeditor5-engine": "41.3.1",
|
||||
"@ckeditor/ckeditor5-enter": "41.3.1",
|
||||
"@ckeditor/ckeditor5-paragraph": "41.3.1",
|
||||
"@ckeditor/ckeditor5-select-all": "41.3.1",
|
||||
"@ckeditor/ckeditor5-typing": "41.3.1",
|
||||
"@ckeditor/ckeditor5-ui": "41.3.1",
|
||||
"@ckeditor/ckeditor5-undo": "41.3.1",
|
||||
"@ckeditor/ckeditor5-upload": "41.3.1",
|
||||
"@ckeditor/ckeditor5-utils": "41.3.1",
|
||||
"@ckeditor/ckeditor5-watchdog": "41.3.1",
|
||||
"@ckeditor/ckeditor5-widget": "41.3.1"
|
||||
}
|
||||
},
|
||||
"node_modules/clap": {
|
||||
"version": "1.2.3",
|
||||
"resolved": "https://registry.npmjs.org/clap/-/clap-1.2.3.tgz",
|
||||
@@ -6499,14 +6107,6 @@
|
||||
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
|
||||
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="
|
||||
},
|
||||
"node_modules/color-parse": {
|
||||
"version": "1.4.2",
|
||||
"resolved": "https://registry.npmjs.org/color-parse/-/color-parse-1.4.2.tgz",
|
||||
"integrity": "sha512-RI7s49/8yqDj3fECFZjUI1Yi0z/Gq1py43oNJivAIIDSyJiOZLfYCRQEgn8HEVAj++PcRe8AnL2XF0fRJ3BTnA==",
|
||||
"dependencies": {
|
||||
"color-name": "^1.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/color-string": {
|
||||
"version": "0.3.0",
|
||||
"resolved": "https://registry.npmjs.org/color-string/-/color-string-0.3.0.tgz",
|
||||
@@ -7200,9 +6800,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/csstype": {
|
||||
"version": "3.1.2",
|
||||
"resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.2.tgz",
|
||||
"integrity": "sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ=="
|
||||
"version": "3.1.3",
|
||||
"resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz",
|
||||
"integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw=="
|
||||
},
|
||||
"node_modules/cyclist": {
|
||||
"version": "1.0.2",
|
||||
@@ -7892,6 +7492,17 @@
|
||||
"safe-buffer": "~5.1.0"
|
||||
}
|
||||
},
|
||||
"node_modules/entities": {
|
||||
"version": "4.5.0",
|
||||
"resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz",
|
||||
"integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==",
|
||||
"engines": {
|
||||
"node": ">=0.12"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/fb55/entities?sponsor=1"
|
||||
}
|
||||
},
|
||||
"node_modules/errno": {
|
||||
"version": "0.1.8",
|
||||
"resolved": "https://registry.npmjs.org/errno/-/errno-0.1.8.tgz",
|
||||
@@ -11619,11 +11230,6 @@
|
||||
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",
|
||||
"integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg=="
|
||||
},
|
||||
"node_modules/lodash-es": {
|
||||
"version": "4.17.21",
|
||||
"resolved": "https://registry.npmjs.org/lodash-es/-/lodash-es-4.17.21.tgz",
|
||||
"integrity": "sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw=="
|
||||
},
|
||||
"node_modules/lodash._reinterpolate": {
|
||||
"version": "3.0.0",
|
||||
"resolved": "https://registry.npmjs.org/lodash._reinterpolate/-/lodash._reinterpolate-3.0.0.tgz",
|
||||
@@ -11700,14 +11306,11 @@
|
||||
}
|
||||
},
|
||||
"node_modules/magic-string": {
|
||||
"version": "0.30.2",
|
||||
"resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.2.tgz",
|
||||
"integrity": "sha512-lNZdu7pewtq/ZvWUp9Wpf/x7WzMTsR26TWV03BRZrXFsv+BI6dy8RAiKgm1uM/kyR0rCfUcqvOlXKG66KhIGug==",
|
||||
"version": "0.30.10",
|
||||
"resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.10.tgz",
|
||||
"integrity": "sha512-iIRwTIf0QKV3UAnYK4PU8uiEc4SRh5jX0mwpIwETPpHdhVM4f53RSwS/vXvN1JhGX+Cs7B8qIq3d6AH49O5fAQ==",
|
||||
"dependencies": {
|
||||
"@jridgewell/sourcemap-codec": "^1.4.15"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
}
|
||||
},
|
||||
"node_modules/make-dir": {
|
||||
@@ -13242,11 +12845,6 @@
|
||||
"node": ">=8"
|
||||
}
|
||||
},
|
||||
"node_modules/pofile": {
|
||||
"version": "1.1.4",
|
||||
"resolved": "https://registry.npmjs.org/pofile/-/pofile-1.1.4.tgz",
|
||||
"integrity": "sha512-r6Q21sKsY1AjTVVjOuU02VYKVNQGJNQHjTIvs4dEbeuuYfxgYk/DGD2mqqq4RDaVkwdSq0VEtmQUOPe/wH8X3g=="
|
||||
},
|
||||
"node_modules/polished": {
|
||||
"version": "4.2.2",
|
||||
"resolved": "https://registry.npmjs.org/polished/-/polished-4.2.2.tgz",
|
||||
@@ -13278,9 +12876,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/postcss": {
|
||||
"version": "8.4.32",
|
||||
"resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.32.tgz",
|
||||
"integrity": "sha512-D/kj5JNu6oo2EIy+XL/26JEDTlIbB8hw85G8StOE6L74RQAVVP5rej6wxCNqyMbR4RkPfqvezVbPw81Ngd6Kcw==",
|
||||
"version": "8.4.38",
|
||||
"resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.38.tgz",
|
||||
"integrity": "sha512-Wglpdk03BSfXkHoQa3b/oulrotAkwrlLDRSOb9D0bN86FdRyE9lppSp33aHNPgBa0JKCoB+drFLZkQoRRYae5A==",
|
||||
"funding": [
|
||||
{
|
||||
"type": "opencollective",
|
||||
@@ -13298,7 +12896,7 @@
|
||||
"dependencies": {
|
||||
"nanoid": "^3.3.7",
|
||||
"picocolors": "^1.0.0",
|
||||
"source-map-js": "^1.0.2"
|
||||
"source-map-js": "^1.2.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": "^10 || ^12 || >=14"
|
||||
@@ -16393,6 +15991,11 @@
|
||||
"integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==",
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/property-expr": {
|
||||
"version": "2.0.6",
|
||||
"resolved": "https://registry.npmjs.org/property-expr/-/property-expr-2.0.6.tgz",
|
||||
"integrity": "sha512-SVtmxhRE/CGkn3eZY1T6pC8Nln6Fr/lu1mKSgRud0eC73whjGfoAogbn78LkD8aFL0zz3bAFerKSnOl7NlErBA=="
|
||||
},
|
||||
"node_modules/proxy-addr": {
|
||||
"version": "2.0.7",
|
||||
"resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz",
|
||||
@@ -17905,9 +17508,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/source-map-js": {
|
||||
"version": "1.0.2",
|
||||
"resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.0.2.tgz",
|
||||
"integrity": "sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==",
|
||||
"version": "1.2.0",
|
||||
"resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.0.tgz",
|
||||
"integrity": "sha512-itJW8lvSA0TXEphiRoawsCksnlf8SyvmFzIhltqAHluXd88pkCd+cXJVHTDwdCr0IzwptSm035IHQktUu1QUMg==",
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
}
|
||||
@@ -18860,6 +18463,11 @@
|
||||
"node": ">=0.6.0"
|
||||
}
|
||||
},
|
||||
"node_modules/tiny-case": {
|
||||
"version": "1.0.3",
|
||||
"resolved": "https://registry.npmjs.org/tiny-case/-/tiny-case-1.0.3.tgz",
|
||||
"integrity": "sha512-Eet/eeMhkO6TX8mnUteS9zgPbUMQa4I6Kkp5ORiBD5476/m+PIRiumP5tmh5ioJpH7k51Kehawy2UDfsnxxY8Q=="
|
||||
},
|
||||
"node_modules/tiny-invariant": {
|
||||
"version": "1.3.1",
|
||||
"resolved": "https://registry.npmjs.org/tiny-invariant/-/tiny-invariant-1.3.1.tgz",
|
||||
@@ -18964,6 +18572,11 @@
|
||||
"integrity": "sha512-VSsyNPPW74RpHwR8Fc21uubwHY7wMDeJLys2IX5zJNih+OnAnaifKHo+1LHT7DAdloQ7apeaaWg8l7qnf/TnEg==",
|
||||
"dev": true
|
||||
},
|
||||
"node_modules/toposort": {
|
||||
"version": "2.0.2",
|
||||
"resolved": "https://registry.npmjs.org/toposort/-/toposort-2.0.2.tgz",
|
||||
"integrity": "sha512-0a5EOkAUp8D4moMi2W8ZF8jcga7BgZd91O/yabJCFY8az+XSzeGyTKs0Aoo897iV1Nj6guFq8orWDS96z91oGg=="
|
||||
},
|
||||
"node_modules/tr46": {
|
||||
"version": "0.0.3",
|
||||
"resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz",
|
||||
@@ -19511,11 +19124,6 @@
|
||||
"spdx-expression-parse": "^3.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/vanilla-colorful": {
|
||||
"version": "0.7.2",
|
||||
"resolved": "https://registry.npmjs.org/vanilla-colorful/-/vanilla-colorful-0.7.2.tgz",
|
||||
"integrity": "sha512-z2YZusTFC6KnLERx1cgoIRX2CjPRP0W75N+3CC6gbvdX5Ch47rZkEMGO2Xnf+IEmi3RiFLxS18gayMA27iU7Kg=="
|
||||
},
|
||||
"node_modules/vary": {
|
||||
"version": "1.1.2",
|
||||
"resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz",
|
||||
@@ -19525,6 +19133,29 @@
|
||||
"node": ">= 0.8"
|
||||
}
|
||||
},
|
||||
"node_modules/vee-validate": {
|
||||
"version": "4.12.8",
|
||||
"resolved": "https://registry.npmjs.org/vee-validate/-/vee-validate-4.12.8.tgz",
|
||||
"integrity": "sha512-A07rm3+y7SRk0CMD/O4nBT0nxtwjyfzGZwjEUDk18SxK0ZMzd4AFCzzdHlIiCE1QgHetxd0I3kVkZdN0GG0Oww==",
|
||||
"dependencies": {
|
||||
"@vue/devtools-api": "^6.6.1",
|
||||
"type-fest": "^4.8.3"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"vue": "^3.4.26"
|
||||
}
|
||||
},
|
||||
"node_modules/vee-validate/node_modules/type-fest": {
|
||||
"version": "4.18.2",
|
||||
"resolved": "https://registry.npmjs.org/type-fest/-/type-fest-4.18.2.tgz",
|
||||
"integrity": "sha512-+suCYpfJLAe4OXS6+PPXjW3urOS4IoP9waSiLuXfLgqZODKw/aWwASvzqE886wA0kQgGy0mIWyhd87VpqIy6Xg==",
|
||||
"engines": {
|
||||
"node": ">=16"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/sindresorhus"
|
||||
}
|
||||
},
|
||||
"node_modules/vendors": {
|
||||
"version": "1.0.4",
|
||||
"resolved": "https://registry.npmjs.org/vendors/-/vendors-1.0.4.tgz",
|
||||
@@ -19622,15 +19253,23 @@
|
||||
}
|
||||
},
|
||||
"node_modules/vue": {
|
||||
"version": "3.3.4",
|
||||
"resolved": "https://registry.npmjs.org/vue/-/vue-3.3.4.tgz",
|
||||
"integrity": "sha512-VTyEYn3yvIeY1Py0WaYGZsXnz3y5UnGi62GjVEqvEGPl6nxbOrCXbVOTQWBEJUqAyTUk2uJ5JLVnYJ6ZzGbrSw==",
|
||||
"version": "3.4.27",
|
||||
"resolved": "https://registry.npmjs.org/vue/-/vue-3.4.27.tgz",
|
||||
"integrity": "sha512-8s/56uK6r01r1icG/aEOHqyMVxd1bkYcSe9j8HcKtr/xTOFWvnzIVTehNW+5Yt89f+DLBe4A569pnZLS5HzAMA==",
|
||||
"dependencies": {
|
||||
"@vue/compiler-dom": "3.3.4",
|
||||
"@vue/compiler-sfc": "3.3.4",
|
||||
"@vue/runtime-dom": "3.3.4",
|
||||
"@vue/server-renderer": "3.3.4",
|
||||
"@vue/shared": "3.3.4"
|
||||
"@vue/compiler-dom": "3.4.27",
|
||||
"@vue/compiler-sfc": "3.4.27",
|
||||
"@vue/runtime-dom": "3.4.27",
|
||||
"@vue/server-renderer": "3.4.27",
|
||||
"@vue/shared": "3.4.27"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"typescript": "*"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"typescript": {
|
||||
"optional": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"node_modules/vue-cal": {
|
||||
@@ -20863,9 +20502,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/vuetify": {
|
||||
"version": "3.6.6",
|
||||
"resolved": "https://registry.npmjs.org/vuetify/-/vuetify-3.6.6.tgz",
|
||||
"integrity": "sha512-7RkL0kuLsVUbc0YCwhPhVq54gSFKt5xv+SOrF01dxwJz7Ke3tAbvO616WhhQIfS78h1q/Ev952WJj5jpsdK58g==",
|
||||
"version": "3.5.2",
|
||||
"resolved": "https://registry.npmjs.org/vuetify/-/vuetify-3.5.2.tgz",
|
||||
"integrity": "sha512-H/g9+8Loykt50qe9mruHkwWsAIgfQ8gO+SPTAV2uaCFmfYPSFRfu0aGcZ42iWu4bZ9ZkgswIIDaVsfnKINd8yg==",
|
||||
"engines": {
|
||||
"node": "^12.20 || >=14.13"
|
||||
},
|
||||
@@ -20875,10 +20514,10 @@
|
||||
},
|
||||
"peerDependencies": {
|
||||
"typescript": ">=4.7",
|
||||
"vite-plugin-vuetify": ">=1.0.0",
|
||||
"vite-plugin-vuetify": ">=1.0.0-alpha.12",
|
||||
"vue": "^3.3.0",
|
||||
"vue-i18n": "^9.0.0",
|
||||
"webpack-plugin-vuetify": ">=2.0.0"
|
||||
"webpack-plugin-vuetify": ">=2.0.0-alpha.11"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"typescript": {
|
||||
@@ -21994,6 +21633,28 @@
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/sindresorhus"
|
||||
}
|
||||
},
|
||||
"node_modules/yup": {
|
||||
"version": "1.4.0",
|
||||
"resolved": "https://registry.npmjs.org/yup/-/yup-1.4.0.tgz",
|
||||
"integrity": "sha512-wPbgkJRCqIf+OHyiTBQoJiP5PFuAXaWiJK6AmYkzQAh5/c2K9hzSApBZG5wV9KoKSePF7sAxmNSvh/13YHkFDg==",
|
||||
"dependencies": {
|
||||
"property-expr": "^2.0.5",
|
||||
"tiny-case": "^1.0.3",
|
||||
"toposort": "^2.0.2",
|
||||
"type-fest": "^2.19.0"
|
||||
}
|
||||
},
|
||||
"node_modules/yup/node_modules/type-fest": {
|
||||
"version": "2.19.0",
|
||||
"resolved": "https://registry.npmjs.org/type-fest/-/type-fest-2.19.0.tgz",
|
||||
"integrity": "sha512-RAH822pAdBgcNMAfWnCBU3CFZcfZ/i1eZjwFU/dsLKumyuuP3niueg2UAukXYF0E2AAoc82ZSSf9J0WQBinzHA==",
|
||||
"engines": {
|
||||
"node": ">=12.20"
|
||||
},
|
||||
"funding": {
|
||||
"url": "https://github.com/sponsors/sindresorhus"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -11,9 +11,6 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"-": "^0.0.1",
|
||||
"@ckeditor/ckeditor5-build-classic": "^41.3.1",
|
||||
"@ckeditor/ckeditor5-dev-translations": "^39.8.0",
|
||||
"@ckeditor/ckeditor5-vue": "^5.1.0",
|
||||
"@mdi/font": "7.0.96",
|
||||
"@vue-flow/background": "^1.3.0",
|
||||
"@vue-flow/controls": "^1.1.1",
|
||||
@@ -36,6 +33,7 @@
|
||||
"pinia": "^2.0.23",
|
||||
"roboto-fontface": "*",
|
||||
"v-tooltip": "^2.1.3",
|
||||
"vee-validate": "^4.12.8",
|
||||
"vue": "^3.2.0",
|
||||
"vue-cal": "^4.8.1",
|
||||
"vue-chartjs": "^5.3.0",
|
||||
@@ -44,8 +42,9 @@
|
||||
"vue-router": "^4.0.0",
|
||||
"vue3-autocounter": "^1.0.6",
|
||||
"vuelidate": "^0.7.7",
|
||||
"vuetify": "^3.6.6",
|
||||
"webfontloader": "^1.0.0"
|
||||
"vuetify": "^3.0.0",
|
||||
"webfontloader": "^1.0.0",
|
||||
"yup": "^1.4.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@storybook/addon-essentials": "^7.4.6",
|
||||
|
||||
@@ -0,0 +1,51 @@
|
||||
<template>
|
||||
<v-row no-gutters class="flex-column gap pa-1">
|
||||
<v-col class="bg-green flex-grow-0">
|
||||
<v-card>
|
||||
<v-tabs
|
||||
v-model="tab"
|
||||
bg-color="teal-darken-1"
|
||||
slider-color="teal-lighten-3"
|
||||
selected-class="active-tab"
|
||||
:grow="true"
|
||||
>
|
||||
<v-tab
|
||||
v-for="(tabitem, key) in tabs"
|
||||
:value="tabitem.value"
|
||||
:key="key"
|
||||
|
||||
>
|
||||
{{ tabitem.title }}
|
||||
</v-tab>
|
||||
</v-tabs>
|
||||
|
||||
</v-card>
|
||||
</v-col>
|
||||
<v-col class="flex-column">
|
||||
<v-window v-model="tab" class="h-100">
|
||||
<slot name="item" />
|
||||
</v-window>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { ref } from "vue";
|
||||
|
||||
export default {
|
||||
props: {
|
||||
tabs: {
|
||||
type: Object,
|
||||
default: () => {},
|
||||
},
|
||||
},
|
||||
|
||||
setup() {
|
||||
return {
|
||||
tab: ref(null),
|
||||
};
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style></style>
|
||||
@@ -1,169 +1,246 @@
|
||||
<template>
|
||||
<v-row class="ma-1">
|
||||
<v-col lg="6" class="d-flex justify-center align-start">
|
||||
<v-card :elevation="5">
|
||||
<div style="width:915px;height:832px; ">
|
||||
<l-map :zoom="13" :min-zoom="13" :center="markers[0].coordinate">
|
||||
<l-tile-layer :url="`${baseURL}media/Tiles/{z}/{x}/{y}.png`" />
|
||||
<l-marker v-for="marker in markers" :key="marker" :lat-lng="marker.coordinate"
|
||||
:icon="icon(marker.icon)">
|
||||
<l-tooltip>
|
||||
<p>{{ marker.tooltip }}</p>
|
||||
<p style="max-width: 20%; min-width: 20%; word-wrap: break-word;">{{ marker.tooltip_bus }}
|
||||
</p>
|
||||
</l-tooltip>
|
||||
</l-marker>
|
||||
|
||||
</l-map>
|
||||
</div>
|
||||
</v-card>
|
||||
</v-col>
|
||||
|
||||
<v-col lg="6" class="d-flex flex-column gap">
|
||||
|
||||
<v-card :elevation="5">
|
||||
|
||||
<v-card-title class="d-flex justify-center bg-teal-lighten-5 text-teal-darken-4">
|
||||
<v-row>
|
||||
<v-col lg="5" class="d-flex justify-center">Адрес</v-col>
|
||||
<v-col lg="6" class="d-flex justify-center">Время работы</v-col>
|
||||
</v-row>
|
||||
</v-card-title>
|
||||
<v-row class="d-flex justify-center align-center">
|
||||
<v-col lg="4">
|
||||
<v-card-text class="text-subtitle-1">
|
||||
{{ address.building }}
|
||||
</v-card-text>
|
||||
<v-card-text class="text-subtitle-1">
|
||||
{{ address.phone }}
|
||||
</v-card-text>
|
||||
</v-col>
|
||||
<v-col lg="7">
|
||||
<v-list>
|
||||
<v-list-item v-for="work_time in work_times">
|
||||
<v-row>
|
||||
<v-col lg="6" class="text-subtitle-1 d-flex justify-center align-center">{{
|
||||
work_time.day
|
||||
}}</v-col>
|
||||
<v-col lg="6" class="text-subtitle-1 d-flex justify-center align-center">{{
|
||||
work_time.time
|
||||
}}</v-col>
|
||||
</v-row>
|
||||
</v-list-item>
|
||||
</v-list>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-card>
|
||||
<v-card :elevation="5">
|
||||
<v-card-title class="text-h6 d-flex justify-center bg-teal-lighten-5 text-teal-darken-4">
|
||||
Способ проезда
|
||||
</v-card-title>
|
||||
<v-row no-gutters class="h-100 gap">
|
||||
<v-col lg="5" md="12" sm="12" xs="12" class="flex-column d-flex">
|
||||
<v-card elevation="5" class="h-100" min-height="250">
|
||||
<l-map :zoom="14" :min-zoom="14" :center="markers[0].coordinate">
|
||||
<l-tile-layer :url="`${baseURL}media/Tiles/{z}/{x}/{y}.png`" />
|
||||
<l-marker
|
||||
v-for="marker in markers"
|
||||
:key="marker"
|
||||
:lat-lng="marker.coordinate"
|
||||
:icon="icon(marker.icon)"
|
||||
>
|
||||
<l-tooltip>
|
||||
<p>{{ marker.tooltip }}</p>
|
||||
<p style="max-width: 20%; min-width: 20%; word-wrap: break-word">
|
||||
{{ marker.tooltip_bus }}
|
||||
</p>
|
||||
</l-tooltip>
|
||||
</l-marker>
|
||||
</l-map>
|
||||
</v-card>
|
||||
</v-col>
|
||||
<v-col class="flex-column">
|
||||
<v-row no-gutters class="h-100 gap flex-column">
|
||||
<v-col lg="3" class="w100 flex-column">
|
||||
<v-card class="h-100 flex-column d-flex" elevation="5">
|
||||
<v-card-title
|
||||
class="d-flex justify-center bg-teal-lighten-5 text-teal-darken-4"
|
||||
>
|
||||
<v-row>
|
||||
<v-col lg="5" class="d-flex justify-center">Адрес</v-col>
|
||||
<v-col lg="6" class="d-flex justify-center">Время работы</v-col>
|
||||
</v-row>
|
||||
</v-card-title>
|
||||
<v-row class="d-flex justify-center align-center">
|
||||
<v-col lg="4">
|
||||
<v-card-text class="text-subtitle-1">
|
||||
<v-list>
|
||||
<v-list-item v-for="address_path in address_pathes" class="pa-7">
|
||||
<strong>{{ address_path.title_path }}</strong>{{ address_path.path }}
|
||||
</v-list-item>
|
||||
</v-list>
|
||||
{{ address.building }}
|
||||
</v-card-text>
|
||||
</v-card>
|
||||
|
||||
<v-card-text class="text-subtitle-1">
|
||||
{{ address.phone }}
|
||||
</v-card-text>
|
||||
</v-col>
|
||||
<v-col lg="7">
|
||||
<v-list>
|
||||
<v-list-item v-for="work_time in work_times" :key="work_time">
|
||||
<v-row>
|
||||
<v-col
|
||||
lg="6"
|
||||
class="text-subtitle-1 d-flex justify-center align-center"
|
||||
>{{ work_time.day }}</v-col
|
||||
>
|
||||
<v-col
|
||||
lg="6"
|
||||
class="text-subtitle-1 d-flex justify-center align-center"
|
||||
>{{ work_time.time }}</v-col
|
||||
>
|
||||
</v-row>
|
||||
</v-list-item>
|
||||
</v-list>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-card>
|
||||
</v-col>
|
||||
|
||||
</v-row>
|
||||
<v-col>
|
||||
<v-card class="h-100 flex-column d-flex" elevation="5">
|
||||
<v-card-title
|
||||
class="text-h6 d-flex justify-center bg-teal-lighten-5 text-teal-darken-4"
|
||||
>
|
||||
Способ проезда
|
||||
</v-card-title>
|
||||
<v-card-text class="text-subtitle-1">
|
||||
<v-list lines="three">
|
||||
<v-list-item
|
||||
v-for="address_path in address_pathes"
|
||||
:key="address_path"
|
||||
>
|
||||
<strong>{{ address_path.title_path }}</strong
|
||||
>{{ address_path.path }}
|
||||
</v-list-item>
|
||||
</v-list>
|
||||
</v-card-text>
|
||||
</v-card>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</template>
|
||||
<script>
|
||||
import { ref } from 'vue'
|
||||
import { baseURL } from '@/utils/axios-api'
|
||||
import { ref } from "vue";
|
||||
import { baseURL } from "@/utils/axios-api";
|
||||
import "leaflet/dist/leaflet.css";
|
||||
import { LMap, LTileLayer, LMarker, LTooltip } from "@vue-leaflet/vue-leaflet";
|
||||
import { L, icon } from "leaflet"
|
||||
import { L, icon } from "leaflet";
|
||||
|
||||
export default {
|
||||
components: {
|
||||
LMap,
|
||||
LTileLayer,
|
||||
LMarker,
|
||||
LTooltip,
|
||||
L,
|
||||
icon
|
||||
},
|
||||
setup() {
|
||||
components: {
|
||||
LMap,
|
||||
LTileLayer,
|
||||
LMarker,
|
||||
LTooltip,
|
||||
L,
|
||||
icon,
|
||||
},
|
||||
setup() {
|
||||
const pathbuild = (icon) => {
|
||||
return `${baseURL}media/map_icons/${icon}.png`;
|
||||
};
|
||||
const icons = {
|
||||
icon_cod: {
|
||||
iconUrl: pathbuild(`fns`),
|
||||
iconSize: [30, 30],
|
||||
iconAnchor: [16, 40],
|
||||
},
|
||||
icon_metro: {
|
||||
iconUrl: pathbuild(`mos_metro`),
|
||||
iconSize: [30, 25],
|
||||
iconAnchor: [10, 20],
|
||||
},
|
||||
icon_mcd: {
|
||||
iconUrl: pathbuild(`mcd_d2`),
|
||||
iconSize: [32, 18],
|
||||
iconAnchor: [10, 20],
|
||||
},
|
||||
icon_bus: {
|
||||
iconUrl: pathbuild(`bus`),
|
||||
iconSize: [18, 18],
|
||||
iconAnchor: [1, 1],
|
||||
},
|
||||
};
|
||||
const markers = ref([
|
||||
{
|
||||
coordinate: [55.83451, 37.40848],
|
||||
icon: icons.icon_cod,
|
||||
tooltip: "МИ ФНС России по ЦОД №2",
|
||||
tooltip_bus: "",
|
||||
},
|
||||
{
|
||||
coordinate: [55.83309, 37.39933],
|
||||
icon: icons.icon_mcd,
|
||||
tooltip: 'МЦД D2: пл."Трикотажная"',
|
||||
tooltip_bus: "",
|
||||
},
|
||||
{
|
||||
coordinate: [55.82741, 37.43715],
|
||||
icon: icons.icon_metro,
|
||||
tooltip: 'Ст.метро: "Тушинская"',
|
||||
tooltip_bus: "",
|
||||
},
|
||||
{
|
||||
coordinate: [55.82705, 37.4411],
|
||||
icon: icons.icon_mcd,
|
||||
tooltip: 'МЦД D2: пл. "Тушинская"',
|
||||
tooltip_bus: "",
|
||||
},
|
||||
{
|
||||
coordinate: [55.8496, 37.43925],
|
||||
icon: icons.icon_metro,
|
||||
tooltip: 'Ст.метро: "Сходненская"',
|
||||
tooltip_bus: "",
|
||||
},
|
||||
{
|
||||
coordinate: [55.835274, 37.411052],
|
||||
icon: icons.icon_bus,
|
||||
tooltip: 'Остановка: "Налоговый городок"',
|
||||
tooltip_bus: "Автобусы:№368, №с377",
|
||||
},
|
||||
{
|
||||
coordinate: [55.833193, 37.400858],
|
||||
icon: icons.icon_bus,
|
||||
tooltip: 'Остановка:"МЦД Трикотажная"',
|
||||
tooltip_bus: "Автобусы: №26, №368, №с377, №с396",
|
||||
},
|
||||
{
|
||||
coordinate: [55.82524, 37.43575],
|
||||
icon: icons.icon_bus,
|
||||
tooltip: 'Остановка: "метро Тушинская", выход:5 ',
|
||||
tooltip_bus: "Автобусы: №400, №741, №741к, №856, №436, №575",
|
||||
},
|
||||
{
|
||||
coordinate: [55.8501, 37.43905],
|
||||
icon: icons.icon_bus,
|
||||
tooltip: 'Остановка: "метро Сходненская", выход:9',
|
||||
tooltip_bus: "Автобус: №368",
|
||||
},
|
||||
{
|
||||
coordinate: [55.83607, 37.40569],
|
||||
icon: icons.icon_bus,
|
||||
tooltip: 'Остановка "Храм Сергия Радонежского"',
|
||||
tooltip_bus: "Автобусы: №88, №488, №с377, №с396",
|
||||
},
|
||||
{
|
||||
coordinate: [55.83132, 37.4034],
|
||||
icon: icons.icon_bus,
|
||||
tooltip: 'Остановка "МЦД Трикотажная"',
|
||||
tooltip_bus: "Автобусы: №2, №210, №400Т, №741, №741к, №856, №436, №575",
|
||||
},
|
||||
]);
|
||||
|
||||
const pathbuild = (icon) => {
|
||||
return `${baseURL}media/map_icons/${icon}.png`
|
||||
}
|
||||
const icons = {
|
||||
icon_cod: {
|
||||
iconUrl: pathbuild(`fns`),
|
||||
iconSize: [30, 30],
|
||||
iconAnchor: [16, 40]
|
||||
},
|
||||
icon_metro: {
|
||||
iconUrl: pathbuild(`mos_metro`),
|
||||
iconSize: [30, 25],
|
||||
iconAnchor: [10, 20]
|
||||
},
|
||||
icon_mcd: {
|
||||
iconUrl: pathbuild(`mcd_d2`),
|
||||
iconSize: [32, 18],
|
||||
iconAnchor: [10, 20]
|
||||
},
|
||||
icon_bus: {
|
||||
iconUrl: pathbuild(`bus`),
|
||||
iconSize: [18, 18],
|
||||
iconAnchor: [1, 1]
|
||||
}
|
||||
return {
|
||||
icons,
|
||||
markers,
|
||||
icon,
|
||||
|
||||
address: {
|
||||
building: "125373, Москва, Походный проезд, двл.3, стр 1",
|
||||
phone: "Телефон: 8(495) 198-53-12",
|
||||
},
|
||||
address_pathes: [
|
||||
{
|
||||
title_path: "От станции МЦД «Трикотажная»,",
|
||||
path: 'на автобусе 368, до остановки "Налоговый городок" или пешком (10 минут) до территории Налоговго городка',
|
||||
},
|
||||
{
|
||||
title_path: "От станции метро «Сходненская», выход:9,",
|
||||
path: " 1-й вагон из центра, далее на автобусе № 368",
|
||||
},
|
||||
{
|
||||
title_path: "От станции МЦД «Тушинская»,",
|
||||
path: " проехать одну остановку до станции МЦД «Трикотажная» и далее на автобусе 368 до остановки «Налоговый городок» или пешком(10 минут) до территории Налогового городка",
|
||||
},
|
||||
{
|
||||
title_path: "От станции метро «Тушинская», выход:5,",
|
||||
path: " последний вагон из центра, автобусы №2, №210, №400Т, №741, №741к, №856, №436, №575 до остановки «пл. Трикотажная» или от станции МЦД «Тушинская» проехать одну остановку до станции МЦД «Трикотажная» и далее на автобусе 368 до остановки «Налоговый городок» или пешком(10 минут) до территории Налогового городка",
|
||||
},
|
||||
{
|
||||
title_path: "От остановки автобуса «Храм Сергия Радонежского»",
|
||||
path: " и далее пешком (10 минут) до территории Налоговго городка",
|
||||
},
|
||||
],
|
||||
|
||||
}
|
||||
const markers = ref([
|
||||
{ coordinate: [55.83451, 37.40848], icon: icons.icon_cod, tooltip: "МИ ФНС России по ЦОД №2", tooltip_bus: "" },
|
||||
{ coordinate: [55.83309, 37.39933], icon: icons.icon_mcd, tooltip: "МЦД D2: пл.\"Трикотажная\"", tooltip_bus: "" },
|
||||
{ coordinate: [55.82741, 37.43715], icon: icons.icon_metro, tooltip: "Ст.метро: \"Тушинская\"", tooltip_bus: "" },
|
||||
{ coordinate: [55.82705, 37.4411], icon: icons.icon_mcd, tooltip: "МЦД D2: пл. \"Тушинская\"", tooltip_bus: "" },
|
||||
{ coordinate: [55.8496, 37.43925], icon: icons.icon_metro, tooltip: "Ст.метро: \"Сходненская\"", tooltip_bus: "" },
|
||||
{ coordinate: [55.835274, 37.411052], icon: icons.icon_bus, tooltip: "Остановка: \"Налоговый городок\"", tooltip_bus: "Автобусы:№368, №с377" },
|
||||
{ coordinate: [55.833193, 37.400858], icon: icons.icon_bus, tooltip: "Остановка:\"МЦД Трикотажная\"", tooltip_bus: "Автобусы: №26, №368, №с377, №с396" },
|
||||
{ coordinate: [55.82524, 37.43575], icon: icons.icon_bus, tooltip: "Остановка: \"метро Тушинская\", выход:5 ", tooltip_bus: "Автобусы: №400, №741, №741к, №856, №436, №575" },
|
||||
{ coordinate: [55.8501, 37.43905], icon: icons.icon_bus, tooltip: "Остановка: \"метро Сходненская\", выход:9", tooltip_bus: "Автобус: №368" },
|
||||
{ coordinate: [55.83607, 37.40569], icon: icons.icon_bus, tooltip: "Остановка \"Храм Сергия Радонежского\"", tooltip_bus: "Автобусы: №88, №488, №с377, №с396" },
|
||||
{ coordinate: [55.83132, 37.40340], icon: icons.icon_bus, tooltip: "Остановка \"МЦД Трикотажная\"", tooltip_bus: "Автобусы: №2, №210, №400Т, №741, №741к, №856, №436, №575" },
|
||||
|
||||
|
||||
])
|
||||
|
||||
return {
|
||||
icons,
|
||||
markers,
|
||||
icon,
|
||||
|
||||
address: {
|
||||
"building": "125373, Москва, Походный проезд, двл.3, стр 1",
|
||||
"phone": "Телефон: 8(495) 198-53-12"
|
||||
},
|
||||
address_pathes: [
|
||||
{ "title_path": "От станции МЦД «Трикотажная»,", "path": "на автобусе 368, до остановки \"Налоговый городок\" или пешком (10 минут) до территории Налоговго городка" },
|
||||
{ "title_path": "От станции метро «Сходненская», выход:9,", "path": " 1-й вагон из центра, далее на автобусе № 368" },
|
||||
{ "title_path": "От станции МЦД «Тушинская»,", "path": " проехать одну остановку до станции МЦД «Трикотажная» и далее на автобусе 368 до остановки «Налоговый городок» или пешком(10 минут) до территории Налогового городка" },
|
||||
{ "title_path": "От станции метро «Тушинская», выход:5,", "path": " последний вагон из центра, автобусы №2, №210, №400Т, №741, №741к, №856, №436, №575 до остановки «пл. Трикотажная» или от станции МЦД «Тушинская» проехать одну остановку до станции МЦД «Трикотажная» и далее на автобусе 368 до остановки «Налоговый городок» или пешком(10 минут) до территории Налогового городка" },
|
||||
{ "title_path": "От остановки автобуса «Храм Сергия Радонежского»", "path": " и далее пешком (10 минут) до территории Налоговго городка" },
|
||||
|
||||
],
|
||||
|
||||
work_times: [
|
||||
{ "day": "Понедельник - Четверг", "time": "09:00 - 18:00" },
|
||||
{ "day": "Пятница", "time": "09:00 - 16:45" },
|
||||
{ "day": "Суббота - Воскресенье", "time": "Выходной" },
|
||||
],
|
||||
baseURL,
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
work_times: [
|
||||
{ day: "Понедельник - Четверг", time: "09:00 - 18:00" },
|
||||
{ day: "Пятница", time: "09:00 - 16:45" },
|
||||
{ day: "Суббота - Воскресенье", time: "Выходной" },
|
||||
],
|
||||
baseURL,
|
||||
};
|
||||
},
|
||||
};
|
||||
</script>
|
||||
<style>
|
||||
.leaflet-control-attribution {
|
||||
display: none;
|
||||
display: none;
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
@@ -0,0 +1,202 @@
|
||||
<template>
|
||||
<v-row no-gutters class="flex-column h-100 gap">
|
||||
<v-col>
|
||||
<v-row no-gutters class="flex-column h-100 gap">
|
||||
<v-col class="w100 flex-grow-0">
|
||||
<v-card class="text-center">
|
||||
<v-card-text class="font-weight-medium text-lg-h6">
|
||||
Межрегиональная инспекция Федеральной налоговой службы по
|
||||
централизованной обработке данных №2
|
||||
|
||||
<p class="font-weight-medium text-lg-subtitle-1 text-sm-caption">
|
||||
создана 01.02.2018 года в соответствии с приказом ФНС России от
|
||||
27.12.2017 №ММВ-7-4/1102
|
||||
</p>
|
||||
|
||||
<p class="mt-3">
|
||||
<a class="text-decoration-none" :href="caCuratorLink"
|
||||
>Работа МИ ФНС России по ЦОД №2 координируется заместителем
|
||||
руководителя ФНС России Будариным Андреем Владимировичем</a
|
||||
>
|
||||
</p>
|
||||
</v-card-text>
|
||||
</v-card>
|
||||
</v-col>
|
||||
<v-col class="d-flex">
|
||||
<v-row no-gutters class="gap">
|
||||
<v-col lg="3" class="flex-column">
|
||||
<v-row no-gutters class="gap flex-column h-100">
|
||||
<v-col class="w100">
|
||||
<v-card class="h-100">
|
||||
<v-card-title class="text-h6 text-uppercase text-center">
|
||||
Начальник инспекции</v-card-title
|
||||
>
|
||||
<v-divider class="mb-3" />
|
||||
|
||||
<v-img
|
||||
:src="checkremote(`${spravURL}${userlinks.login}.jpg`)"
|
||||
height="200"
|
||||
/>
|
||||
|
||||
<v-card-title class="text-h6 text-center">{{
|
||||
userlinks.fio
|
||||
}}</v-card-title>
|
||||
<v-card-text class="text-center text-body-2">
|
||||
<p>
|
||||
Государственный советник Российской Федерации 2 класса
|
||||
</p>
|
||||
</v-card-text>
|
||||
</v-card>
|
||||
</v-col>
|
||||
<v-col class="w100 flex-column d-flex">
|
||||
<general-information-size
|
||||
:size="getstatesize"
|
||||
:title="'Фактическая численнность'"
|
||||
/>
|
||||
</v-col>
|
||||
<v-col class="w100 flex-column d-flex">
|
||||
<general-information-size
|
||||
:size="getfactsize"
|
||||
:title="'Штатная численность'"
|
||||
/>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-col>
|
||||
<v-col>
|
||||
<v-card class="h-100 flex-column d-flex">
|
||||
<v-card-title class="text-h6 text-uppercase text-center">
|
||||
Основные направления деятельности инспекции
|
||||
</v-card-title>
|
||||
<v-divider class="pb-3" />
|
||||
|
||||
<v-row
|
||||
no-gutters
|
||||
class="gap"
|
||||
:class="lgAndUp ? 'h-0 overflow-auto' : ''"
|
||||
>
|
||||
<v-col class="flex-column d-flex">
|
||||
<v-col
|
||||
class="px-3 py-2 flex-grow-0"
|
||||
v-for="direction in directionworks"
|
||||
:key="direction.id"
|
||||
>
|
||||
<v-card class="d-flex" :elevation="3">
|
||||
<v-col class="d-flex align-center">
|
||||
<v-avatar
|
||||
class="elevation-10 text-teal-darken-4"
|
||||
color="teal-lighten-5"
|
||||
>
|
||||
<v-icon :icon="direction.icon_name"></v-icon>
|
||||
</v-avatar>
|
||||
</v-col>
|
||||
<v-col
|
||||
class="d-flex align-center justify-start text-h6"
|
||||
>
|
||||
{{ direction.direction_title }}
|
||||
</v-col>
|
||||
</v-card>
|
||||
</v-col>
|
||||
</v-col>
|
||||
<!-- <v-col
|
||||
lg="12"
|
||||
class="px-3"
|
||||
v-for="direction in 10"
|
||||
:key="direction.id"
|
||||
>
|
||||
<v-card class="d-flex" :elevation="3">
|
||||
<v-col class="d-flex align-center justify-center">
|
||||
<v-avatar
|
||||
class="elevation-10 text-teal-darken-4"
|
||||
color="teal-lighten-5"
|
||||
>
|
||||
<v-icon :icon="direction.icon_name"></v-icon>
|
||||
</v-avatar>
|
||||
</v-col>
|
||||
<v-col
|
||||
lg="11"
|
||||
class="d-flex align-center justify-start text-h6"
|
||||
>
|
||||
{{ direction.direction_title }}
|
||||
</v-col>
|
||||
</v-card>
|
||||
</v-col> -->
|
||||
</v-row>
|
||||
</v-card>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-col>
|
||||
</v-row></v-col
|
||||
>
|
||||
</v-row>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { ref } from "vue";
|
||||
import { axiosApiInstance } from "@/utils/axios-api";
|
||||
import { checkremote } from "@/utils/universal_functions";
|
||||
import { spravURL, baseURL } from "@/utils/axios-api";
|
||||
import { useDisplay } from "vuetify";
|
||||
import GeneralInformationSize from "@/components/about_inspection/general_information/GeneralInformationSize.vue";
|
||||
|
||||
export default {
|
||||
components: { GeneralInformationSize },
|
||||
setup() {
|
||||
const { lgAndUp } = useDisplay();
|
||||
const userlinks = ref([]);
|
||||
const getfactsize = ref({ factsize: 0, date_created: new Date() });
|
||||
const getstatesize = ref({ statesize: 0, date_created: new Date() });
|
||||
const directionworks = ref([]);
|
||||
|
||||
const infouser = () => {
|
||||
axiosApiInstance
|
||||
.get("api/accounts/getuser/?userlogin=9966-00-001")
|
||||
.then((res) => {
|
||||
userlinks.value = res.data;
|
||||
});
|
||||
};
|
||||
const getFactSize = () => {
|
||||
axiosApiInstance.get("api/about_inspection/getfactsize/").then((res) => {
|
||||
getfactsize.value = res.data;
|
||||
});
|
||||
};
|
||||
|
||||
const getStateSize = () => {
|
||||
axiosApiInstance.get("api/about_inspection/getstatesize/").then((res) => {
|
||||
getstatesize.value = res.data;
|
||||
});
|
||||
};
|
||||
|
||||
const getInspectionDirections = () => {
|
||||
axiosApiInstance
|
||||
.get("api/about_inspection/getinspectiondirections/")
|
||||
.then((res) => {
|
||||
directionworks.value = res.data;
|
||||
});
|
||||
};
|
||||
|
||||
getInspectionDirections();
|
||||
getStateSize();
|
||||
getFactSize();
|
||||
|
||||
infouser();
|
||||
|
||||
return {
|
||||
userlinks,
|
||||
checkremote,
|
||||
directionworks,
|
||||
getstatesize,
|
||||
getfactsize,
|
||||
spravURL,
|
||||
baseURL,
|
||||
lgAndUp,
|
||||
|
||||
date_now: new Date().toLocaleDateString("ru-RU"),
|
||||
caCuratorLink: ref(
|
||||
"https://www.nalog.gov.ru/rn77/about_fts/fts/structure_fts/ca_fns/9515034/"
|
||||
),
|
||||
};
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style></style>
|
||||
+84
@@ -0,0 +1,84 @@
|
||||
<template>
|
||||
<v-card class="flex-grow-1 d-flex flex-column ">
|
||||
|
||||
<v-card-title class="text-h6 text-center text-uppercase">
|
||||
{{title}}
|
||||
</v-card-title>
|
||||
<template v-if="Object.keys(size).length > 0">
|
||||
<!-- <v-card-text class="text-h2 text-center">
|
||||
|
||||
<vue3-autocounter
|
||||
ref="counter"
|
||||
:startAmount="0"
|
||||
:endAmount="size.statesize"
|
||||
:duration="2"
|
||||
/>
|
||||
</v-card-text> -->
|
||||
|
||||
<!-- <v-card-subtitle class="text-center"
|
||||
>по состоянию на
|
||||
{{
|
||||
new Date(size.date_created).toLocaleDateString(
|
||||
"ru-RU"
|
||||
)
|
||||
}}
|
||||
</v-card-subtitle> -->
|
||||
<v-card
|
||||
class="h-100 flex-column d-flex align-center justify-center text-center elevation-0"
|
||||
>
|
||||
<vue3-autocounter
|
||||
class="text-h2 font-weight-regular pb-2"
|
||||
ref="counter"
|
||||
:startAmount="0"
|
||||
:endAmount="size.size"
|
||||
:duration="2"
|
||||
/>
|
||||
<!-- <v-card-text class="text-h2 text-center">
|
||||
<vue3-autocounter
|
||||
|
||||
ref="counter"
|
||||
:startAmount="0"
|
||||
:endAmount="size.size"
|
||||
:duration="2"
|
||||
/>
|
||||
</v-card-text> -->
|
||||
|
||||
</v-card>
|
||||
<v-card-subtitle class="text-center"
|
||||
>по состоянию на
|
||||
{{
|
||||
new Date(size.date_created).toLocaleDateString(
|
||||
"ru-RU"
|
||||
)
|
||||
}}
|
||||
</v-card-subtitle>
|
||||
</template>
|
||||
<template v-else>
|
||||
<v-card
|
||||
class="h-100 d-flex align-center justify-center text-center"
|
||||
>
|
||||
<span class="text-subtitle-1 text-grey"
|
||||
>Данных нет</span
|
||||
>
|
||||
</v-card>
|
||||
|
||||
</template>
|
||||
</v-card>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
props: {
|
||||
title: {
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
size: {
|
||||
type: Object,
|
||||
default: () => {},
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style></style>
|
||||
@@ -0,0 +1,233 @@
|
||||
<template>
|
||||
<v-row no-gutters class="h-100 gap" v-if="vacancy.length > 0">
|
||||
<v-col lg="4" class="flex-column d-flex">
|
||||
<v-card class="h-100 pa-1 d-flex flex-column rounded-0">
|
||||
<v-card-title
|
||||
class="d-flex justify-center bg-teal-lighten-5 text-teal-darken-4"
|
||||
>
|
||||
Вакансии
|
||||
</v-card-title>
|
||||
<v-row no-gutters class="h-0 gap overflow-auto">
|
||||
<v-col>
|
||||
<v-card class="mx-auto h-100">
|
||||
<v-list density="compact" class="px-0">
|
||||
<v-list-item
|
||||
v-for="vac in vacancy"
|
||||
:key="vac.id"
|
||||
:value="vac"
|
||||
class="border-b-sm"
|
||||
active-class="custom-active"
|
||||
color="teal-darken-3"
|
||||
@click="getIndVacation(vac.id)"
|
||||
>
|
||||
<v-card class="rounded-0 bg-transparent">
|
||||
<v-card-title class="text-wrap">
|
||||
{{ vac.name }}
|
||||
</v-card-title>
|
||||
<v-card-text class="pb-2">
|
||||
<v-row no-gutters class="gap">
|
||||
<v-col>{{ vac.department.name }}</v-col>
|
||||
<v-col
|
||||
class="flex-grow-0 text-subtitle-1 text-btn_text"
|
||||
>
|
||||
Подробнее
|
||||
</v-col>
|
||||
<v-col class="flex-grow-0 align-self-center pl-2">
|
||||
<v-icon
|
||||
icon="mdi-arrow-right"
|
||||
color="btn_text"
|
||||
size="small"
|
||||
/>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-card-text>
|
||||
</v-card>
|
||||
</v-list-item>
|
||||
</v-list>
|
||||
</v-card>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-card>
|
||||
</v-col>
|
||||
<v-col class="flex-column d-flex">
|
||||
<v-card class="h-100 pa-1 d-flex flex-column rounded-0">
|
||||
<v-card-title
|
||||
class="d-flex justify-center bg-teal-lighten-5 text-teal-darken-4"
|
||||
>
|
||||
Описание
|
||||
</v-card-title>
|
||||
<v-row
|
||||
no-gutters
|
||||
class="h-0 gap overflow-auto"
|
||||
id="goto-container-example"
|
||||
>
|
||||
<v-col>
|
||||
<v-card
|
||||
class="rounded-0 h-100"
|
||||
v-if="vacancyDescription.name != ''"
|
||||
>
|
||||
<v-card-title class="mt-4">
|
||||
<span class="text-h4 text-wrap">
|
||||
{{ vacancyDescription.name }}
|
||||
</span>
|
||||
</v-card-title>
|
||||
|
||||
<v-card-title class="pt-0">
|
||||
<span class="text-h5">
|
||||
{{ vacancyDescription.department.name }}
|
||||
</span>
|
||||
</v-card-title>
|
||||
<v-card-title>
|
||||
<v-btn
|
||||
type="submit"
|
||||
class="text-subtitle-1 font-weight-light"
|
||||
color="btn_text"
|
||||
elevation="1"
|
||||
@click="
|
||||
goTo('#response', { container: '#goto-container-example' })
|
||||
"
|
||||
>
|
||||
Откликнуться
|
||||
</v-btn>
|
||||
</v-card-title>
|
||||
<v-card-title class="pt-6">
|
||||
<span class="text-h6">
|
||||
Направление деятельности подразделения
|
||||
</span>
|
||||
</v-card-title>
|
||||
<v-card-text class="mx-5 my-1">
|
||||
<ul>
|
||||
<li
|
||||
class="py-1"
|
||||
v-for="directionTitle in vacancyDescription.department
|
||||
.department_directions"
|
||||
:key="directionTitle"
|
||||
>
|
||||
{{ directionTitle.direction_title }}
|
||||
</li>
|
||||
</ul>
|
||||
</v-card-text>
|
||||
<v-card-title>
|
||||
<span class="text-h6">
|
||||
Функционал и должностные обязанности
|
||||
</span>
|
||||
</v-card-title>
|
||||
<v-card-text class="mx-5 my-0 ckeditor_ul">
|
||||
<div class="py-1" v-html="vacancyDescription.functional"></div>
|
||||
</v-card-text>
|
||||
<v-card-title>
|
||||
<span class="text-h6"> Базовые требования к соискателю </span>
|
||||
</v-card-title>
|
||||
<v-card-text class="mx-5 my-0 ckeditor_ul">
|
||||
<div class="py-1" v-html="vacancyDescription.functional"></div>
|
||||
</v-card-text>
|
||||
<v-divider />
|
||||
<response-vacancies id="response" :idVacations=vacancySelect />
|
||||
</v-card>
|
||||
|
||||
<v-card
|
||||
class="h-100 pa-1 d-flex align-center justify-center text-center"
|
||||
v-else
|
||||
>
|
||||
<v-card-subtitle>
|
||||
<v-icon
|
||||
icon="mdi-format-list-bulleted"
|
||||
color="grey"
|
||||
size="x-large"
|
||||
/>
|
||||
<br />
|
||||
<span class="text-h5 text-grey"
|
||||
>Для подробного описания вакансии <br />
|
||||
выберите её из списка слева</span
|
||||
>
|
||||
</v-card-subtitle>
|
||||
</v-card>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-card>
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-row no-gutters class="h-100 gap" v-else>
|
||||
<v-col class="flex-column d-flex">
|
||||
<v-card class="h-100 pa-1 d-flex align-center justify-center text-center">
|
||||
<v-card-subtitle>
|
||||
<v-icon icon="mdi-credit-card-off" size="x-large" color="grey" />
|
||||
<br />
|
||||
<span class="text-h5 text-grey"
|
||||
>Сейчас вакансий нет, <br />
|
||||
загляните позжет</span
|
||||
>
|
||||
</v-card-subtitle>
|
||||
</v-card>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { ref } from "vue";
|
||||
import { useGoTo } from "vuetify";
|
||||
import { clearAxios } from "@/utils/axios-api";
|
||||
import { baseURL } from "@/utils/axios-api";
|
||||
import ResponseVacancies from "@/components/about_inspection/open_vacancies/ResponseVacancies.vue";
|
||||
|
||||
export default {
|
||||
components: { ResponseVacancies },
|
||||
setup() {
|
||||
const goTo = useGoTo();
|
||||
let vacancyDescription = ref({ name: "", department: { name: "" } });
|
||||
let vacancySelect = ref(-1);
|
||||
|
||||
let vacancy = ref({});
|
||||
|
||||
const getVacancies = () => {
|
||||
clearAxios.get(`api/about_inspection/getvacancy/`).then((data) => {
|
||||
vacancy.value = data.data;
|
||||
vacancyDescription.value = vacancy.value[0];
|
||||
vacancySelect.value = vacancy.value[0].id
|
||||
});
|
||||
};
|
||||
|
||||
const formatText = (text) => {
|
||||
return text.replaceAll(
|
||||
'src="/media/uploads',
|
||||
`src="${baseURL}media/uploads`
|
||||
);
|
||||
};
|
||||
|
||||
const getIndVacation = (ind) => {
|
||||
if (vacancySelect.value != ind) {
|
||||
vacancySelect.value = ind;
|
||||
vacancyDescription.value = vacancy.value.find((el) => el.id == ind);
|
||||
} else {
|
||||
vacancySelect.value = -1;
|
||||
vacancyDescription.value = { name: "", department: { name: "" } };
|
||||
}
|
||||
};
|
||||
|
||||
getVacancies();
|
||||
|
||||
return {
|
||||
vacancy,
|
||||
formatText,
|
||||
vacancyDescription,
|
||||
getIndVacation,
|
||||
vacancySelect,
|
||||
goTo,
|
||||
};
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.ckeditor_ul ul li {
|
||||
padding-top: 8px;
|
||||
}
|
||||
|
||||
.custom-active .v-card-title {
|
||||
color: #001e19;
|
||||
}
|
||||
|
||||
.custom-active .v-card-text {
|
||||
color: black;
|
||||
}
|
||||
</style>
|
||||
@@ -0,0 +1,120 @@
|
||||
<template>
|
||||
<div>
|
||||
<v-card-text class="text-center">
|
||||
<span class="text-h4">Откликнуться на вакансию</span>
|
||||
</v-card-text>
|
||||
<v-card-text class="d-flex flex-column pt-0">
|
||||
<form @submit.prevent="submit">
|
||||
<v-row no-gutters class="justify-center">
|
||||
<v-col lg="8">
|
||||
<v-text-field
|
||||
v-model="name.value.value"
|
||||
:counter="10"
|
||||
:error-messages="name.errorMessage.value"
|
||||
label="Фамилия, имя, отчество"
|
||||
/>
|
||||
<v-row no-gutters class="gap">
|
||||
<v-col>
|
||||
<v-text-field
|
||||
v-model="email.value.value"
|
||||
:error-messages="email.errorMessage.value"
|
||||
label="E-mail или почта Lotus"
|
||||
/>
|
||||
</v-col>
|
||||
<v-col>
|
||||
<v-text-field
|
||||
v-model="phone.value.value"
|
||||
:counter="7"
|
||||
:error-messages="phone.errorMessage.value"
|
||||
label="Телефон"
|
||||
/>
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-textarea
|
||||
v-model="message.value.value"
|
||||
no-resize
|
||||
rows="4"
|
||||
label="Сопроводительное письмо"
|
||||
/>
|
||||
<v-file-input label="Резюме" hide-details v-model="responseFiles" />
|
||||
|
||||
<v-btn block type="submit" class="mt-4 text-none" color="btn_text">
|
||||
Отправить
|
||||
</v-btn>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</form>
|
||||
</v-card-text>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { ref } from "vue";
|
||||
import { useField, useForm } from "vee-validate";
|
||||
import * as yup from "yup";
|
||||
import { clearAxios } from "@/utils/axios-api";
|
||||
|
||||
export default {
|
||||
props: {
|
||||
idVacations: {
|
||||
type: Number,
|
||||
default: -1
|
||||
}
|
||||
},
|
||||
setup(props) {
|
||||
|
||||
const responseFiles = ref('')
|
||||
|
||||
const { handleSubmit, handleReset } = useForm({
|
||||
validationSchema: yup.object({
|
||||
email: yup
|
||||
.string()
|
||||
.email("Введите корректный email")
|
||||
.required("Поле обязательно для заполнения"),
|
||||
name: yup
|
||||
.string()
|
||||
.matches(/^[а-яА-ЯЁё]+$/, "Имя должно содержать только русские буквы")
|
||||
.required("Поле обязательно для заполнения"),
|
||||
phone: yup
|
||||
.string()
|
||||
.matches(
|
||||
/^[[\d-]*\d[\d-]*$/,
|
||||
"Номер телефона должен содержать только цифры"
|
||||
)
|
||||
.required("Поле обязательно для заполнения"),
|
||||
message: yup.string(),
|
||||
}),
|
||||
});
|
||||
|
||||
const name = useField("name");
|
||||
const phone = useField("phone");
|
||||
const email = useField("email");
|
||||
const message = useField("message");
|
||||
|
||||
const submit = handleSubmit((values) => {
|
||||
const postFile = new FormData()
|
||||
|
||||
postFile.append("file", responseFiles.value);
|
||||
postFile.append("resp", JSON.stringify(values));
|
||||
postFile.append("id", JSON.stringify(props.idVacations));
|
||||
|
||||
clearAxios
|
||||
.post(`api/about_inspection/postresponsevacancy/`, postFile)
|
||||
.then((data) => {
|
||||
|
||||
});
|
||||
handleReset()
|
||||
alert(JSON.stringify(values, null, 2));
|
||||
});
|
||||
|
||||
return {
|
||||
name,
|
||||
phone,
|
||||
email,
|
||||
message,
|
||||
submit,
|
||||
responseFiles
|
||||
};
|
||||
},
|
||||
};
|
||||
</script>
|
||||
@@ -0,0 +1,120 @@
|
||||
<template>
|
||||
<div>
|
||||
<v-card-text class="text-center">
|
||||
<span class="text-h4">Откликнуться на вакансию</span>
|
||||
</v-card-text>
|
||||
<v-card-text class="d-flex flex-column pt-0">
|
||||
<v-form @submit.prevent="submit">
|
||||
<v-row no-gutters class="justify-center">
|
||||
<v-col lg="8">
|
||||
|
||||
<v-text-field
|
||||
v-model="form.fio"
|
||||
:counter="10"
|
||||
:rules="rules.fio"
|
||||
label="Фамилия, имя, отчество"
|
||||
/>
|
||||
<v-row no-gutters class="gap">
|
||||
<v-col>
|
||||
<v-text-field
|
||||
v-model="form.email"
|
||||
:rules="rules.email"
|
||||
label="E-mail или почта Lotus"
|
||||
/>
|
||||
</v-col>
|
||||
<v-col>
|
||||
<v-text-field
|
||||
v-model="form.tel"
|
||||
:counter="7"
|
||||
:rules="rules.tel"
|
||||
label="Телефон"
|
||||
/>
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-textarea
|
||||
v-model="form.text"
|
||||
no-resize
|
||||
rows="4"
|
||||
label="Сопроводительное письмо"
|
||||
/>
|
||||
<v-file-input label="Резюме" hide-details v-model="file" />
|
||||
|
||||
<v-btn block type="submit" class="mt-4 text-none" color="btn_text">
|
||||
Отправить
|
||||
</v-btn>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-form>
|
||||
</v-card-text>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { ref } from "vue";
|
||||
import { useAlertStore } from '@/store/useAlertStore'
|
||||
import { clearAxios } from "@/utils/axios-api";
|
||||
|
||||
|
||||
export default {
|
||||
props: {
|
||||
idVacations: {
|
||||
type: Number,
|
||||
default: -1,
|
||||
},
|
||||
},
|
||||
setup(props) {
|
||||
const form = ref({ fio: "", email: "", tel: "", text: "" });
|
||||
const feedalert = useAlertStore().alert
|
||||
|
||||
const req = (val) => {
|
||||
return !!val || "Поле обязательно"
|
||||
}
|
||||
|
||||
|
||||
const rules = {
|
||||
fio: [
|
||||
(val) => req(val),
|
||||
(val) =>
|
||||
val.match(/^[а-яА-ЯЁё ]+$/) !== null || "хочу имя русскими буквами",
|
||||
],
|
||||
email: [(val) => req(val)],
|
||||
tel: [
|
||||
(val) => req(val),
|
||||
(val) => val.match(/^[[\d-]*\d[\d-]*$/) !== null || "хочу цифрами",
|
||||
],
|
||||
text: "",
|
||||
};
|
||||
|
||||
const file = ref(null);
|
||||
|
||||
const submit = () => {
|
||||
const postFile = new FormData();
|
||||
postFile.append(
|
||||
"data",
|
||||
JSON.stringify({ ...form.value, vacancy_id: props.idVacations })
|
||||
);
|
||||
if (file.value !==null) {
|
||||
postFile.append("file", file.value[0]);
|
||||
}
|
||||
|
||||
|
||||
clearAxios
|
||||
.post(`api/about_inspection/postresponsevacancy/`, postFile)
|
||||
.then((data) => {
|
||||
feedalert.alert = true;
|
||||
feedalert.text = data.data;
|
||||
feedalert.color = "teal-lighten-4";
|
||||
feedalert.ico = "mdi-email-outline";
|
||||
console.log(data.data, 'ggggggggggggggggggggg')
|
||||
});
|
||||
};
|
||||
|
||||
return {
|
||||
form,
|
||||
file,
|
||||
rules,
|
||||
submit,
|
||||
};
|
||||
},
|
||||
};
|
||||
</script>
|
||||
@@ -1,72 +1,121 @@
|
||||
<template>
|
||||
<div>
|
||||
<v-row no-gutters class="gap h-100 flex-column">
|
||||
<v-col lg="3" class="flex-column w100">
|
||||
<structure-inspection-row :sText="'Руководство'">
|
||||
<template v-slot:cardboss>
|
||||
<v-col lg="3" class="flex-column d-flex align-center" v-for="structure in structures" :key="structure.id">
|
||||
<v-card class="flex-column d-flex mr-1" :width="370" :elevation="10">
|
||||
<v-card-text class="pa-0">
|
||||
<v-row no-gutters class="h-100 gap">
|
||||
<v-col class="flex-grow-0 d-flex d-sm-none d-lg-none d-xl-flex">
|
||||
<v-row no-gutters class="flex-column">
|
||||
<v-col lg="4">
|
||||
<span class="vertext text-button my-1 pb-8">Руководство</span>
|
||||
</v-col>
|
||||
<v-col>
|
||||
<span class="vertext text-button my-1 pb-13"
|
||||
>Структурные подразделения</span
|
||||
>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-col>
|
||||
|
||||
<v-col class="d-flex ">
|
||||
<v-row no-gutters :class="smAndDown ? ' flex-column' : ''">
|
||||
<v-col
|
||||
:md="mdAndDown ? '12' : ''"
|
||||
:lg="lgAndDown ? 6 : ''"
|
||||
class="w100 flex-column d-flex"
|
||||
v-for="structure in structures"
|
||||
:key="structure.id"
|
||||
>
|
||||
|
||||
<v-row no-gutters class="flex-grow-0">
|
||||
<v-col class="flex-column d-flex">
|
||||
<v-row no-gutters class="mb-2 mt-1 justify-center d-flex mx-1">
|
||||
<v-card class="flex-column d-flex flex-grow-1" :elevation="10">
|
||||
<v-card-text class="pa-0">
|
||||
<v-col lg="12" class="pa-0">
|
||||
<v-row no-gutters>
|
||||
<v-col
|
||||
class="d-flex py-3 justify-center align-center font-weight-medium text-uppercase"
|
||||
>
|
||||
{{ structure.post }}
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-col>
|
||||
<v-row no-gutters>
|
||||
<v-col lg="4" class="pa-1 heightfoto">
|
||||
<v-img
|
||||
class="h-100"
|
||||
:src="checkremote(`${spravURL}${structure.login}.jpg`)"
|
||||
cover
|
||||
/>
|
||||
</v-col>
|
||||
<v-col
|
||||
class="text-center align-self-center font-weight-medium"
|
||||
>
|
||||
{{ structure.fio }}
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-card-text>
|
||||
</v-card> </v-row>
|
||||
</v-col>
|
||||
<!-- :class="mdAndDown ? 'flex-column gap' : ''" -->
|
||||
</v-row>
|
||||
|
||||
<v-row no-gutters :class="lgAndDown ?'':'gap h-0 overflow-auto'">
|
||||
<v-col lg=12 >
|
||||
<v-row
|
||||
no-gutters
|
||||
class="gap mb-1"
|
||||
v-for="boss in structure.deps"
|
||||
:key="boss.id"
|
||||
>
|
||||
<v-col class="d-flex flex-column">
|
||||
<v-card
|
||||
class="flex-column d-flex flex-grow-1 mx-1"
|
||||
:elevation="5"
|
||||
>
|
||||
<v-card-text class="pa-1 pt-3 px-3 flex-column">
|
||||
<v-col lg="12" class="minh pa-0">
|
||||
<v-row no-gutters>
|
||||
<v-col class="d-flex h-75 justify-center align-center font-weight-medium text-uppercase">
|
||||
{{ structure.post }}
|
||||
<v-col
|
||||
class="text-wrap text-center text-body-2 font-weight-medium text-uppercase"
|
||||
>
|
||||
{{ boss.name }}
|
||||
</v-col>
|
||||
<v-col class="flex-grow-0">
|
||||
<v-tooltip location="top">
|
||||
<template v-slot:activator="{ props }">
|
||||
<span v-bind="props">
|
||||
<v-icon
|
||||
size="large"
|
||||
color="green"
|
||||
icon="mdi-arrow-top-right"
|
||||
/>
|
||||
</span>
|
||||
</template>
|
||||
<v-row>
|
||||
<v-col> Перейти на страницу отдела </v-col>
|
||||
</v-row>
|
||||
</v-tooltip>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-col>
|
||||
<v-row no-gutters>
|
||||
<v-col lg="4" class="pa-1 heightfoto">
|
||||
<v-img class="h-100" :src="checkremote(`${spravURL}${structure.login}.jpg`)" cover />
|
||||
</v-col>
|
||||
<v-col class="text-center align-self-center font-weight-medium">
|
||||
{{ structure.fio }}
|
||||
</v-col>
|
||||
<list-user :author="boss.chief_deps" />
|
||||
</v-row>
|
||||
</v-card-text>
|
||||
</v-card>
|
||||
</v-col>
|
||||
</template>
|
||||
</structure-inspection-row>
|
||||
</v-col>
|
||||
<v-col>
|
||||
<structure-inspection-row :sText="'Структурные подразделения'">
|
||||
<template v-slot:cardboss>
|
||||
<v-col class="flex-column d-flex align-center" v-for="bosses in structures" :key="bosses">
|
||||
<div v-for="boss in bosses.deps" :key="boss.id">
|
||||
<v-card class="flex-column d-flex mb-1 mr-1 width-subdeps" :elevation="5">
|
||||
<v-card-text class="pa-1 pt-3 px-3 flex-column">
|
||||
<v-col lg="12" class=" minh pa-0">
|
||||
<v-row no-gutters>
|
||||
<v-col class="text-wrap text-center text-body-2 font-weight-medium text-uppercase ">
|
||||
{{ boss.name }}
|
||||
</v-col>
|
||||
<v-col class="flex-grow-0">
|
||||
<v-tooltip location="top">
|
||||
<template v-slot:activator="{ props }">
|
||||
<span v-bind="props">
|
||||
<v-icon size="large" color="green" icon="mdi-arrow-top-right" />
|
||||
</span>
|
||||
</template>
|
||||
<v-row>
|
||||
<v-col> Перейти на страницу отдела </v-col>
|
||||
</v-row>
|
||||
</v-tooltip>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-col>
|
||||
<v-row no-gutters>
|
||||
<list-user :author="boss.chief_deps" />
|
||||
</v-col> </v-row>
|
||||
</v-col>
|
||||
|
||||
</v-row>
|
||||
|
||||
|
||||
|
||||
<!-- -->
|
||||
|
||||
<!-- -->
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-col>
|
||||
</v-row>
|
||||
|
||||
</v-row>
|
||||
</v-card-text>
|
||||
</v-card>
|
||||
</div>
|
||||
</v-col>
|
||||
</template>
|
||||
</structure-inspection-row>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
@@ -75,17 +124,17 @@ import { spravURL } from "@/utils/axios-api";
|
||||
import { checkremote } from "@/utils/universal_functions";
|
||||
import { axiosApiInstance } from "@/utils/axios-api";
|
||||
import StructureInspectionRow from "./StructureInspectionRow.vue";
|
||||
import ListUser from "../../UI/fiousercard/ListUser.vue";
|
||||
import { useDisplay } from "vuetify";
|
||||
|
||||
export default {
|
||||
components: { StructureInspectionRow, ListUser },
|
||||
components: { StructureInspectionRow },
|
||||
setup() {
|
||||
const structures = ref([]);
|
||||
const { smAndDown, mdAndDown, lgAndDown } = useDisplay();
|
||||
|
||||
const getStructure = () => {
|
||||
axiosApiInstance.get("api/about_inspection/getstructure/").then((res) => {
|
||||
structures.value = res.data;
|
||||
console.log(structures.value)
|
||||
});
|
||||
};
|
||||
|
||||
@@ -94,12 +143,20 @@ export default {
|
||||
structures,
|
||||
checkremote,
|
||||
spravURL,
|
||||
mdAndDown,
|
||||
lgAndDown,
|
||||
smAndDown
|
||||
};
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.vertext {
|
||||
writing-mode: vertical-rl;
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
|
||||
.deps-title {
|
||||
height: 90px;
|
||||
}
|
||||
@@ -108,12 +165,6 @@ export default {
|
||||
transform: rotate(-90deg);
|
||||
}
|
||||
|
||||
.page_block {
|
||||
margin: 0px;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
|
||||
.minh {
|
||||
min-height: 43px;
|
||||
}
|
||||
@@ -123,7 +174,7 @@ export default {
|
||||
min-height: 140px;
|
||||
}
|
||||
|
||||
.width-subdeps {
|
||||
/* .width-subdeps {
|
||||
width: 350px;
|
||||
}
|
||||
} */
|
||||
</style>
|
||||
@@ -38,8 +38,5 @@ export default {
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.vertext {
|
||||
writing-mode: vertical-rl;
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
|
||||
</style>
|
||||
File diff suppressed because it is too large.
Load diff
@@ -1,185 +1,185 @@
|
||||
|
||||
<template>
|
||||
<v-app>
|
||||
<v-app-bar
|
||||
:elevation="accountStore.cod2user?2:0"
|
||||
density="compact"
|
||||
color="app_bar"
|
||||
<v-app-bar
|
||||
:elevation="accountStore.cod2user ? 2 : 0"
|
||||
density="compact"
|
||||
color="app_bar"
|
||||
class="pl-4"
|
||||
>
|
||||
<v-icon
|
||||
v-if="accountStore.cod2user"
|
||||
class="px-3"
|
||||
class="px-3"
|
||||
size="20"
|
||||
color="black_and_white"
|
||||
:icon="rail ? 'mdi-chevron-right' : 'mdi-chevron-left'"
|
||||
:icon="rail ? 'mdi-chevron-right' : 'mdi-chevron-left'"
|
||||
@click="rail = !rail"
|
||||
/>
|
||||
|
||||
<v-card
|
||||
|
||||
<v-card
|
||||
v-if="accountStore.cod2user"
|
||||
class="bg-transparent py"
|
||||
color="black_and_white"
|
||||
density="compact"
|
||||
:prepend-avatar="imageSrc"
|
||||
title="Портал МИ ФНС России по ЦОД № 2"
|
||||
variant="text"
|
||||
:to="'/'"
|
||||
/>
|
||||
<template v-slot:image>
|
||||
<v-img class="bggrad" />
|
||||
</template>
|
||||
class="bg-transparent py"
|
||||
color="black_and_white"
|
||||
density="compact"
|
||||
:prepend-avatar="imageSrc"
|
||||
title="Портал МИ ФНС России по ЦОД № 2"
|
||||
variant="text"
|
||||
:to="'/'"
|
||||
/>
|
||||
<template v-slot:image>
|
||||
<v-img class="bggrad" />
|
||||
</template>
|
||||
<template v-slot:append>
|
||||
<template v-if="accountStore.cod2user">
|
||||
<vcard-user
|
||||
:author = accountStore.user
|
||||
/>
|
||||
|
||||
<vcard-user :author="accountStore.user" />
|
||||
|
||||
<v-tooltip location="bottom">
|
||||
<template v-slot:activator="{ props }">
|
||||
<v-btn
|
||||
color="black_and_white"
|
||||
v-bind="props"
|
||||
dark to="/faq"
|
||||
icon="mdi-comment-question-outline" />
|
||||
<v-btn
|
||||
color="black_and_white"
|
||||
v-bind="props"
|
||||
dark
|
||||
to="/faq"
|
||||
icon="mdi-comment-question-outline"
|
||||
/>
|
||||
</template>
|
||||
<span>F.A.Q.</span>
|
||||
|
||||
</v-tooltip>
|
||||
|
||||
<v-dialog
|
||||
v-model="LikeDialog"
|
||||
persistent width="800">
|
||||
<v-dialog v-model="LikeDialog" persistent width="800">
|
||||
<template v-slot:activator="{ props }">
|
||||
|
||||
<v-btn
|
||||
color="black_and_white"
|
||||
v-bind="props"
|
||||
dark icon="mdi-thumb-up-outline" >
|
||||
<v-icon></v-icon>
|
||||
<v-tooltip
|
||||
activator="parent"
|
||||
location="bottom"
|
||||
>Обратная связь</v-tooltip>
|
||||
<v-btn
|
||||
color="black_and_white"
|
||||
v-bind="props"
|
||||
dark
|
||||
icon="mdi-thumb-up-outline"
|
||||
>
|
||||
<v-icon></v-icon>
|
||||
<v-tooltip activator="parent" location="bottom"
|
||||
>Обратная связь</v-tooltip
|
||||
>
|
||||
</v-btn>
|
||||
</template>
|
||||
|
||||
|
||||
<Card-like
|
||||
:LikeDialog="LikeDialog"
|
||||
@menusClose="closeinfo()"
|
||||
/>
|
||||
<Card-like :LikeDialog="LikeDialog" @menusClose="closeinfo()" />
|
||||
</v-dialog>
|
||||
|
||||
<v-tooltip location="bottom">
|
||||
<template v-slot:activator="{ props }">
|
||||
<v-btn icon @click="toggleTheme">
|
||||
<v-icon
|
||||
v-bind="props"
|
||||
class="mr-1"
|
||||
color="lampa">
|
||||
mdi-lightbulb-outline
|
||||
</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
<span> Сменить тему</span>
|
||||
</v-tooltip>
|
||||
<v-tooltip location="bottom">
|
||||
<template v-slot:activator="{ props }">
|
||||
<v-btn icon @click="toggleTheme">
|
||||
<v-icon v-bind="props" class="mr-1" color="lampa">
|
||||
mdi-lightbulb-outline
|
||||
</v-icon>
|
||||
</v-btn>
|
||||
</template>
|
||||
<span> Сменить тему</span>
|
||||
</v-tooltip>
|
||||
|
||||
<v-card v-show="message" class="" width="50">{{ name }}</v-card>
|
||||
|
||||
|
||||
<v-tooltip location="bottom">
|
||||
<template v-slot:activator="{ props }">
|
||||
<v-btn color="black_and_white" icon="mdi-account-multiple-outline" @click="drawer_right = !drawer_right" v-bind="props"/>
|
||||
<v-tooltip location="bottom">
|
||||
<template v-slot:activator="{ props }">
|
||||
<v-btn
|
||||
color="black_and_white"
|
||||
icon="mdi-account-multiple-outline"
|
||||
@click="drawer_right = !drawer_right"
|
||||
v-bind="props"
|
||||
/>
|
||||
</template>
|
||||
<span>
|
||||
{{
|
||||
drawer_right == true
|
||||
? "Скрыть пользователей"
|
||||
: "Показать пользователей"
|
||||
}}
|
||||
</span>
|
||||
</v-tooltip>
|
||||
<v-tooltip location="bottom">
|
||||
<template v-slot:activator="{ props }">
|
||||
<v-btn
|
||||
color="black_and_white"
|
||||
icon="mdi-logout"
|
||||
@click="accountStore.logout"
|
||||
v-bind="props"
|
||||
/>
|
||||
</template>
|
||||
<span> Выход </span>
|
||||
</v-tooltip>
|
||||
</template>
|
||||
<span> {{ (drawer_right == true) ? 'Скрыть пользователей' : 'Показать пользователей'}} </span>
|
||||
</v-tooltip>
|
||||
<v-tooltip location="bottom">
|
||||
<template v-slot:activator="{ props }">
|
||||
<v-btn color="black_and_white" icon="mdi-logout" @click="accountStore.logout" v-bind="props"/>
|
||||
</template>
|
||||
<span> Выход </span>
|
||||
</v-tooltip>
|
||||
</template>
|
||||
|
||||
|
||||
<template v-else>
|
||||
|
||||
|
||||
<v-row justify="center">
|
||||
<Auth-form
|
||||
@challengealert = "alert=true"
|
||||
/>
|
||||
<Auth-form @challengealert="alert = true" />
|
||||
</v-row>
|
||||
|
||||
|
||||
</template>
|
||||
</template>
|
||||
</v-app-bar>
|
||||
<v-navigation-drawer v-if="accountStore.cod2user" :width="245" :rail="rail" permanent v-model="drawer">
|
||||
<v-navigation-drawer
|
||||
v-if="accountStore.cod2user"
|
||||
: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>
|
||||
<v-row
|
||||
><v-col>
|
||||
<v-list nav density="compact">
|
||||
|
||||
<template v-for="(x, key) in navigations">
|
||||
<v-list-item v-if="!('submenu' in x)"
|
||||
:key="x.key"
|
||||
:title="x.name"
|
||||
:value="x.name"
|
||||
:href="x.link"
|
||||
:disabled="x.path==''"
|
||||
:to="x.path"
|
||||
:target="x.link?'_blank':''"
|
||||
color="navigation">
|
||||
<!-- Чтобы сделать неактивным раздел безопасность, не забыть прописать путь до него в disabled для показа -->
|
||||
<template v-slot:prepend>
|
||||
<v-icon :icon="x.ico"/>
|
||||
<v-tooltip
|
||||
v-if="rail"
|
||||
activator="parent"
|
||||
location="top">
|
||||
{{ x.name }}
|
||||
<v-list-item
|
||||
v-if="!('submenu' in x)"
|
||||
:key="x.key"
|
||||
:title="x.name"
|
||||
:value="x.name"
|
||||
:href="x.link"
|
||||
:disabled="x.path == ''"
|
||||
:to="x.path"
|
||||
:target="x.link ? '_blank' : ''"
|
||||
color="navigation"
|
||||
>
|
||||
<!-- Чтобы сделать неактивным раздел безопасность, не забыть прописать путь до него в disabled для показа -->
|
||||
<template v-slot:prepend>
|
||||
<v-icon :icon="x.ico" />
|
||||
<v-tooltip v-if="rail" activator="parent" location="top">
|
||||
{{ x.name }}
|
||||
</v-tooltip>
|
||||
</template>
|
||||
</template>
|
||||
</v-list-item>
|
||||
|
||||
<v-list-group v-else
|
||||
:class="rail?'railmenu':''"
|
||||
:key="key"
|
||||
:value="x.name">
|
||||
<v-list-group
|
||||
v-else
|
||||
:class="rail ? 'railmenu' : ''"
|
||||
:key="key"
|
||||
:value="x.name"
|
||||
>
|
||||
<template v-slot:activator="{ props }">
|
||||
<v-list-item
|
||||
v-bind="props"
|
||||
:title="x.name"
|
||||
:prepend-icon="x.ico"
|
||||
<v-list-item
|
||||
v-bind="props"
|
||||
:title="x.name"
|
||||
:prepend-icon="x.ico"
|
||||
color="navigation"
|
||||
>
|
||||
<v-tooltip
|
||||
v-if="rail"
|
||||
activator="parent"
|
||||
location="top"
|
||||
>
|
||||
{{ x.name }}
|
||||
</v-tooltip>
|
||||
</v-list-item>
|
||||
</template>
|
||||
<v-list-item
|
||||
v-for="(child, k) in x.submenu"
|
||||
color="navigation"
|
||||
|
||||
>
|
||||
|
||||
<v-tooltip
|
||||
v-if="rail"
|
||||
activator="parent"
|
||||
location="top"
|
||||
>
|
||||
{{ x.name }}
|
||||
</v-tooltip>
|
||||
</v-list-item>
|
||||
</template>
|
||||
<v-list-item v-for="(child, k) in x.submenu"
|
||||
color="navigation"
|
||||
:href="child.link"
|
||||
:key="k"
|
||||
:value="child.name"
|
||||
:title="!rail?child.name:menuTruncated(child.name)"
|
||||
:to="child.path"
|
||||
:target="child.link?'_blank':''"
|
||||
|
||||
:href="child.link"
|
||||
:key="k"
|
||||
:value="child.name"
|
||||
:title="!rail ? child.name : menuTruncated(child.name)"
|
||||
:to="child.path"
|
||||
:target="child.link ? '_blank' : ''"
|
||||
>
|
||||
<v-tooltip
|
||||
v-if="rail"
|
||||
activator="parent"
|
||||
location="top"
|
||||
>
|
||||
{{ child.name }}
|
||||
<v-tooltip v-if="rail" activator="parent" location="top">
|
||||
{{ child.name }}
|
||||
</v-tooltip>
|
||||
</v-list-item>
|
||||
</v-list-group>
|
||||
@@ -187,25 +187,20 @@
|
||||
</v-list>
|
||||
|
||||
<v-list nav density="compact">
|
||||
|
||||
<v-list-item v-for="x of mainmenuStore.portallinks"
|
||||
:key="x.name"
|
||||
:title="x.name"
|
||||
<v-list-item
|
||||
v-for="x of mainmenuStore.portallinks"
|
||||
:key="x.name"
|
||||
:title="x.name"
|
||||
:value="x.name"
|
||||
:href="x.link"
|
||||
color="app_bar"
|
||||
:target="x.link?'_blank':''"
|
||||
>
|
||||
|
||||
:target="x.link ? '_blank' : ''"
|
||||
>
|
||||
<template v-slot:prepend>
|
||||
<v-icon
|
||||
:icon="x.imagecode" />
|
||||
<v-tooltip
|
||||
v-if="rail"
|
||||
activator="parent"
|
||||
location="top">
|
||||
{{ x.name }}
|
||||
</v-tooltip>
|
||||
<v-icon :icon="x.imagecode" />
|
||||
<v-tooltip v-if="rail" activator="parent" location="top">
|
||||
{{ x.name }}
|
||||
</v-tooltip>
|
||||
</template>
|
||||
</v-list-item>
|
||||
</v-list>
|
||||
@@ -214,7 +209,7 @@
|
||||
|
||||
<v-row class="flex-grow-0" v-if="accountStore.user.is_staff">
|
||||
<v-col>
|
||||
<default-portal-menu-list :rail=rail />
|
||||
<default-portal-menu-list :rail="rail" />
|
||||
<!-- <v-list nav density="compact" active-class="noneoutline">
|
||||
<default-portal-menu-list :aMenuItem="supperuser"/>
|
||||
<div v-if="getDevelopment()">
|
||||
@@ -229,242 +224,246 @@
|
||||
</v-row>
|
||||
<v-row no-gutters class="flex-grow-0">
|
||||
<v-col>
|
||||
<page-counter :rail=rail />
|
||||
<page-counter :rail="rail" />
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-col>
|
||||
|
||||
</v-col>
|
||||
</v-row>
|
||||
|
||||
|
||||
</v-navigation-drawer>
|
||||
|
||||
<v-main v-if="accountStore.cod2user" class="d-flex bg-main_theme">
|
||||
<router-view />
|
||||
|
||||
|
||||
<alert-default />
|
||||
|
||||
|
||||
|
||||
<alert-default />
|
||||
</v-main>
|
||||
<v-main v-else class="d-flex align-center text-h3 bg-teal-lighten-2">
|
||||
|
||||
<v-card
|
||||
class="h-100 w-100 d-flex justify-center rounded-0 flex-column"
|
||||
:image="`${burl}${scrimg}`"
|
||||
>
|
||||
<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>
|
||||
|
||||
class="h-100 w-100 d-flex justify-center rounded-0 flex-column"
|
||||
:image="`${burl}${scrimg}`"
|
||||
>
|
||||
<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>
|
||||
</v-card>
|
||||
|
||||
<alert-default />
|
||||
</v-main>
|
||||
<v-navigation-drawer v-if="accountStore.cod2user"
|
||||
v-model="drawer_right"
|
||||
rail permanent
|
||||
location="right"
|
||||
@click="rail = false">
|
||||
|
||||
<v-navigation-drawer
|
||||
v-if="accountStore.cod2user"
|
||||
v-model="drawer_right"
|
||||
rail
|
||||
permanent
|
||||
location="right"
|
||||
@click="rail = false"
|
||||
>
|
||||
<Online-users />
|
||||
|
||||
</v-navigation-drawer>
|
||||
|
||||
</v-app>
|
||||
</template>
|
||||
|
||||
|
||||
<script>
|
||||
|
||||
import { ref, computed} from 'vue'
|
||||
import uf from '@/utils/universal_functions'
|
||||
import { useAccountStore } from '@/store/AccountStore'
|
||||
import { useMainmenuStore } from '@/store/MainmenuStore'
|
||||
import { ref, computed } from "vue";
|
||||
import uf from "@/utils/universal_functions";
|
||||
import { useAccountStore } from "@/store/AccountStore";
|
||||
import { useMainmenuStore } from "@/store/MainmenuStore";
|
||||
import { useTheme } from "vuetify";
|
||||
import AuthForm from '@/components/UI/Auth-form.vue'
|
||||
import OnlineUsers from '@/components/UI/fiousercard/onlineUsers.vue'
|
||||
import CardLike from '@/components/cardLike.vue'
|
||||
import { clearAxios } from '@/utils/axios-api'
|
||||
import AuthForm from "@/components/UI/Auth-form.vue";
|
||||
import OnlineUsers from "@/components/UI/fiousercard/onlineUsers.vue";
|
||||
import CardLike from "@/components/cardLike.vue";
|
||||
import { axiosApiInstance, clearAxios } from "@/utils/axios-api";
|
||||
|
||||
import { baseURL } from '@/utils/axios-api'
|
||||
import VcardUser from '@/components/UI/fiousercard/vcardUser.vue'
|
||||
import PageCounter from '@/components/UI/defaultportal/page-counter.vue'
|
||||
import DefaultPortalMenuList from '@/layouts/default/DefaultPortalMenuList.vue'
|
||||
import {getDevelopment} from '@/utils/universal_functions'
|
||||
import { baseURL } from "@/utils/axios-api";
|
||||
import VcardUser from "@/components/UI/fiousercard/vcardUser.vue";
|
||||
import PageCounter from "@/components/UI/defaultportal/page-counter.vue";
|
||||
import DefaultPortalMenuList from "@/layouts/default/DefaultPortalMenuList.vue";
|
||||
import { getDevelopment } from "@/utils/universal_functions";
|
||||
import { useDisplay } from "vuetify";
|
||||
|
||||
export default {
|
||||
|
||||
components: {
|
||||
AuthForm,
|
||||
OnlineUsers,
|
||||
CardLike,
|
||||
VcardUser,
|
||||
PageCounter,
|
||||
DefaultPortalMenuList
|
||||
DefaultPortalMenuList,
|
||||
},
|
||||
|
||||
mixins: [uf],
|
||||
|
||||
setup() {
|
||||
|
||||
|
||||
const { name } = useDisplay();
|
||||
const theme = useTheme();
|
||||
const mainmenuStore = useMainmenuStore()
|
||||
const accountStore = useAccountStore()
|
||||
const drawer = ref(true)
|
||||
const drawer_right = ref(true)
|
||||
const mainmenuStore = useMainmenuStore();
|
||||
const accountStore = useAccountStore();
|
||||
const drawer = ref(true);
|
||||
const drawer_right = ref(true);
|
||||
|
||||
const LikeDialog = ref(false);
|
||||
const rail = ref(false);
|
||||
const showTooltip = ref(false);
|
||||
const alert = ref(false);
|
||||
const burl = baseURL.slice(0, -1);
|
||||
const scrimg = ref([]);
|
||||
|
||||
const message = computed({
|
||||
get: () => {
|
||||
return process.env.NODE_ENV == "development" ? true : false;
|
||||
},
|
||||
});
|
||||
|
||||
const LikeDialog = ref(false)
|
||||
const rail = ref(false)
|
||||
const showTooltip = ref(false)
|
||||
const alert = ref(false)
|
||||
const burl = baseURL.slice(0,-1)
|
||||
const scrimg = ref([])
|
||||
|
||||
const screenimg = () => {
|
||||
|
||||
if(!accountStore.cod2user){
|
||||
clearAxios.get(`api/navigation/screensaver/`)
|
||||
.then(data => {
|
||||
scrimg.value = data.data[0].img
|
||||
})}
|
||||
if (!accountStore.cod2user) {
|
||||
clearAxios.get(`api/navigation/screensaver/`).then((data) => {
|
||||
scrimg.value = data.data[0].img;
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
screenimg();
|
||||
|
||||
screenimg()
|
||||
|
||||
const menuTruncated = (menus) => {
|
||||
return menus.slice(0,2).toUpperCase()
|
||||
}
|
||||
return menus.slice(0, 2).toUpperCase();
|
||||
};
|
||||
|
||||
const toggleTheme = () => {
|
||||
theme.global.name.value = theme.global.current.value.dark ? 'light' : 'dark'
|
||||
}
|
||||
theme.global.name.value = theme.global.current.value.dark
|
||||
? "light"
|
||||
: "dark";
|
||||
};
|
||||
|
||||
mainmenuStore.loadlinks()
|
||||
mainmenuStore.loadlinks();
|
||||
|
||||
const gittlink = () => {
|
||||
const link =
|
||||
baseURL == "http://127.0.0.1:8000/"
|
||||
? "http://sulaco.nodered.ru:5223/COD2/PORTAL_COD2/projects"
|
||||
: "http://maestro.cod2.regions.tax.nalog.ru:3333/COD2/PORTAL_COD2/projects/22";
|
||||
return link;
|
||||
};
|
||||
|
||||
const link = baseURL=='http://127.0.0.1:8000/'?'http://sulaco.nodered.ru:5223/COD2/PORTAL_COD2/projects':'http://maestro.cod2.regions.tax.nalog.ru:3333/COD2/PORTAL_COD2/projects/22'
|
||||
return link
|
||||
}
|
||||
|
||||
// 'https://materialdesignicons.com/cdn/1.6.50-dev/'
|
||||
|
||||
// 'https://materialdesignicons.com/cdn/1.6.50-dev/'
|
||||
|
||||
const oRasrab = [
|
||||
{
|
||||
name: 'Gitt',
|
||||
ico: 'mdi-github',
|
||||
link: gittlink()
|
||||
},
|
||||
name: "Gitt",
|
||||
ico: "mdi-github",
|
||||
link: gittlink(),
|
||||
},
|
||||
{
|
||||
name: 'Swagger',
|
||||
ico: 'mdi-puzzle',
|
||||
link: 'http://127.0.0.1:8000/swagger/'
|
||||
}
|
||||
]
|
||||
|
||||
name: "Swagger",
|
||||
ico: "mdi-puzzle",
|
||||
link: "http://127.0.0.1:8000/swagger/",
|
||||
},
|
||||
];
|
||||
|
||||
// ]
|
||||
|
||||
const navigations = [
|
||||
|
||||
const navigations = ref([
|
||||
{
|
||||
name: 'Структура',
|
||||
ico: 'mdi-source-branch',
|
||||
name: "Структура",
|
||||
ico: "mdi-source-branch",
|
||||
submenu: [
|
||||
|
||||
{
|
||||
name: 'ОКиБ',
|
||||
path: "/okib"
|
||||
name: "ОКиБ",
|
||||
path: "/okib",
|
||||
},
|
||||
]
|
||||
],
|
||||
},
|
||||
{
|
||||
name: 'Сотрудники',
|
||||
ico: 'mdi-account-multiple-outline',
|
||||
name: "Сотрудники",
|
||||
ico: "mdi-account-multiple-outline",
|
||||
submenu: [
|
||||
{
|
||||
name: 'Справочник',
|
||||
link: 'http://10.252.44.33/accounting6/members.php'
|
||||
name: "Справочник",
|
||||
link: "http://10.252.44.33/accounting6/members.php",
|
||||
},
|
||||
// {
|
||||
// name: 'О пользователе',
|
||||
// ico: 'mdi-account',
|
||||
// path: "/userinfo"
|
||||
// },
|
||||
]
|
||||
],
|
||||
},
|
||||
{
|
||||
name: 'Деятельность',
|
||||
ico: 'mdi-bulletin-board',
|
||||
name: "Деятельность",
|
||||
ico: "mdi-bulletin-board",
|
||||
submenu: [
|
||||
{
|
||||
name: 'Обеспечивающая',
|
||||
path: "/providing"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
name: 'Новости',
|
||||
ico: 'mdi-newspaper',
|
||||
path: "/news"
|
||||
},
|
||||
{
|
||||
name: 'Безопасность',
|
||||
ico: 'mdi-security',
|
||||
submenu: [
|
||||
{
|
||||
name: 'Пожарная безопасность',
|
||||
path: "/fire_safety"
|
||||
name: "Обеспечивающая",
|
||||
path: "/providing",
|
||||
},
|
||||
]
|
||||
],
|
||||
},
|
||||
{
|
||||
name: 'О портале',
|
||||
ico: 'mdi-information-variant',
|
||||
path: "/portal"
|
||||
name: "Новости",
|
||||
ico: "mdi-newspaper",
|
||||
path: "/news",
|
||||
},
|
||||
{
|
||||
name: "О портале",
|
||||
ico: "mdi-information-variant",
|
||||
path: "/portal",
|
||||
},
|
||||
|
||||
{
|
||||
name: 'Об инспекции',
|
||||
ico: 'mdi-city',
|
||||
path: "/inspection"
|
||||
name: "Об инспекции",
|
||||
ico: "mdi-city",
|
||||
path: "/inspection",
|
||||
},
|
||||
{
|
||||
name: 'ical',
|
||||
ico: 'mdi-calendar',
|
||||
path: "/ical"
|
||||
name: "ical",
|
||||
ico: "mdi-calendar",
|
||||
path: "/ical",
|
||||
},
|
||||
|
||||
|
||||
// {
|
||||
// name: 'К празднику',
|
||||
// ico: 'mdi-cake-variant',
|
||||
// path: "/fnshol"
|
||||
// }
|
||||
]
|
||||
|
||||
]);
|
||||
|
||||
const imageSrc = computed(() => {
|
||||
return new URL(`@/assets/FNS-logo-xs.png`, import.meta.url).href;
|
||||
})
|
||||
});
|
||||
|
||||
const closeinfo = () => {
|
||||
LikeDialog.value = false
|
||||
LikeDialog.value = false;
|
||||
// feedalert.value=true
|
||||
}
|
||||
};
|
||||
|
||||
const getSafetyChapter = () => {
|
||||
axiosApiInstance.get("api/safety/gettypes/").then((response) => {
|
||||
response.data.forEach((item) => {
|
||||
if (!item.path.startsWith("/")) {
|
||||
item.path = "/" + item.path;
|
||||
}
|
||||
});
|
||||
|
||||
if (response.data.length > 0) {
|
||||
let safetyMenu = {
|
||||
name: "Безопасность",
|
||||
ico: "mdi-security",
|
||||
submenu: response.data,
|
||||
};
|
||||
navigations.value.splice(5, 0, safetyMenu);
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
getSafetyChapter();
|
||||
|
||||
return {
|
||||
theme,
|
||||
@@ -484,16 +483,14 @@ export default {
|
||||
// feedalert,
|
||||
alert,
|
||||
burl,
|
||||
|
||||
name,
|
||||
closeinfo,
|
||||
baseURL,
|
||||
getDevelopment
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
getDevelopment,
|
||||
message,
|
||||
};
|
||||
},
|
||||
};
|
||||
</script>
|
||||
<style lang="scss">
|
||||
.mystat {
|
||||
@@ -503,25 +500,20 @@ export default {
|
||||
z-index: 1005;
|
||||
}
|
||||
|
||||
|
||||
|
||||
.btnNav .v-navigation-drawer__content {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.railmenu .v-list-group__items .v-list-item {
|
||||
padding-inline-start: 11px!important;
|
||||
padding-inline-start: 11px !important;
|
||||
}
|
||||
|
||||
.textcolor {
|
||||
color: #2f535e
|
||||
color: #2f535e;
|
||||
}
|
||||
|
||||
#tr-popup {
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
||||
|
||||
</style>
|
||||
</style>
|
||||
@@ -14,7 +14,7 @@
|
||||
:icon=feedalert.ico
|
||||
theme="dark"
|
||||
min-height="40"
|
||||
min-width = "500"
|
||||
|
||||
position="fixed"
|
||||
location = "bottom"
|
||||
class="mb-2"
|
||||
|
||||
@@ -40,7 +40,9 @@ export default createVuetify({
|
||||
app_bar: '#004D40', // Цвет для навигационной (аппбар) панели
|
||||
black_and_white: '#FFFFFF',
|
||||
grey_white: '#FFFFFF', // Цвет для карточек
|
||||
insert_table: '#FAFAFA'
|
||||
insert_table: '#FAFAFA',
|
||||
btn_text: '#00897B', // фигма, текст кнопки с иконкой
|
||||
select_list: '#E0EAE8'
|
||||
},
|
||||
},
|
||||
dark: {
|
||||
@@ -64,7 +66,9 @@ export default createVuetify({
|
||||
app_bar: '#212121',
|
||||
black_and_white: '#101311',
|
||||
grey_white: '#212121',
|
||||
insert_table: '#323030'
|
||||
insert_table: '#323030',
|
||||
btn_text: '#00897B',
|
||||
select_list: '#E0EAE8'
|
||||
},
|
||||
},
|
||||
options: {
|
||||
|
||||
@@ -75,7 +75,7 @@ const routes = [
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/:chapter_id',
|
||||
path: '/:chapter',
|
||||
component: () => import('@/views/safety/ChaptersSafety.vue'),
|
||||
meta: {
|
||||
title: "Разделы безопасности",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import {useAccountStore} from '@/store/AccountStore'
|
||||
import axios from "axios";
|
||||
const spravURL = 'http://10.252.44.33/accounting6/images/photo/'
|
||||
|
||||
const spravURLBase = 'http://10.252.44.33/accounting6/'
|
||||
const baseURL = process.env.NODE_ENV == 'development'? 'http://127.0.0.1:8000/': `http://${window.location.host}/`;
|
||||
const baseWS = process.env.NODE_ENV == 'development'? 'ws://127.0.0.1:8000/': `ws://${window.location.host}/`;
|
||||
// const baseURL = process.env.NODE_ENV == 'development'? 'http://127.0.0.1:8000/': `http://10.252.44.60:9965/`;
|
||||
@@ -89,4 +89,4 @@ async error => {
|
||||
})
|
||||
|
||||
|
||||
export { axiosApiInstance, clearAxios, baseURL,spravURL,baseWS }
|
||||
export { axiosApiInstance, clearAxios, baseURL,spravURL, spravURLBase, baseWS }
|
||||
@@ -1,221 +1,60 @@
|
||||
<template>
|
||||
<v-row no-gutters class="flex-column">
|
||||
<v-card>
|
||||
<v-tabs v-model="tab" bg-color="teal-darken-1" slider-color="teal-lighten-3" selected-class="active-tab"
|
||||
:grow="true">
|
||||
<v-tab v-for="tabitem in tabs_items" :value="tabitem.value">{{ tabitem.title }}</v-tab>
|
||||
</v-tabs>
|
||||
</v-card>
|
||||
<v-col>
|
||||
<v-window v-model="tab">
|
||||
<v-window-item class="gap h-100" value="mainInfo">
|
||||
<v-row class="ma-1">
|
||||
<v-row no-gutters>
|
||||
<v-col class="d-flex flex-column gap">
|
||||
<v-card>
|
||||
<v-card-text class="text-h6 text-center">
|
||||
<p>
|
||||
Межрегиональная инспекция Федеральной налоговой службы по централизованной
|
||||
обработке
|
||||
данных №2
|
||||
</p>
|
||||
<p>
|
||||
создана 01.02.2018 года в соответствии с приказом ФНС России от 27.12.2017
|
||||
№ММВ-7-4/1102
|
||||
</p>
|
||||
</v-card-text>
|
||||
|
||||
<v-card-text class="text-h6 text-center">
|
||||
<a class=" text-decoration-none" :href="caCuratorLink">Работа МИ ФНС
|
||||
России
|
||||
по ЦОД №2
|
||||
координируется заместителем
|
||||
руководителя ФНС
|
||||
России
|
||||
Будариным Андреем Владимировичем</a>
|
||||
</v-card-text>
|
||||
</v-card>
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-row>
|
||||
<v-col lg="3" class="d-flex flex-column gap">
|
||||
<v-card>
|
||||
<v-card-title class="text-h6 text-uppercase text-center"> Начальник
|
||||
инспекции</v-card-title>
|
||||
<v-divider></v-divider>
|
||||
<div class="w-100 d-flex justify-center">
|
||||
<v-avatar rounded="0" size="200">
|
||||
<v-img :src="checkremote(`${spravURL}${userlinks.login}.jpg`)"></v-img>
|
||||
</v-avatar>
|
||||
</div>
|
||||
<v-card-title class="text-h6 text-center">{{ userlinks.fio }}</v-card-title>
|
||||
<v-card-text class="text-center">
|
||||
<p>{{ bossRank }}</p>
|
||||
</v-card-text>
|
||||
</v-card>
|
||||
<v-card>
|
||||
<v-card-title class="text-h6 text-center text-uppercase">
|
||||
Штатная численность
|
||||
</v-card-title>
|
||||
<v-card-text class="text-h2 text-center ma-7">
|
||||
<vue3-autocounter ref='counter' :startAmount='0' :endAmount='getstatesize.statesize'
|
||||
:duration='2' />
|
||||
</v-card-text>
|
||||
|
||||
<v-card-subtitle class="text-center">по состоянию на
|
||||
{{ new Date(getstatesize.date_created).toLocaleDateString("ru-RU") }}
|
||||
</v-card-subtitle>
|
||||
|
||||
<v-divider></v-divider>
|
||||
|
||||
<v-card-title class="text-h6 text-center text-uppercase">
|
||||
Фактическая численность
|
||||
</v-card-title>
|
||||
|
||||
<v-card-text class="text-h2 text-center ma-8">
|
||||
<vue3-autocounter ref='counter' :startAmount='0' :endAmount='getfactsize.factsize'
|
||||
:duration='2' />
|
||||
</v-card-text>
|
||||
|
||||
<v-card-subtitle class="text-center">по состоянию на
|
||||
{{ new Date(getfactsize.date_created).toLocaleDateString("ru-RU") }}
|
||||
</v-card-subtitle>
|
||||
</v-card>
|
||||
</v-col>
|
||||
|
||||
<v-col lg="9">
|
||||
<v-card>
|
||||
<v-card-title class=" text-h6 text-uppercase text-center">
|
||||
Основные направления деятельности инспекции
|
||||
</v-card-title>
|
||||
<v-divider></v-divider>
|
||||
<v-row no-gutters class="d-flex justify-center">
|
||||
<v-col v-for="direction in directionworks" :key="direction.id" lg="12">
|
||||
<v-card class="ma-3 d-flex" :elevation="3" :height="104">
|
||||
<v-col class="d-flex align-center justify-center">
|
||||
<v-avatar class="elevation-10 text-teal-darken-4"
|
||||
color="teal-lighten-5">
|
||||
<v-icon :icon="direction.icon_name"></v-icon>
|
||||
</v-avatar>
|
||||
</v-col>
|
||||
<v-col lg="11" class="d-flex align-center justify-start text-h6">
|
||||
{{ direction.direction_title }}
|
||||
</v-col>
|
||||
</v-card>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-card>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-row>
|
||||
</v-window-item>
|
||||
<v-window-item class="gap h-100" value="structureInspection">
|
||||
<structure-inspection />
|
||||
</v-window-item>
|
||||
<v-window-item class="gap h-100" value="openVacancies">
|
||||
<h1>Открытые вакансии</h1>
|
||||
</v-window-item>
|
||||
<v-window-item class="gap h-100" value="contactInfo">
|
||||
<contact-info />
|
||||
</v-window-item>
|
||||
</v-window>
|
||||
</v-col>
|
||||
</v-row>
|
||||
<pattern-tabs :tabs="tabs_items">
|
||||
<template v-slot:item>
|
||||
<v-window-item class="gap h-100" value="mainInfo">
|
||||
<general-information />
|
||||
</v-window-item>
|
||||
<v-window-item class="gap h-100" value="structureInspection">
|
||||
<structure-inspection />
|
||||
</v-window-item>
|
||||
<v-window-item class="gap h-100" value="openVacancies">
|
||||
<open-vacancies/>
|
||||
</v-window-item>
|
||||
<v-window-item class="gap h-100" value="contactInfo">
|
||||
<contact-info />
|
||||
</v-window-item>
|
||||
</template>
|
||||
</pattern-tabs>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { ref } from 'vue'
|
||||
import { axiosApiInstance } from '@/utils/axios-api'
|
||||
import { checkremote } from '@/utils/universal_functions'
|
||||
import { spravURL, baseURL } from '@/utils/axios-api'
|
||||
import StructureInspection from '@/components/about_inspection/structure/StructureInspection.vue';
|
||||
import ContactInfo from '@/components/about_inspection/contacts/ContactInfo.vue';
|
||||
import { pagecounter } from '@/utils/universal_functions'
|
||||
|
||||
|
||||
import StructureInspection from "@/components/about_inspection/structure/StructureInspection.vue";
|
||||
import ContactInfo from "@/components/about_inspection/contacts/ContactInfo.vue";
|
||||
import { pagecounter } from "@/utils/universal_functions";
|
||||
import PatternTabs from "@/components/UI/PatternTabs.vue";
|
||||
import GeneralInformation from "@/components/about_inspection/general_information/GeneralInformation.vue";
|
||||
import OpenVacancies from '@/components/about_inspection/open_vacancies/OpenVacancies.vue';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
StructureInspection,
|
||||
ContactInfo,
|
||||
},
|
||||
|
||||
setup() {
|
||||
const userlinks = ref([])
|
||||
const getfactsize = ref({ 'factsize': 0, 'date_created': new Date() })
|
||||
const getstatesize = ref({ 'statesize': 0, 'date_created': new Date() })
|
||||
const directionworks = ref([])
|
||||
const caCuratorLink = ref('https://www.nalog.gov.ru/rn77/about_fts/fts/structure_fts/ca_fns/9515034/')
|
||||
|
||||
const infouser = () => {
|
||||
axiosApiInstance.get('api/accounts/getuser/?userlogin=9966-00-001').then(res => {
|
||||
userlinks.value = res.data
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
const getFactSize = () => {
|
||||
axiosApiInstance.get('api/about_inspection/getfactsize/').then(res => {
|
||||
getfactsize.value = res.data
|
||||
})
|
||||
}
|
||||
|
||||
const getStateSize = () => {
|
||||
axiosApiInstance.get('api/about_inspection/getstatesize/').then(res => {
|
||||
getstatesize.value = res.data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
const getInspectionDirections = () => {
|
||||
axiosApiInstance.get('api/about_inspection/getinspectiondirections/').then(res => {
|
||||
directionworks.value = res.data
|
||||
console.log(directionworks.value)
|
||||
})
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
getInspectionDirections()
|
||||
getStateSize()
|
||||
getFactSize()
|
||||
infouser()
|
||||
pagecounter()
|
||||
return {
|
||||
caCuratorLink,
|
||||
directionworks,
|
||||
getstatesize,
|
||||
getfactsize,
|
||||
spravURL,
|
||||
baseURL,
|
||||
checkremote,
|
||||
caCuratorLink,
|
||||
userlinks,
|
||||
tab: ref(null),
|
||||
date_now: new Date().toLocaleDateString("ru-RU"),
|
||||
bossRank: "Государственный советник Российской Федерации 2 класса",
|
||||
tabs_items: [{ "title": "Общая информация", "value": "mainInfo" },
|
||||
{ "title": "Структура инспекции", "value": "structureInspection" },
|
||||
{ "title": "Открытые вакансии", "value": "openVacancies" },
|
||||
{ "title": "Контактная информация", "value": "contactInfo" }],
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
components: {
|
||||
StructureInspection,
|
||||
ContactInfo,
|
||||
PatternTabs,
|
||||
GeneralInformation,
|
||||
OpenVacancies
|
||||
},
|
||||
|
||||
setup() {
|
||||
|
||||
pagecounter();
|
||||
return {
|
||||
tabs_items: [
|
||||
{ title: "Общая информация", value: "mainInfo" },
|
||||
{ title: "Структура инспекции", value: "structureInspection" },
|
||||
{ title: "Открытые вакансии", value: "openVacancies" },
|
||||
{ title: "Контактная информация", value: "contactInfo" },
|
||||
],
|
||||
};
|
||||
},
|
||||
};
|
||||
</script>
|
||||
<style>
|
||||
.active-tab {
|
||||
background-color: #E0F2F1;
|
||||
color: #004D40;
|
||||
background-color: #e0f2f1;
|
||||
color: #004d40;
|
||||
}
|
||||
|
||||
a {
|
||||
color: inherit;
|
||||
color: inherit;
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
@@ -1,119 +1,104 @@
|
||||
<template>
|
||||
<v-row no-gutters class="flex-column h-100 gap pa-1">
|
||||
<v-col lg="1" class="w100 h-100">
|
||||
<v-card>
|
||||
<v-tabs
|
||||
v-model="tab"
|
||||
bg-color="teal-darken-1"
|
||||
slider-color="teal-darken-2"
|
||||
:grow="true">
|
||||
<v-tab selected-class="isActiveTab" value="mainInfo">Основная информация</v-tab>
|
||||
<v-tab selected-class="isActiveTab" value="document">Документация</v-tab>
|
||||
<v-tab selected-class="isActiveTab" value="testings">Тестирование</v-tab>
|
||||
</v-tabs>
|
||||
</v-card>
|
||||
</v-col>
|
||||
<v-col class="w100 h-100">
|
||||
<v-window v-model="tab" class="h-100">
|
||||
<v-window-item no-gutters class="gap h-100" value="mainInfo">
|
||||
<MainInfoSafety></MainInfoSafety>
|
||||
</v-window-item>
|
||||
<v-window-item value="document" class="h-100">
|
||||
<v-row no-gutters class="gap h-100 ">
|
||||
<v-col lg="6">
|
||||
<!---->
|
||||
<v-card class="h-100 flex-column d-flex gap">
|
||||
<v-row class="ma-0 my-3 overflow-auto h-0 pb-1">
|
||||
<v-card v-for="item in safetyData" :key="item.id" class="overflow-y-auto flex-grow-1 flex-shrink-1 h-100">
|
||||
<v-card-title>{{ item.name }}</v-card-title>
|
||||
<v-container
|
||||
v-for="category in item.categories"
|
||||
:key="item.id + category.id"
|
||||
:fluid="true"
|
||||
class="py-0">
|
||||
<v-card-actions v-if="category.id != 'evacuation_plan'">
|
||||
<v-btn
|
||||
@click="showMore[item.id + category.id] = !showMore[item.id + category.id]"
|
||||
variant="text">
|
||||
{{ category.name }}
|
||||
</v-btn>
|
||||
<v-btn
|
||||
:icon="showMore[item.id + category.id] ? 'mdi-chevron-up' : 'mdi-chevron-down'"
|
||||
@click="showMore[item.id + category.id] = !showMore[item.id + category.id]">
|
||||
</v-btn>
|
||||
</v-card-actions>
|
||||
<v-expand-transition>
|
||||
<div v-show="showMore[item.id + category.id]">
|
||||
<v-card-actions v-for="file in category.files" :key="file.id" class="overflow-y-auto">
|
||||
<v-card-text
|
||||
class="cursor-pointer"
|
||||
:ref_="openPDF(burl + file.url)"
|
||||
@click="openPDF(burl + file.url), loading=true">
|
||||
{{ file.name }}
|
||||
<v-row no-gutters class="flex-column h-100 gap pa-1">
|
||||
<v-col class="w100 h-100 flex-grow-0">
|
||||
<v-card>
|
||||
<v-tabs v-model="tab" bg-color="bg_tab" slider-color="slider_tab" selected-class="isActiveTab" :grow="true">
|
||||
<v-tab value="mainInfo">Основная информация</v-tab>
|
||||
<v-tab value="document">Документация</v-tab>
|
||||
<v-tab value="testings">Тестирование</v-tab>
|
||||
</v-tabs>
|
||||
</v-card>
|
||||
</v-col>
|
||||
<v-col class="w100 h-100">
|
||||
<v-window v-model="tab" class="h-100">
|
||||
<v-window-item no-gutters class="gap h-100" value="mainInfo">
|
||||
<MainInfoSafety :formainpage="formainpage"></MainInfoSafety>
|
||||
</v-window-item>
|
||||
<v-window-item value="document" class="h-100">
|
||||
<v-row no-gutters class="gap h-100 ">
|
||||
<v-col lg="6">
|
||||
<v-card class="h-100 flex-column d-flex gap ">
|
||||
<v-row class="ma-0 overflow-auto pb-1 ">
|
||||
<v-card class="overflow-y-auto flex-grow-1 flex-shrink-1 h-100">
|
||||
<v-card-title>{{ safetyData.name }}</v-card-title>
|
||||
<v-expansion-panels
|
||||
multiple
|
||||
flat>
|
||||
<v-expansion-panel elevation=0 v-for="category in safetyData.categories"
|
||||
:key="category.id" class="py-0">
|
||||
<v-expansion-panel-title class="font-weight-medium">{{
|
||||
category.category__name }}</v-expansion-panel-title>
|
||||
<v-expansion-panel-text>
|
||||
<div v-for="file in category.files" :key="file.id"
|
||||
class="overflow-y-auto d-flex justify-space-between">
|
||||
<div class="cursor-pointer"
|
||||
@click="openPDF(file.url), loading = true">
|
||||
{{ file.name }}
|
||||
</div>
|
||||
<div>
|
||||
<v-btn variant="text" icon="mdi-file-pdf-box"
|
||||
color="red"
|
||||
@click="openPDF(file.url), loading = true"></v-btn>
|
||||
<v-btn variant="text"
|
||||
icon='mdi-file-download-outline' color="green"
|
||||
@click="downloadItem(burl + file.url, file.name)"></v-btn>
|
||||
</div>
|
||||
</div>
|
||||
</v-expansion-panel-text>
|
||||
</v-expansion-panel>
|
||||
</v-expansion-panels>
|
||||
</v-card>
|
||||
</v-row>
|
||||
<v-row class="ma-0 overflow-auto bg-yellow ">
|
||||
<v-card class="overflow-y-auto flex-grow-1 h-100">
|
||||
<v-card-title>{{ responsibilityData.name }}</v-card-title>
|
||||
<v-container v-for="file in responsibilityData.files" :fluid="true" class="py-0">
|
||||
<v-card-actions :key="file.id">
|
||||
<v-card-text class="cursor-pointer"
|
||||
@click="openPDF(checkNameFiles(file)), loading = true">
|
||||
{{ get_name(decodeURI(file.file_name.replace(/\.[^/.]+$/, ""))) }}
|
||||
</v-card-text>
|
||||
<v-btn icon="mdi-file-pdf-box" color="red" @click="openPDF(burl + file.url), loading=true"></v-btn>
|
||||
<v-btn icon='mdi-file-download-outline' color="green" @click="downloadItem(burl + file.url, file.name)"></v-btn>
|
||||
<v-btn icon="mdi-file-pdf-box" color="red"
|
||||
@click="openPDF(checkNameFiles(file)), loading = true"></v-btn>
|
||||
<v-btn icon='mdi-file-download-outline' color="green"
|
||||
@click="downloadItem(burl + checkNameFiles(file), get_name(decodeURI(file.file_name)))"></v-btn>
|
||||
</v-card-actions>
|
||||
</div>
|
||||
</v-expand-transition>
|
||||
</v-container>
|
||||
</v-card>
|
||||
</v-row>
|
||||
<v-row class="ma-0 overflow-auto h-0">
|
||||
<v-card class="overflow-y-auto flex-grow-1 flex-shrink-1 h-100">
|
||||
<v-card-title>{{ responsibilityData.name }}</v-card-title>
|
||||
<v-container
|
||||
v-for="file in responsibilityData.files"
|
||||
:fluid="true"
|
||||
class="py-0">
|
||||
<v-card-actions :key="file.id">
|
||||
<v-card-text>{{ file.file_name.replace(/\.[^/.]+$/, "") }}</v-card-text>
|
||||
<v-btn icon="mdi-file-pdf-box" color="red" @click="openPDF(burl + file.url), loading=true"></v-btn>
|
||||
<v-btn icon='mdi-file-download-outline' color="green" @click="downloadItem(burl + file.file_name, file.file_name)"></v-btn>
|
||||
<!-- @click="downloadItem(burl + file.file_name, file.file_name)" -->
|
||||
</v-container>
|
||||
</v-card>
|
||||
</v-row>
|
||||
</v-card>
|
||||
</v-col>
|
||||
<v-col>
|
||||
<v-card class="h-100 flex-column d-flex gap">
|
||||
<v-row class="ma-0 overflow-auto h-0">
|
||||
<v-card v-show="showFile"
|
||||
class="mr-2 flex-grow-1 flex-shrink-1 h-100 pa-2 overflow-auto">
|
||||
<v-container v-if="loading">
|
||||
<v-progress-linear :rounded="5" indeterminate color="teal">
|
||||
</v-progress-linear>
|
||||
</v-container>
|
||||
<VuePdfEmbed :source="pdfSource" width="720" @rendered="loading = false" />
|
||||
</v-card>
|
||||
</v-row>
|
||||
<v-card-actions v-show="showFile">
|
||||
<v-btn position="sticky" block @click="showFile = false">Закрыть</v-btn>
|
||||
</v-card-actions>
|
||||
</v-container>
|
||||
</v-card>
|
||||
</v-card>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-card>
|
||||
</v-col>
|
||||
<v-col>
|
||||
<!-- <v-card class="h-100 flex-column d-flex gap">
|
||||
<v-row class="ma-0 overflow-auto h-0">
|
||||
<v-card v-show="showFile" class="mr-2 flex-grow-1 flex-shrink-1 h-100 pa-2 overflow-auto">
|
||||
<v-container v-if="loading">
|
||||
<v-progress-linear
|
||||
:rounded="5"
|
||||
indeterminate
|
||||
color="teal">
|
||||
</v-progress-linear>
|
||||
</v-container>
|
||||
<VuePdfEmbed :source="pdfSource" width="720" @rendered="loading = false"/>
|
||||
</v-card>
|
||||
</v-row>
|
||||
<v-card-actions v-show="showFile">
|
||||
<v-btn
|
||||
position="sticky"
|
||||
block
|
||||
@click="showFile = false">Закрыть</v-btn>
|
||||
</v-card-actions>
|
||||
</v-card> -->
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-window-item>
|
||||
<v-window-item value="testings" no-gutters class="gap h-100 ">
|
||||
<TestSafety></TestSafety>
|
||||
</v-window-item>
|
||||
</v-window>
|
||||
</v-col>
|
||||
</v-row>
|
||||
|
||||
</v-window-item>
|
||||
<v-window-item value="testings" no-gutters class="gap h-100 ">
|
||||
<TestSafety></TestSafety>
|
||||
</v-window-item>
|
||||
</v-window>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { ref, onBeforeMount, onUpdated } from 'vue';
|
||||
import { ref, onBeforeMount, computed } from 'vue';
|
||||
import { pagecounter } from '@/utils/universal_functions';
|
||||
import { axiosApiInstance, baseURL } from '@/utils/axios-api';
|
||||
import { axiosApiInstance, baseURL, spravURLBase } from '@/utils/axios-api';
|
||||
import { saveAs } from 'file-saver';
|
||||
import { useRoute } from 'vue-router'
|
||||
|
||||
@@ -123,23 +108,41 @@ import MainInfoSafety from './MainInfoSafety.vue';
|
||||
|
||||
pagecounter();
|
||||
|
||||
const safetyData = ref([]);
|
||||
const safetyData = ref({categories:[]});
|
||||
const responsibilityData = ref();
|
||||
const showMore = ref(false);
|
||||
const showFile = ref(false);
|
||||
let pdfSource = '';
|
||||
const showFile = ref(true);
|
||||
let pdfSource = ref("");
|
||||
const loading = ref(false);
|
||||
const tab = ref('');
|
||||
const burl = baseURL.slice(0,-1);
|
||||
const burl = baseURL.slice(0, -1);
|
||||
const route = useRoute();
|
||||
|
||||
// Вынес запрос в отдельную функцию, чтобы избежать дублирования одного и того же запроса на сервер.
|
||||
function getSafety() {
|
||||
axiosApiInstance.get(`api/safety/files/?chapter_id=${route.params.chapter_id}`).then(result => {
|
||||
axiosApiInstance.get(`api/safety/files/?chapter=${route.params.chapter}`).then(result => {
|
||||
safetyData.value = result.data
|
||||
// console.log(safetyData.value);
|
||||
loading.value = true
|
||||
pdfSource.value = burl + safetyData.value.categories[0].files[0].url
|
||||
// console.log(safetyData.value);
|
||||
})
|
||||
}
|
||||
|
||||
const formainpage = computed({
|
||||
get() {
|
||||
let arr = []
|
||||
safetyData.value.categories.forEach(element => {
|
||||
element.files.forEach((e) => {
|
||||
if (e.formainpage == true) {
|
||||
arr.push(e)
|
||||
}
|
||||
})
|
||||
})
|
||||
return arr
|
||||
}
|
||||
})
|
||||
|
||||
function getResponsibility() {
|
||||
axiosApiInstance.get(`api/safety/committee_files/`).then(result => {
|
||||
responsibilityData.value = result.data
|
||||
@@ -149,32 +152,37 @@ function getResponsibility() {
|
||||
getResponsibility()
|
||||
|
||||
onBeforeMount(() => getSafety());
|
||||
// Хук обновления реализует возможность динамической подгрузки данных при переключении между вкладками раздела безопасность
|
||||
onUpdated(() => getSafety());
|
||||
|
||||
// Проверяем по ID на какой категории срабатывает клик на раскрытии/скрытии, чтобы избежать срабатывания у всех категорий одновременно
|
||||
showMore.value = safetyData.value.reduce((acc, value) => {
|
||||
acc[value.id] = false
|
||||
return acc
|
||||
}, {});
|
||||
|
||||
const downloadItem = (url, fileName) => {
|
||||
axiosApiInstance.get(url, {responseType: 'blob'})
|
||||
.then(response => {
|
||||
saveAs(response.data, fileName)
|
||||
})
|
||||
axiosApiInstance.get(url, { responseType: 'blob' })
|
||||
.then(response => {
|
||||
saveAs(response.data, fileName)
|
||||
})
|
||||
};
|
||||
|
||||
function openPDF(url) {
|
||||
pdfSource.value = burl + url
|
||||
showFile.value = true
|
||||
if (showFile) {
|
||||
return pdfSource = url
|
||||
}
|
||||
};
|
||||
|
||||
function get_name(namestr) {
|
||||
let arr = namestr.split("/")
|
||||
return arr[arr.length - 1]
|
||||
}
|
||||
|
||||
function checkNameFiles(obj) {
|
||||
if (obj.file_name.includes('/media/comitee_files/')) {
|
||||
return obj.file_name
|
||||
}
|
||||
else {
|
||||
return spravURLBase + `files/committee1_docs/${obj.id_committee1}/${get_name(obj.file_name)}`
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.isActiveTab {
|
||||
background-color: #68c3ff70;
|
||||
background-color: #E0F2F1;
|
||||
color: #004D40;
|
||||
}
|
||||
</style>
|
||||
@@ -1,106 +1,19 @@
|
||||
<template>
|
||||
<v-card class="h-100">
|
||||
<v-row no-gutters class="h-100">
|
||||
<v-col cols="9">
|
||||
<v-card class="h-100 d-flex flex-column">
|
||||
<v-row class="ma-0 overflow-auto h-0">
|
||||
<v-col
|
||||
cols="6"
|
||||
class="h-100 gap">
|
||||
<v-card class="h-100">
|
||||
<v-img
|
||||
class="cursor-pointer"
|
||||
:src="`${burl}/media/safety/schemas/Схема1.jpg`"
|
||||
height="100%"
|
||||
@click="openFirstPlan = true">
|
||||
</v-img>
|
||||
</v-card>
|
||||
<v-dialog v-model="openFirstPlan" :width="900" height="100%">
|
||||
<v-row class="ma-0 overflow-auto h-0">
|
||||
<v-card class="h-100 w-100 pa-0 flex-grow-0">
|
||||
<v-btn
|
||||
density="compact"
|
||||
variant="text"
|
||||
icon="mdi-close"
|
||||
@click="openFirstPlan = false">
|
||||
</v-btn>
|
||||
<v-img
|
||||
:src="`${burl}/media/safety/schemas/Схема1.jpg`"
|
||||
class="cursor-pointer"
|
||||
height="100%"
|
||||
width="100%"
|
||||
@click="openFirstPlan = false">
|
||||
</v-img>
|
||||
</v-card>
|
||||
</v-row>
|
||||
</v-dialog>
|
||||
</v-col>
|
||||
<v-col
|
||||
cols="6"
|
||||
class="h-100 gap">
|
||||
<v-card class="h-100">
|
||||
<v-img
|
||||
:src="`${burl}/media/safety/schemas/Схема2.jpg`"
|
||||
class="cursor-pointer"
|
||||
height="100%"
|
||||
@click="openSecondPlan = true">
|
||||
</v-img>
|
||||
<v-dialog v-model="openSecondPlan" :width="900" height="100%">
|
||||
<v-row class="ma-0 overflow-auto h-0">
|
||||
<v-card class="h-100 w-100 pa-0 flex-grow-0">
|
||||
<v-btn
|
||||
density="compact"
|
||||
variant="text"
|
||||
icon="mdi-close"
|
||||
@click="openSecondPlan = false">
|
||||
</v-btn>
|
||||
<v-img
|
||||
:src="`${burl}/media/safety/schemas/Схема2.jpg`"
|
||||
class="cursor-pointer"
|
||||
height="100%"
|
||||
width="100%"
|
||||
@click="openSecondPlan = false">
|
||||
</v-img>
|
||||
</v-card>
|
||||
</v-row>
|
||||
</v-dialog>
|
||||
</v-card>
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-row class="ma-0 overflow-auto h-0">
|
||||
<v-col class="h-100 gap">
|
||||
<v-card class="h-100">
|
||||
<v-img
|
||||
:src="`${burl}/media/safety/schemas/План.jpg`" @click="openImg = true"
|
||||
class="cursor-pointer"
|
||||
height="100%"
|
||||
width="100%">
|
||||
</v-img>
|
||||
<v-dialog v-model="openImg" :width="900" height="100%">
|
||||
<v-row class="ma-0 overflow-auto h-0">
|
||||
<v-card class="h-100 w-100 pa-0 flex-grow-0">
|
||||
<v-btn
|
||||
density="compact"
|
||||
variant="text"
|
||||
icon="mdi-close"
|
||||
@click="openImg = false">
|
||||
</v-btn>
|
||||
<v-img
|
||||
:src="`${burl}/media/safety/schemas/План.jpg`"
|
||||
class="cursor-pointer"
|
||||
height="100%"
|
||||
width="100%"
|
||||
@click="openImg = false">
|
||||
</v-img>
|
||||
</v-card>
|
||||
</v-row>
|
||||
</v-dialog>
|
||||
</v-card>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-card>
|
||||
|
||||
<v-row no-gutters class="gap h-100 ">
|
||||
<v-col cols="9" class="flex-column" >
|
||||
<v-row no-gutters class="h-100 justify-center">
|
||||
<v-col lg="6" class="meheight" v-for="schema in formainpage" :key="schema.id">
|
||||
<VuePdfEmbed v-if="schema.url.endsWith('.pdf')" :source="burl + schema.url" width="500" />
|
||||
<v-img v-else
|
||||
class="cursor-pointer"
|
||||
:src="burl + schema.url"
|
||||
@click="openFirstPlan_opener(schema)">
|
||||
</v-img>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-col>
|
||||
<v-col cols="3" class="w100">
|
||||
<v-col class="w100">
|
||||
<v-card class="h-100 d-flex flex-column">
|
||||
<v-card-title class="text-wrap">Ответственные за противопожарную безопасность</v-card-title>
|
||||
<v-row class="ma-0 overflow-auto h-0">
|
||||
@@ -112,23 +25,52 @@
|
||||
</list-user>
|
||||
</v-card>
|
||||
</v-row>
|
||||
</v-card>
|
||||
</v-card>
|
||||
<v-dialog v-model="openFirstPlan" :width="900" height="100%">
|
||||
<v-row class="ma-0 overflow-auto h-0">
|
||||
<v-card class="h-100 w-100 pa-0 flex-grow-0">
|
||||
<v-btn
|
||||
density="compact"
|
||||
variant="text"
|
||||
icon="mdi-close"
|
||||
@click="openFirstPlan = false">
|
||||
</v-btn>
|
||||
<v-img
|
||||
:src="urlschema"
|
||||
class="cursor-pointer"
|
||||
height="100%"
|
||||
width="100%"
|
||||
@click="openFirstPlan = false">
|
||||
</v-img>
|
||||
</v-card>
|
||||
</v-row>
|
||||
</v-dialog>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-card>
|
||||
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
|
||||
import { baseURL, axiosApiInstance } from '@/utils/axios-api'
|
||||
import { ref } from 'vue';
|
||||
import VuePdfEmbed from 'vue-pdf-embed';
|
||||
|
||||
defineProps(
|
||||
{
|
||||
formainpage: Object,
|
||||
require:true
|
||||
},
|
||||
)
|
||||
|
||||
const urlschema=ref(null)
|
||||
const burl = baseURL.slice(0,-1)
|
||||
const openImg = ref(false)
|
||||
const openFirstPlan = ref(false)
|
||||
const openSecondPlan = ref(false)
|
||||
const responsibility = ref([])
|
||||
|
||||
function openFirstPlan_opener(schema){
|
||||
urlschema.value = burl + schema.url
|
||||
openFirstPlan.value = true
|
||||
}
|
||||
|
||||
function getResponsibility() {
|
||||
axiosApiInstance.get(`api/safety/responsibility/`).then(result => {
|
||||
responsibility.value = result.data.users
|
||||
@@ -137,5 +79,10 @@ function getResponsibility() {
|
||||
|
||||
getResponsibility()
|
||||
|
||||
</script>
|
||||
|
||||
</script>
|
||||
<style>
|
||||
.meheight {
|
||||
max-height: 44vh;
|
||||
}
|
||||
</style>
|
||||
@@ -9,13 +9,16 @@ import { fileURLToPath, URL } from 'node:url'
|
||||
// https://vitejs.dev/config/
|
||||
export default defineConfig({
|
||||
plugins: [
|
||||
|
||||
vue({
|
||||
template: { transformAssetUrls }
|
||||
}),
|
||||
// https://github.com/vuetifyjs/vuetify-loader/tree/next/packages/vite-plugin
|
||||
vuetify({
|
||||
autoImport: true,
|
||||
|
||||
}),
|
||||
|
||||
],
|
||||
define: { 'process.env': {} },
|
||||
resolve: {
|
||||
|
||||
Reference in new issue
Block a user