fix documentViewer url

This commit is contained in:
tiago.kayaya
2021-04-01 17:06:54 +01:00
parent 66ec3882ef
commit 5521dbb2b9
3 changed files with 25 additions and 5 deletions
@@ -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() {