Сводная статистика посещений
This commit is contained in:
1 parent
8491195a5e
commit
6919ec314d
17 files changed
+164
-30
No files matched your search
@@ -26,42 +26,65 @@ const routes = [
|
||||
path: '/providing',
|
||||
name: 'ProvidingActivitiesPage',
|
||||
component: () => 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:"Лента новостей"
|
||||
}
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -9,8 +9,11 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {pagecounter} from '@/utils/universal_functions'
|
||||
export default {
|
||||
|
||||
setup(){
|
||||
pagecounter()
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
@@ -5,10 +5,55 @@
|
||||
<!-- </div> -->
|
||||
<v-row>
|
||||
<v-col
|
||||
class="text-h6 text-grey text-center align-self-center text--lighten-1 font-weight-light"
|
||||
class="ma-3"
|
||||
>
|
||||
О портале
|
||||
|
||||
{{visiting}}
|
||||
<v-table density="compact">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-left">
|
||||
Страница
|
||||
</th>
|
||||
<th class="text-left">
|
||||
Количество посещений
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr
|
||||
v-for="item in visiting.pages"
|
||||
:key="item.name"
|
||||
>
|
||||
<td>{{ item.page }}</td>
|
||||
<td>{{ item.count__sum }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
||||
</v-table>
|
||||
|
||||
<v-table density="compact" class="mt-3">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-left">
|
||||
Страница
|
||||
</th>
|
||||
<th class="text-left">
|
||||
Количество посещений
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr
|
||||
v-for="item in visiting.users"
|
||||
:key="item.name"
|
||||
>
|
||||
<td>{{ item.user__username }}</td>
|
||||
<td>{{ item.page }}</td>
|
||||
<td>{{ item.count__sum }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
|
||||
</v-table>
|
||||
|
||||
</v-col>
|
||||
|
||||
@@ -17,9 +62,29 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { ref } from 'vue'
|
||||
import {pagecounter} from '@/utils/universal_functions'
|
||||
import {getfromserver} from '@/utils/universal_functions'
|
||||
export default {
|
||||
setup(){
|
||||
pagecounter()
|
||||
const visiting = ref({})
|
||||
|
||||
const desserts = [
|
||||
{
|
||||
name: 'Frozen Yogurt',
|
||||
calories: 159,
|
||||
},]
|
||||
|
||||
getfromserver(`api/watcher/counter/`, visiting)
|
||||
|
||||
return {desserts,
|
||||
visiting
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<style>
|
||||
|
||||
@@ -9,8 +9,11 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {pagecounter} from '@/utils/universal_functions'
|
||||
export default {
|
||||
|
||||
setup(){
|
||||
pagecounter()
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
@@ -9,8 +9,11 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {pagecounter} from '@/utils/universal_functions'
|
||||
export default {
|
||||
|
||||
setup(){
|
||||
pagecounter()
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
@@ -132,7 +132,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { ref, onMounted, computed } from 'vue'
|
||||
import { ref, onMounted } from 'vue'
|
||||
import {useAppStore} from '@/store/app'
|
||||
import {useAccountStore} from '@/store/AccountStore'
|
||||
import {pagecounter} from '@/utils/universal_functions'
|
||||
|
||||
@@ -9,8 +9,11 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {pagecounter} from '@/utils/universal_functions'
|
||||
export default {
|
||||
|
||||
setup(){
|
||||
pagecounter()
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
@@ -13,10 +13,15 @@
|
||||
|
||||
<script>
|
||||
import NewsList from '@/components/news-list.vue'
|
||||
import {pagecounter} from '@/utils/universal_functions'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
NewsList
|
||||
},
|
||||
setup(){
|
||||
pagecounter()
|
||||
}
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -40,8 +40,11 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {pagecounter} from '@/utils/universal_functions'
|
||||
|
||||
export default {
|
||||
setup(){
|
||||
pagecounter()
|
||||
const activates = [
|
||||
{name: 'Комиссии', link: 'http://10.252.44.33/accounting6/SOTRYDNIKI.php#tab_committees'},
|
||||
{name: 'Ответственность', link: 'http://10.252.44.33/accounting6/SOTRYDNIKI.php#tab_departments'},
|
||||
|
||||
@@ -10,8 +10,11 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {pagecounter} from '@/utils/universal_functions'
|
||||
export default {
|
||||
|
||||
setup(){
|
||||
pagecounter()
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
@@ -17,8 +17,11 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {pagecounter} from '@/utils/universal_functions'
|
||||
export default {
|
||||
|
||||
setup(){
|
||||
pagecounter()
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
Reference in new issue
Block a user