|
|
@@ -47,23 +47,24 @@
|
|
|
<div class="override-table">
|
|
|
<!-- TABLA -->
|
|
|
<table mat-table [dataSource]="dataSource" matSort class="animated fadeIn" *ngIf="!isLoading">
|
|
|
- <ng-container matColumnDef="NUMERO_FALLA">
|
|
|
+ <ng-container matColumnDef="FALL_NUFA">
|
|
|
<th mat-header-cell *matHeaderCellDef mat-sort-header>Código de Falla</th>
|
|
|
<td mat-cell *matCellDef="let element">{{ element.FALL_NUFA }}</td>
|
|
|
</ng-container>
|
|
|
- <ng-container matColumnDef="CODIGO_EQUIPAMIENTO">
|
|
|
+ <!-- <ng-container matColumnDef="FALL_COEQ">
|
|
|
<th mat-header-cell *matHeaderCellDef mat-sort-header>Equipamiento</th>
|
|
|
<td mat-cell *matCellDef="let element">{{ element.FALL_COEQ }}</td>
|
|
|
- </ng-container>
|
|
|
- <ng-container matColumnDef="FALLA">
|
|
|
+ </ng-container> -->
|
|
|
+ <ng-container matColumnDef="LIFA_NOFA">
|
|
|
<th mat-header-cell *matHeaderCellDef mat-sort-header>Falla</th>
|
|
|
<td mat-cell *matCellDef="let element">{{ element.LIFA_NOFA }}</td>
|
|
|
</ng-container>
|
|
|
- <ng-container matColumnDef="CAUSA">
|
|
|
+ <!--
|
|
|
+ <ng-container matColumnDef="FALL_CAUS">
|
|
|
<th mat-header-cell *matHeaderCellDef mat-sort-header>Causa</th>
|
|
|
<td mat-cell *matCellDef="let element">{{ element.FALL_CAUS }}</td>
|
|
|
</ng-container>
|
|
|
- <ng-container matColumnDef="CLASIFICACION">
|
|
|
+ <ng-container matColumnDef="FALL_CLAS">
|
|
|
<th mat-header-cell *matHeaderCellDef mat-sort-header>Clásificación</th>
|
|
|
<td mat-cell *matCellDef="let element">
|
|
|
<b *ngIf="element.FALL_CLAS === 'Bajo'" class="green_primary_font">{{ element.FALL_CLAS }}</b>
|
|
|
@@ -72,23 +73,19 @@
|
|
|
<b *ngIf="element.FALL_CLAS === 'Crítico'" class="red_dark_font">{{ element.FALL_CLAS }}</b>
|
|
|
</td>
|
|
|
</ng-container>
|
|
|
- <ng-container matColumnDef="FECHA_EMISION">
|
|
|
+ <ng-container matColumnDef="FALL_FEFA">
|
|
|
<th mat-header-cell *matHeaderCellDef mat-sort-header>Fecha de Emisión</th>
|
|
|
<td mat-cell *matCellDef="let element">{{ resourcesService.formatOnlyDate(element.FALL_FEFA) }}</td>
|
|
|
</ng-container>
|
|
|
- <!-- <ng-container matColumnDef="LIMITE_VALOR">
|
|
|
- <th mat-header-cell *matHeaderCellDef mat-sort-header>Valor Límite Permitido</th>
|
|
|
- <td mat-cell *matCellDef="let element">{{ element.FALL_LIVA }} {{ element.LIME_ACRO }}</td>
|
|
|
- </ng-container> -->
|
|
|
- <ng-container matColumnDef="USUARIO_REGISTRA">
|
|
|
+ <ng-container matColumnDef="FALL_USRE">
|
|
|
<th mat-header-cell *matHeaderCellDef mat-sort-header>Usuario Modificación</th>
|
|
|
<td mat-cell *matCellDef="let element">{{ resourcesService.selectUser(element.FALL_USRE, element.FALL_USMO) }}</td>
|
|
|
</ng-container>
|
|
|
- <ng-container matColumnDef="FECHA_REGISTRA">
|
|
|
+ <ng-container matColumnDef="FALL_FERE">
|
|
|
<th mat-header-cell *matHeaderCellDef mat-sort-header>Fecha Modificación</th>
|
|
|
<td mat-cell *matCellDef="let element">{{ resourcesService.formatDate(element.FALL_FERE, element.FALL_FEMO) }}</td>
|
|
|
</ng-container>
|
|
|
- <ng-container matColumnDef="ESTADO">
|
|
|
+ <ng-container matColumnDef="FALL_ESTA">
|
|
|
<th mat-header-cell *matHeaderCellDef mat-sort-header>Estado</th>
|
|
|
<td mat-cell *matCellDef="let element">
|
|
|
<mat-chip-listbox>
|
|
|
@@ -98,20 +95,9 @@
|
|
|
</td>
|
|
|
</ng-container>
|
|
|
|
|
|
- <ng-container matColumnDef="ACCIONES">
|
|
|
+ <ng-container matColumnDef="ACTIONS">
|
|
|
<th mat-header-cell *matHeaderCellDef>Acciones</th>
|
|
|
<td mat-cell *matCellDef="let element">
|
|
|
- <!-- <button mat-mini-fab color="accent" *ngIf="btnSmall" [disabled]="element.SINT_ESTA == 'Inactivo' || isLoadingForm" [matMenuTriggerFor]="menu" #menuTrigger class="override-no-shadow">
|
|
|
- <mat-icon>settings</mat-icon>
|
|
|
- </button>
|
|
|
- <mat-menu #menu="matMenu">
|
|
|
- <button mat-menu-item (click)="openDialog('UPD', element)">
|
|
|
- <mat-icon>edit</mat-icon> Editar Falla
|
|
|
- </button>
|
|
|
- <button mat-menu-item (click)="openDialog('DEL', element)">
|
|
|
- <mat-icon>delete</mat-icon> Eliminar Falla
|
|
|
- </button>
|
|
|
- </mat-menu> -->
|
|
|
<button
|
|
|
mat-mini-fab
|
|
|
color="primary"
|
|
|
@@ -121,30 +107,8 @@
|
|
|
(click)="viewChart(element)">
|
|
|
<mat-icon>bar_chart</mat-icon>
|
|
|
</button>
|
|
|
-
|
|
|
- <div *ngIf="!btnSmall">
|
|
|
-
|
|
|
- <!-- <button
|
|
|
- mat-mini-fab
|
|
|
- color="primary"
|
|
|
- class="override-no-shadow mr-4"
|
|
|
- [disabled]="element.FALL_ESTA == 'Inactivo' || isLoadingForm"
|
|
|
- matTooltip="Editar Falla"
|
|
|
- (click)="openDialog('UPD', element)">
|
|
|
- <mat-icon>edit</mat-icon>
|
|
|
- </button>
|
|
|
- <button
|
|
|
- mat-mini-fab
|
|
|
- color="warn"
|
|
|
- class="override-no-shadow mr-4"
|
|
|
- [disabled]="element.FALL_ESTA == 'Inactivo' || isLoadingForm"
|
|
|
- matTooltip="Eliminar Falla"
|
|
|
- (click)="openDialog('DEL', element)">
|
|
|
- <mat-icon>delete</mat-icon>
|
|
|
- </button> -->
|
|
|
- </div>
|
|
|
</td>
|
|
|
- </ng-container>
|
|
|
+ </ng-container> -->
|
|
|
|
|
|
<tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
|
|
|
<tr mat-row *matRowDef="let row; columns: displayedColumns"></tr>
|