mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
improve
This commit is contained in:
@@ -14,6 +14,7 @@ import { NgxMatDateFormats } from '@angular-material-components/datetime-picker'
|
||||
import { removeDuplicate } from 'src/plugin/removeDuplicate.js'
|
||||
import { EventToApproveEdit } from 'src/app/models/event.model';
|
||||
import { ThemeService } from 'src/app/services/theme.service'
|
||||
import { Router } from '@angular/router';
|
||||
|
||||
|
||||
const CUSTOM_DATE_FORMATS: NgxMatDateFormats = {
|
||||
@@ -115,6 +116,7 @@ export class EditEventToApprovePage implements OnInit {
|
||||
@Output() setIntervenientCC = new EventEmitter<any>();
|
||||
@Output() closeComponent = new EventEmitter<any>();
|
||||
@Output() closeEventToApprove = new EventEmitter<any>();
|
||||
@Output() approveEventDismiss = new EventEmitter<any>();
|
||||
|
||||
@Input() saveData: any;
|
||||
@Input() serialNumber: string
|
||||
@@ -128,7 +130,8 @@ export class EditEventToApprovePage implements OnInit {
|
||||
private attachmentsService: AttachmentsService,
|
||||
private processes:ProcessesService,
|
||||
private toastService: ToastService,
|
||||
public ThemeService: ThemeService
|
||||
public ThemeService: ThemeService,
|
||||
private router: Router,
|
||||
) {
|
||||
this.isEventEdited = false;
|
||||
}
|
||||
@@ -175,12 +178,12 @@ export class EditEventToApprovePage implements OnInit {
|
||||
});
|
||||
}
|
||||
|
||||
onSelectedRecurringChanged(ev:any){
|
||||
if(ev.length > 1){
|
||||
onSelectedRecurringChanged(ev:any) {
|
||||
if(ev.length > 1) {
|
||||
|
||||
this.eventProcess.workflowInstanceDataFields.OccurrenceType = ev.filter(data => data != '-1');
|
||||
}
|
||||
if(ev.length == 0){
|
||||
if(ev.length == 0) {
|
||||
this.eventProcess.workflowInstanceDataFields.OccurrenceType = "-1";
|
||||
}
|
||||
}
|
||||
@@ -213,17 +216,21 @@ export class EditEventToApprovePage implements OnInit {
|
||||
|
||||
close() {
|
||||
|
||||
window['temp.path:/shared/agenda/edit-event-to-approve.ts'] = {}
|
||||
|
||||
// this.closeComponent.emit();
|
||||
window['temp.path:/shared/agenda/edit-event-to-approve.ts'] = {};
|
||||
|
||||
this.closeEventToApprove.emit();
|
||||
|
||||
this.setIntervenient.emit([]);
|
||||
this.setIntervenientCC.emit([]);
|
||||
this.clearContact.emit();
|
||||
|
||||
//this.deleteTemporaryData();
|
||||
|
||||
this.approveEventDismiss.emit({
|
||||
"serialNumber": this.eventProcess.serialNumber,
|
||||
"action": "Aprovar",
|
||||
"saveData": this.eventProcess
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user