This commit is contained in:
iriska-gri committed 2024-02-28 17:02:51 +03:00
1 parent 5f47f0682b
commit 9dc96dd514
2 files changed
+18 -6

No files matched your search

@@ -53,6 +53,11 @@ export default {
period: { period: {
type: Object, type: Object,
default: () => {} default: () => {}
},
filter: {
type: String,
default: 'd'
} }
}, },
+13 -6
View File
@@ -19,12 +19,18 @@
</v-col> </v-col>
<v-col lg=9> <v-col lg=9>
<line-chart :dataLineChart="dataLineChart" :period="{before:alldata.beforperiod,period:alldata.period}"/> <line-chart
:dataLineChart="dataLineChart"
:period="{before:alldata.beforperiod,period:alldata.period}"
:filter = filter
/>
</v-col> </v-col>
<v-col > <v-col >
<v-btn block class="text-caption" @click="filter='year'">Год</v-btn> <v-btn block class="text-caption" @click="filter='y'">Год</v-btn>
<v-btn block class="text-caption" @click="filter='month'">Месяц</v-btn> <v-btn block class="text-caption" @click="filter='m'">Месяц</v-btn>
<v-btn block class="text-caption" @click="filter='day'">День</v-btn> <v-btn block class="text-caption" @click="filter='d'">День</v-btn>
{{filter}} {{filter}}
</v-col> </v-col>
@@ -101,6 +107,7 @@ export default {
setup(){ setup(){
const dataLineChart = ref({}) const dataLineChart = ref({})
const cardtotal = ref( const cardtotal = ref(
{ {
@@ -485,7 +492,7 @@ setup(){
return { return {
alldata, alldata,
cardtotal, cardtotal,
dataLineChart dataLineChart,
// visiting, // visiting,
// pages_count, // pages_count,
// visitionreduce, // visitionreduce,
@@ -498,7 +505,7 @@ setup(){
// dataIndicators, // dataIndicators,
// dataChart, // dataChart,
// feedback, // feedback,
// filter filter: ref('d')
} }