Skip to content

Commit

Permalink
BI - Se agrega los argumentos de tipo check
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabio-Ramirez committed Sep 18, 2024
1 parent 78374d8 commit 9d67c86
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions src/app/queries/componentes/query-execute.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,22 @@
<plex-button size="sm" type="success" (click)="descargar($event)" [validateForm]="formulario">
Descargar CSV
</plex-button>

</plex-title>
<form #formulario="ngForm">
<plex-wrapper>
<plex-select [(ngModel)]="selectConsulta" name="select" [data]="listaFiltro" [required]="false"
labelField="nombre" label="Seleccione consulta" (change)="elegirConsulta()" idField="_id">
</plex-select>
<ng-container *ngIf="selectConsulta">
<ng-container *ngFor="let argumento of selectConsulta.argumentos">
<plex-bool *ngIf="argumento.tipo === 'salida'" [(ngModel)]="argumento.check"
[label]="argumento.label?argumento.label:argumento.key" name={{argumento.key}}>
</plex-bool>
</ng-container>
</ng-container>
</plex-wrapper>
<ng-container *ngIf="selectConsulta">
<span *ngIf='selectConsulta.descripcion'><b>Descripción: </b> {{ selectConsulta.descripcion }}</span>
<span *ngIf="selectConsulta.descripcion"><b>Descripción: </b> {{ selectConsulta.descripcion }}</span>
<plex-title titulo="Argumentos"></plex-title>
<plex-wrapper>
<ng-container *ngFor="let argumento of selectConsulta.argumentos" [ngSwitch]="argumento.tipo">
Expand All @@ -35,13 +41,12 @@
[required]="argumento.required" (getData)="loadConceptosTurneables($event)">>
</plex-select>
<plex-select *ngSwitchCase="'select-static'"
[label]="argumento.label?argumento.label:argumento.key" grow="auto"
name="{{ argumento.key }}" [(ngModel)]="listaValores[argumento.key]"
[required]="argumento.required" [data]="argumento.items">
[label]="argumento.label?argumento.label:argumento.key" grow="auto"
name="{{ argumento.key }}" [(ngModel)]="listaValores[argumento.key]"
[required]="argumento.required" [data]="argumento.items">
</plex-select>
<plex-text *ngSwitchCase="'string'" [label]="argumento.key" grow="2"
name="{{ argumento.key }}" [(ngModel)]="listaValores[argumento.key]"
[required]="argumento.required">
<plex-text *ngSwitchCase="'string'" [label]="argumento.key" grow="2" name="{{ argumento.key }}"
[(ngModel)]="listaValores[argumento.key]" [required]="argumento.required">
</plex-text>
</ng-container>
</plex-wrapper>
Expand Down

0 comments on commit 9d67c86

Please sign in to comment.