Фильтр
This commit is contained in:
1 parent
a73537ab59
commit
9e4dc87b46
5 files changed
+26
-16
No files matched your search
Generated
+7
-7
@@ -6448,11 +6448,11 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/axios": {
|
"node_modules/axios": {
|
||||||
"version": "1.6.2",
|
"version": "1.6.5",
|
||||||
"resolved": "https://registry.npmjs.org/axios/-/axios-1.6.2.tgz",
|
"resolved": "https://registry.npmjs.org/axios/-/axios-1.6.5.tgz",
|
||||||
"integrity": "sha512-7i24Ri4pmDRfJTR7LDBhsOTtcm+9kjX5WiY1X3wIisx6G9So3pfMkEiU7emUBe46oceVImccTEM3k6C5dbVW8A==",
|
"integrity": "sha512-Ii012v05KEVuUoFWmMW/UQv9aRIc3ZwkWDcM+h5Il8izZCtRVpDUfwpoFf7eOtajT3QiGR4yDUx7lPqHJULgbg==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"follow-redirects": "^1.15.0",
|
"follow-redirects": "^1.15.4",
|
||||||
"form-data": "^4.0.0",
|
"form-data": "^4.0.0",
|
||||||
"proxy-from-env": "^1.1.0"
|
"proxy-from-env": "^1.1.0"
|
||||||
}
|
}
|
||||||
@@ -10789,9 +10789,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/follow-redirects": {
|
"node_modules/follow-redirects": {
|
||||||
"version": "1.15.2",
|
"version": "1.15.5",
|
||||||
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz",
|
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.5.tgz",
|
||||||
"integrity": "sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==",
|
"integrity": "sha512-vSFWUON1B+yAw1VN4xMfxgn5fTUiaOzAJCKBwIIgT/+7CuGy9+r+5gITvP62j3RmaD5Ph65UaERdOSRGUzZtgw==",
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
"type": "individual",
|
"type": "individual",
|
||||||
|
|||||||
@@ -71,7 +71,7 @@ export default {
|
|||||||
}, 0
|
}, 0
|
||||||
)/val.rating.length).toFixed(1)
|
)/val.rating.length).toFixed(1)
|
||||||
}
|
}
|
||||||
console.log(avgfeed, 'key,valkey,val');
|
|
||||||
|
|
||||||
for (let [key,val] of Object.entries(us))
|
for (let [key,val] of Object.entries(us))
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -137,9 +137,6 @@ export default {
|
|||||||
|
|
||||||
t_dailyRound.value = data.data.daily
|
t_dailyRound.value = data.data.daily
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -111,8 +111,8 @@
|
|||||||
<v-date-picker
|
<v-date-picker
|
||||||
v-model="selectedDateStart"
|
v-model="selectedDateStart"
|
||||||
show-adjacent-months
|
show-adjacent-months
|
||||||
:location="ru"
|
|
||||||
@update:modelValue="menudate=false"
|
@update:modelValue="dateStart"
|
||||||
>
|
>
|
||||||
|
|
||||||
</v-date-picker>
|
</v-date-picker>
|
||||||
@@ -149,6 +149,7 @@ setup(){
|
|||||||
const crit = ref([])
|
const crit = ref([])
|
||||||
const menudate = ref(false)
|
const menudate = ref(false)
|
||||||
const selectedDateStart = ref(null)
|
const selectedDateStart = ref(null)
|
||||||
|
const startdate =ref(moment(new Date(new Date().getFullYear(), 0, 1)).format('YYYY-MM-DD'))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -233,7 +234,8 @@ setup(){
|
|||||||
);
|
);
|
||||||
|
|
||||||
const visition = () => {
|
const visition = () => {
|
||||||
axiosApiInstance.get(`api/watcher/counter/`).then(result => {
|
// ${startdate.value}
|
||||||
|
axiosApiInstance.get(`api/watcher/counter/?start=${startdate.value}`).then(result => {
|
||||||
visiting.value = result.data.result
|
visiting.value = result.data.result
|
||||||
feedback.value = result.data.feedback
|
feedback.value = result.data.feedback
|
||||||
|
|
||||||
@@ -356,6 +358,15 @@ setup(){
|
|||||||
|
|
||||||
visition()
|
visition()
|
||||||
|
|
||||||
|
|
||||||
|
const dateStart = () => {
|
||||||
|
startdate.value = moment(selectedDateStart.value).format('YYYY-MM-DD')
|
||||||
|
visition()
|
||||||
|
let d = new Date(new Date().getFullYear(), 0, 1)
|
||||||
|
console.log( moment(new Date(new Date().getFullYear(), 0, 1)).format('YYYY-MM-DD'), '222222222222222222222222222');
|
||||||
|
menudate.value=false
|
||||||
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
visiting,
|
visiting,
|
||||||
countgrupp,
|
countgrupp,
|
||||||
@@ -366,7 +377,8 @@ setup(){
|
|||||||
countvising,
|
countvising,
|
||||||
crit,
|
crit,
|
||||||
menudate,
|
menudate,
|
||||||
selectedDateStart
|
selectedDateStart,
|
||||||
|
dateStart
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -19,8 +19,9 @@ class Counter(ListAPIView):
|
|||||||
serializer_class = CountSerializer
|
serializer_class = CountSerializer
|
||||||
|
|
||||||
def get(self, request):
|
def get(self, request):
|
||||||
|
print(request.GET.get("start"), '-----------------------')
|
||||||
|
|
||||||
res = CountVisitor.objects.filter(visitdate__range=['2024-01-01', '2024-12-31']).annotate(Sum('count'))
|
res = CountVisitor.objects.filter(visitdate__range=[request.GET.get("start"), '2024-12-31']).annotate(Sum('count'))
|
||||||
result = CountSerializer(res, many=True).data
|
result = CountSerializer(res, many=True).data
|
||||||
|
|
||||||
# Обратная связь
|
# Обратная связь
|
||||||
|
|||||||
Reference in new issue
Block a user