mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
Fix Anexar Documentos button
This commit is contained in:
+2
-1
@@ -434,7 +434,8 @@ export class ExpedienteDetailPage implements OnInit {
|
||||
componentProps: {
|
||||
type: 'AccoesPresidenciais & ArquivoDespachoElect',
|
||||
showSearchInput: true,
|
||||
select: true
|
||||
select: true,
|
||||
findOnly: [8]
|
||||
}
|
||||
});
|
||||
await modal.present();
|
||||
|
||||
@@ -53,6 +53,7 @@ export class SearchPage implements OnInit {
|
||||
|
||||
type : "Agenda" | "Correspondencia" | "AccoesPresidenciais" | "ArquivoDespachoElect" | "AccoesPresidenciais & ArquivoDespachoElect" = "Agenda";
|
||||
select: boolean = false;
|
||||
findOnly = []
|
||||
|
||||
showSearchInput = false
|
||||
|
||||
@@ -69,6 +70,7 @@ export class SearchPage implements OnInit {
|
||||
|
||||
this.type = this.navParams.get('type');
|
||||
this.select = this.navParams.get('select');
|
||||
this.findOnly = this.navParams.get('findOnly')
|
||||
|
||||
this.showSearchInput = this.navParams.get('showSearchInput');
|
||||
|
||||
@@ -199,6 +201,12 @@ export class SearchPage implements OnInit {
|
||||
} else {
|
||||
this.showSearchDocuments = this.sortArrayISODate(this.searchDocuments)
|
||||
}
|
||||
|
||||
|
||||
if(this.findOnly.length >= 1) {
|
||||
this.showSearchDocuments = this.showSearchDocuments.filter((e)=> this.findOnly.includes(e.ApplicationType))
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
sortArrayISODate(myArray: any) {
|
||||
|
||||
Reference in New Issue
Block a user