瀏覽代碼

2022.7.8 工时报告日期bug

ggooalice 2 年之前
父節點
當前提交
ad94e35cc8
共有 1 個文件被更改,包括 12 次插入13 次删除
  1. 12 13
      fhKeeper/formulahousekeeper/timesheet/src/views/workReport/daily.vue

+ 12 - 13
fhKeeper/formulahousekeeper/timesheet/src/views/workReport/daily.vue

@@ -3427,7 +3427,6 @@
                     this.choseDay = day-1;
                 }
                 if(sessionStorage.from != 1){
-                    
                     let nowmonth = new Date().getMonth() + 1
                     let nowd = new Date().getFullYear() + '-' + (nowmonth < 10 ? '0' + nowmonth : nowmonth)
                     if(nowd == this.date){
@@ -3452,20 +3451,20 @@
                     this.curDate = sessionStorage.msg;
                     sessionStorage.from = 0;
                 } else {
-                    if (curMonthDay != null) {
-                        // this.curDate = curMonthDay;
-                        let d = new Date(sessionStorage.msg)
-                        this.curDate = (d.getMonth()+1)+'月'+d.getDate()+'日';
-                    } else {
-                        let d = new Date(this.date.replace(/-/g, "/")+'/01')
-                        this.curDate = (d.getMonth()+1)+'月'+d.getDate()+'日';
-                    }
+                    // if (curMonthDay != null) {
+                    //     // this.curDate = curMonthDay;
+                    //     let d = new Date(sessionStorage.msg)
+                    //     this.curDate = (d.getMonth()+1)+'月'+d.getDate()+'日';
+                    // } else {
+                    //     let d = new Date(this.date.replace(/-/g, "/")+'/01')
+                    //     this.curDate = (d.getMonth()+1)+'月'+d.getDate()+'日';
+                    // }
                 }
                 // this.curDate = this.curDate.split('月')[0] + '月' + (this.choseDay + 1) + '日'
-                if(!sessionStorage.msg){
-                    let msgday = this.choseDay + 1
-                    sessionStorage.msg = this.date + '-' + (msgday < 10 ? '0' + msgday : msgday)
-                }
+                // if(!sessionStorage.msg){
+                //     let msgday = this.choseDay + 1
+                //     sessionStorage.msg = this.date + '-' + (msgday < 10 ? '0' + msgday : msgday)
+                // }
                 
                 this.getReportFillStatus();
             },