Explorar el Código

设备管理看板

zhangjingyuan hace 3 años
padre
commit
372bd314de

+ 1 - 3
src/views/system/jbdHome/board/component/equipment/zhuzhuangtu.vue

@@ -30,12 +30,10 @@ export default {
       //   width: 250,
       //   height: 300,
       // };
-      
       let ay =this.info.data;
-      console.log(ay,"1212")
       let yc;
       ay[0] > ay[1]?yc=ay[0]:yc=ay[1];
-      this.yAxisNum = ay / 6;
+      this.yAxisNum =parseInt(yc / 6) ;
       this.yAxisNum ==0? this.yAxisNum =1:'';
       var myChart = echarts.init(chartDom);
       var option;