cyy пре 3 година
родитељ
комит
8f67d86572

+ 1 - 1
src/views/demo/yangPin/yangPinShuJu/EntrustNumber.vue

@@ -82,7 +82,7 @@ export default {
       this.monthA = ''
       this.yearA = this.NowTime1.split('-')[0]
       this.monthA = this.NowTime1.split('-')[1]
-      this.monthB = Number(this.NowTime1.split('-')[1])>=10? this.monthA+"":"0"+this.monthA
+      this.monthB = Number(this.NowTime1.split('-')[1])>=10? Number(this.NowTime1.split('-')[1])+"":"0"+Number(this.NowTime1.split('-')[1])
       this.NowTime = this.yearA + '-' + this.monthB
       // console.log('页面第一次进来显示时间',date.year,date.month)
       //进来获取当前时间 之后获取当前月份天数 传给

+ 1 - 1
src/views/demo/yangPin/yangPinShuJu/MonthlyNumber.vue

@@ -61,7 +61,7 @@
       this.yearA = ''
       this.monthA = ''
       this.yearA = this.NowTime1.split('-')[0]
-      this.monthA = Number(this.NowTime1.split('-')[1])>=10? this.monthA+"":"0"+this.monthA
+      this.monthA = Number(this.NowTime1.split('-')[1])>=10? Number(this.NowTime1.split('-')[1])+"":"0"+Number(this.NowTime1.split('-')[1])
       this.NowTime = this.yearA + '-' + this.monthA
       // console.log('页面第一次进来显示时间',date.year,date.month)
       //进来获取当前时间 之后获取当前月份天数 传给

+ 1 - 1
src/views/demo/yangPin/yangPinShuJu/MonthlyStatus.vue

@@ -58,7 +58,7 @@ export default {
       this.yearA = ''
       this.monthA = ''
       this.yearA = this.NowTime1.split('-')[0]
-      this.monthA = Number(this.NowTime1.split('-')[1])>=10? this.monthA+"":"0"+this.monthA
+      this.monthA = Number(this.NowTime1.split('-')[1])>=10? Number(this.NowTime1.split('-')[1])+"":"0"+Number(this.NowTime1.split('-')[1])
       this.NowTime = this.yearA + '-' + this.monthA
       // console.log('页面第一次进来显示时间',date.year,date.month)
       //进来获取当前时间 之后获取当前月份天数 传给