mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 21:06:06 +00:00
performance
This commit is contained in:
@@ -55,7 +55,7 @@
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<button title="Atualizar" *ngIf="hideRefreshBtn && TaskService.loadCount" class="btn-no-color btn-refresh" (click)="doRefresh($event)">
|
||||
<button title="Atualizar" *ngIf="hideRefreshBtn && TaskService.loadCount" class="btn-no-color btn-refresh" (click)="doRefreshAside($event)">
|
||||
<ion-icon class="title-icon font-awesome" name="reload-circle"></ion-icon>
|
||||
</button>
|
||||
<div *ngIf="!hideRefreshBtn" class="title-icons">
|
||||
@@ -260,7 +260,7 @@
|
||||
<!-- This is the box view -->
|
||||
<div *ngSwitchCase="'boxview'" class="aside d-flex flex-wrap width-100 height-100">
|
||||
<div *ngIf="TaskService.loadCount" class="center-box">
|
||||
|
||||
|
||||
<!-- List -->
|
||||
<div *ngIf="hideInMobile" (click)="openAllProcessesPage()" [class.active]="selectedElement == 'allProcessesTag'" class="box-hover exp-card d-flex flex-column" >
|
||||
<div class="d-flex justify-center">
|
||||
@@ -273,12 +273,11 @@
|
||||
<span class="new-task-count" *ngIf="TaskService.new == 1">{{ TaskService.new }} correspondência novas</span>
|
||||
</p>
|
||||
<p class="text-center exp-card-content" > {{ AllProcess.length }}
|
||||
<span class="title1" *ngIf="AllProcess.length == 0">Documento</span>
|
||||
<span class="title1" *ngIf="AllProcess.length == 1">Documento</span>
|
||||
<span class="title1" *ngIf="AllProcess.length > 1">Documentos</span>
|
||||
<span class="title1" *ngIf="AllProcess.length == 0">correspondência</span>
|
||||
<span class="title1" *ngIf="AllProcess.length == 1">correspondência</span>
|
||||
<span class="title1" *ngIf="AllProcess.length > 1">correspondências</span>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<!-- List -->
|
||||
<div *ngIf="p.userPermission([p.permissionList.Gabinete.md_tasks, p.permissionList.Gabinete.pr_tasks])" (click)="openDespachosPrPage(); selectedElement='showDespachosPr'" [class.active]="selectedElement == 'showDespachosPr'" class="box-hover exp-card-long width-100 d-flex flex-column justify-center">
|
||||
<div class="center-div">
|
||||
@@ -301,9 +300,9 @@
|
||||
<span class="new-task-count" *ngIf="TaskService.despachoprstore.newList.length ==1">{{ TaskService.despachoprstore.newList.length}} correspondência nova </span>
|
||||
</p>
|
||||
<p class="text-center exp-card-content"> {{ TaskService.despachoprstore.count }}
|
||||
<span class="title1" *ngIf="TaskService.despachoprstore.count == 0">Documento</span>
|
||||
<span class="title1" *ngIf="TaskService.despachoprstore.count == 1">Documento</span>
|
||||
<span class="title1" *ngIf="TaskService.despachoprstore.count > 1">Documentos</span>
|
||||
<span class="title1" *ngIf="TaskService.despachoprstore.count == 0">correspondência</span>
|
||||
<span class="title1" *ngIf="TaskService.despachoprstore.count == 1">correspondência</span>
|
||||
<span class="title1" *ngIf="TaskService.despachoprstore.count > 1">correspondências</span>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -326,9 +325,9 @@
|
||||
<span class="new-task-count" *ngIf="TaskService.deplomasStore.diplomasAssinadoListNewCount.length ==1">{{ TaskService.deplomasStore.diplomasAssinadoListNewCount.length}} correspondência nova</span>
|
||||
</p>
|
||||
<p class="text-center exp-card-content"> {{ TaskService.deplomasStore.countDiplomasAssinadoListCount }}
|
||||
<span class="title1" *ngIf="TaskService.deplomasStore.countDiplomasAssinadoListCount == 0">Documento</span>
|
||||
<span class="title1" *ngIf="TaskService.deplomasStore.countDiplomasAssinadoListCount == 1">Documento</span>
|
||||
<span class="title1" *ngIf="TaskService.deplomasStore.countDiplomasAssinadoListCount > 1">Documentos</span>
|
||||
<span class="title1" *ngIf="TaskService.deplomasStore.countDiplomasAssinadoListCount == 0">correspondência</span>
|
||||
<span class="title1" *ngIf="TaskService.deplomasStore.countDiplomasAssinadoListCount == 1">correspondência</span>
|
||||
<span class="title1" *ngIf="TaskService.deplomasStore.countDiplomasAssinadoListCount > 1">correspondências</span>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -348,9 +347,9 @@
|
||||
</p>
|
||||
<p class="text-center exp-card-content">
|
||||
{{ TaskService.deplomasStore.diplomasParaAssinartCount }}
|
||||
<span class="title1" *ngIf="TaskService.deplomasStore.diplomasParaAssinartCount == 0">Documento</span>
|
||||
<span class="title1" *ngIf="TaskService.deplomasStore.diplomasParaAssinartCount == 1">Documento</span>
|
||||
<span class="title1" *ngIf="TaskService.deplomasStore.diplomasParaAssinartCount > 1">Documentos</span>
|
||||
<span class="title1" *ngIf="TaskService.deplomasStore.diplomasParaAssinartCount == 0">correspondência</span>
|
||||
<span class="title1" *ngIf="TaskService.deplomasStore.diplomasParaAssinartCount == 1">correspondência</span>
|
||||
<span class="title1" *ngIf="TaskService.deplomasStore.diplomasParaAssinartCount > 1">correspondências</span>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
@@ -369,9 +368,9 @@
|
||||
<!-- <p class="text-center exp-card-title " *ngIf="p.userPermission([p.permissionList.Gabinete.pr_tasks])">Diplomas por Assinar PR</p> -->
|
||||
<p class="text-center exp-card-content">
|
||||
{{ TaskService.deplomasStore.deplomasReviewCount }}
|
||||
<span class="title1" *ngIf="TaskService.deplomasStore.deplomasReviewCount == 0">Documento</span>
|
||||
<span class="title1" *ngIf="TaskService.deplomasStore.deplomasReviewCount == 1">Documento</span>
|
||||
<span class="title1" *ngIf="TaskService.deplomasStore.deplomasReviewCount > 1">Documentos</span>
|
||||
<span class="title1" *ngIf="TaskService.deplomasStore.deplomasReviewCount == 0">correspondência</span>
|
||||
<span class="title1" *ngIf="TaskService.deplomasStore.deplomasReviewCount == 1">correspondência</span>
|
||||
<span class="title1" *ngIf="TaskService.deplomasStore.deplomasReviewCount > 1">correspondências</span>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
@@ -391,9 +390,9 @@
|
||||
</p>
|
||||
<p class="text-center exp-card-content">
|
||||
{{ TaskService.deplomasStore.diplomasParaAssinartCount }}
|
||||
<span class="title1" *ngIf="TaskService.deplomasStore.diplomasParaAssinartCount == 0">Documento</span>
|
||||
<span class="title1" *ngIf="TaskService.deplomasStore.diplomasParaAssinartCount == 1">Documento</span>
|
||||
<span class="title1" *ngIf="TaskService.deplomasStore.diplomasParaAssinartCount > 1">Documentos</span>
|
||||
<span class="title1" *ngIf="TaskService.deplomasStore.diplomasParaAssinartCount == 0">correspondência</span>
|
||||
<span class="title1" *ngIf="TaskService.deplomasStore.diplomasParaAssinartCount == 1">correspondência</span>
|
||||
<span class="title1" *ngIf="TaskService.deplomasStore.diplomasParaAssinartCount > 1">correspondências</span>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
@@ -415,9 +414,9 @@
|
||||
</p>
|
||||
<p class="text-center exp-card-content">
|
||||
{{ TaskService.deplomasStore.DiplomaGerarList.length }}
|
||||
<span class="title1" *ngIf="TaskService.deplomasStore.DiplomaGerarList.length == 0">Documento</span>
|
||||
<span class="title1" *ngIf="TaskService.deplomasStore.DiplomaGerarList.length == 1">Documento</span>
|
||||
<span class="title1" *ngIf="TaskService.deplomasStore.DiplomaGerarList.length > 1">Documentos</span>
|
||||
<span class="title1" *ngIf="TaskService.deplomasStore.DiplomaGerarList.length == 0">correspondência</span>
|
||||
<span class="title1" *ngIf="TaskService.deplomasStore.DiplomaGerarList.length == 1">correspondência</span>
|
||||
<span class="title1" *ngIf="TaskService.deplomasStore.DiplomaGerarList.length > 1">correspondências</span>
|
||||
</p>
|
||||
|
||||
</div>
|
||||
@@ -433,14 +432,15 @@
|
||||
</p>
|
||||
<p class="text-center exp-card-content">
|
||||
{{TaskService.eventoaprovacaostore.countAll}}
|
||||
<span class="title1" *ngIf="TaskService.eventoaprovacaostore.countAll == 0">Documento</span>
|
||||
<span class="title1" *ngIf="TaskService.eventoaprovacaostore.countAll == 1">Documento</span>
|
||||
<span class="title1" *ngIf="TaskService.eventoaprovacaostore.countAll > 1">Documentos</span>
|
||||
<span class="title1" *ngIf="TaskService.eventoaprovacaostore.countAll == 0">correspondência</span>
|
||||
<span class="title1" *ngIf="TaskService.eventoaprovacaostore.countAll == 1">correspondência</span>
|
||||
<span class="title1" *ngIf="TaskService.eventoaprovacaostore.countAll > 1">correspondências</span>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<!-- List -->
|
||||
<div (click)="openExpedientListPage(); selectedElement='Correspondence'" [class.active]="selectedElement == 'Correspondence'" class="box-hover exp-card d-flex flex-column justify-center">
|
||||
{{ selectedElement }}
|
||||
<div (click)="openExpedientListPage(); selectedElement='Correspondence'" [class.active]="selectedElement == 'Correspondence' || selectedElement == 'Expediente Presidente'" class="box-hover exp-card d-flex flex-column justify-center">
|
||||
<div class="d-flex justify-center">
|
||||
<ion-icon *ngIf="ThemeService.currentTheme == 'default' " src="assets/images/icons-correspondencia.svg"></ion-icon>
|
||||
<ion-icon *ngIf="ThemeService.currentTheme == 'gov' && selectedElement != 'Correspondence'" src="assets/images/theme/gov/icons-correspondencia.svg"></ion-icon>
|
||||
@@ -456,9 +456,9 @@
|
||||
|
||||
<p class="text-center exp-card-content">
|
||||
{{TaskService.expedientegbstore.count}}
|
||||
<span class="title1" *ngIf="TaskService.expedientegbstore.count == 0">Documento</span>
|
||||
<span class="title1" *ngIf="TaskService.expedientegbstore.count == 1">Documento</span>
|
||||
<span class="title1" *ngIf="TaskService.expedientegbstore.count > 1">Documentos</span>
|
||||
<span class="title1" *ngIf="TaskService.expedientegbstore.count == 0">correspondência</span>
|
||||
<span class="title1" *ngIf="TaskService.expedientegbstore.count == 1">correspondência</span>
|
||||
<span class="title1" *ngIf="TaskService.expedientegbstore.count > 1">correspondências</span>
|
||||
</p>
|
||||
|
||||
</div>
|
||||
@@ -478,9 +478,9 @@
|
||||
</p>
|
||||
<p class="text-center exp-card-content">
|
||||
{{TaskService.despachoStore.count}}
|
||||
<span class="title1" *ngIf="TaskService.despachoStore.count == 0">Documento</span>
|
||||
<span class="title1" *ngIf="TaskService.despachoStore.count == 1">Documento</span>
|
||||
<span class="title1" *ngIf="TaskService.despachoStore.count > 1">Documentos</span>
|
||||
<span class="title1" *ngIf="TaskService.despachoStore.count == 0">correspondência</span>
|
||||
<span class="title1" *ngIf="TaskService.despachoStore.count == 1">correspondência</span>
|
||||
<span class="title1" *ngIf="TaskService.despachoStore.count > 1">correspondências</span>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
@@ -508,9 +508,9 @@
|
||||
</p>
|
||||
<p class="text-center exp-card-content">
|
||||
{{TaskService.pedidosstore.countparecer}}
|
||||
<span class="title1" *ngIf="TaskService.pedidosstore.countparecer == 0">Documento</span>
|
||||
<span class="title1" *ngIf="TaskService.pedidosstore.countparecer == 1">Documento</span>
|
||||
<span class="title1" *ngIf="TaskService.pedidosstore.countparecer > 1">Documentos</span>
|
||||
<span class="title1" *ngIf="TaskService.pedidosstore.countparecer == 0">correspondência</span>
|
||||
<span class="title1" *ngIf="TaskService.pedidosstore.countparecer == 1">correspondência</span>
|
||||
<span class="title1" *ngIf="TaskService.pedidosstore.countparecer > 1">correspondências</span>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
@@ -531,9 +531,9 @@
|
||||
</p>
|
||||
<p class="text-center exp-card-content">
|
||||
{{ TaskService.pedidosstore.countdeferimento}}
|
||||
<span class="title1" *ngIf="TaskService.pedidosstore.countdeferimento == 0">Documento</span>
|
||||
<span class="title1" *ngIf="TaskService.pedidosstore.countdeferimento == 1">Documento</span>
|
||||
<span class="title1" *ngIf="TaskService.pedidosstore.countdeferimento > 1">Documentos</span>
|
||||
<span class="title1" *ngIf="TaskService.pedidosstore.countdeferimento == 0">correspondência</span>
|
||||
<span class="title1" *ngIf="TaskService.pedidosstore.countdeferimento == 1">correspondência</span>
|
||||
<span class="title1" *ngIf="TaskService.pedidosstore.countdeferimento > 1">correspondências</span>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
@@ -559,9 +559,9 @@
|
||||
|
||||
<p class="text-center exp-card-content">
|
||||
<span class="number">{{TaskService.pendentesstore.count}} </span>
|
||||
<span class="title1" *ngIf="TaskService.pendentesstore.count == 0">Documento</span>
|
||||
<span class="title1" *ngIf="TaskService.pendentesstore.count == 1">Documento</span>
|
||||
<span class="title1" *ngIf="TaskService.pendentesstore.count > 1">Documentos</span>
|
||||
<span class="title1" *ngIf="TaskService.pendentesstore.count == 0">correspondência</span>
|
||||
<span class="title1" *ngIf="TaskService.pendentesstore.count == 1">correspondência</span>
|
||||
<span class="title1" *ngIf="TaskService.pendentesstore.count > 1">correspondências</span>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -665,21 +665,21 @@
|
||||
<!-- Aside right -->
|
||||
<div class="aside-content d-none flex-column height-100">
|
||||
|
||||
<app-empty-container [texto]="emptyTextDescription" [style.display]="showEmptyContainer ? 'flex' : 'none'" class="height-100 flex-column"></app-empty-container>
|
||||
<app-all-processes [profile]="profile" class=" height-100 flex-column" [style.display]="showAllProcesses ? 'flex' : 'none'" ></app-all-processes>
|
||||
<app-events-to-approve [profile]="'MDGPR'" [style.display]="showEventsToApprove ? 'flex' : 'none'" class=" height-100 flex-column"></app-events-to-approve>
|
||||
<app-empty-container [texto]="emptyTextDescription" *ngIf="showEmptyContainer" [style.display]="showEmptyContainer ? 'flex' : 'none'" class="height-100 flex-column"></app-empty-container>
|
||||
<app-all-processes [profile]="profile" class=" height-100 flex-column" *ngIf="showAllProcesses" [style.display]="showAllProcesses ? 'flex' : 'none'" ></app-all-processes>
|
||||
<app-events-to-approve [profile]="'MDGPR'" *ngIf="showEventsToApprove" [style.display]="showEventsToApprove ? 'flex' : 'none'" class=" height-100 flex-column"></app-events-to-approve>
|
||||
|
||||
<app-expedients [profile]="profile" class=" height-100 flex-column" [style.display]="showExpedients ? 'flex' : 'none'" ></app-expedients>
|
||||
<app-pedidos [profile]="profile" [segment]="segment" [serialNumber]="serialNumber" class=" height-100 flex-column" [style.display]="showPedidos ? 'flex' : 'none'"></app-pedidos>
|
||||
<app-despachos [profile]="profile" class="height-100 flex-column" [style.display]="showDespachos ? 'flex' : 'none'" ></app-despachos>
|
||||
<app-despachos-pr [profile]="profile" class=" height-100 flex-column" [style.display]="showDespachosPr ? 'flex' : 'none'" ></app-despachos-pr>
|
||||
<app-pendentes [profile]="profile" class=" height-100 flex-column" [style.display]="showPendentes ? 'flex' : 'none'" ></app-pendentes>
|
||||
<app-diplomas (openExpedientDetail)="openExpedientesPrPage($event)" [profile]="profile" [segment]="segment" class=" height-100 flex-column" [style.display]="showDiplomas ? 'flex' : 'none'"></app-diplomas>
|
||||
<app-diplomas-assinar class=" height-100 flex-column" [style.display]="showDiplomasAssinar ? 'flex' : 'none'"></app-diplomas-assinar>
|
||||
<app-expedientes-pr [profile]="profile" class=" height-100 flex-column" [style.display]="showExpedientesPr ? 'flex' : 'none'" ></app-expedientes-pr>
|
||||
<app-signed-diploma [profile]="profile" class=" height-100 flex-column" [style.display]="showSignedDiploma ? 'flex' : 'none'" ></app-signed-diploma>
|
||||
<app-expedients [profile]="profile" class=" height-100 flex-column" *ngIf="showExpedients" [style.display]="showExpedients ? 'flex' : 'none'" ></app-expedients>
|
||||
<app-pedidos [profile]="profile" [segment]="segment" [serialNumber]="serialNumber" class=" height-100 flex-column" *ngIf="showPedidos" [style.display]="showPedidos ? 'flex' : 'none'"></app-pedidos>
|
||||
<app-despachos [profile]="profile" class="height-100 flex-column" *ngIf="showDespachos" [style.display]="showDespachos ? 'flex' : 'none'" ></app-despachos>
|
||||
<app-despachos-pr [profile]="profile" class=" height-100 flex-column" *ngIf="showDespachosPr" [style.display]="showDespachosPr ? 'flex' : 'none'" ></app-despachos-pr>
|
||||
<app-pendentes [profile]="profile" class=" height-100 flex-column" *ngIf="showPendentes" [style.display]="showPendentes ? 'flex' : 'none'" ></app-pendentes>
|
||||
<app-diplomas (openExpedientDetail)="openExpedientesPrPage($event)" [profile]="profile" [segment]="segment" class=" height-100 flex-column" *ngIf="showDiplomas" [style.display]="showDiplomas ? 'flex' : 'none'"></app-diplomas>
|
||||
<app-diplomas-assinar class=" height-100 flex-column" *ngIf="showDiplomasAssinar" [style.display]="showDiplomasAssinar ? 'flex' : 'none'"></app-diplomas-assinar>
|
||||
<app-expedientes-pr [profile]="profile" class=" height-100 flex-column" *ngIf="showExpedientesPr" [style.display]="showExpedientesPr ? 'flex' : 'none'" ></app-expedientes-pr>
|
||||
<app-signed-diploma [profile]="profile" class=" height-100 flex-column" *ngIf="showSignedDiploma" [style.display]="showSignedDiploma ? 'flex' : 'none'" ></app-signed-diploma>
|
||||
|
||||
<app-diplomas-gerars [profile]="profile" class="height-100 flex-column" [style.display]="showDiplomasGerar ? 'flex' : 'none'"></app-diplomas-gerars>
|
||||
<app-diplomas-gerars [profile]="profile" class="height-100 flex-column" *ngIf="showDiplomasGerar" [style.display]="showDiplomasGerar ? 'flex' : 'none'"></app-diplomas-gerars>
|
||||
</div>
|
||||
</div>
|
||||
</ion-content>
|
||||
|
||||
Reference in New Issue
Block a user