mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 21:35:50 +00:00
Fixe search
This commit is contained in:
@@ -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) => {
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user