This commit is contained in:
iriska-gri committed 2024-03-06 10:36:22 +03:00
1 parent 3eca1813c5
commit 77fc8a3f9b
10 files changed
+76 -51

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>
<my-helper :pretext="feedback"/>
<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">
@@ -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>
@@ -28,7 +28,7 @@
</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>
@@ -31,54 +31,71 @@
</v-row>
</v-col>
</v-row>
<pattern-card-feed
v-else
:title="'Средняя оценка'"
>
<template v-slot:filling_feedback>
<div v-if="criteria.length!=0">
<v-row
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-row
class="align-center flex-column scoreheight gap mt-n2"
no-gutters
<v-col lg=1 class="text-subtitle-1 font-weight-regular w100 pa-0"
>
<div class="flex-columnd-flex gap 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-for="(x, key) in criteria"
:key = key
<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>
<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-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].ratings"
:hover="typeof(key) == 'number'"
half-increments
readonly
:size="25"
color="yellow"
:density="'comfortable'"
/>
</v-col>
</v-row>
</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 />