diff --git a/db.sqlite3 b/db.sqlite3
index 2023f8c6b..0fe5e61de 100644
Binary files a/db.sqlite3 and b/db.sqlite3 differ
diff --git a/front/src/components/UI/Calendar-full.vue b/front/src/components/UI/Calendar-full.vue
index 9d8080125..adbedeec5 100644
--- a/front/src/components/UI/Calendar-full.vue
+++ b/front/src/components/UI/Calendar-full.vue
@@ -118,20 +118,7 @@ export default {
.then(data => {
for (let x in data.data) {
-
- // if (x =="Отпуск") {
-
-
- // data.data[x].map(e=>{
- // let d = new Date(e.planned_date)
-
- // calendarOptions.events.push({ description: 'description for All Day Event', title: x, start: e.planned_date, end: new Date(d.setDate(d.getDate() + e.count_days)).toISOString().split('T')[0]})
- // }
-
-
- // )
- // }
if (x=="План-график") {
data.data[x].map(e=>{
diff --git a/front/src/layouts/default/DefaultPortal.vue b/front/src/layouts/default/DefaultPortal.vue
index 339fb53f8..f0b684c21 100644
--- a/front/src/layouts/default/DefaultPortal.vue
+++ b/front/src/layouts/default/DefaultPortal.vue
@@ -324,7 +324,12 @@ export default {
{
name: 'Структура',
ico: 'mdi-source-branch',
- path: "/structure"
+ submenu: [
+ {
+ name: 'ОКиБ',
+ path: "/okib"
+ },
+ ]
},
{
name: 'Сотрудники',
diff --git a/front/src/router/index.js b/front/src/router/index.js
index 7a4dbb057..8e36ccb96 100644
--- a/front/src/router/index.js
+++ b/front/src/router/index.js
@@ -14,12 +14,13 @@ const routes = [
title:"Портал МиФНС по ЦОД №2"
}
},
+
{
- path: '/structure',
- name: 'StructurePage',
- component: () => import('@/views/StructurePage.vue'),
+ path: '/okib',
+ name: 'OKiBPage',
+ component: () => import('@/views/nested_view/o_OKiB.vue'),
meta:{
- title:"Структура"
+ title:"Отдел кадров и безопасности"
}
},
{
diff --git a/front/src/views/AboutPortalPage.vue b/front/src/views/AboutPortalPage.vue
index 36e3de291..0e6aa4a05 100644
--- a/front/src/views/AboutPortalPage.vue
+++ b/front/src/views/AboutPortalPage.vue
@@ -73,15 +73,11 @@ setup(){
pagecounter()
const visiting = ref({})
- const desserts = [
- {
- name: 'Frozen Yogurt',
- calories: 159,
- },]
+
getfromserver(`api/watcher/counter/`, visiting)
-return {desserts,
+return {
visiting
}
}
diff --git a/front/src/views/nested_view/o_OKiB.vue b/front/src/views/nested_view/o_OKiB.vue
new file mode 100644
index 000000000..22fc6efb3
--- /dev/null
+++ b/front/src/views/nested_view/o_OKiB.vue
@@ -0,0 +1,37 @@
+
+
+
+
+
+ Excel
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/general_vacation/urls.py b/general_vacation/urls.py
index cd8845de1..25473cf6b 100644
--- a/general_vacation/urls.py
+++ b/general_vacation/urls.py
@@ -4,4 +4,5 @@ from .views import *
urlpatterns = [
path('generalvacation/', GeneralVacationAPIView.as_view(), name='generalvacation'),
+ path('dailyroundup/', DailyRoundUpAPIView.as_view(), name='dailyroundup'),
]
\ No newline at end of file
diff --git a/general_vacation/views.py b/general_vacation/views.py
index 904f04bb5..61230bb1e 100644
--- a/general_vacation/views.py
+++ b/general_vacation/views.py
@@ -2,8 +2,9 @@ from rest_framework.response import Response
import datetime
from .serializers import *
from .models import *
-
+import pandas as pd
from rest_framework.views import APIView
+from userauth.models import *
class GeneralVacationAPIView(APIView):
def get(self, request):
@@ -21,3 +22,12 @@ class GeneralVacationAPIView(APIView):
many=True # Указываем, что на вход подаётся именно набор записей
)
return Response({"Отпуск": serializer_for_basecrit.data, "План-график": serializer_for_plan.data})
+
+class DailyRoundUpAPIView(APIView):
+ def get(self, request):
+ user = DictEmployee.objects.using('user_directory').values('login', 'fio')
+ df = pd.DataFrame.from_records(user)
+ print(df)
+
+
+ return Response('user')