Fixe search

This commit is contained in:
Peter Maquiran
2021-04-13 10:35:43 +01:00
parent 31181b37c3
commit a8a96c5a04
2 changed files with 6 additions and 5 deletions
-1
View File
@@ -614,7 +614,6 @@ export class AgendaPage implements OnInit {
this.eventSource=[]; this.eventSource=[];
this.eventsListPessoal= []; this.eventsListPessoal= [];
this.eventsListPessoal = response.filter(data => data.CalendarName == "Pessoal"); this.eventsListPessoal = response.filter(data => data.CalendarName == "Pessoal");
// loop // loop
this.eventsListPessoal.forEach((element, eventIndex) => { this.eventsListPessoal.forEach((element, eventIndex) => {
+5 -3
View File
@@ -205,9 +205,12 @@ export class SearchPage implements OnInit {
this.showLoader = true; this.showLoader = true;
this.searchCategories = [];
this.searchDocuments = [];
this.showSearchDocuments = [];
this.search.basicSearch(this.searchSubject, this.searchDocumentDate, this.searchSender this.search.basicSearch(this.searchSubject, this.searchDocumentDate, this.searchSender
,this.searchOrganicEntiry, this.searchDocTypeId, '8').subscribe(res=>{ ,this.searchOrganicEntiry, this.searchDocTypeId, '8').subscribe(res=>{
console.log(res);
res.Categories.forEach( e => { res.Categories.forEach( e => {
e['Active'] = false; e['Active'] = false;
@@ -234,14 +237,12 @@ export class SearchPage implements OnInit {
this.search.basicSearch(this.searchSubject, this.searchDocumentDate, this.searchSender this.search.basicSearch(this.searchSubject, this.searchDocumentDate, this.searchSender
,this.searchOrganicEntiry, this.searchDocTypeId, '361').subscribe(res=>{ ,this.searchOrganicEntiry, this.searchDocTypeId, '361').subscribe(res=>{
console.log(res);
res.Categories.forEach( e => { res.Categories.forEach( e => {
e['Active'] = false; e['Active'] = false;
this.searchCategories.push(e) this.searchCategories.push(e)
}); });
// bind respose
this.sortArrayISODate(res.Documents).forEach(e => { this.sortArrayISODate(res.Documents).forEach(e => {
this.searchDocuments.push(e) this.searchDocuments.push(e)
@@ -259,6 +260,7 @@ export class SearchPage implements OnInit {
this.showLoader = false; this.showLoader = false;
this.loadWordCloud(); this.loadWordCloud();
}); });
} else if (window.location.pathname == '/home/publications'){ } else if (window.location.pathname == '/home/publications'){
this.showLoader = true; this.showLoader = true;