mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
fix documentViewer url
This commit is contained in:
+10
-4
@@ -71,7 +71,9 @@ export class ExpedienteDetailPage implements OnInit {
|
||||
"DocumentURL": res.workflowInstanceDataFields.ViewerRequest,
|
||||
"Remetente": res.workflowInstanceDataFields.Sender,
|
||||
"Note": res.workflowInstanceDataFields.Note,
|
||||
"FolderId": res.workflowInstanceDataFields.FolderID
|
||||
"FolderId": res.workflowInstanceDataFields.FolderID,
|
||||
"FsId": res.workflowInstanceDataFields.FsId,
|
||||
"DocId": res.workflowInstanceDataFields.DocId,
|
||||
}
|
||||
this.fulltask = res;
|
||||
console.log(res);
|
||||
@@ -107,9 +109,13 @@ export class ExpedienteDetailPage implements OnInit {
|
||||
}
|
||||
|
||||
viewDocument(){
|
||||
const url: string = this.task.DocumentURL.replace("webTRIX.Viewer","webTRIX.Viewer.Branch1");
|
||||
const browser = this.iab.create(url,"_blank");
|
||||
browser.show();
|
||||
this.processes.GetDocumentUrl(this.task.DocId, this.task.FsId).subscribe(res=>{
|
||||
console.log(res);
|
||||
const url: string = res.replace("webTRIX.Viewer","webTRIX.Viewer.Branch1");
|
||||
const browser = this.iab.create(url,"_blank");
|
||||
browser.show();
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
openMenu() {
|
||||
|
||||
@@ -133,6 +133,20 @@ export class ProcessesService {
|
||||
};
|
||||
return this.http.post<any>(`${geturl}`,'', options);
|
||||
}
|
||||
|
||||
GetDocumentUrl(DocId:string, FsId:string): Observable<any>{
|
||||
const geturl = environment.apiURL + 'ecm/document/viewrequestshort';
|
||||
let params = new HttpParams();
|
||||
|
||||
params = params.set("DocId", DocId);
|
||||
params = params.set("applicationid", FsId);
|
||||
|
||||
let options = {
|
||||
headers: this.headers,
|
||||
params: params
|
||||
};
|
||||
return this.http.get<any>(`${geturl}`, options);
|
||||
}
|
||||
|
||||
postDespatcho(body:any){
|
||||
const geturl = environment.apiURL + 'Processes/CreateDispatch';
|
||||
|
||||
@@ -92,7 +92,7 @@
|
||||
</div>
|
||||
<div *ngIf="showAside" class="aside-right flex-column height-100">
|
||||
<div class="aside-buttons">
|
||||
<button full class="btn-ok" shape="round" >Editar evento</button>
|
||||
<button hidden full class="btn-ok" shape="round" >Editar evento</button>
|
||||
<button (click)="approveTask(loadedEvent.serialNumber)" full class="btn-ok" shape="round" >Aprovar</button>
|
||||
<button (click)="emendTask(loadedEvent.serialNumber)" class="btn-cancel" shape="round" >Emendar</button>
|
||||
<div class="solid"></div>
|
||||
|
||||
Reference in New Issue
Block a user