mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
Merge branch 'developer' of https://bitbucket.org/equilibriumito/gabinete-digital into release/uats
This commit is contained in:
@@ -53,7 +53,6 @@ export class SearchPage implements OnInit {
|
|||||||
|
|
||||||
type : "Agenda" | "Correspondencia" | "AccoesPresidenciais" | "ArquivoDespachoElect" | "AccoesPresidenciais & ArquivoDespachoElect" = "Agenda";
|
type : "Agenda" | "Correspondencia" | "AccoesPresidenciais" | "ArquivoDespachoElect" | "AccoesPresidenciais & ArquivoDespachoElect" = "Agenda";
|
||||||
select: boolean = false;
|
select: boolean = false;
|
||||||
findOnly = []
|
|
||||||
|
|
||||||
showSearchInput = false
|
showSearchInput = false
|
||||||
|
|
||||||
@@ -70,7 +69,6 @@ export class SearchPage implements OnInit {
|
|||||||
|
|
||||||
this.type = this.navParams.get('type');
|
this.type = this.navParams.get('type');
|
||||||
this.select = this.navParams.get('select');
|
this.select = this.navParams.get('select');
|
||||||
this.findOnly = this.navParams.get('findOnly')
|
|
||||||
|
|
||||||
this.showSearchInput = this.navParams.get('showSearchInput');
|
this.showSearchInput = this.navParams.get('showSearchInput');
|
||||||
|
|
||||||
@@ -201,13 +199,6 @@ export class SearchPage implements OnInit {
|
|||||||
} else {
|
} else {
|
||||||
this.showSearchDocuments = this.sortArrayISODate(this.searchDocuments)
|
this.showSearchDocuments = this.sortArrayISODate(this.searchDocuments)
|
||||||
}
|
}
|
||||||
|
|
||||||
if(this.findOnly){
|
|
||||||
if(this.findOnly.length >= 1) {
|
|
||||||
this.showSearchDocuments = this.showSearchDocuments.filter((e)=> this.findOnly.includes(e.ApplicationType))
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sortArrayISODate(myArray: any) {
|
sortArrayISODate(myArray: any) {
|
||||||
|
|||||||
Reference in New Issue
Block a user