mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 05:16:07 +00:00
fix bug
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { NavigationExtras, Router } from '@angular/router';
|
||||
import { ModalController, NavParams, PopoverController } from '@ionic/angular';
|
||||
import { ModalController, PopoverController } from '@ionic/angular';
|
||||
import { AddNotePage } from 'src/app/modals/add-note/add-note.page';
|
||||
import { expedienteTask } from 'src/app/models/dailyworktask.model';
|
||||
import { SearchList } from 'src/app/models/search-document';
|
||||
@@ -21,7 +20,6 @@ import { SessionStore } from 'src/app/store/session.service';
|
||||
import { HttpErrorHandle } from 'src/app/services/http-error-handle.service';
|
||||
import { environment } from 'src/environments/environment';
|
||||
import { TaskService } from 'src/app/services/task.service';
|
||||
import { DataService } from 'src/app/services/data.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-opts-expediente',
|
||||
@@ -45,10 +43,8 @@ export class OptsExpedientePage implements OnInit {
|
||||
constructor(
|
||||
private popoverController: PopoverController,
|
||||
private modalController: ModalController,
|
||||
private navParams: NavParams,
|
||||
private processes: ProcessesService,
|
||||
private toastService: ToastService,
|
||||
private router: Router,
|
||||
public p: PermissionService,
|
||||
private attachmentsService: AttachmentsService,
|
||||
private RouteService: RouteService,
|
||||
@@ -56,14 +52,9 @@ export class OptsExpedientePage implements OnInit {
|
||||
public ThemeService: ThemeService,
|
||||
private httpErrorHanlde: HttpErrorHandle,
|
||||
public TaskService: TaskService,
|
||||
private dataService: DataService,
|
||||
) {
|
||||
) {}
|
||||
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
|
||||
}
|
||||
ngOnInit() {}
|
||||
|
||||
async openNewGroupPage() {
|
||||
|
||||
@@ -107,6 +98,7 @@ export class OptsExpedientePage implements OnInit {
|
||||
}
|
||||
|
||||
attachDocument(){
|
||||
// alert('click herer!!s')
|
||||
this.getDoc();
|
||||
}
|
||||
|
||||
@@ -122,7 +114,13 @@ export class OptsExpedientePage implements OnInit {
|
||||
});
|
||||
|
||||
modal.onDidDismiss().then( async (res)=>{
|
||||
|
||||
console.log({res});
|
||||
|
||||
if(res){
|
||||
|
||||
|
||||
|
||||
const data = res.data;
|
||||
this.documents.push(data.selected);
|
||||
this.documents.forEach((element: any) =>{
|
||||
@@ -141,7 +139,11 @@ export class OptsExpedientePage implements OnInit {
|
||||
|
||||
const loader = this.toastService.loading()
|
||||
|
||||
// alert('done select attachment')
|
||||
|
||||
this.attachmentsService.AddAttachment(body).subscribe((res)=> {
|
||||
|
||||
// alert('@')
|
||||
window['attachments-expediente-update']();
|
||||
this.toastService._successMessage()
|
||||
this.popoverController.dismiss()
|
||||
|
||||
Reference in New Issue
Block a user