Не сделан фильтр с серилизатора
This commit is contained in:
1 parent
a815e59043
commit
74082b69ee
7 files changed
+53
-25
No files matched your search
@@ -51,9 +51,9 @@
|
||||
</v-container>
|
||||
</v-card-text>
|
||||
<v-card-actions class="pt-0">
|
||||
<!-- <my-helper
|
||||
:pretext="t_userComment"
|
||||
/> -->
|
||||
<my-helper
|
||||
:pretext="t_baseCriteria"
|
||||
/>
|
||||
<small v-if="average < 5 || comment.length > 0" class="pl-5">
|
||||
Вы оценили сайт на <span class="font-weight-black">{{average}}</span> {{myLabel()}}
|
||||
</small>
|
||||
@@ -97,7 +97,8 @@ export default {
|
||||
.then(data => {
|
||||
t_baseCriteria.value = data.data.results
|
||||
t_baseCriteria.value.map(e=>
|
||||
e.rating = e.get_criteria[0].rating
|
||||
console.log(e,'e')
|
||||
// e.rating = e.get_criteria[0].rating
|
||||
)
|
||||
})
|
||||
}
|
||||
@@ -106,7 +107,7 @@ export default {
|
||||
axiosApiInstance.get(`api/feedback/userComment/`)
|
||||
.then(data => {
|
||||
t_userComment.value = data.data.results
|
||||
comment.value=t_userComment.value[0].comment
|
||||
comment.value=t_userComment.value[1].comment
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -234,7 +234,7 @@
|
||||
|
||||
<Online-users/>
|
||||
|
||||
<!-- <template v-slot:append>
|
||||
<template v-slot:append>
|
||||
<v-list lines="one">
|
||||
<v-list-item
|
||||
v-for="(val,key) in appStore.countvisitor"
|
||||
@@ -242,9 +242,9 @@
|
||||
:title="val"
|
||||
|
||||
></v-list-item>
|
||||
</v-list> -->
|
||||
</v-list>
|
||||
|
||||
<!-- </template> -->
|
||||
</template>
|
||||
|
||||
</v-navigation-drawer>
|
||||
|
||||
|
||||
@@ -46,19 +46,15 @@ export default str;
|
||||
|
||||
|
||||
export function pagecounter(){
|
||||
console.log('Загружаю данные для циферок по количеству');
|
||||
const router = useRouter()
|
||||
|
||||
|
||||
|
||||
const accountStore = useAccountStore()
|
||||
const appStore = useAppStore()
|
||||
let postdata = {user__id: "user" in accountStore && "id" in accountStore.user? accountStore.user.id: null, page: router.currentRoute.value.meta.title}
|
||||
|
||||
clearAxios.post(`${baseURL}api/watcher/counter/`, postdata).then(result => {
|
||||
console.log(result.data, 'dfdf')
|
||||
clearAxios.post(`${baseURL}api/watcher/counter/`, postdata)
|
||||
.then(result => {
|
||||
|
||||
appStore.countvisitor = result.data})
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -21,6 +21,13 @@
|
||||
</v-row>
|
||||
|
||||
|
||||
</v-col>
|
||||
<v-col>
|
||||
<v-btn
|
||||
@click="proba">
|
||||
Button
|
||||
</v-btn>
|
||||
{{appStore.countvisitor.totalvisit}}
|
||||
</v-col>
|
||||
</v-row>
|
||||
|
||||
@@ -70,11 +77,11 @@
|
||||
|
||||
setup(){
|
||||
onMounted(() => {
|
||||
pagecounter()
|
||||
proba()
|
||||
})
|
||||
|
||||
const appStore = useAppStore()
|
||||
|
||||
pagecounter()
|
||||
const model= null
|
||||
const accountStore = useAccountStore()
|
||||
|
||||
@@ -87,14 +94,20 @@
|
||||
{status:'В запое', num:'1,5', img: "/media/newsimage/numbers/med.jpg"},
|
||||
|
||||
]
|
||||
|
||||
const onlines = [
|
||||
// const onlines = [
|
||||
// {status:'Всего', num: 1, img: "/media/newsimage/numbers/calendar.jpg"},
|
||||
// {status:'Сегодня', num: 2, img: "/media/newsimage/numbers/sept.jpg"},
|
||||
// {status:'Уникальных', num: 3, img: "/media/newsimage/numbers/uni.jpg"},
|
||||
// ]
|
||||
const onlines = ref([
|
||||
{status:'Всего', num: appStore.countvisitor.totalvisit, img: "/media/newsimage/numbers/calendar.jpg"},
|
||||
{status:'Сегодня', num: appStore.countvisitor.visittoday, img: "/media/newsimage/numbers/sept.jpg"},
|
||||
{status:'Уникальных', num: appStore.countvisitor.uniqtoday, img: "/media/newsimage/numbers/uni.jpg"},
|
||||
]
|
||||
|
||||
|
||||
])
|
||||
|
||||
function proba() {
|
||||
console.log('hellooo------------------', appStore.countvisitor);
|
||||
}
|
||||
return {
|
||||
|
||||
accountStore,
|
||||
@@ -102,6 +115,7 @@
|
||||
model,
|
||||
onlines,
|
||||
appStore,
|
||||
proba
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user