Commit 705d9b1566055e935bf227b59f666d16dc120c5c

Authored by liuqimichale
1 parent 8b9d912e

停车场总数

src/components/chinaMap/index.vue
@@ -75,18 +75,17 @@ @@ -75,18 +75,17 @@
75 console.log(response); 75 console.log(response);
76 }) 76 })
77 77
78 - //this.parkParams.endVal = this.getParkingTotal  
79 this.mapChart= this.createPie(); 78 this.mapChart= this.createPie();
80 const _self=this; 79 const _self=this;
81 //var tmpCount=0; 80 //var tmpCount=0;
82 - setInterval(function(){  
83 - let tmpCount =Math.floor(Math.random()*3+1);;//1-3随机数  
84 -// _self.parkParams.startVal= _self.parkParams.endVal;  
85 -// _self.parkParams.endVal +=tmpCount;  
86 - //console.log(tmpCount);  
87 - _self.dayParams.startVal=_self.dayParams.endVal;  
88 - _self.dayParams.endVal +=tmpCount;  
89 - },10000); 81 +// setInterval(function(){
  82 +// let tmpCount =Math.floor(Math.random()*3+1);;//1-3随机数
  83 +// // _self.parkParams.startVal= _self.parkParams.endVal;
  84 +// // _self.parkParams.endVal +=tmpCount;
  85 +// //console.log(tmpCount);
  86 +// _self.dayParams.startVal=_self.dayParams.endVal;
  87 +// _self.dayParams.endVal +=tmpCount;
  88 +// },10000);
90 window.addEventListener('resize', function() { 89 window.addEventListener('resize', function() {
91 this.mapChart.resize() 90 this.mapChart.resize()
92 }.bind(this)); 91 }.bind(this));