monthlyTrend.vue
620 Bytes
<template>
<div class='monthly-trend'>
<view-sub-title title='订单月度趋势' />
<div class='line-bar-chart'>
<LineBar :domId='domId' :dataList='monthlyTrend' boxHeight='42vh'></LineBar>
</div>
</div>
</template>
<script>
import LineBar from 'components/lineBar'
export default {
name: 'MonthlyTrend',
components: {
LineBar
},
data() {
return {
domId: 'monthlyTrendLineBar',
monthlyTrend: []
}
},
mounted() {
this.$bus.$on('orderMonthlyTrend', data => {
this.monthlyTrend = data.orderMonthlyTrend
})
}
}
</script>
<style scoped>
</style>