Левая панель закончена
This commit is contained in:
1 parent
1d35459ede
commit
1036339312
4 files changed
+38
-13
No files matched your search
@@ -33,7 +33,7 @@
|
|||||||
|
|
||||||
</v-col>
|
</v-col>
|
||||||
|
|
||||||
<v-col class="align-self-center text-center px-0">
|
<v-col class="align-self-center text-center px-0 ml-n5">
|
||||||
|
|
||||||
<span class="subheading text-h6">
|
<span class="subheading text-h6">
|
||||||
{{users.count}}
|
{{users.count}}
|
||||||
|
|||||||
@@ -1,31 +1,43 @@
|
|||||||
<template>
|
<template>
|
||||||
|
|
||||||
<v-row class="h-100">
|
<v-row class="h-100 ">
|
||||||
<v-col class="d-flex flex-column">
|
<v-divider/>
|
||||||
|
<v-col class="d-flex flex-column align-self-center">
|
||||||
|
|
||||||
<v-row
|
<v-row
|
||||||
v-for="(x, key) in criteria"
|
v-for="(x, key) in criteria"
|
||||||
:key = key
|
:key = key
|
||||||
|
class="align-center"
|
||||||
>
|
>
|
||||||
<v-col class="flex-grow-0 pb-0">
|
|
||||||
<v-icon
|
<v-col class="flex-grow-0">
|
||||||
|
|
||||||
|
</v-col>
|
||||||
|
<v-col class=""
|
||||||
|
|
||||||
|
lg=5
|
||||||
|
>
|
||||||
|
<v-icon
|
||||||
size="large"
|
size="large"
|
||||||
:color="x.color"
|
:color="x.color"
|
||||||
:icon="x.ico"
|
:icon="x.ico"
|
||||||
/>
|
/>
|
||||||
</v-col>
|
|
||||||
<v-col class="pb-0" lg=4>
|
|
||||||
|
|
||||||
{{x.name}}
|
{{x.name}}
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col class="py-0" lg=3>
|
<v-col
|
||||||
|
|
||||||
|
lg=6
|
||||||
|
>
|
||||||
<v-rating
|
<v-rating
|
||||||
v-model="message[key].rating"
|
v-model="message[key].rating"
|
||||||
:hover="typeof(key) == 'number'"
|
:hover="typeof(key) == 'number'"
|
||||||
half-increments
|
half-increments
|
||||||
|
:readonly="how==''?true:false"
|
||||||
color="yellow"
|
color="yellow"
|
||||||
|
:density="how==''?'compact':'comfortable'"
|
||||||
/>
|
/>
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-divider/>
|
<v-divider v-show="how=='modal'"/>
|
||||||
</v-row >
|
</v-row >
|
||||||
</v-col>
|
</v-col>
|
||||||
</v-row>
|
</v-row>
|
||||||
@@ -36,6 +48,8 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { computed } from 'vue'
|
import { computed } from 'vue'
|
||||||
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
|
||||||
props: {
|
props: {
|
||||||
@@ -47,17 +61,25 @@ export default {
|
|||||||
rating: {
|
rating: {
|
||||||
type: Object,
|
type: Object,
|
||||||
default: {}
|
default: {}
|
||||||
|
},
|
||||||
|
|
||||||
|
how: {
|
||||||
|
type: Text,
|
||||||
|
default: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
setup(props, { emit }) {
|
setup(props, { emit }) {
|
||||||
|
|
||||||
|
|
||||||
|
// console.log(useDebugValue(getCurrentComponent().proxy.$options.name) , 'route.path');
|
||||||
const message = computed({
|
const message = computed({
|
||||||
get: () => props.rating,
|
get: () => props.rating,
|
||||||
set: (value) => emit('update:rating', value)
|
set: (value) => emit('update:rating', value)
|
||||||
})
|
})
|
||||||
|
|
||||||
return {
|
return {
|
||||||
message,
|
message
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,11 +10,12 @@
|
|||||||
Оцените сайт
|
Оцените сайт
|
||||||
|
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-divider/>
|
|
||||||
</v-row>
|
</v-row>
|
||||||
<star-like
|
<star-like
|
||||||
:criteria=feedbackdata.basecrit
|
:criteria=feedbackdata.basecrit
|
||||||
:rating=feedbackdata.nowrating
|
:rating=feedbackdata.nowrating
|
||||||
|
how="modal"
|
||||||
@update:rating="feedbackdata.nowrating = $event"
|
@update:rating="feedbackdata.nowrating = $event"
|
||||||
/>
|
/>
|
||||||
<v-row class="mt-6">
|
<v-row class="mt-6">
|
||||||
|
|||||||
@@ -38,7 +38,7 @@
|
|||||||
class="text-center"
|
class="text-center"
|
||||||
height="200px"
|
height="200px"
|
||||||
>
|
>
|
||||||
<v-card-title class="pb-0">
|
<v-card-title class="pb-0 pt-2">
|
||||||
Количество Посетителей
|
Количество Посетителей
|
||||||
</v-card-title>
|
</v-card-title>
|
||||||
<v-card-subtitle>
|
<v-card-subtitle>
|
||||||
@@ -209,6 +209,8 @@ setup(){
|
|||||||
const modelrating = ref(false)
|
const modelrating = ref(false)
|
||||||
|
|
||||||
const arrlines = {}
|
const arrlines = {}
|
||||||
|
|
||||||
|
|
||||||
const data = computed({
|
const data = computed({
|
||||||
get() {
|
get() {
|
||||||
arrlines.value = {
|
arrlines.value = {
|
||||||
|
|||||||
Reference in new issue
Block a user