From 8c5b01f6d4b5f1f80f48ee4cbb2c7dd7ed19f099 Mon Sep 17 00:00:00 2001 From: iriska-gri <79623434+iriska-gri@users.noreply.github.com> Date: Fri, 22 Mar 2024 11:53:07 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=B7=D0=B0=D0=BC=D0=B5=D1=87=D0=B0?= =?UTF-8?q?=D0=BD=D0=B8=D0=B9,=20=D0=BE=D0=BF=D0=B8=D1=81=D0=B0=D0=BD?= =?UTF-8?q?=D0=B8=D0=B5=20=D0=BA=D0=BE=D0=BC=D0=BF=D0=BE=D0=BD=D0=B5=D0=BD?= =?UTF-8?q?=D1=82=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/back/accounts/backends.py | 9 +- src/back/general_vacation/excel.py | 10 +- src/back/general_vacation/views.py | 2 +- src/back/watcher/views.py | 5 - src/front/src/components/UI/Calendar-full.vue | 18 +- .../UI/aboutportal/card-top-comment.vue | 7 +- .../components/UI/aboutportal/line-chart.vue | 247 ++++++++---------- .../components/UI/aboutportal/top-user.vue | 2 - .../src/components/UI/fiousercard/listUser.md | 45 ++++ .../components/UI/fiousercard/listUser.vue | 2 + src/front/src/components/UI/index.js | 3 +- src/front/src/components/dialog-search.vue | 7 +- src/front/src/components/load-round.vue | 1 - .../src/layouts/default/DefaultPortal.vue | 12 +- src/front/src/layouts/default/alertDefault.md | 7 + src/front/src/utils/universal_functions.js | 13 +- src/front/src/utils/universal_functions.md | 10 +- src/front/src/views/safety/MainInfoSafety.vue | 2 +- 18 files changed, 207 insertions(+), 195 deletions(-) create mode 100644 src/front/src/components/UI/fiousercard/listUser.md create mode 100644 src/front/src/layouts/default/alertDefault.md diff --git a/src/back/accounts/backends.py b/src/back/accounts/backends.py index f5cb17208..a62039af5 100644 --- a/src/back/accounts/backends.py +++ b/src/back/accounts/backends.py @@ -68,7 +68,6 @@ class CustomAuth(ModelBackend): # try: user = DictEmployee.objects.get(login=username) - # print(user) if user.deleted!=1: homeuser, created = User.objects.get_or_create(username=username) @@ -92,10 +91,4 @@ class CustomAuth(ModelBackend): return homeuser - # except Exception as e: - # print (e) - # elif status_code==403: - # print('loh') - # return None - - + \ No newline at end of file diff --git a/src/back/general_vacation/excel.py b/src/back/general_vacation/excel.py index 94159a532..9808c968c 100644 --- a/src/back/general_vacation/excel.py +++ b/src/back/general_vacation/excel.py @@ -162,7 +162,7 @@ class roundExcel(): def excelvacation(self): - print('helooooooooooooooooooooooooooooooooooooo') + pass class loadExcel(): @@ -232,10 +232,6 @@ class loadExcel(): df3['d'] = df3['d'].astype(int) for ind in df3.index: - # print(df3['login'][ind]) -# + GeneralVacation.objects.create(login=df3['login'][ind], planned_date=df3['c'][ind], count_days=df3['d'][ind], type_of_vacation=df3['e'][ind], start_work_period=df3['f'][ind]) - # DailyRoundUp.objects.update_or_create(todaysDate=datetime.strptime(datas, '%d.%m.%Y').strftime('%Y-%m-%d'), - # user=df3['login'][ind], defaults={'position':base}) - - \ No newline at end of file + \ No newline at end of file diff --git a/src/back/general_vacation/views.py b/src/back/general_vacation/views.py index 7ae018ac2..bbe87483e 100644 --- a/src/back/general_vacation/views.py +++ b/src/back/general_vacation/views.py @@ -47,7 +47,7 @@ class DailyRoundUpAPIView(APIView): re = roundExcel(user) - print( request.GET.get("excel"), '-------------------------------') + file_path = getattr(re, request.GET.get("excel"))() # if request.GET.get("excel") == 'round': # file_path = re.excround() diff --git a/src/back/watcher/views.py b/src/back/watcher/views.py index 9cd32c064..55239876f 100644 --- a/src/back/watcher/views.py +++ b/src/back/watcher/views.py @@ -22,11 +22,6 @@ class Counter(ListAPIView): def get(self, request): """Не используется""" - # data = UserComment.objects.filter(Q(time_create__range=['2024-01-01', '2024-03-01']), ~Q(comment='')). \ - # values().order_by('-time_create') - # print(data,'---------------------------------------------------------') - - return Response('Не используется') diff --git a/src/front/src/components/UI/Calendar-full.vue b/src/front/src/components/UI/Calendar-full.vue index 038724713..c766e7212 100644 --- a/src/front/src/components/UI/Calendar-full.vue +++ b/src/front/src/components/UI/Calendar-full.vue @@ -41,20 +41,7 @@ export default { }, firstDay:'1', events: [], - // eventDidMount: function(info) { - - - // const dayEl = info.el.closest('.fc-daygrid-day') - // dayEl.style.backgroundColor = 'red' - // }, - // datesRender: function(info) { - - - // const start = info.view.activeStart - // const end = info.view.activeEnd - // let daysEls = document.querySelectorAll('.fc-daygrid-day') - // console.log(daysEls , ' info-------------'); - // }, + editable: true, headerToolbar: { @@ -88,9 +75,6 @@ export default { noEventsContent: 'На сегодня событий нет', selectable: true, - dateClick: (arg) => { - console.log(arg.date); - } }) function f_generalvacation() { diff --git a/src/front/src/components/UI/aboutportal/card-top-comment.vue b/src/front/src/components/UI/aboutportal/card-top-comment.vue index 67b60c70a..8bac81970 100644 --- a/src/front/src/components/UI/aboutportal/card-top-comment.vue +++ b/src/front/src/components/UI/aboutportal/card-top-comment.vue @@ -7,7 +7,10 @@ - + @@ -77,14 +80,12 @@