This commit is contained in:
Peter Maquiran
2021-08-13 16:07:17 +01:00
parent ce25fc8e4a
commit d15e0d1f2a
4 changed files with 80 additions and 35 deletions
@@ -311,7 +311,7 @@ export class ExpedienteDetailPage implements OnInit {
});
}
attachDocument(){
attachDocument() {
this.getDoc();
}
@@ -326,11 +326,11 @@ export class ExpedienteDetailPage implements OnInit {
}
});
await modal.present();
modal.onDidDismiss().then( async (res)=>{
modal.onDidDismiss().then( async (res)=> {
if(res){
const data = res.data;
this.documents.push(data.selected);
this.documents.forEach((element: any) =>{
this.documents.forEach((element: any) => {
let body = {
"InstanceID": this.task.InstanceID,
@@ -348,10 +348,9 @@ export class ExpedienteDetailPage implements OnInit {
this.attachmentsService.AddAttachment(body).subscribe((res)=> {
this.toastService.successMessage()
},()=> {
}, ()=> {
this.toastService.badRequest()
},()=> {
}, ()=> {
loader.remove()
});
+2 -7
View File
@@ -7,13 +7,11 @@ import { formatDate } from '@angular/common';
import { SenderPage } from 'src/app/pages/search/sender/sender.page';
import { OrganicEntityPage } from 'src/app/pages/search/organic-entity/organic-entity.page';
import WordCloud from 'src/plugin/wordcloud2.js';
import { slugify } from 'src/plugin/javascript-remove-accents.js';
import { ViewEventPage } from 'src/app/pages/agenda/view-event/view-event.page';
import { PublicationDetailPage } from '../publications/view-publications/publication-detail/publication-detail.page';
import { DocumentDetailPage } from 'src/app/modals/document-detail/document-detail.page';
import { ExpedientTaskModalPage } from '../gabinete-digital/expediente/expedient-task-modal/expedient-task-modal.page';
import { OptsExpedientePage } from 'src/app/shared/popover/opts-expediente/opts-expediente.page';
import { CreateProcessPage } from 'src/app/modals/create-process/create-process.page';
@Component({
@@ -75,7 +73,6 @@ export class SearchPage implements OnInit {
this.showSearchInput = this.navParams.get('showSearchInput');
if(this.type == null || this.type == undefined) {
if(this.currentPath == '/home/agenda') {
@@ -89,10 +86,8 @@ export class SearchPage implements OnInit {
console.log('search bug!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!')
}
}
}
selectItem(item: SearchDocument) {
if(this.select){
this.modalController.dismiss({
@@ -187,7 +182,7 @@ export class SearchPage implements OnInit {
},
);
},100);
}, 100);
}