Верстка
This commit is contained in:
1 parent
651a7ff52e
commit
d89fff6403
1 file changed
+26
-8
@@ -47,7 +47,7 @@
|
|||||||
(уникальные/всего)
|
(уникальные/всего)
|
||||||
</v-card-subtitle>
|
</v-card-subtitle>
|
||||||
<v-card-text class="pl-0">
|
<v-card-text class="pl-0">
|
||||||
<v-list density class="text-start text-subtitle-1 pt-0">
|
<v-list density="compact" class="text-start text-subtitle-1 pt-0">
|
||||||
<v-list-item >
|
<v-list-item >
|
||||||
на
|
на
|
||||||
<span class="font-weight-bold">
|
<span class="font-weight-bold">
|
||||||
@@ -112,22 +112,38 @@
|
|||||||
<v-row>
|
<v-row>
|
||||||
<v-col class="d-flex flex-column">
|
<v-col class="d-flex flex-column">
|
||||||
|
|
||||||
<v-card class="text-center h-100" title="Рейтинг посещаемости страниц портала">
|
<v-card class="text-center h-100" >
|
||||||
<v-table class="">
|
<v-card-title>
|
||||||
|
<v-row no-gutters>
|
||||||
|
<v-col lg=2>
|
||||||
|
<v-switch
|
||||||
|
v-model="modelrating"
|
||||||
|
hide-details
|
||||||
|
density="comfortable"
|
||||||
|
:label="modelrating?'уникальные':'всего'"
|
||||||
|
/>
|
||||||
|
</v-col>
|
||||||
|
<v-col class="ml-n7">
|
||||||
|
Рейтинг посещаемости страниц портала
|
||||||
|
</v-col>
|
||||||
|
</v-row>
|
||||||
|
</v-card-title>
|
||||||
|
<v-table>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Имя страницы</th>
|
<th>Имя страницы</th>
|
||||||
<th class="text-center"> на {{today[0]}}</th>
|
<th class="text-center"> на {{today}}</th>
|
||||||
<th class="text-center">с {{weekday[0]}} по {{weekday[1]}}</th>
|
<th class="text-center">с {{weekday[0]}} по {{weekday[1]}}</th>
|
||||||
<th class="text-center">с {{year[0]}} по {{year[1]}}</th>
|
<th class="text-center">с {{year[0]}} по {{year[1]}}</th>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr v-for="(val, key) in countgrupp()" :key = key>
|
<tr v-for="(val, key) in countgrupp()" :key = key>
|
||||||
<td class="text-left">{{key}}</td>
|
<td class="text-left">{{key}}</td>
|
||||||
<td class="text-center">{{ val.now }} </td>
|
<td class="text-center">{{ modelrating?val.now[0].size:val.now[1] }} </td>
|
||||||
<td class="text-center">{{ val.week }}</td>
|
<td class="text-center">{{ modelrating?val.week[0].size:val.week[1] }}</td>
|
||||||
<td class="text-center">{{ val.year }}</td>
|
<td class="text-center">{{ modelrating?val.year[0].size:val.year[1] }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</v-table>
|
</v-table>
|
||||||
@@ -285,6 +301,7 @@ setup(){
|
|||||||
const today = ref('')
|
const today = ref('')
|
||||||
const weekday = ref('')
|
const weekday = ref('')
|
||||||
const year = ref('')
|
const year = ref('')
|
||||||
|
const modelrating = ref(false)
|
||||||
|
|
||||||
const arrlines = {}
|
const arrlines = {}
|
||||||
const data = computed({
|
const data = computed({
|
||||||
@@ -537,7 +554,8 @@ setup(){
|
|||||||
weekstart,
|
weekstart,
|
||||||
today,
|
today,
|
||||||
weekday,
|
weekday,
|
||||||
year
|
year,
|
||||||
|
modelrating
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user