mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 21:06:06 +00:00
Improve Event to aprove
This commit is contained in:
@@ -18,7 +18,8 @@ import { Event } from '../../../models/event.model';
|
||||
export class EditEventToApproveComponent implements OnInit {
|
||||
|
||||
serialNumber: string
|
||||
loadedAttachments:any
|
||||
loadedAttachments: Attachment[]
|
||||
|
||||
|
||||
eventProcess = {
|
||||
taskStartDate: "",
|
||||
@@ -34,7 +35,7 @@ export class EditEventToApproveComponent implements OnInit {
|
||||
}
|
||||
}
|
||||
|
||||
show =false
|
||||
show = false
|
||||
|
||||
postEvent: Event;
|
||||
isRecurring:string;
|
||||
@@ -114,7 +115,8 @@ export class EditEventToApproveComponent implements OnInit {
|
||||
}
|
||||
|
||||
this.eventProcess.workflowInstanceDataFields.ParticipantsList.forEach(e => {
|
||||
if(e.IsRequired){
|
||||
e.toAdd = false
|
||||
if(e.IsRequired) {
|
||||
this.taskParticipants.push(e);
|
||||
} else {
|
||||
this.taskParticipantsCc.push(e);
|
||||
@@ -208,7 +210,7 @@ export class EditEventToApproveComponent implements OnInit {
|
||||
async getAttachments() {
|
||||
this.loadedAttachments = await this.attachmentsService.getAttachmentsById(this.InstanceId).toPromise();
|
||||
|
||||
console.log(this.loadedAttachments)
|
||||
console.log('this.loadedAttachments', this.loadedAttachments)
|
||||
}
|
||||
|
||||
deleteAttachment(attachmentID: string) {
|
||||
@@ -235,7 +237,6 @@ export class EditEventToApproveComponent implements OnInit {
|
||||
|
||||
const data = res.data;
|
||||
|
||||
//data.selected
|
||||
const DocumentToSave = {
|
||||
SourceTitle: data.selected.Assunto,
|
||||
ParentId: this.InstanceId,
|
||||
@@ -244,7 +245,8 @@ export class EditEventToApproveComponent implements OnInit {
|
||||
ApplicationId: data.selected.ApplicationType.toString(),
|
||||
Id: '',
|
||||
Link: '',
|
||||
SerialNumber: ''
|
||||
SerialNumber: '',
|
||||
toAdd: true
|
||||
};
|
||||
|
||||
await this.attachmentsService.setEventAttachmentById(DocumentToSave).subscribe(()=>{
|
||||
|
||||
Reference in New Issue
Block a user