2 Commits 5df72de459 ... daf9c15062

Author SHA1 Message Date
  暖心小太阳 daf9c15062 Merge branch 'dev-baomu' of http://47.102.110.240:3000/yuxiangpei/jzlife_vue_report into dev-baomu 3 weeks ago
  暖心小太阳 8234cd7f26 修改bug 3 weeks ago
1 changed files with 12 additions and 2 deletions
  1. 12 2
      src/components/nannyData.vue

+ 12 - 2
src/components/nannyData.vue

@@ -364,7 +364,7 @@ export default {
         },
         series: [
           {
-            name: "在线用户数",
+            name: "",
             top: 10,
             color: "#00A6FC",
             type: "bar",
@@ -422,7 +422,8 @@ export default {
       chartInstance: null,
       option: {
         tooltip: {
-          trigger: "item"
+          trigger: "item", 
+          formatter:"{b}:{d}%" 
         },
         legend: {
           orient: "vertical",
@@ -501,6 +502,15 @@ export default {
           if (res.data.errno == 0) {
             this.options.yAxis.data = res.data.data.cityList.reverse();
             this.options.series[0].data = res.data.data.data.reverse();
+            if(this.cityDataType==1){
+              this.options.series[0].name="业绩"
+            }else if(this.cityDataType==2){
+              this.options.series[0].name="订单量"
+            }else if(this.cityDataType==3){
+              this.options.series[0].name="客单价"
+            }else if(this.cityDataType==4){
+              this.options.series[0].name="线索量"
+            }
             this.initBarChart();
           }
         })