|
|
|
@ -45,9 +45,6 @@ export class PeriodeEssaiComponent implements OnInit { |
|
|
|
|
else{ |
|
|
|
|
this.periodeEssais = this.periodeEssaisEnCours; |
|
|
|
|
} |
|
|
|
|
console.log(this.periodeEssais) |
|
|
|
|
console.log(this.periodeEssaisEnCours) |
|
|
|
|
console.log(this.periodeEssaisPassees) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
getCollaborateurs(): void { |
|
|
|
@ -77,6 +74,8 @@ export class PeriodeEssaiComponent implements OnInit { |
|
|
|
|
this.periodeEssaisPassees.push(pe); |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
this.periodeEssaisEnCours.sort((b, a) => new Date(b.plannedEndingDate).getTime() - new Date(a.plannedEndingDate).getTime()); |
|
|
|
|
this.periodeEssaisPassees.sort((a, b) => new Date(b.plannedEndingDate).getTime() - new Date(a.plannedEndingDate).getTime()); |
|
|
|
|
this.initPeriodeEssai(); |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|