mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
Msg on search if doc not found added
This commit is contained in:
@@ -16,5 +16,8 @@
|
|||||||
"sound"
|
"sound"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"server": {
|
||||||
|
"url": "http://192.168.0.64:8101"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -141,7 +141,7 @@
|
|||||||
|
|
||||||
<!-- most searched word-->
|
<!-- most searched word-->
|
||||||
<div class="most-searched-words d-md-flex flex-md-column">
|
<div class="most-searched-words d-md-flex flex-md-column">
|
||||||
<p class="title ion-text-center">Assuntos mais recebidos</p>
|
<p class="title ion-text-center">{{searchResult}}</p>
|
||||||
<div class="most-searched-word-container height-100 overflow-y-auto">
|
<div class="most-searched-word-container height-100 overflow-y-auto">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -37,6 +37,7 @@ export class SearchPage implements OnInit {
|
|||||||
showLoader: boolean;
|
showLoader: boolean;
|
||||||
|
|
||||||
currentPath: string
|
currentPath: string
|
||||||
|
searchResult = "Assuntos mais recebidos";
|
||||||
|
|
||||||
// See http://idangero.us/swiper/api/ for valid options.
|
// See http://idangero.us/swiper/api/ for valid options.
|
||||||
slideOpts = {
|
slideOpts = {
|
||||||
@@ -220,7 +221,6 @@ 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, '0').subscribe(res=>{
|
,this.searchOrganicEntiry, this.searchDocTypeId, '0').subscribe(res=>{
|
||||||
|
|
||||||
|
|
||||||
res.Categories.forEach( e => {
|
res.Categories.forEach( e => {
|
||||||
e['Active'] = false;
|
e['Active'] = false;
|
||||||
});
|
});
|
||||||
@@ -242,6 +242,9 @@ export class SearchPage implements OnInit {
|
|||||||
this.showLoader = false;
|
this.showLoader = false;
|
||||||
this.loadWordCloud();
|
this.loadWordCloud();
|
||||||
|
|
||||||
|
},error => {
|
||||||
|
this.searchResult = "Registo não encontrado"
|
||||||
|
console.log(error)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
else if ( this.type == "AccoesPresidenciais & ArquivoDespachoElect"){
|
else if ( this.type == "AccoesPresidenciais & ArquivoDespachoElect"){
|
||||||
@@ -286,6 +289,9 @@ export class SearchPage implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.loadWordCloud();
|
this.loadWordCloud();
|
||||||
|
},error => {
|
||||||
|
this.searchResult = "Registo não encontrado"
|
||||||
|
console.log(error)
|
||||||
});
|
});
|
||||||
|
|
||||||
this.search.searchForDoc(this.searchSubject, this.searchDocumentDate, this.searchSender
|
this.search.searchForDoc(this.searchSubject, this.searchDocumentDate, this.searchSender
|
||||||
@@ -317,6 +323,9 @@ export class SearchPage implements OnInit {
|
|||||||
if(counter ==2){
|
if(counter ==2){
|
||||||
this.showLoader = false;
|
this.showLoader = false;
|
||||||
}
|
}
|
||||||
|
},error => {
|
||||||
|
this.searchResult = "Registo não encontrado"
|
||||||
|
console.log(error)
|
||||||
});
|
});
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
@@ -353,6 +362,9 @@ export class SearchPage implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.loadWordCloud();
|
this.loadWordCloud();
|
||||||
|
},error => {
|
||||||
|
this.searchResult = "Registo não encontrado"
|
||||||
|
console.log(error)
|
||||||
});
|
});
|
||||||
|
|
||||||
this.search.basicSearch(this.searchSubject, this.searchDocumentDate, this.searchSender
|
this.search.basicSearch(this.searchSubject, this.searchDocumentDate, this.searchSender
|
||||||
@@ -385,6 +397,9 @@ export class SearchPage implements OnInit {
|
|||||||
this.showLoader = false;
|
this.showLoader = false;
|
||||||
}
|
}
|
||||||
this.loadWordCloud();
|
this.loadWordCloud();
|
||||||
|
},error => {
|
||||||
|
this.searchResult = "Registo não encontrado"
|
||||||
|
console.log(error)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -432,6 +447,9 @@ export class SearchPage implements OnInit {
|
|||||||
}
|
}
|
||||||
this.showLoader = false;
|
this.showLoader = false;
|
||||||
this.loadWordCloud();
|
this.loadWordCloud();
|
||||||
|
},error => {
|
||||||
|
this.searchResult = "Registo não encontrado"
|
||||||
|
console.log(error)
|
||||||
});
|
});
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
@@ -468,6 +486,9 @@ export class SearchPage implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.loadWordCloud();
|
this.loadWordCloud();
|
||||||
|
},error => {
|
||||||
|
this.searchResult = "Registo não encontrado"
|
||||||
|
console.log(error)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -500,6 +521,9 @@ export class SearchPage implements OnInit {
|
|||||||
|
|
||||||
this.showLoader = false;
|
this.showLoader = false;
|
||||||
this.loadWordCloud();
|
this.loadWordCloud();
|
||||||
|
},error => {
|
||||||
|
this.searchResult = "Registo não encontrado"
|
||||||
|
console.log(error)
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user