| | |
| | | }, |
| | | 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 |
| | | }) |