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", "name": "front",
"version": "0.0.50", "version": "0.0.51",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "front", "name": "front",
"version": "0.0.50", "version": "0.0.51",
"dependencies": { "dependencies": {
"-": "^0.0.1", "-": "^0.0.1",
"@mdi/font": "7.0.96", "@mdi/font": "7.0.96",
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "front", "name": "front",
"version": "0.0.50", "version": "0.0.51",
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",
"build": "vite build", "build": "vite build",
@@ -10,10 +10,10 @@
<v-table density="compact" class="px-7"> <v-table density="compact" class="px-7">
<thead> <thead>
<tr > <tr >
<th class="text-center text-h6 font-weight-regular"> <th class="text-center text-subtitle-1 font-weight-regular">
всего всего
</th> </th>
<th class="text-center text-h6 font-weight-regular"> <th class="text-center text-subtitle-1 font-weight-regular">
за период за период
</th> </th>
</tr> </tr>
@@ -6,11 +6,11 @@
:ico="'mdi-comment-multiple-outline'" :ico="'mdi-comment-multiple-outline'"
> >
<template v-slot:filling> <template v-slot:filling>
<v-row no-gutters class="flex-column gap"> <v-row no-gutters class="flex-column gap">
<v-col lg=1 class="w100"> <v-col lg=1 class="w100">
<v-card variant="flat" class="text-h6 font-weight-regular"> <v-card variant="flat" class="text-subtitle-1 font-weight-regular">
Последний комментарий оставлен: <br> <span class="text-h6 font-weight-bold">{{formaComaTime(feedback.last_comment.time_create)}}</span> Последний комментарий оставлен: <br> <span class="text-subtitle-1 font-weight-bold">{{formaComaTime(feedback.last_comment.time_create)}}</span>
</v-card> </v-card>
</v-col> </v-col>
<v-col lg=2 class="w100"> <v-col lg=2 class="w100">
@@ -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: {
@@ -8,7 +8,7 @@
</span> </span>
</v-col> </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> <slot name="filling_feedback"></slot>
</v-col> </v-col>
</v-row> </v-row>
@@ -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'"
/> />
{{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>
<!-- <td v-if="!val.previos"></td> --> <!-- <td v-if="!val.previos"></td> -->
</tr> </tr>
@@ -28,24 +28,21 @@
</template> </template>
<template v-slot:item.name="{ value }"> <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 }} {{ value }}
</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-if="value>0"
<v-tooltip location="bottom"
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 " >
<template v-slot:activator="{ props }"> {{value}}
<span v-bind="props" :class="'untot'=='уникальные'?getColorTooday1(value):getColorTooday2(value) " class="cursor-help font-weight-medium text-subtitle-1 " > </span>
{{value}} </template>
<!-- {{modelrating?val.now.unique.length:val.now.countall}} -->
</span>
</template>
<v-row <v-row
no-gutters no-gutters
> >
@@ -31,54 +31,71 @@
</v-row> </v-row>
</v-col> </v-col>
</v-row> </v-row>
<pattern-card-feed <pattern-card-feed
v-else v-else
:title="'Средняя оценка'" :title="'Средняя оценка'"
> >
<template v-slot:filling_feedback> <template v-slot:filling_feedback>
<div v-if="criteria.length!=0">
<v-row
<v-row
class="align-center flex-column scoreheight gap mt-n2" class="align-center flex-column scoreheight gap mt-n2"
no-gutters 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" </div>
<div class="d-flex flex-column" v-else>
v-for="(x, key) in criteria" <v-row
:key = key
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> </template>
</pattern-card-feed> </pattern-card-feed>
@@ -132,6 +149,6 @@ export default {
<style> <style>
.scoreheight { .scoreheight {
min-height: 240px; min-height: 150px;
} }
</style> </style>
@@ -28,7 +28,7 @@
:image="checkremote( `${spravURL}${author.login}.jpg`)" :image="checkremote( `${spravURL}${author.login}.jpg`)"
class="mr-2" 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)}} {{splitname(author)}}
</span> </span>
</v-chip> </v-chip>
+13 -5
View File
@@ -1,9 +1,17 @@
<template> <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"> <v-col class="d-flex flex-column w100 pa-0 flex-grow-0">
<toolbar-filter/> <toolbar-filter/>
<!-- -->
</v-col> </v-col>
<v-col class="d-flex " > <v-col class="d-flex " >
<v-row no-gutters class="gap" > <v-row no-gutters class="gap" >
@@ -128,7 +136,7 @@ setup(){
const visition = () => { const visition = () => {
axiosApiInstance.get(`api/watcher/testwatcher/?start=${formatDash(filterStore.date_period.startdate)}&end=${formatDash(filterStore.date_period.enddate)}`).then(result => { 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) alldata.value = preparedata(result.data)
// //
totalfn() totalfn()
@@ -484,7 +492,7 @@ setup(){
// } // }
// title_period() // title_period()
console.log(alldata.value.feedback.feed.length, 'alldata.feedback.feed')
return { return {
+1 -1
View File
@@ -35,7 +35,7 @@
<v-row no-gutters class="h-100 gap"> <v-row no-gutters class="h-100 gap">
<v-col class="flex-column d-flex"> <v-col class="flex-column d-flex">
<v-row no-gutters class="flex-column gap" > <v-row no-gutters class="flex-column gap" >
<my-helper :pretext="dataIndicators"/>
<v-col v-for="x in dataIndicators" :key=x> <v-col v-for="x in dataIndicators" :key=x>
<!-- --> <!-- -->
<card-total :indicator=x /> <card-total :indicator=x />