|
|
@ -14,6 +14,7 @@ import { |
|
|
|
import { CommonService } from "../service/common.service"; |
|
|
|
import { NzMessageService } from "ng-zorro-antd/message"; |
|
|
|
import { NzModalService } from "ng-zorro-antd/modal"; |
|
|
|
import { he } from "date-fns/locale"; |
|
|
|
|
|
|
|
|
|
|
|
@Component({ |
|
|
@ -68,6 +69,11 @@ export class LayoutComponent implements OnInit { |
|
|
|
widthPercent: "", |
|
|
|
}; |
|
|
|
|
|
|
|
QRcodeStyle = { |
|
|
|
height: 450, |
|
|
|
width: 450 |
|
|
|
} |
|
|
|
|
|
|
|
constructor( |
|
|
|
private commonService: CommonService, |
|
|
|
private el: ElementRef, |
|
|
@ -162,7 +168,7 @@ export class LayoutComponent implements OnInit { |
|
|
|
// this.renderer.setStyle(sysEL, 'left', item.left);
|
|
|
|
// this.renderer.setStyle(sysEL, 'width', item.width);
|
|
|
|
// this.renderer.setStyle(sysEL, 'height', item.height);
|
|
|
|
if (sysEL != null) { |
|
|
|
if (sysEL != null && item.sysId !== 'QRcode') { |
|
|
|
this.renderer.setStyle(sysEL, "top", item.topPercent); |
|
|
|
this.renderer.setStyle(sysEL, "left", item.leftPercent); |
|
|
|
this.renderer.setStyle(sysEL, "width", item.widthPercent); |
|
|
@ -183,6 +189,11 @@ export class LayoutComponent implements OnInit { |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (item.sysId === 'QRcode') { |
|
|
|
this.QRcodeStyle.height = Number(item.height.replace("px", "")); |
|
|
|
this.QRcodeStyle.width = Number(item.width.replace("px", "")); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}); |
|
|
@ -191,6 +202,13 @@ export class LayoutComponent implements OnInit { |
|
|
|
jumpToSystem(key: string) { |
|
|
|
const DwUserInfo = JSON.parse(sessionStorage.getItem("DwUserInfo")); |
|
|
|
|
|
|
|
if (key === 'download') { |
|
|
|
this.isDownloadVisible = true; |
|
|
|
const sysEL = this.el.nativeElement.querySelector("#imgQRcode"); |
|
|
|
console.log(this.QRcodeStyle); |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
if ( |
|
|
|
DwUserInfo.userId === "dongsk@digiwin.com" || |
|
|
|
DwUserInfo.userId === "M00020" |
|
|
@ -198,10 +216,6 @@ export class LayoutComponent implements OnInit { |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
if (key === 'download') { |
|
|
|
this.isDownloadVisible = true; |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
if (this.exclusionSys.includes(key)) { |
|
|
|
this.message.error(`${key} 未集成`); |
|
|
@ -287,6 +301,10 @@ export class LayoutComponent implements OnInit { |
|
|
|
this.divContent.sysId = data.id; |
|
|
|
} |
|
|
|
|
|
|
|
if (data.id === 'QRcode') { |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
if (data.type !== "mouseup") { |
|
|
|
return; |
|
|
|
} |
|
|
|