mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
bug fix
This commit is contained in:
@@ -10,6 +10,7 @@ export class Attachment {
|
|||||||
SourceId: string
|
SourceId: string
|
||||||
SourceName: string
|
SourceName: string
|
||||||
Stakeholders: string
|
Stakeholders: string
|
||||||
|
docId?: number
|
||||||
//Data: any;
|
//Data: any;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -675,8 +675,10 @@ export class EditEventPage implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
deleteAttachment(attachmentID: string, index) {
|
deleteAttachment(attachmentID: string, index) {
|
||||||
|
console.log(this.loadedEventAttachments)
|
||||||
const id: any = this.loadedEventAttachments[index].Id
|
const id: any = this.loadedEventAttachments[index].docId
|
||||||
|
let update = this.removeItemById(this.loadedEventAttachments, id)
|
||||||
|
this.loadedEventAttachments = update
|
||||||
this.deletedAttachmentsList.push(id)
|
this.deletedAttachmentsList.push(id)
|
||||||
|
|
||||||
/* if (id == 'add') {
|
/* if (id == 'add') {
|
||||||
@@ -688,6 +690,10 @@ export class EditEventPage implements OnInit {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
removeItemById(array, id) {
|
||||||
|
return array.filter(item => item.docId !== id);
|
||||||
|
}
|
||||||
|
|
||||||
async getDoc() {
|
async getDoc() {
|
||||||
const modal = await this.modalController.create({
|
const modal = await this.modalController.create({
|
||||||
component: SearchPage,
|
component: SearchPage,
|
||||||
|
|||||||
@@ -408,7 +408,6 @@
|
|||||||
<ion-item class="width-100">
|
<ion-item class="width-100">
|
||||||
<ion-label class="width-100">
|
<ion-label class="width-100">
|
||||||
<p class="d-flex ion-justify-content-between">
|
<p class="d-flex ion-justify-content-between">
|
||||||
{{ document | json }}
|
|
||||||
<span class="attach-title-item">{{document.subject || document.sourceName || document.SourceName || 'Sem título'}}</span>
|
<span class="attach-title-item">{{document.subject || document.sourceName || document.SourceName || 'Sem título'}}</span>
|
||||||
<span class="app-name" *ngIf="document.applicationId == 8 || document.ApplicationId == 8"> Correspondencia </span>
|
<span class="app-name" *ngIf="document.applicationId == 8 || document.ApplicationId == 8"> Correspondencia </span>
|
||||||
<span class="app-name" *ngIf="document.applicationId == 386 || document.ApplicationId == 386"> AccoesPresidenciais </span>
|
<span class="app-name" *ngIf="document.applicationId == 386 || document.ApplicationId == 386"> AccoesPresidenciais </span>
|
||||||
|
|||||||
@@ -326,7 +326,10 @@ export class EditEventToApproveComponent implements OnInit {
|
|||||||
|
|
||||||
this.agendaDataRepository.updateEvent(this.eventProcess.serialNumber, event,false).subscribe((value) => {
|
this.agendaDataRepository.updateEvent(this.eventProcess.serialNumber, event,false).subscribe((value) => {
|
||||||
console.log(value)
|
console.log(value)
|
||||||
|
this.httpErroHalde.httpsSucessMessagge('Editar evento')
|
||||||
|
window['approve-event-getTask']()
|
||||||
}, ((error) => {
|
}, ((error) => {
|
||||||
|
this.httpErroHalde.httpStatusHandle(error)
|
||||||
console.log('edit event error: ', error)
|
console.log('edit event error: ', error)
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user