mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 12:37:53 +00:00
improve
This commit is contained in:
@@ -31,7 +31,6 @@ import { MessageService } from 'src/app/services/chat/message.service';
|
||||
import { File } from '@awesome-cordova-plugins/file/ngx';
|
||||
import { FileOpener } from '@awesome-cordova-plugins/file-opener/ngx';
|
||||
import { SessionStore } from 'src/app/store/session.service';
|
||||
import { HttpErrorResponse } from '@angular/common/http';
|
||||
|
||||
@Component({
|
||||
selector: 'app-group-messages',
|
||||
|
||||
@@ -174,6 +174,7 @@ export class DespachoPrPage implements OnInit {
|
||||
this.sqliteservice.updateProcess(res);
|
||||
}
|
||||
}
|
||||
|
||||
updateProcessInterveners(users) {
|
||||
if (this.platform.is('desktop') || this.platform.is('mobileweb')) {
|
||||
} else {
|
||||
|
||||
@@ -29,23 +29,21 @@
|
||||
</ion-refresher>
|
||||
<ion-progress-bar type="indeterminate" *ngIf="skeletonLoader"></ion-progress-bar>
|
||||
|
||||
<div class="width-100" *ngIf="diplomasList.length >= 1">
|
||||
<div class="width-100" *ngIf="deplomasStore.diplomasParaAssinarList">
|
||||
|
||||
<div *ngIf="diplomasList">
|
||||
<div *ngIf="deplomasStore.diplomasParaAssinarList">
|
||||
<ion-list >
|
||||
<!-- *ngFor = "let task of parecerList; let i = index"
|
||||
(click)="viewExpedientDetail(task.SerialNumber)" -->
|
||||
|
||||
<div
|
||||
class="expediente ion-no-padding ion-no-margin cursor-pointer"
|
||||
*ngFor = "let task of diplomasList"
|
||||
(click)="goToDiploma(task.SerialNumber)"
|
||||
*ngFor = "let task of deplomasStore.diplomasParaAssinarList"
|
||||
(click)="goToDiploma(task.SerialNumber || task.serialNumber)"
|
||||
>
|
||||
<!-- (click)="viewExpedientDetail(task.SerialNumber)" -->
|
||||
<!-- [routerLink]="['/home/gabinete-digital/expediente',task.SerialNumber]" -->
|
||||
|
||||
<div class="item width-100">
|
||||
<div class="exp-top-detail">
|
||||
<div class="subject">
|
||||
<ion-label>{{ task.Folio }}</ion-label>
|
||||
<ion-label>{{ task.Folio || task.workflowInstanceDataFields.Subject }}</ion-label>
|
||||
</div>
|
||||
<div class="exp-icon">
|
||||
<ion-icon *ngIf="ThemeService.currentTheme == 'default' "src="assets/images/icons-expediente-attachment.svg"></ion-icon>
|
||||
@@ -74,13 +72,13 @@
|
||||
|
||||
<!-- Empty -->
|
||||
<div
|
||||
*ngIf="!skeletonLoader && diplomasList.length == 0"
|
||||
*ngIf="!skeletonLoader && deplomasStore.diplomasParaAssinarList.length == 0"
|
||||
class="empty-list d-flex height-100 align-center justify-content-center"
|
||||
>
|
||||
<span>Lista vazia</span>
|
||||
</div>
|
||||
|
||||
<div *ngIf="skeletonLoader && diplomasList.length == 0">
|
||||
<div *ngIf="skeletonLoader && deplomasStore.diplomasParaAssinarList.length == 0">
|
||||
|
||||
<ion-list>
|
||||
<ion-item>
|
||||
|
||||
@@ -7,6 +7,7 @@ import { AlertService } from 'src/app/services/alert.service';
|
||||
import { CustomTaskPipe } from 'src/app/pipes/custom-task.pipe';
|
||||
import { SortService } from 'src/app/services/functions/sort.service';
|
||||
import { ThemeService } from 'src/app/services/theme.service'
|
||||
import { DeplomasStore } from 'src/app/store/deplomas.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-diplomas-assinar',
|
||||
@@ -25,6 +26,7 @@ export class DiplomasAssinarPage implements OnInit {
|
||||
|
||||
customTaskPipe = new CustomTaskPipe()
|
||||
skeletonLoader = true
|
||||
deplomasStore = DeplomasStore
|
||||
|
||||
constructor(
|
||||
private processes:ProcessesService,
|
||||
@@ -76,18 +78,15 @@ export class DiplomasAssinarPage implements OnInit {
|
||||
this.skeletonLoader = true
|
||||
|
||||
let diplomas = await this.processes.GetTasksList("Despacho do Presidente da República", false).toPromise();
|
||||
this.diplomasList = [];
|
||||
|
||||
// let diplomasAssinar = diplomas.filter(data => data.activityInstanceName == "Assinar Diploma");
|
||||
|
||||
let diplomasAssinar = diplomas.filter(data => data.activityInstanceName == "Assinar Diploma");
|
||||
|
||||
diplomas.forEach(element => {
|
||||
let task: customTask = this.customTaskPipe.transform(element)
|
||||
this.diplomasList.push(task);
|
||||
});
|
||||
|
||||
this.deplomasStore.resetDiplomasParaAssinar(diplomasAssinar)
|
||||
|
||||
this.diplomasList = this.sortService.sortDate(this.diplomasList, 'CreateDate')
|
||||
|
||||
|
||||
this.skeletonLoader = false
|
||||
this.showLoader = false;
|
||||
|
||||
|
||||
@@ -242,9 +242,6 @@ export class SearchPage implements OnInit {
|
||||
*/
|
||||
basicSearch() {
|
||||
|
||||
|
||||
alert('shear')
|
||||
|
||||
if(this.type == "Agenda" ){
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user