mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 04:57:52 +00:00
add viewer
This commit is contained in:
@@ -20,12 +20,8 @@ export class ViewDocumentPage implements OnInit {
|
||||
viewerUrl: string;
|
||||
trustedUrl: any;
|
||||
file: any;
|
||||
|
||||
sourceId: any;
|
||||
applicationId: any;
|
||||
LoadedDocument: any;
|
||||
docId: any
|
||||
folderId: any
|
||||
task: ExpedientTaskModalPageNavParamsTask;
|
||||
Document: any
|
||||
|
||||
@@ -36,18 +32,10 @@ export class ViewDocumentPage implements OnInit {
|
||||
private processes: ProcessesService,
|
||||
) {
|
||||
this.file = this.navParams.get('file');
|
||||
this.sourceId = this.navParams.get('sourceId');
|
||||
this.applicationId = this.navParams.get('applicationId');
|
||||
this.docId = this.navParams.get('docId');
|
||||
this.folderId = this.navParams.get('folderId')
|
||||
this.Document = this.navParams.get('Document')
|
||||
|
||||
// console.log('this.Document', this.Document)
|
||||
// if(this.Document.ApplicationId == 361) {
|
||||
// this.sourceId = this.folderId
|
||||
// } else if(this.Document.ApplicationId == 8) {
|
||||
// this.sourceId = this.Document.DocId || this.Document.SourceId
|
||||
// }
|
||||
this.task = this.navParams.get('task')
|
||||
|
||||
}
|
||||
|
||||
@@ -56,14 +44,11 @@ export class ViewDocumentPage implements OnInit {
|
||||
this.processes.GetViewer(this.docId, this.applicationId).subscribe(res=>{
|
||||
const link: string = res
|
||||
this.trustedUrl = this.sanitazer.bypassSecurityTrustResourceUrl(link);
|
||||
console.log('trustedUrl', this.trustedUrl)
|
||||
})
|
||||
|
||||
//this.getDetails()
|
||||
}
|
||||
|
||||
|
||||
|
||||
close() {
|
||||
this.modalController.dismiss();
|
||||
}
|
||||
@@ -102,7 +87,7 @@ export class ViewDocumentPage implements OnInit {
|
||||
component: DocumentSetUpMeetingPage,
|
||||
componentProps: {
|
||||
subject: this.task.workflowInstanceDataFields.Subject,
|
||||
document: this.LoadedDocument,
|
||||
document: this.Document,
|
||||
},
|
||||
cssClass: classs,
|
||||
backdropDismiss: false
|
||||
@@ -114,6 +99,7 @@ export class ViewDocumentPage implements OnInit {
|
||||
}
|
||||
|
||||
// efetuar despacho
|
||||
|
||||
async openExpedientActionsModal( taskAction: any) {
|
||||
|
||||
let classs;
|
||||
@@ -127,8 +113,8 @@ export class ViewDocumentPage implements OnInit {
|
||||
componentProps: {
|
||||
taskAction: taskAction,
|
||||
task: this.task,
|
||||
seachDocuments: this.LoadedDocument,
|
||||
aplicationId: this.LoadedDocument.ApplicationId || this.LoadedDocument.ApplicationID
|
||||
seachDocuments: this.Document,
|
||||
aplicationId: this.Document.ApplicationId || this.Document.ApplicationID
|
||||
},
|
||||
cssClass: classs,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user