|
|
|
@ -148,16 +148,15 @@ export class KeySiteComponent implements OnInit {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//查看图片
|
|
|
|
|
seeImg (e,key) { |
|
|
|
|
seeImg (e) { |
|
|
|
|
if (e.length) { |
|
|
|
|
// let data = e
|
|
|
|
|
// const dialogRef = this.dialog.open(KeySiteImgs, {//调用open方法打开对话框并且携带参数过去
|
|
|
|
|
// width: '820px',
|
|
|
|
|
// height:'670px',data});
|
|
|
|
|
// dialogRef.afterClosed().subscribe();
|
|
|
|
|
var image = new Viewer(document.getElementById(`viewerjs${key}`),{ |
|
|
|
|
url: 'data-original' |
|
|
|
|
}); |
|
|
|
|
let data = e |
|
|
|
|
const dialogRef = this.dialog.open(KeySiteImgs, {//调用open方法打开对话框并且携带参数过去
|
|
|
|
|
data}); |
|
|
|
|
dialogRef.afterClosed().subscribe(); |
|
|
|
|
// var image = new Viewer(document.getElementById(`viewerjs${key}`),{
|
|
|
|
|
// url: 'data-original'
|
|
|
|
|
// });
|
|
|
|
|
// document.getElementById('viewerjs').click();
|
|
|
|
|
this.xxx() |
|
|
|
|
} else { |
|
|
|
|