From 6919ec314d1b4ef826ea44322f8433fef2f21b2d Mon Sep 17 00:00:00 2001 From: iriska-gri <79623434+iriska-gri@users.noreply.github.com> Date: Fri, 13 Oct 2023 14:19:04 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A1=D0=B2=D0=BE=D0=B4=D0=BD=D0=B0=D1=8F=20?= =?UTF-8?q?=D1=81=D1=82=D0=B0=D1=82=D0=B8=D1=81=D1=82=D0=B8=D0=BA=D0=B0=20?= =?UTF-8?q?=D0=BF=D0=BE=D1=81=D0=B5=D1=89=D0=B5=D0=BD=D0=B8=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- db.sqlite3 | Bin 360448 -> 360448 bytes front/src/router/index.js | 25 ++++++- front/src/utils/universal_functions.js | 7 +- front/src/views/AboutInspectionPage.vue | 5 +- front/src/views/AboutPortalPage.vue | 71 +++++++++++++++++++- front/src/views/FAQPage.vue | 5 +- front/src/views/FeedbackPage.vue | 5 +- front/src/views/HomePage.vue | 2 +- front/src/views/LaborProtection.vue | 5 +- front/src/views/NewsPage.vue | 5 ++ front/src/views/ProvidingActivitiesPage.vue | 3 + front/src/views/SecurityPage.vue | 5 +- front/src/views/StructurePage.vue | 5 +- general_vacation/admin.py | 4 +- navigation/views.py | 1 - watcher/models.py | 7 ++ watcher/views.py | 39 ++++++++--- 17 files changed, 164 insertions(+), 30 deletions(-) diff --git a/db.sqlite3 b/db.sqlite3 index 74147d797f8b26b7669c21d6a43d5e109432bee6..c24f71e55ed047dca725f95e90a6bfa6ebdb90f5 100644 GIT binary patch delta 2008 zcmbW2Urbw79LLX}dv8l`xp%}3VT^HMFu|_vy}i&V2m;PU}Bdn zti6y8mk{T~z{{Z$drhCSLwtMS&9&y!a(;0!ejbV0U zun5Q`@aTz`J*p%J+XCS>HS7xq0&=J&AO}>hB72o>E7|pa}L zozv(oC-;hTg1gH-LsKndg9or5l20YFNb*L~7$YfilVoC5xSh@#XN@GCxJ6QuF-BL% z$vjC7)!=TZcim^I-idCwky(i>kXwdEAsLc0&e4AhgJB$}2r^4D8w%6|JJTE$H)hER-IcF3|(%MMz0z_R@e29*5$ z&!_`(@GsB_uj&qh-WAY2w20n^KcH%O75+^XtAvTBAr7=dSo=TvFk2l%WAb*kPd2f88DkKbnwCF~5x9q@E}Nu5b4*@04IsJ#Omh+BJj zj04(l12xw7b3idk+YU^yxrHP8@n4XS4;Qu3rDY_;itNc{ly(c9C;`ws$(CPWs42K$kf(_Un0 zwnhKL7=!Lzw5&%M^lcGlyDk+FgOF{Lu42cYD=_#6H{r r?HRI9VilTUUJu^fVI8 z%p$|8n8NJN2x7`^=Fzia import('@/views/ProvidingActivitiesPage.vue'), + meta:{ + title:"Обеспечивающая деятельность" + } }, { path: '/faq', name: 'FAQPage', component: () => import('@/views/FAQPage.vue'), - + meta:{ + title:"Часто задаваемые вопросы" + } }, { path: '/feedback', name: 'FeedbackPage', component: () => import('@/views/FeedbackPage.vue'), + meta:{ + title:"Обратная связь" + } }, { path: '/labor', name: 'LaborProtection', component: () => import('@/views/LaborProtection.vue'), + meta:{ + title:"Безопасность" + } }, { path: '/securyty', name: 'SecurityPage', component: () => import('@/views/SecurityPage.vue'), + meta:{ + title:"Охрана труда" + } }, { path: '/inspection', name: 'AboutInspectionPage', component: () => import('@/views/AboutInspectionPage.vue'), + meta:{ + title:"Об инспекции" + } }, { path: '/portal', name: 'AboutPortalPage', component: () => import('@/views/AboutPortalPage.vue'), + meta:{ + title:"О портале" + } }, { path: '/news', name: 'AboutNewsPage', component: () => import('@/views/NewsPage.vue'), + meta:{ + title:"Лента новостей" + } }, ], }, diff --git a/front/src/utils/universal_functions.js b/front/src/utils/universal_functions.js index 4f27be6a4..8b03caf31 100644 --- a/front/src/utils/universal_functions.js +++ b/front/src/utils/universal_functions.js @@ -38,17 +38,12 @@ export function checkremote(filecheck){ - - - export default str; - - export function pagecounter(){ - console.log('Загружаю данные для циферок по количеству'); + const router = useRouter() const accountStore = useAccountStore() const appStore = useAppStore() diff --git a/front/src/views/AboutInspectionPage.vue b/front/src/views/AboutInspectionPage.vue index 1c9785108..f8992a346 100644 --- a/front/src/views/AboutInspectionPage.vue +++ b/front/src/views/AboutInspectionPage.vue @@ -9,8 +9,11 @@ diff --git a/front/src/views/AboutPortalPage.vue b/front/src/views/AboutPortalPage.vue index 144e97587..2a7a8d3fe 100644 --- a/front/src/views/AboutPortalPage.vue +++ b/front/src/views/AboutPortalPage.vue @@ -5,10 +5,55 @@ - О портале - +{{visiting}} + + + + + Страница + + + Количество посещений + + + + + + {{ item.page }} + {{ item.count__sum }} + + + + + + + + + + Страница + + + Количество посещений + + + + + + {{ item.user__username }} + {{ item.page }} + {{ item.count__sum }} + + + + @@ -17,9 +62,29 @@