| 12
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
 100
 101
 102
 103
 104
 105
 106
 107
 108
 109
 110
 111
 112
 113
 114
 115
 
 | <mat-card> 
<div fxLayout="row wrap">
  <!-- column -->
  <div fxFlex.gt-sm="25" fxFlex.gt-xs="100" fxFlex="100">
    <mat-card>
      <div class="box p-20 bg-info text-center" (click)= "btnCategoryClick('')">
        <h1 class="font-light text-white m-0">{{totalCount}}</h1>
        <h6 class="text-white m-0">Total Configs</h6>
      </div>
    </mat-card>
  </div>
  <!-- column -->
  <!-- column -->
  <div fxFlex.gt-sm="25" fxFlex.gt-xs="100" fxFlex="100">
    <mat-card>
      <div class="box p-20 bg-success text-center" (click)= "btnCategoryClick('OK')">
        <h1 class="font-light text-white m-0">{{OK}}</h1>
        <h6 class="text-white m-0">Status : OK</h6>
      </div>
    </mat-card>
  </div>
  <!-- column -->
  <!-- column -->
  <div fxFlex.gt-sm="25" fxFlex.gt-xs="100" fxFlex="100">
    <mat-card>
      <div class="box p-20 bg-danger text-center" (click)= "btnCategoryClick('KO')">
        <h1 class="font-light text-white m-0">{{KO}}</h1>
        <h6 class="text-white m-0">Status : KO</h6>
      </div>
    </mat-card>
  </div>
  <!-- column -->
  <!-- column -->
  <div fxFlex.gt-sm="25" fxFlex.gt-xs="100" fxFlex="100">
    <mat-card>
      <div class="box p-20 bg-warning text-center" (click)= "btnCategoryClick('Solved')">
        <h1 class="font-light text-white m-0">{{Solved}}</h1>
        <h6 class="text-white m-0">Status : Solved</h6>
      </div>
    </mat-card>
  </div>
  <!-- column -->
</div>
 
    <mat-card-content *ngIf='dataSource.data.length > 0'>
    <mat-card-title>Voici l'ensemble des problèmes de configuration identifiés</mat-card-title>
 
	    <mat-form-field class="filter">
    	    <input type="text" placeholder="Filtrez l'information de votre choix" (keyup)="applyFilteringDataTable($event.target.value)" matInput autocomplete="off">
        </mat-form-field>
 
        <mat-table matTableExporter [dataSource]="dataSource" matSort class="mat-elevation-z8" #exporter="matTableExporter" >  
 
            <ng-container matColumnDef="namespacename">
            <mat-header-cell *matHeaderCellDef mat-sort-header>Namespace</mat-header-cell>
            <mat-cell *matCellDef="let element"> {{element.namespacename}} </mat-cell>
            </ng-container>
 
            <ng-container matColumnDef="servicename">
            <mat-header-cell *matHeaderCellDef mat-sort-header>Composant</mat-header-cell>
            <mat-cell *matCellDef="let element"> {{element.servicename}} </mat-cell>
            </ng-container>    
 
            <ng-container matColumnDef="typeverification">
            <mat-header-cell *matHeaderCellDef mat-sort-header>Type de Vérification</mat-header-cell>
            <mat-cell *matCellDef="let element"> {{element.typeverification}} </mat-cell>
            </ng-container>
 
            <ng-container matColumnDef="status">
            <mat-header-cell *matHeaderCellDef mat-sort-header>Status</mat-header-cell>
            <mat-cell *matCellDef="let element"> {{element.status}} </mat-cell>
            </ng-container>  
 
            <ng-container matColumnDef="details">
            <mat-header-cell *matHeaderCellDef mat-sort-header>Détails</mat-header-cell>
            <mat-cell *matCellDef="let element"> {{element.details}} </mat-cell>
            </ng-container>
 
            <ng-container matColumnDef="reportdate">
            <mat-header-cell *matHeaderCellDef mat-sort-header>Date du signalement</mat-header-cell>
            <mat-cell *matCellDef="let element"> {{element.reportdate}} </mat-cell>
            </ng-container>
 
            <ng-container matColumnDef="action">
                <mat-header-cell *matHeaderCellDef mat-sort-header>Confirmer la correction</mat-header-cell>
                    <mat-cell *matCellDef="let element"> 
                    <a (click)="openDialog('Update',element)" class="m-r-10 cursor-pointer"><i class="fa fa-pencil"></i></a>  
                        <button mat-icon-button color="warn" (click)='putComponentsConfig(element)' aria-label="Confirmer la correction">
                            <mat-icon>verified</mat-icon>
                        </button>
                    </mat-cell>
            </ng-container>
 
            <mat-header-row *matHeaderRowDef="displayedColumns"></mat-header-row>
            <mat-row *matRowDef="let row; columns: displayedColumns;"></mat-row>
 
        </mat-table>
 
        <div fxLayout="row">
	        <div fxFlex.gt-sm="100%" >
                <mat-card>
                    <mat-card-content>
                        <mat-paginator [pageSize]="10" [pageSizeOptions]="[5, 10, 15, 100]" showFirstLastButtons></mat-paginator>     
                        <div class="button-row align-center">
                            <button mat-raised-button color="accent" matTooltip="Excel, format propriétaire !" matTooltipPosition="above" (click)="exporter.exportTable('xlsx', {fileName:'Liste de l\'ensemble des namespaces', sheet: 'Services', Props: {Author: 'DevOps Team'}})">Excel</button>
                            <button mat-raised-button color="accent" matTooltip="CSV, le format libre des tableurs !" matTooltipPosition="above" (click)="exporter.exportTable('csv', {fileName:'Liste de l\'ensemble des namespaces'})">Csv</button>
                            <button mat-raised-button color="accent" matTooltip="Json, le format structuré de données !" matTooltipPosition="above" (click)="exporter.exportTable('json', {fileName:'Liste de l\'ensemble des namespaces'})">Json</button>
                            <button mat-raised-button color="accent" matTooltip="Txt, un export basique adapté à Teams !" matTooltipPosition="above" (click)="exporter.exportTable('txt', {fileName:'Liste de l\'ensemble des namespaces'})">Txt</button>
                        </div>
                    </mat-card-content>
                </mat-card>
            </div>
        </div>
    </mat-card-content>
</mat-card> | 
Partager