|
|
@@ -170,13 +170,11 @@ export default {
|
|
|
this.option.xAxis[0].data = res.data.map(res => res.month)
|
|
|
this.option.series[0].data = res.data.map(res => res.sum_complete_amount)
|
|
|
this.option.series[1].data = res.data.map(res => res.average)
|
|
|
- const length = res.data.length
|
|
|
this.avg(this.option.series[0].data[0], this.option.series[1].data[0])
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
avg (lastComplete, lastAvg) {
|
|
|
- console.log(lastComplete, lastAvg)
|
|
|
this.$emit('avg', lastComplete < lastAvg)
|
|
|
}
|
|
|
}
|