Верстка
This commit is contained in:
1 parent
651a7ff52e
commit
d89fff6403
1 file changed
+78
-60
@@ -40,59 +40,59 @@
|
||||
class="text-center"
|
||||
height="200px"
|
||||
>
|
||||
<v-card-title class="pb-0">
|
||||
Количество Посетителей
|
||||
</v-card-title>
|
||||
<v-card-subtitle>
|
||||
(уникальные/всего)
|
||||
</v-card-subtitle>
|
||||
<v-card-text class="pl-0">
|
||||
<v-list density class="text-start text-subtitle-1 pt-0">
|
||||
<v-list-item >
|
||||
на
|
||||
<span class="font-weight-bold">
|
||||
{{today}}
|
||||
</span>
|
||||
: {{countvising['now'][0].size}}
|
||||
/ {{countvising['now'][1]}}
|
||||
</v-list-item>
|
||||
<v-list-item>
|
||||
с
|
||||
<span class="font-weight-bold">
|
||||
{{weekday[0]}}
|
||||
</span>
|
||||
по
|
||||
<span class="font-weight-bold">
|
||||
{{weekday[1]}}
|
||||
</span>
|
||||
: {{countvising['week'][0].size}}
|
||||
/ {{countvising['week'][1]}}
|
||||
</v-list-item>
|
||||
<v-list-item>
|
||||
с
|
||||
<span class="font-weight-bold">
|
||||
{{year[0]}}
|
||||
</span>
|
||||
по
|
||||
<span class="font-weight-bold">
|
||||
{{year[1]}}
|
||||
</span>
|
||||
: {{countvising['year'][0].size}}
|
||||
/ {{countvising['year'][1]}}
|
||||
</v-list-item>
|
||||
</v-list>
|
||||
</v-card-text>
|
||||
</v-card>
|
||||
</v-col>
|
||||
<v-col>
|
||||
<v-card
|
||||
class="d-flex flex-column text-center"
|
||||
height="200px"
|
||||
>
|
||||
<line-graph :data="data" :options="options"/>
|
||||
</v-card>
|
||||
</v-col>
|
||||
</v-row>
|
||||
<v-card-title class="pb-0">
|
||||
Количество Посетителей
|
||||
</v-card-title>
|
||||
<v-card-subtitle>
|
||||
(уникальные/всего)
|
||||
</v-card-subtitle>
|
||||
<v-card-text class="pl-0">
|
||||
<v-list density="compact" class="text-start text-subtitle-1 pt-0">
|
||||
<v-list-item >
|
||||
на
|
||||
<span class="font-weight-bold">
|
||||
{{today}}
|
||||
</span>
|
||||
: {{countvising['now'][0].size}}
|
||||
/ {{countvising['now'][1]}}
|
||||
</v-list-item>
|
||||
<v-list-item>
|
||||
с
|
||||
<span class="font-weight-bold">
|
||||
{{weekday[0]}}
|
||||
</span>
|
||||
по
|
||||
<span class="font-weight-bold">
|
||||
{{weekday[1]}}
|
||||
</span>
|
||||
: {{countvising['week'][0].size}}
|
||||
/ {{countvising['week'][1]}}
|
||||
</v-list-item>
|
||||
<v-list-item>
|
||||
с
|
||||
<span class="font-weight-bold">
|
||||
{{year[0]}}
|
||||
</span>
|
||||
по
|
||||
<span class="font-weight-bold">
|
||||
{{year[1]}}
|
||||
</span>
|
||||
: {{countvising['year'][0].size}}
|
||||
/ {{countvising['year'][1]}}
|
||||
</v-list-item>
|
||||
</v-list>
|
||||
</v-card-text>
|
||||
</v-card>
|
||||
</v-col>
|
||||
<v-col>
|
||||
<v-card
|
||||
class="d-flex flex-column text-center"
|
||||
height="200px"
|
||||
>
|
||||
<line-graph :data="data" :options="options"/>
|
||||
</v-card>
|
||||
</v-col>
|
||||
</v-row>
|
||||
|
||||
|
||||
|
||||
@@ -112,22 +112,38 @@
|
||||
<v-row>
|
||||
<v-col class="d-flex flex-column">
|
||||
|
||||
<v-card class="text-center h-100" title="Рейтинг посещаемости страниц портала">
|
||||
<v-table class="">
|
||||
<v-card class="text-center h-100" >
|
||||
<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>
|
||||
<tr>
|
||||
<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">с {{year[0]}} по {{year[1]}}</th>
|
||||
</tr>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr v-for="(val, key) in countgrupp()" :key = key>
|
||||
<td class="text-left">{{key}}</td>
|
||||
<td class="text-center">{{ val.now }} </td>
|
||||
<td class="text-center">{{ val.week }}</td>
|
||||
<td class="text-center">{{ val.year }}</td>
|
||||
<td class="text-center">{{ modelrating?val.now[0].size:val.now[1] }} </td>
|
||||
<td class="text-center">{{ modelrating?val.week[0].size:val.week[1] }}</td>
|
||||
<td class="text-center">{{ modelrating?val.year[0].size:val.year[1] }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</v-table>
|
||||
@@ -285,6 +301,7 @@ setup(){
|
||||
const today = ref('')
|
||||
const weekday = ref('')
|
||||
const year = ref('')
|
||||
const modelrating = ref(false)
|
||||
|
||||
const arrlines = {}
|
||||
const data = computed({
|
||||
@@ -537,7 +554,8 @@ setup(){
|
||||
weekstart,
|
||||
today,
|
||||
weekday,
|
||||
year
|
||||
year,
|
||||
modelrating
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user