diff --git a/src/components/VBerth.vue b/src/components/VBerth.vue new file mode 100644 index 0000000..2157699 --- /dev/null +++ b/src/components/VBerth.vue @@ -0,0 +1,90 @@ + + + + + diff --git a/src/components/VIncome.vue b/src/components/VIncome.vue index c2d9918..8d3aa91 100644 --- a/src/components/VIncome.vue +++ b/src/components/VIncome.vue @@ -35,42 +35,7 @@ export default { //this.drawBar(); }, methods: { - drawBar() { - let myChart = echarts.init(document.getElementById('income-echart')); - let option = { - color: ['#f44'], - tooltip : { - trigger: 'axis', - axisPointer : { - type : 'shadow' - } - }, - xAxis : [ - { - type : 'category', - data : ['1月','2月','3月','4月','5月','6月','7月','8月','9月','10月','11月','12月',], - axisTick: { - alignWithLabel: true - } - } - ], - yAxis : [ - { - type : 'value' - } - ], - series : [ - { - name:'每月花费', - type:'bar', - barWidth: '60%', - data:[995,666,444,858,654,236,645,546,846,225,547,356] - } - ] - }; - myChart.setOption(option); - } } } diff --git a/src/view/VHome.vue b/src/view/VHome.vue index 31a6541..8dbabeb 100644 --- a/src/view/VHome.vue +++ b/src/view/VHome.vue @@ -20,7 +20,9 @@
-
+
+ +
@@ -34,6 +36,7 @@ import VParking from '../components/VParking' import VToll from '../components/VToll' import VInout from '../components/VInout' import VIncome from '../components/VIncome' +import VBerth from '../components/VBerth' export default { name: 'VHome', components: { @@ -42,7 +45,8 @@ export default { VParking, VToll, VInout, - VIncome + VIncome, + VBerth } }