график

This commit is contained in:
iriska-gri committed 2024-03-06 09:30:21 +03:00
1 parent f8ef1e1501
commit 3eca1813c5
4 files changed
+23 -15

No files matched your search

@@ -1,6 +1,6 @@
<template> <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-graph v-if="data!==null" :data="data" ref ='linear' :options="options"/> -->
<Line v-if="data!==null" :data="data" ref ='linear' :options="options" /> <Line v-if="data!==null" :data="data" ref ='linear' :options="options" />
</v-card> </v-card>
@@ -270,11 +270,14 @@ export default {
// } // }
// } // }
}, },
// layout: { layout: {
// padding: { padding: {
// bottom: '10' top: 35,
// } bottom: 5,
// }, left: 20,
right: 15
}
},
scales: { scales: {
x: { x: {
grid: { grid: {
@@ -4,7 +4,7 @@
:ico="'mdi-walk'" :ico="'mdi-walk'"
> >
<template v-slot:filling> <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> <thead>
<tr> <tr>
<th class="pr-0"></th> <th class="pr-0"></th>
@@ -24,6 +24,7 @@
<template v-slot:activator="{ props }"> <template v-slot:activator="{ props }">
<span v-bind="props" > <span v-bind="props" >
<v-icon <v-icon
class="cursor-help "
size="large" size="large"
:color="val.color" :color="val.color"
:icon="val.ico" :icon="val.ico"
@@ -40,7 +41,7 @@
</v-tooltip> </v-tooltip>
</td> </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!=''"> <v-tooltip location="top" v-if="val.proc!=''">
<template v-slot:activator="{ props }"> <template v-slot:activator="{ props }">
<span v-bind="props" > <span v-bind="props" >
@@ -59,18 +60,25 @@
</v-tooltip> </v-tooltip>
</td> </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-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" size="x-small"
:class="val.previos<val.user.length?'pb-1':'pt-0'" :class="val.previos<val.user.length?'pb-1':'pt-0'"
:color="val.previos<val.user.length?'green-darken-2':'deep-orange-darken-4'" :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'" :icon="val.previos<val.user.length?'mdi-arrow-up-bold':'mdi-arrow-down-bold'"
/> />
<span v-if="val.previos!=0">
{{parseFloat((val.user.length * 100 /val.previos).toFixed(2))-100}} % {{parseFloat((val.user.length * 100 /val.previos).toFixed(2))-100}} %
</span>
<span v-else>
0%
</span>
</td> </td>
<!-- <td v-if="!val.previos"></td> --> <!-- <td v-if="!val.previos"></td> -->
</tr> </tr>
@@ -33,9 +33,7 @@
</span> </span>
</template> </template>
<template v-slot:item.now="{ value, item }"> <template v-slot:item.now="{ value, item }">
<span class="font-weight-medium text-subtitle-2"> <span class="font-weight-medium text-subtitle-2">
<v-tooltip <v-tooltip
v-if="value>0" v-if="value>0"
location="bottom" location="bottom"
@@ -43,7 +41,6 @@
<template v-slot:activator="{ props }"> <template v-slot:activator="{ props }">
<span v-bind="props" :class="'untot'=='уникальные'?getColorTooday1(value):getColorTooday2(value) " class="cursor-help font-weight-medium text-subtitle-1 " > <span v-bind="props" :class="'untot'=='уникальные'?getColorTooday1(value):getColorTooday2(value) " class="cursor-help font-weight-medium text-subtitle-1 " >
{{value}} {{value}}
<!-- {{modelrating?val.now.unique.length:val.now.countall}} -->
</span> </span>
</template> </template>
<v-row <v-row
@@ -67,9 +67,9 @@
<v-col lg=2 class=" w100 pa-2 pt-1"> <v-col lg=2 class=" w100 pa-2 pt-1">
<v-rating <v-rating
v-model="message[key].rating" v-model="message[key].ratings"
:hover="typeof(key) == 'number'" :hover="typeof(key) == 'number'"
half-increments
readonly readonly
:size="25" :size="25"