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