Merge branch 'II' into razrab

This commit is contained in:
iriska-gri committed 2024-03-06 10:36:43 +03:00
commit f1ab38a398
12 files changed
+112 -79

No files matched your search

+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "front",
"version": "0.0.50",
"version": "0.0.51",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "front",
"version": "0.0.50",
"version": "0.0.51",
"dependencies": {
"-": "^0.0.1",
"@mdi/font": "7.0.96",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "front",
"version": "0.0.50",
"version": "0.0.51",
"scripts": {
"dev": "vite",
"build": "vite build",
@@ -10,10 +10,10 @@
<v-table density="compact" class="px-7">
<thead>
<tr >
<th class="text-center text-h6 font-weight-regular">
<th class="text-center text-subtitle-1 font-weight-regular">
всего
</th>
<th class="text-center text-h6 font-weight-regular">
<th class="text-center text-subtitle-1 font-weight-regular">
за период
</th>
</tr>
@@ -6,11 +6,11 @@
:ico="'mdi-comment-multiple-outline'"
>
<template v-slot:filling>
<v-row no-gutters class="flex-column gap">
<v-col lg=1 class="w100">
<v-card variant="flat" class="text-h6 font-weight-regular">
Последний комментарий оставлен: <br> <span class="text-h6 font-weight-bold">{{formaComaTime(feedback.last_comment.time_create)}}</span>
<v-card variant="flat" class="text-subtitle-1 font-weight-regular">
Последний комментарий оставлен: <br> <span class="text-subtitle-1 font-weight-bold">{{formaComaTime(feedback.last_comment.time_create)}}</span>
</v-card>
</v-col>
<v-col lg=2 class="w100">
@@ -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: {
@@ -8,7 +8,7 @@
</span>
</v-col>
<v-col class="d-flex flex-column pt-5">
<v-col class="d-flex flex-column pt-1">
<slot name="filling_feedback"></slot>
</v-col>
</v-row>
@@ -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>
@@ -28,24 +28,21 @@
</template>
<template v-slot:item.name="{ value }">
<span class="font-weight-medium text-grey-darken-3 myleft text-subtitle-1">
<span class="font-weight-medium text-grey-darken-3 myleft text-subtitle-2">
{{ value }}
</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
>
@@ -31,54 +31,71 @@
</v-row>
</v-col>
</v-row>
<pattern-card-feed
v-else
:title="'Средняя оценка'"
>
<template v-slot:filling_feedback>
<v-row
<div v-if="criteria.length!=0">
<v-row
class="align-center flex-column scoreheight gap mt-n2"
no-gutters
class="align-center flex-column scoreheight gap mt-n2"
no-gutters
>
<div class="flex-columnd-flex gap pa-0"
v-for="(x, key) in criteria"
:key = key
>
<v-col lg=1 class="text-subtitle-1 font-weight-regular w100 pa-0"
>
<v-icon
size="small"
:color="x.color"
:icon="x.ico"
/>
{{x.name}}
</v-col>
<v-col lg=2 class=" w100 pa-1 pt-1">
<v-rating
v-model="message[key].ratings"
:hover="typeof(key) == 'number'"
half-increments
readonly
:size="25"
color="yellow"
:density="'comfortable'"
/>
</v-col>
</div>
</v-row>
<div class="flex-columnd-flex gap pa-0"
v-for="(x, key) in criteria"
:key = key
</div>
<div class="d-flex flex-column" v-else>
<v-row
class="align-center flex-column scoreheight gap mt-n2"
no-gutters
>
<v-col
class="text-h6 pt-8 text-grey text-center align-self-center text--lighten-1 font-weight-light"
>
За выбранный период оценок нет
</v-col>
</v-row>
</div>
<v-col lg=1 class="text-h6 font-weight-regular w100 pa-0"
>
<v-icon
size="small"
:color="x.color"
:icon="x.ico"
/>
{{x.name}}
</v-col>
<v-col lg=2 class=" w100 pa-2 pt-1">
<v-rating
v-model="message[key].rating"
:hover="typeof(key) == 'number'"
readonly
:size="25"
color="yellow"
:density="'comfortable'"
/>
</v-col>
</div>
</v-row>
</template>
</pattern-card-feed>
@@ -132,6 +149,6 @@ export default {
<style>
.scoreheight {
min-height: 240px;
min-height: 150px;
}
</style>
@@ -28,7 +28,7 @@
:image="checkremote( `${spravURL}${author.login}.jpg`)"
class="mr-2"
/>
<span class="font-weight-medium text-grey-darken-3 myleft text-subtitle-1">
<span class="font-weight-medium text-grey-darken-3 myleft text-subtitle-2">
{{splitname(author)}}
</span>
</v-chip>
+13 -5
View File
@@ -1,9 +1,17 @@
<template>
<v-row no-gutters class="gap ma-1 flex-column">
<v-row v-if="alldata.feedback.last_comment.time_create=='2024-01-01'">
<v-col class="text-h6 text-grey text-center align-self-center text--lighten-1 font-weight-light">
<v-progress-circular
:size="150"
:width="7"
color="cyan-darken-3"
indeterminate
></v-progress-circular>
</v-col>
</v-row>
<v-row v-else no-gutters class="gap ma-1 flex-column">
<v-col class="d-flex flex-column w100 pa-0 flex-grow-0">
<toolbar-filter/>
<!-- -->
</v-col>
<v-col class="d-flex " >
<v-row no-gutters class="gap" >
@@ -128,7 +136,7 @@ setup(){
const visition = () => {
axiosApiInstance.get(`api/watcher/testwatcher/?start=${formatDash(filterStore.date_period.startdate)}&end=${formatDash(filterStore.date_period.enddate)}`).then(result => {
console.log(result.data, 'result.data');
alldata.value = preparedata(result.data)
//
totalfn()
@@ -484,7 +492,7 @@ setup(){
// }
// title_period()
console.log(alldata.value.feedback.feed.length, 'alldata.feedback.feed')
return {
+1 -1
View File
@@ -35,7 +35,7 @@
<v-row no-gutters class="h-100 gap">
<v-col class="flex-column d-flex">
<v-row no-gutters class="flex-column gap" >
<my-helper :pretext="dataIndicators"/>
<v-col v-for="x in dataIndicators" :key=x>
<!-- -->
<card-total :indicator=x />