Browse Source

[新增]待审核页面查看pdf新增转圈等待

tangshan
chenjingyu 4 years ago
parent
commit
6312883e18
  1. 5
      src/app/plan-audit/plan-record/plan-record.component.html
  2. 16
      src/app/plan-audit/plan-record/plan-record.component.scss
  3. 10
      src/app/plan-audit/plan-record/plan-record.component.ts
  4. 5
      src/app/plan-audit/wait-examineer/wait-examineer.component.html
  5. 16
      src/app/plan-audit/wait-examineer/wait-examineer.component.scss
  6. 10
      src/app/plan-audit/wait-examineer/wait-examineer.component.ts

5
src/app/plan-audit/plan-record/plan-record.component.html

@ -4,7 +4,7 @@
* @Author: sueRimn * @Author: sueRimn
* @Date: 2020-12-25 10:19:31 * @Date: 2020-12-25 10:19:31
* @LastEditors: sueRimn * @LastEditors: sueRimn
* @LastEditTime: 2021-07-24 09:30:42 * @LastEditTime: 2021-08-16 15:49:49
--> -->
<div class="box"> <div class="box">
<div class="boxleft"> <div class="boxleft">
@ -187,6 +187,9 @@
</div> </div>
<div class="word" *ngIf="showtype==0||bianzhi"> <div class="word" *ngIf="showtype==0||bianzhi">
<!-- <div class="shadow" *ngIf="!iftrue">
<mat-spinner></mat-spinner>
</div> -->
<button mat-raised-button color="primary" style="float: right;margin-top: 10px;margin-right: 15px;" (click)='lookNew()'>查看详情</button> <button mat-raised-button color="primary" style="float: right;margin-top: 10px;margin-right: 15px;" (click)='lookNew()'>查看详情</button>
<iframe [src]='iframeSrc'></iframe> <iframe [src]='iframeSrc'></iframe>
</div> </div>

16
src/app/plan-audit/plan-record/plan-record.component.scss

@ -255,6 +255,22 @@
.word{ .word{
width: 100%; width: 100%;
height: 100%; height: 100%;
.shadow{
height: 95%;
width: 97%;
margin: 10px 10px 10px 10px;
/* position:absolute;
left:0;
top:0; */
z-index:998;
background-color:#FFFFFF;
opacity:0.6;
mat-spinner{
position: relative;
top: 40%;
left: 40%;
}
}
iframe{ iframe{
height: 94%; height: 94%;
width: 97%; width: 97%;

10
src/app/plan-audit/plan-record/plan-record.component.ts

@ -4,7 +4,7 @@
* @Author: sueRimn * @Author: sueRimn
* @Date: 2020-12-25 10:19:31 * @Date: 2020-12-25 10:19:31
* @LastEditors: sueRimn * @LastEditors: sueRimn
* @LastEditTime: 2021-07-24 14:36:27 * @LastEditTime: 2021-08-16 15:29:41
*/ */
import { Component, OnInit, Inject } from '@angular/core'; import { Component, OnInit, Inject } from '@angular/core';
import { FormControl } from '@angular/forms'; import { FormControl } from '@angular/forms';
@ -310,6 +310,14 @@ export class PlanRecordComponent implements OnInit {
oopen3Dshow() { oopen3Dshow() {
this.dialog.open(recordshow3D, { width: '1650px', height: '850px', data: { url: this.thirdPartyURL, twoOrthree: this.twoOrthree } }); this.dialog.open(recordshow3D, { width: '1650px', height: '850px', data: { url: this.thirdPartyURL, twoOrthree: this.twoOrthree } });
} }
//判断iframe是否加载完成
iftrue=true
ifranmeLoad(){
var iframe = document.getElementById("myiframe");
iframe.onload = function(){
}
this.iftrue=!this.iftrue
}
} }

5
src/app/plan-audit/wait-examineer/wait-examineer.component.html

@ -308,7 +308,10 @@
<div style="height: 100%;" *ngIf="isallDate"> <div style="height: 100%;" *ngIf="isallDate">
<!-- word文档 --> <!-- word文档 -->
<div class="word" *ngIf="showtype == 0"> <div class="word" *ngIf="showtype == 0">
<iframe [src]='iframeSrc'></iframe> <div class="shadow" *ngIf="!iftrue">
<mat-spinner></mat-spinner>
</div>
<iframe [src]='iframeSrc' (load)='ifranmeLoad()' id="myiframe"></iframe>
</div> </div>
<!-- 全景图 --> <!-- 全景图 -->
<div id="viewer" *ngIf="showtype == 1"></div> <div id="viewer" *ngIf="showtype == 1"></div>

16
src/app/plan-audit/wait-examineer/wait-examineer.component.scss

@ -223,6 +223,22 @@
.word { .word {
width: 100%; width: 100%;
height: 100%; height: 100%;
.shadow{
height: 95%;
width: 97%;
margin: 10px 10px 10px 10px;
/* position:absolute;
left:0;
top:0; */
z-index:998;
background-color:#FFFFFF;
opacity:0.6;
mat-spinner{
position: relative;
top: 40%;
left: 40%;
}
}
iframe { iframe {
height: 95%; height: 95%;
width: 97%; width: 97%;

10
src/app/plan-audit/wait-examineer/wait-examineer.component.ts

@ -4,7 +4,7 @@
* @Author: sueRimn * @Author: sueRimn
* @Date: 2020-12-25 16:13:50 * @Date: 2020-12-25 16:13:50
* @LastEditors: sueRimn * @LastEditors: sueRimn
* @LastEditTime: 2021-07-29 10:27:36 * @LastEditTime: 2021-08-16 11:12:52
*/ */
import { Component, Inject, OnInit } from '@angular/core'; import { Component, Inject, OnInit } from '@angular/core';
import { FormControl } from '@angular/forms'; import { FormControl } from '@angular/forms';
@ -605,6 +605,14 @@ export class WaitExamineerComponent implements OnInit {
}, 0) }, 0)
} }
} }
//判断iframe是否加载完成
iftrue=true
ifranmeLoad(){
var iframe = document.getElementById("myiframe");
iframe.onload = function(){
}
this.iftrue=!this.iftrue
}
} }

Loading…
Cancel
Save