add dashboard

This commit is contained in:
Pan
2017-04-21 15:12:45 +08:00
parent 33e384ee95
commit a3a331bd15
9 changed files with 67 additions and 59 deletions

View File

@@ -48,6 +48,7 @@
methods: {
initBar() {
this.chart = echarts.init(document.getElementById(this.id));
this.setOptions();
},
setOptions() {
this.chart.setOption({

View File

@@ -46,6 +46,7 @@
},
mounted() {
this.chart = echarts.init(document.getElementById(this.id));
this.setLine(this.listData);
},
methods: {
setLine(dataList) {