Дорисовать

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