Commit 2a4023a7 by liang ce

图表

parent 4004ee1b
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<a-select placeholder="请选择月" v-model="month" style="width: 120px;margin-left: 10px" @change="handleChange"> <a-select placeholder="请选择月" v-model="month" style="width: 120px;margin-left: 10px" @change="handleChange">
<a-select-option v-for="item in 12" :key="item" :value="item">{{item}}</a-select-option> <a-select-option v-for="item in 12" :key="item" :value="item">{{item}}</a-select-option>
</a-select> </a-select>
<a-button type="primary">查询</a-button> <a-button type="primary" @click="init">查询</a-button>
</div> </div>
<div class="title">账单汇总</div> <div class="title">账单汇总</div>
<div id="rechargeLine" :style="{width: '900px', height: '300px'}"></div> <div id="rechargeLine" :style="{width: '900px', height: '300px'}"></div>
...@@ -37,14 +37,17 @@ export default { ...@@ -37,14 +37,17 @@ export default {
} }
this.year = new Date().getFullYear() this.year = new Date().getFullYear()
this.month = new Date().getMonth() + 1 this.month = new Date().getMonth() + 1
this.getStatisticsSubsidyData() this.init()
this.getStatisticsConsumeData()
this.getStatisticsRechargeData()
}, },
mounted () { mounted () {
// this.drawLine() // this.drawLine()
}, },
methods: { methods: {
init () {
this.getStatisticsSubsidyData()
this.getStatisticsConsumeData()
this.getStatisticsRechargeData()
},
drawSubsidyListDataLine () { drawSubsidyListDataLine () {
// 基于准备好的dom,初始化echarts实例 // 基于准备好的dom,初始化echarts实例
let myChart = this.$echarts.init(document.getElementById('subsidyList')) let myChart = this.$echarts.init(document.getElementById('subsidyList'))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment