Дорисовать

This commit is contained in:
iriska-gri committed 2024-03-04 14:57:50 +03:00
1 parent 83a505da5b
commit e3ab5c42c0
10 files changed
+79 -47

No files matched your search

@@ -10,18 +10,18 @@
<v-table density="compact" class="px-7">
<thead>
<tr >
<th class="text-center text-caption font-weight-medium">
<th class="text-center text-h6 font-weight-regular">
всего
</th>
<th class="text-center text-caption font-weight-medium">
<th class="text-center text-h6 font-weight-regular">
за период
</th>
</tr>
</thead>
<tbody >
<tr >
<th class="text-center">{{data.all}}</th>
<th class="text-center">{{data.period}}</th>
<th class="text-center text-h6 font-weight-bold">{{data.all}}</th>
<th class="text-center text-h6 font-weight-bold">{{data.period}}</th>
</tr>
</tbody>
</v-table>
@@ -13,6 +13,7 @@
<list-user :author= "top.author" :from_which="'top_comment'"/>
</v-col>
<v-col class="align-self-center pl-0">
<!-- <my-helper :pretext="top.comment"/> -->
<v-table density="compact" class="pa-0">
<thead>
<tr >
@@ -30,8 +31,9 @@
</template>
<v-card max-width='400' density="compact" class="bg-transparent">
<v-card-title>Оставлено комментариев</v-card-title>
<!-- <v-card-subtitle>Последний комментарий оставлен {{top.comment.data}}</v-card-subtitle>
<v-card-text>{{top.comment.text}}</v-card-text> -->
<v-card-subtitle>Последний комментарий оставлен {{formaComaTime(top.comment[0].time_create)}}</v-card-subtitle>
<v-card-text>{{top.comment[0].comment}}</v-card-text>
</v-card>
</v-tooltip>
</th>
@@ -54,8 +56,8 @@
</thead>
<tbody >
<tr >
<th class="text-center">{{top.comment.length}}</th>
<th class="text-center">{{top.score}}</th>
<th class="text-center text-h6 font-weight-bold">{{top.comment.length}}</th>
<th class="text-center text-h6 font-weight-bold">{{top.score}}</th>
</tr>
</tbody>
@@ -72,6 +74,7 @@
import PatternCardFeed from '@/components/UI/aboutportal/pattern-card-feed.vue'
import ListUser from '@/components/UI/fiousercard/listUser.vue'
import TooltipText from '@/components/UI/tooltip-text.vue'
import {formaComaTime} from '@/utils/universal_functions'
// import CardFeedback from '@/components/UI/aboutportal/card-feedback.vue'
export default {
components: {
@@ -92,7 +95,9 @@ export default {
setup(props) {
console.log(props.top, 'gggggggggggggg')
return {}
return {
formaComaTime
}
}
}
</script>
@@ -8,8 +8,8 @@
<template v-slot:filling>
<v-row no-gutters class="flex-column gap">
<v-col lg=1 class="w100">
<v-card variant="flat" class="text-caption">
Последний комментарий оставлен <span class="text-body-1 font-weight-bold">{{formaComaTime(feedback.last_comment.time_create)}}</span>
<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>
</v-col>
<v-col lg=2 class="w100">
@@ -79,7 +79,7 @@ export default {
const dataTopUser = computed({
get() {
let ob = {}
let tuser = {comment:[], score: 0}
let tuser = {comment:[{time_create:'2024-01-01', comment: ''}], score: 0}
props.feedback.feed.forEach((e) => {
@@ -3,12 +3,12 @@
<v-row no-gutters class="flex-column gap">
<v-col lg=1 class="bg-teal-lighten-5 w100">
<span class="font-weight-medium text-teal-darken-4">
<span class="font-weight-medium text-button text-teal-darken-4">
{{title}}
</span>
</v-col>
<v-col class="d-flex flex-column">
<v-col class="d-flex flex-column pt-5">
<slot name="filling_feedback"></slot>
</v-col>
</v-row>
@@ -4,20 +4,13 @@
:ico="'mdi-walk'"
>
<template v-slot:filling>
<v-table class="text-caption table_traffic pt-3">
<v-table class="text-subtitle-1 table_traffic pt-3">
<thead>
<tr>
<th class="pr-0"></th>
<th class="text-center px-1">сегодня</th>
<th class="text-center ">за период</th>
</tr>
<!-- <tr>
<th class="pr-0"></th>
<th class="text-center px-1">Уникальные пользователи</th>
<th class="text-center ">% от штата </th>
<th class="text-center pb-2">По сравнению предыдущим периодом</th>
</tr> -->
</thead>
<tbody class="text-button">
<!-- -->
@@ -26,12 +19,26 @@
:key = key
>
<td style="white-space: nowrap" class="text-left text-caption pr-0 pl-4 font-weight-medium cursor-default">
<!-- <my-helper :pretext="val"/> -->
<v-icon
<!-- -->
<v-tooltip location="top" >
<template v-slot:activator="{ props }">
<span v-bind="props" >
<v-icon
size="large"
:color="val.color"
:icon="val.ico"
/>
</span>
</template>
<v-row
>
<v-col >
{{val.tooltip}}
</v-col>
</v-row>
</v-tooltip>
</td>
<td class="text-center px-0 font-weight-bold text-h6 cursor-help text-grey-darken-3">
<v-tooltip location="top" v-if="val.proc!=''">
@@ -146,7 +153,7 @@ export default {
res.before.user=res.period.user
res.today.proc = parseFloat(((res.today.user.length * 100) / props.alldata.staff).toFixed(2))
res.period.proc = parseFloat(((res.period.user.length * 100) / props.alldata.staff).toFixed(2))
res.period.tooltip =`% от штата (${props.alldata.staff} сотрудников не конец выбранного периода)`
let data1 = moment(filterStore.date_period.enddate)
let data2 = moment(filterStore.date_period.startdate)
let between = data1.diff(data2, 'days') + 1
@@ -8,6 +8,7 @@
:headers="headers"
:items="tabledata"
height="400"
class=""
item-value="name"
@update:sortBy=customSort
v-model:sort-by="sortBy"
@@ -58,7 +58,7 @@
:headers="subtable"
:items="item.tooltip"
items-per-page=-1
class="subtable cursor-default px-3 bg-grey-lighten-5 text-caption"
class="subtable cursor-default px-3 bg-grey-lighten-5 text-body-2"
density="compact"
:sort-by="[{ key: 'count', order: 'desc' }]"
>
@@ -38,12 +38,12 @@
<v-row
v-for="(x, key) in criteria"
:key = key
class="align-center"
class="align-center mt-n2"
no-gutters
>
<v-col lg=12>
<v-col lg=12 class="text-h6 font-weight-regular">
<v-icon
size="x-small"
size="small"
:color="x.color"
:icon="x.ico"
/>
@@ -53,9 +53,10 @@
<v-rating
v-model="message[key].ratings"
:hover="typeof(key) == 'number'"
half-increments
readonly
:size="16"
:size="25"
color="yellow"
:density="'comfortable'"
/>
@@ -17,7 +17,7 @@
<v-list-item v-if="from_which=='top-user'" class="h-100 text-left pa-2 pl-0" @click="open=true">
<v-chip
class="cursor-pointer pa-0"
class="cursor-pointer text-body-2 pa-0"
variant='text'
label
color="grey-darken-3"
@@ -40,7 +40,7 @@
v-if="from_which=='top_comment'"
@click="open=true"
cover
sizes="x-small"
:src="checkremote(`${spravURL}${author.login}.jpg`)"
/>
<!-- </v-list-item> -->
+32 -14
View File
@@ -5,19 +5,25 @@
<!-- -->
</v-col>
<v-col class="bg-blue d-flex " >
<v-col class="d-flex " >
<v-row no-gutters class="gap" >
<v-col lg=2 class=" d-flex flex-column">
<v-row no-gutters class="bg-red gap ma-0 flex-column">
<v-row no-gutters class="gap ma-0 flex-column">
<v-col lg=4 class="flex-column d-flex w100">
<portal-traffic :alldata=alldata />
</v-col>
<v-col class="flex-column d-flex w100">2</v-col>
<v-col class="flex-column d-flex w100">
<v-row no-gutters class="flex-column gap" >
<v-col v-for="x in cardtotal" :key=x>
<card-total :indicator=x />
</v-col>
</v-row>
</v-col>
</v-row>
</v-col>
<v-col class="bg-blue d-flex flex-column">
<v-col class="d-flex flex-column">
<v-row no-gutters class="flex-column gap">
<v-col lg=4 class="bg-yellow w100">
<v-col lg=4 class="w100">
<line-chart
:key = "`${filterStore.date_period.startdate}-${filterStore.date_period.enddate}`"
:dataLineChart="dataLineChart"
@@ -25,9 +31,26 @@
:filter = filter
/>
</v-col>
<v-col class=" d-flex flex-column">
<v-row no-gutters class="gap">
<v-col class="bg-green">
<rating-page :pages_count=alldata.period />
</v-col>
<v-col>
<top-user
:activusers = alldata.period
/>
</v-col>
</v-row>
</v-col>
</v-row>
</v-col>
<v-col lg=2 class="bg-red">3</v-col>
<v-col lg=2 class="bg-red">
<feedmodul
:feedback="alldata.feedback"
/>
</v-col>
</v-row>
</v-col>
</v-row>
@@ -47,7 +70,7 @@
<v-col lg=4 class="w100">
<v-row no-gutters class="h-100 gap">
<v-col lg=2>
<portal-traffic :alldata=alldata />
</v-col>
<v-col lg=8>
@@ -65,20 +88,15 @@
</v-row>
</v-col>
<v-col lg=4 class="d-flex flex-column">
<rating-page :pages_count=alldata.period />
</v-col>
<v-col lg=4 class="d-flex flex-column ">
<top-user
:activusers = alldata.period
/>
</v-col>
<v-col class="d-flex flex-column">
<feedmodul
:feedback="alldata.feedback"
/>
</v-col>
</v-row>
</v-col>