|
@@ -254,8 +254,13 @@
|
|
|
if (monthN2 >= 1 && monthN2 <= 9) {
|
|
|
monthN2 = "0" + monthN2;
|
|
|
}
|
|
|
- this.carImg3span1 =parseInt( this.personInfo.curMonthKwh)
|
|
|
- this.carImg3span3 =parseInt(this.personInfo.prevMonthKwh)
|
|
|
+ if(this.personInfo.curMonthKwh){
|
|
|
+ this.carImg3span1 =parseInt( this.personInfo.curMonthKwh)
|
|
|
+ }
|
|
|
+ if(this.personInfo.prevMonthKwh){
|
|
|
+ this.carImg3span3 =parseInt( this.personInfo.prevMonthKwh)
|
|
|
+ }
|
|
|
+ //this.carImg3span3 =parseInt(this.personInfo.prevMonthKwh)
|
|
|
this.startDate= year2 + '-' + monthN2 + '-01'
|
|
|
|
|
|
},
|