Верстка
This commit is contained in:
1 parent
651a7ff52e
commit
d89fff6403
1 file changed
+78
-60
@@ -40,59 +40,59 @@
|
|||||||
class="text-center"
|
class="text-center"
|
||||||
height="200px"
|
height="200px"
|
||||||
>
|
>
|
||||||
<v-card-title class="pb-0">
|
<v-card-title class="pb-0">
|
||||||
Количество Посетителей
|
Количество Посетителей
|
||||||
</v-card-title>
|
</v-card-title>
|
||||||
<v-card-subtitle>
|
<v-card-subtitle>
|
||||||
(уникальные/всего)
|
(уникальные/всего)
|
||||||
</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">
|
||||||
{{today}}
|
{{today}}
|
||||||
</span>
|
</span>
|
||||||
: {{countvising['now'][0].size}}
|
: {{countvising['now'][0].size}}
|
||||||
/ {{countvising['now'][1]}}
|
/ {{countvising['now'][1]}}
|
||||||
</v-list-item>
|
</v-list-item>
|
||||||
<v-list-item>
|
<v-list-item>
|
||||||
с
|
с
|
||||||
<span class="font-weight-bold">
|
<span class="font-weight-bold">
|
||||||
{{weekday[0]}}
|
{{weekday[0]}}
|
||||||
</span>
|
</span>
|
||||||
по
|
по
|
||||||
<span class="font-weight-bold">
|
<span class="font-weight-bold">
|
||||||
{{weekday[1]}}
|
{{weekday[1]}}
|
||||||
</span>
|
</span>
|
||||||
: {{countvising['week'][0].size}}
|
: {{countvising['week'][0].size}}
|
||||||
/ {{countvising['week'][1]}}
|
/ {{countvising['week'][1]}}
|
||||||
</v-list-item>
|
</v-list-item>
|
||||||
<v-list-item>
|
<v-list-item>
|
||||||
с
|
с
|
||||||
<span class="font-weight-bold">
|
<span class="font-weight-bold">
|
||||||
{{year[0]}}
|
{{year[0]}}
|
||||||
</span>
|
</span>
|
||||||
по
|
по
|
||||||
<span class="font-weight-bold">
|
<span class="font-weight-bold">
|
||||||
{{year[1]}}
|
{{year[1]}}
|
||||||
</span>
|
</span>
|
||||||
: {{countvising['year'][0].size}}
|
: {{countvising['year'][0].size}}
|
||||||
/ {{countvising['year'][1]}}
|
/ {{countvising['year'][1]}}
|
||||||
</v-list-item>
|
</v-list-item>
|
||||||
</v-list>
|
</v-list>
|
||||||
</v-card-text>
|
</v-card-text>
|
||||||
</v-card>
|
</v-card>
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col>
|
<v-col>
|
||||||
<v-card
|
<v-card
|
||||||
class="d-flex flex-column text-center"
|
class="d-flex flex-column text-center"
|
||||||
height="200px"
|
height="200px"
|
||||||
>
|
>
|
||||||
<line-graph :data="data" :options="options"/>
|
<line-graph :data="data" :options="options"/>
|
||||||
</v-card>
|
</v-card>
|
||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
</v-row>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -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