Browse Source

2022.8.1 工时报告session.msg

ggooalice 2 years ago
parent
commit
8b6d46f229

+ 3 - 2
fhKeeper/formulahousekeeper/timesheet/src/views/workReport/daily.vue

@@ -3499,15 +3499,16 @@
                         
                         let monthdate = new Date(sessionStorage.msg)
                         this.curDate = (monthdate.getMonth() + 1) + '月' + monthdate.getDate() + '日'
-                        console.log('choseday',sessionStorage.msg,this.choseDay,monthdate.getDate());
+                        
                     }else{
                         if(e && sessionStorage.msg){
                         }else{
                             sessionStorage.msg = this.date + '-01'
                         }
-                        this.choseDay = day - 1
                         let monthdate = new Date(sessionStorage.msg)
+                        this.choseDay = monthdate.getDate() - 1
                         this.curDate = (monthdate.getMonth() + 1) + '月' + monthdate.getDate() + '日'
+                        console.log('choseday',sessionStorage.msg,this.choseDay,monthdate.getDate());
                     }
                 }else{
                     this.choseDay = parseInt(sessionStorage.msg.split('-')[2]) - 1