Сводная статистика посещений

This commit is contained in:
iriska-gri committed 2023-10-13 14:19:04 +03:00
1 parent 8491195a5e
commit 6919ec314d
17 files changed
+164 -30

No files matched your search

+4 -1
View File
@@ -9,8 +9,11 @@
</template>
<script>
import {pagecounter} from '@/utils/universal_functions'
export default {
setup(){
pagecounter()
}
}
</script>
+68 -3
View File
@@ -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>
+4 -1
View File
@@ -9,8 +9,11 @@
</template>
<script>
import {pagecounter} from '@/utils/universal_functions'
export default {
setup(){
pagecounter()
}
}
</script>
+4 -1
View File
@@ -9,8 +9,11 @@
</template>
<script>
import {pagecounter} from '@/utils/universal_functions'
export default {
setup(){
pagecounter()
}
}
</script>
+1 -1
View File
@@ -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'
+4 -1
View File
@@ -9,8 +9,11 @@
</template>
<script>
import {pagecounter} from '@/utils/universal_functions'
export default {
setup(){
pagecounter()
}
}
</script>
+5
View File
@@ -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'},
+4 -1
View File
@@ -10,8 +10,11 @@
</template>
<script>
import {pagecounter} from '@/utils/universal_functions'
export default {
setup(){
pagecounter()
}
}
</script>
+4 -1
View File
@@ -17,8 +17,11 @@
</template>
<script>
import {pagecounter} from '@/utils/universal_functions'
export default {
setup(){
pagecounter()
}
}
</script>