seimin лет назад: 2
Родитель
Сommit
f0040f58a1

+ 6 - 1
src/app/share/image-viewer/image-viewer.component.ts

@@ -22,7 +22,12 @@ export class ImageViewerComponent implements OnInit, AfterViewInit,OnDestroy {
22 22
   }
23 23
 
24 24
   ngAfterViewInit(): void {
25
-    this.viewer = new Viewer(this.ljImgViewer["nativeElement"]);
25
+    this.viewer = new Viewer(this.ljImgViewer["nativeElement"],{
26
+      hide(){
27
+        console.log('隐藏')
28
+        this.viewer && this.viewer.destroy();
29
+      }
30
+    });
26 31
     this.isPreviewNow && this.viewer.show();
27 32
   }
28 33
 

+ 1 - 1
src/app/views/fuwutai/fuwutai.component.html

@@ -2006,7 +2006,7 @@
2006 2006
       </div>
2007 2007
     </div>
2008 2008
   </div>
2009
-  <button ngxPrint printSectionId="print-section" #printBtn style="position: fixed;top:-99999px;">打印</button>
2009
+  <button ngxPrint printSectionId="print-section" #printBtn hidden>打印</button>
2010 2010
 
2011 2011
   <!-- 新建工单 -->
2012 2012
   <div

+ 1 - 1
src/app/views/nucleic-acid-collection/nucleic-acid-collection.component.html

@@ -74,4 +74,4 @@
74 74
     </div>
75 75
   </div>
76 76
 </div>
77
-<button ngxPrint printSectionId="print-section" #printBtn style="position: fixed;top:-99999px;">打印</button>
77
+<button ngxPrint printSectionId="print-section" #printBtn hidden>打印</button>

+ 1 - 1
src/app/views/nucleic-acid-collection/nucleic-acid-collection.component.ts

@@ -72,7 +72,7 @@ export class NucleicAcidCollectionComponent implements OnInit {
72 72
   mapQrcodes:any = {};
73 73
   supplementPrint(data){
74 74
     data.isOkLoading = true;
75
-    this.mainService.supplementPrintNucleicAcid({buildingId:data.buildId?data.buildId.id:undefined,code:data.qrcode}).subscribe((result:any) => {
75
+    this.mainService.supplementPrintNucleicAcid({gdIds:data.gdIds,code:data.qrcode}).subscribe((result:any) => {
76 76
       data.isOkLoading = false;
77 77
       if(result.status == 200){
78 78
         this.mapQrcodes = {[data.buildId.id]: result.qrcode};