Jelajahi Sumber

Merge branch 'master' of http://39.106.184.70:3000/ctop/adsp-vue

zhuxinbo 5 tahun lalu
induk
melakukan
eec823a734
1 mengubah file dengan 22 tambahan dan 22 penghapusan
  1. 22 22
      src/views/modules/Statistics/newHome.vue

+ 22 - 22
src/views/modules/Statistics/newHome.vue

@@ -240,13 +240,13 @@ let lineStyle= {
 }
 let sectionOption={
     tooltip: {
-        trigger: 'item',
+        trigger: 'axis',
        
-            axisPointer: {
-            // 坐标轴指示器,坐标轴触发有效
-            type: 'line', // 默认为直线,可选为:'line' | 'shadow',
-            
-            },
+        axisPointer: {
+        // 坐标轴指示器,坐标轴触发有效
+        type: 'line', // 默认为直线,可选为:'line' | 'shadow',
+        
+        },
  
     },
     legend: {
@@ -289,13 +289,13 @@ let sectionOption={
             data:  [],
             color:'#8A2BE2'
         },
-        {
-            name: '',
-            type: 'line',
-            // smooth: true,
-            data:  [],
-            color:'rgba(0,0,0,0)'
-        }
+        // {
+        //     name: '',
+        //     type: 'line',
+        //     // smooth: true,
+        //     data:  [],
+        //     color:'rgba(0,0,0,0)'
+        // }
     ]
 }
 
@@ -523,20 +523,20 @@ export default {
                     }
                     
                 });
-                res.result.list.forEach((item)=>{
-                    if(!item.costProportion){
-                      // console.log(item.costProportion)
-                       this.tabCost.huanbi.y.push('-') 
+                // res.result.list.forEach((item)=>{
+                //     if(!item.costProportion){
+                //       // console.log(item.costProportion)
+                //        this.tabCost.huanbi.y.push('-') 
                         
                         
-                    }else{
+                //     }else{
                       
-                       let huanbi=(item.costProportion*100).toFixed(2)+'%'
+                //        let huanbi=(item.costProportion*100).toFixed(2)+'%'
                         
-                        this.tabCost.huanbi.y.push(huanbi) 
+                //         this.tabCost.huanbi.y.push(huanbi) 
                        
-                    }
-                })
+                //     }
+                // })
                 this.sectionOption.legend.data=['今天','昨天'];
                 this.sectionOption.xAxis[0].data=this.tabCost.today.x;
                 this.sectionOption.series[0].data=this.tabCost.today.y;