agenda search back to default

This commit is contained in:
Eudes Inácio
2024-06-04 15:31:12 +01:00
parent 96ead04066
commit b041ae73f5
2 changed files with 6 additions and 7 deletions
+2 -2
View File
@@ -299,14 +299,14 @@
<div class="content ion-align-items-center"> <div class="content ion-align-items-center">
<div class="d-flex ion-justify-content-between "> <div class="d-flex ion-justify-content-between ">
<span class="result-name">{{ searchDocument.subject}}</span> <span class="result-name">{{ searchDocument.subject || searchDocument.Assunto}}</span>
<span class="app-name" <span class="app-name"
*ngIf="itemIcons() == 'AccoesPresidenciais & ArquivoDespachoElect' || itemIcons() == 'Correspondencia' ">{{ *ngIf="itemIcons() == 'AccoesPresidenciais & ArquivoDespachoElect' || itemIcons() == 'Correspondencia' ">{{
searchDocument.appName}}</span> searchDocument.appName}}</span>
</div> </div>
<div class="d-flex ion-justify-content-between "> <div class="d-flex ion-justify-content-between ">
<span class="organic-entity">{{ searchDocument.EntidadeOrganicaNome }}</span> <span class="organic-entity">{{ searchDocument.EntidadeOrganicaNome }}</span>
<span class="documente-date">{{ formateIsoDate(searchDocument.dateEntry) }}</span> <span class="documente-date">{{ formateIsoDate(searchDocument.dateEntry || searchDocument.Data) }}</span>
</div> </div>
<div *ngIf="select" (click)="view(searchDocument)"> Ver</div> <div *ngIf="select" (click)="view(searchDocument)"> Ver</div>
+4 -5
View File
@@ -389,7 +389,7 @@ export class SearchPage implements OnInit {
console.log('enter text'); console.log('enter text');
} else { } else {
this.showLoader = true; /* this.showLoader = true;
this.agendaDataRepository.getDocumentAttachments(361, SessionStore.user.UserId, this.searchSubject, this.pageNumber, this.pageSize).subscribe((values) => { this.agendaDataRepository.getDocumentAttachments(361, SessionStore.user.UserId, this.searchSubject, this.pageNumber, this.pageSize).subscribe((values) => {
this.totalPage = values.data.total / this.pageSize; this.totalPage = values.data.total / this.pageSize;
this.totalPage = Math.round(this.totalPage) this.totalPage = Math.round(this.totalPage)
@@ -412,12 +412,11 @@ export class SearchPage implements OnInit {
this.httpErrorhandle.httpStatusHandle(error) this.httpErrorhandle.httpStatusHandle(error)
// console.log(error) // console.log(error)
}) })
return return */
this.showLoader = true;
this.search.basicSearch(this.searchSubject, searchDocumentDate, searchDocumentDateEnd, this.searchSenderId this.search.basicSearch(this.searchSubject, searchDocumentDate, searchDocumentDateEnd, this.searchSenderId
, this.searchOrganicEntiryCode, this.searchDocTypeId, '0').subscribe(res => { , this.searchOrganicEntiryCode, this.searchDocTypeId, '0').subscribe(res => {
console.log(this.searchDocTypeId) console.log(res)
return
if (!res.Categories.length) { if (!res.Categories.length) {
this.searchResult = "Não encontramos o que procura"; this.searchResult = "Não encontramos o que procura";