Добавить данные к графику
This commit is contained in:
1 parent
5119833fb7
commit
56a5f17857
4 files changed
+73
-32
No files matched your search
@@ -1,4 +1,5 @@
|
||||
<template>
|
||||
|
||||
<v-card class="h-100">
|
||||
<line-graph :data="data" :options="options"/>
|
||||
</v-card>
|
||||
@@ -18,6 +19,10 @@ export default {
|
||||
dataLineChart: {
|
||||
type: Object,
|
||||
default: () => {}
|
||||
},
|
||||
dataChart: {
|
||||
type: Object,
|
||||
default: () => {}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -52,16 +57,16 @@ export default {
|
||||
tooltips: true
|
||||
}
|
||||
,
|
||||
// {
|
||||
// label: 'CRR',
|
||||
// backgroundColor: 'blue',
|
||||
// borderColor: 'blue',
|
||||
// borderWidth: 3,
|
||||
// cubicInterpolationMode: 'monotone',
|
||||
// data: [],
|
||||
// customlabel: [],
|
||||
// tooltips: true
|
||||
// }
|
||||
{
|
||||
label: 'CRR',
|
||||
backgroundColor: 'blue',
|
||||
borderColor: 'blue',
|
||||
borderWidth: 3,
|
||||
cubicInterpolationMode: 'monotone',
|
||||
data: [],
|
||||
customlabel: [],
|
||||
tooltips: true
|
||||
}
|
||||
]
|
||||
}
|
||||
arrforline()
|
||||
@@ -135,7 +140,7 @@ export default {
|
||||
// }, {})
|
||||
|
||||
Object.entries(props.dataLineChart).forEach(e => {
|
||||
console.log(e,' e');
|
||||
// console.log(e,' e');
|
||||
const [key, value] = e
|
||||
arrlines.value.datasets[0].data.push(value.count)
|
||||
arrlines.value.datasets[1].data.push(value.unic.length)
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
</v-col>
|
||||
<v-col>
|
||||
|
||||
<line-chart :dataLineChart="dataLineChart"/>
|
||||
<line-chart :dataLineChart="dataLineChart" :dataChart="dataChart"/>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-col>
|
||||
@@ -48,7 +48,7 @@
|
||||
<feedmodul
|
||||
:feedback="feedback"
|
||||
/>
|
||||
|
||||
<my-helper :pretext = dataChart />
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-col>
|
||||
@@ -102,6 +102,7 @@ setup(){
|
||||
const dataActivusers = ref([])
|
||||
const dataAttendance = ref({})
|
||||
const dataIndicators = ref({})
|
||||
const dataChart = ref({})
|
||||
|
||||
const unicuser = ref([])
|
||||
|
||||
@@ -118,8 +119,7 @@ setup(){
|
||||
visiting.value = result.data.result
|
||||
feedback.value = result.data.feedback
|
||||
dataIndicators.value = result.data.indicators
|
||||
console.log(for_formulas.value, 'feedback');
|
||||
|
||||
dataChart.value = result.data.chart,
|
||||
|
||||
visitionreduce()
|
||||
funActiveUser()
|
||||
@@ -306,10 +306,13 @@ setup(){
|
||||
const visitionreduce = () => {
|
||||
|
||||
let lineCharts = {}
|
||||
|
||||
unicuser.value = []
|
||||
|
||||
|
||||
|
||||
pages_count.value.data= data_collection(visiting.value, lineCharts)
|
||||
|
||||
|
||||
dataLineChart.value = lineCharts
|
||||
|
||||
}
|
||||
@@ -344,6 +347,7 @@ setup(){
|
||||
for_formulas,
|
||||
dataAttendance,
|
||||
dataIndicators,
|
||||
dataChart,
|
||||
feedback
|
||||
// countgrupp,
|
||||
// activuser,
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
<v-window-item value="document" class="h-100">
|
||||
<v-row no-gutters class="gap h-100 ">
|
||||
<v-col lg="6">
|
||||
<!-- <my-helper :pretext = safetyData /> -->
|
||||
<!---->
|
||||
<v-card class="h-100 flex-column d-flex gap">
|
||||
<v-row class="ma-0 my-3 overflow-auto h-0 pb-1">
|
||||
<v-card v-for="item in safetyData" :key="item.id" class="overflow-y-auto flex-grow-1 flex-shrink-1 h-100">
|
||||
|
||||
Reference in new issue
Block a user