mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 13:02:56 +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,
|
"DocumentURL": res.workflowInstanceDataFields.ViewerRequest,
|
||||||
"Remetente": res.workflowInstanceDataFields.Sender,
|
"Remetente": res.workflowInstanceDataFields.Sender,
|
||||||
"Note": res.workflowInstanceDataFields.Note,
|
"Note": res.workflowInstanceDataFields.Note,
|
||||||
"FolderId": res.workflowInstanceDataFields.FolderID
|
"FolderId": res.workflowInstanceDataFields.FolderID,
|
||||||
|
"FsId": res.workflowInstanceDataFields.FsId,
|
||||||
|
"DocId": res.workflowInstanceDataFields.DocId,
|
||||||
}
|
}
|
||||||
this.fulltask = res;
|
this.fulltask = res;
|
||||||
console.log(res);
|
console.log(res);
|
||||||
@@ -107,9 +109,13 @@ export class ExpedienteDetailPage implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
viewDocument(){
|
viewDocument(){
|
||||||
const url: string = this.task.DocumentURL.replace("webTRIX.Viewer","webTRIX.Viewer.Branch1");
|
this.processes.GetDocumentUrl(this.task.DocId, this.task.FsId).subscribe(res=>{
|
||||||
const browser = this.iab.create(url,"_blank");
|
console.log(res);
|
||||||
browser.show();
|
const url: string = res.replace("webTRIX.Viewer","webTRIX.Viewer.Branch1");
|
||||||
|
const browser = this.iab.create(url,"_blank");
|
||||||
|
browser.show();
|
||||||
|
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
openMenu() {
|
openMenu() {
|
||||||
|
|||||||
@@ -133,6 +133,20 @@ export class ProcessesService {
|
|||||||
};
|
};
|
||||||
return this.http.post<any>(`${geturl}`,'', options);
|
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){
|
postDespatcho(body:any){
|
||||||
const geturl = environment.apiURL + 'Processes/CreateDispatch';
|
const geturl = environment.apiURL + 'Processes/CreateDispatch';
|
||||||
|
|||||||
@@ -92,7 +92,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div *ngIf="showAside" class="aside-right flex-column height-100">
|
<div *ngIf="showAside" class="aside-right flex-column height-100">
|
||||||
<div class="aside-buttons">
|
<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)="approveTask(loadedEvent.serialNumber)" full class="btn-ok" shape="round" >Aprovar</button>
|
||||||
<button (click)="emendTask(loadedEvent.serialNumber)" class="btn-cancel" shape="round" >Emendar</button>
|
<button (click)="emendTask(loadedEvent.serialNumber)" class="btn-cancel" shape="round" >Emendar</button>
|
||||||
<div class="solid"></div>
|
<div class="solid"></div>
|
||||||
|
|||||||
Reference in New Issue
Block a user