Ver código fonte

首页-柱状图

dujingxian 4 anos atrás
pai
commit
cf400e5a43
1 arquivos alterados com 3 adições e 3 exclusões
  1. 3 3
      src/pages/subPages/home.vue

+ 3 - 3
src/pages/subPages/home.vue

@@ -179,7 +179,7 @@ export default {
       // 绘制图表
       var option = {
           title: {
-              text: '近一周订单累计:',
+              text: '近一周订单成功金额累计:',
               textStyle:{
                 color:'#333', //颜色
                 fontStyle:'normal', //风格
@@ -223,7 +223,7 @@ export default {
           ],
           series: [
               {
-                  name: '订单累计',
+                  name: '成功金额累计',
                   type: 'bar',
                   barWidth: '60%',
                   data: [10, 52, 30, 30, 39, 160, 190]
@@ -254,7 +254,7 @@ export default {
           this.week = res.datas.week
           this.month = res.datas.month
           let weekOrderCount = res.datas.weeksStatistics
-          Object.values(weekOrderCount).forEach(item => this.weekOrderCount.push(item.count))
+          Object.values(weekOrderCount).forEach(item => this.weekOrderCount.push(item.successAmounts))
           option.series[0].data = this.weekOrderCount
           option.yAxis[0].max = res.datas.max
           myChart.setOption(option)