график
This commit is contained in:
1 parent
f8ef1e1501
commit
3eca1813c5
4 files changed
+35
-27
No files matched your search
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
|
||||
<v-card class="h-100 pa-5">
|
||||
<v-card class="h-100 ">
|
||||
<!-- <line-graph v-if="data!==null" :data="data" ref ='linear' :options="options"/> -->
|
||||
<Line v-if="data!==null" :data="data" ref ='linear' :options="options" />
|
||||
</v-card>
|
||||
@@ -270,11 +270,14 @@ export default {
|
||||
// }
|
||||
// }
|
||||
},
|
||||
// layout: {
|
||||
// padding: {
|
||||
// bottom: '10'
|
||||
// }
|
||||
// },
|
||||
layout: {
|
||||
padding: {
|
||||
top: 35,
|
||||
bottom: 5,
|
||||
left: 20,
|
||||
right: 15
|
||||
}
|
||||
},
|
||||
scales: {
|
||||
x: {
|
||||
grid: {
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
:ico="'mdi-walk'"
|
||||
>
|
||||
<template v-slot:filling>
|
||||
<v-table class="text-subtitle-1 table_traffic pt-3">
|
||||
<v-table class="text-subtitle-2 table_traffic pt-1">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="pr-0"></th>
|
||||
@@ -24,6 +24,7 @@
|
||||
<template v-slot:activator="{ props }">
|
||||
<span v-bind="props" >
|
||||
<v-icon
|
||||
class="cursor-help "
|
||||
size="large"
|
||||
:color="val.color"
|
||||
:icon="val.ico"
|
||||
@@ -40,7 +41,7 @@
|
||||
</v-tooltip>
|
||||
|
||||
</td>
|
||||
<td class="text-center px-0 font-weight-bold text-h6 cursor-help text-grey-darken-3">
|
||||
<td class="text-center px-0 font-weight-bold text-subtitle-1 cursor-help text-grey-darken-3">
|
||||
<v-tooltip location="top" v-if="val.proc!=''">
|
||||
<template v-slot:activator="{ props }">
|
||||
<span v-bind="props" >
|
||||
@@ -59,18 +60,25 @@
|
||||
</v-tooltip>
|
||||
</td>
|
||||
|
||||
<td class="text-center px-0 font-weight-bold text-h6 text-grey-darken-3 cursor-default" v-if="val.proc!=''">{{ val.proc }}%</td>
|
||||
<td class="text-center px-0 font-weight-bold text-subtitle-1 text-grey-darken-3 cursor-default" v-if="val.proc!=''">{{ val.proc }}%</td>
|
||||
|
||||
<td class="text-center font-weight-bold text-h6 text-grey-darken-3 cursor-default" v-else>
|
||||
<td class="text-center font-weight-bold text-subtitle-1 text-grey-darken-3 cursor-default" v-else>
|
||||
|
||||
<v-icon
|
||||
v-if="parseFloat((val.user.length * 100 /val.previos).toFixed(2))-100 != 'Infinity' && parseFloat((val.user.length * 100 /val.previos).toFixed(2))-100 != 0"
|
||||
size="x-small"
|
||||
:class="val.previos<val.user.length?'pb-1':'pt-0'"
|
||||
:color="val.previos<val.user.length?'green-darken-2':'deep-orange-darken-4'"
|
||||
:icon="val.previos<val.user.length?'mdi-arrow-up-bold':'mdi-arrow-down-bold'"
|
||||
/>
|
||||
|
||||
{{parseFloat((val.user.length * 100 /val.previos).toFixed(2))-100}} %
|
||||
|
||||
<span v-if="val.previos!=0">
|
||||
{{parseFloat((val.user.length * 100 /val.previos).toFixed(2))-100}} %
|
||||
</span>
|
||||
<span v-else>
|
||||
0%
|
||||
</span>
|
||||
|
||||
</td>
|
||||
<!-- <td v-if="!val.previos"></td> -->
|
||||
</tr>
|
||||
|
||||
@@ -33,19 +33,16 @@
|
||||
</span>
|
||||
</template>
|
||||
<template v-slot:item.now="{ value, item }">
|
||||
|
||||
<span class="font-weight-medium text-subtitle-2">
|
||||
|
||||
<v-tooltip
|
||||
v-if="value>0"
|
||||
location="bottom"
|
||||
>
|
||||
<template v-slot:activator="{ props }">
|
||||
<span v-bind="props" :class="'untot'=='уникальные'?getColorTooday1(value):getColorTooday2(value) " class="cursor-help font-weight-medium text-subtitle-1 " >
|
||||
{{value}}
|
||||
<!-- {{modelrating?val.now.unique.length:val.now.countall}} -->
|
||||
</span>
|
||||
</template>
|
||||
<span class="font-weight-medium text-subtitle-2">
|
||||
<v-tooltip
|
||||
v-if="value>0"
|
||||
location="bottom"
|
||||
>
|
||||
<template v-slot:activator="{ props }">
|
||||
<span v-bind="props" :class="'untot'=='уникальные'?getColorTooday1(value):getColorTooday2(value) " class="cursor-help font-weight-medium text-subtitle-1 " >
|
||||
{{value}}
|
||||
</span>
|
||||
</template>
|
||||
<v-row
|
||||
no-gutters
|
||||
>
|
||||
|
||||
@@ -67,9 +67,9 @@
|
||||
<v-col lg=2 class=" w100 pa-2 pt-1">
|
||||
|
||||
<v-rating
|
||||
v-model="message[key].rating"
|
||||
v-model="message[key].ratings"
|
||||
:hover="typeof(key) == 'number'"
|
||||
|
||||
half-increments
|
||||
|
||||
readonly
|
||||
:size="25"
|
||||
|
||||
Reference in new issue
Block a user