| | |
| | | } |
| | | |
| | | ngOnInit() { |
| | | const day = Number(moment().format('DD')); |
| | | // const day = Number(moment().format('DD')); |
| | | const day = 31; |
| | | for(let index = 1;index <= day; index++) { |
| | | this.calendarDayCells[('0'+index).slice(-2)] = { |
| | | status: 'processing', |
| | |
| | | data: {} |
| | | } |
| | | } |
| | | const startTime = this.getPeriodDate(new Date(),TimeUnits.DAY,'start'); |
| | | const endTime = this.getPeriodDate(new Date(),TimeUnits.HOUR,'end'); |
| | | // const startTime = this.getPeriodDate(new Date(),TimeUnits.DAY,'start'); |
| | | // const endTime = this.getPeriodDate(new Date(),TimeUnits.HOUR,'end'); |
| | | const mo = moment().subtract(1,"months"); |
| | | const startTime = this.getPeriodDate(mo.toDate(),TimeUnits.DAY,'start'); |
| | | const endTime = this.getPeriodDate(mo.toDate(),TimeUnits.DAY,'end'); |
| | | this.http.get( |
| | | 'demo/get-dayaqis',{ |
| | | startTime: startTime, |
| | |
| | | ).subscribe( |
| | | (res: any[]) => { |
| | | if(!!res && res.length >0) { |
| | | debugger; |
| | | Object.keys(this.calendarDayCells).forEach( |
| | | (key) => { |
| | | const index = Number(key) -1; |