| | |
| | | let year = currentDate.getFullYear(); |
| | | let month = String(currentDate.getMonth() + 1).padStart(2, '0'); |
| | | let day = String(currentDate.getDate()).padStart(2, '0'); |
| | | let formattedDate = `${year}-${month}-${day} 00:00:00`; |
| | | this.entity.dateTime.push(formattedDate); |
| | | this.entity.dateTime.push(formattedDate); |
| | | this.$nextTick(() => { |
| | | this.refreshTable() |
| | | }) |
| | | let formattedDate1 = `${year}-${month}-${day} 00:00:00`; |
| | | let formattedDate2 = `${year}-${month}-${day} 23:59:59`; |
| | | this.entity.dateTime.push(formattedDate1); |
| | | this.entity.dateTime.push(formattedDate2); |
| | | }, |
| | | getPower(){ |
| | | let power = JSON.parse(sessionStorage.getItem('power')) |