This commit is contained in:
tiago.kayaya
2022-02-16 13:52:32 +01:00
parent de1f91935e
commit 170c5395a4
19 changed files with 93 additions and 183 deletions
+10 -12
View File
@@ -8,7 +8,6 @@ import { EventPerson } from 'src/app/models/eventperson.model';
import { EventsService } from 'src/app/services/events.service';
import { AttachmentsService } from 'src/app/services/attachments.service';
import { DiscartExpedientModalPage } from 'src/app/pages/gabinete-digital/discart-expedient-modal/discart-expedient-modal.page';
import { AlertService } from 'src/app/services/alert.service';
import { ToastService } from 'src/app/services/toast.service';
import { AttendeesPageModal } from 'src/app/pages/events/attendees/attendees.page';
import { SearchList } from 'src/app/models/search-document';
@@ -24,10 +23,10 @@ import { ThemeService } from 'src/app/services/theme.service'
export class DelegarPage implements OnInit {
task: any;
note:string;
taskParticipants: EventPerson[] = [];
taskParticipantsCc: EventPerson[] = [];
taskDocId:string;
loadedAttachments:any;
@@ -51,7 +50,6 @@ export class DelegarPage implements OnInit {
private attachmentsService: AttachmentsService,
private calendarService: EventsService,
public alertController: AlertController,
private alertService: AlertService,
private animationController: AnimationController,
private toastService: ToastService,
public ThemeService: ThemeService
@@ -75,7 +73,7 @@ export class DelegarPage implements OnInit {
ngOnInit() {
this.adding = "intervenient";
console.log(this.task);
}
close() {
@@ -107,8 +105,8 @@ export class DelegarPage implements OnInit {
const loader = this.toastService.loading()
this.processes.DelegateTask(body).subscribe(res=>{
console.log(res);
console.log(res);
this.toastService._successMessage('Processo delegado')
this.close();
},
@@ -157,16 +155,16 @@ export class DelegarPage implements OnInit {
if(this.adding == "intervenient"){
this.taskParticipants = data;
} else if (this.adding == "CC") {
this.taskParticipantsCc = data;
}
}
async setIntervenient(data) {
this.taskParticipants = data;
}
async setIntervenientCC(data) {
this.taskParticipantsCc = data;
}
@@ -189,7 +187,7 @@ export class DelegarPage implements OnInit {
modal.onDidDismiss();
}
validateFormInputs(){
let formLocation = this.postData.Location.trim();
if(!this.postData.Location && formLocation.length <= 0){
@@ -229,4 +227,4 @@ export class DelegarPage implements OnInit {
}
}
}