Commit 519da4cd by Sweet Zhang

修正pdf不能查看完全的bug

parent cc25e433
...@@ -5,4 +5,4 @@ controls="true" ...@@ -5,4 +5,4 @@ controls="true"
您的浏览器不支持 video 标签。 您的浏览器不支持 video 标签。
</video> </video>
<!-- <button type="button" class="downloadBtn" (click)="download(videoSrc)" *ngIf="permissions.isDownload&&deviceType!='1'&&!pdfPath">下载资源</button> --> <!-- <button type="button" class="downloadBtn" (click)="download(videoSrc)" *ngIf="permissions.isDownload&&deviceType!='1'&&!pdfPath">下载资源</button> -->
<iframe *ngIf="pdfPath" [src]="pdfPath | safeResourceUrl" frameborder="0" width="100%" height="100%"></iframe> <iframe *ngIf="pdfPath" [src]="pdfPath | safeResourceUrl" frameborder="0" width="100%" height="100%" style="min-height: 100vh;"></iframe>
\ No newline at end of file \ No newline at end of file
...@@ -29,8 +29,10 @@ export class VideoComponent implements OnInit, AfterViewInit, OnDestroy { ...@@ -29,8 +29,10 @@ export class VideoComponent implements OnInit, AfterViewInit, OnDestroy {
this.permissions = JSON.parse(sessionStorage.getItem('permissions')); this.permissions = JSON.parse(sessionStorage.getItem('permissions'));
this.pdfPath = this.activatedRoute.snapshot.queryParams['path']; this.pdfPath = this.activatedRoute.snapshot.queryParams['path'];
this.lifeCustomerInfo = JSON.parse(localStorage.getItem('lifeCustomerInfo')); this.lifeCustomerInfo = JSON.parse(localStorage.getItem('lifeCustomerInfo'));
this.fileId = this.activatedRoute.snapshot.params['fileId'] this.fileId = this.activatedRoute.snapshot.params['fileId'];
this.queryVideoPlayback(1); if(!this.pdfPath){
this.queryVideoPlayback(1);
}
} }
ngAfterViewInit(): void { ngAfterViewInit(): void {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment