spring
2025-02-13 98bd1f422096ef352af50e17d5fdaa681b98d4d8
src/components/view/b4-site-hours-statistics.vue
@@ -293,11 +293,11 @@
    },
    changeTime(){
      const year = new Date(this.month).getFullYear();
      const month = new Date(this.month).getMonth();
      const month = new Date(this.month).getMonth()+1;
      const day = new Date(year, month + 1, 0).getDate(); //
      // 设置起始日期和结束日期
      this.startTime = `${year}-${month + 1}-01`
      this.endTime = `${year}-${month + 1}-${day}` // 月末
      this.startTime = `${year}-${month>9?'0'+month:month}-01`
      this.endTime = `${year}-${month>9?'0'+month:month}-${day}` // 月末
      this.siteList.forEach(item=>{
        item.page.current = 1
      })