|
|
@ -14,6 +14,7 @@ import { |
|
|
|
DigiMiddlewareAuthUser, |
|
|
|
} from "app/config/app-auth-token"; |
|
|
|
import { CommonService } from "../service/common.service"; |
|
|
|
import { NzPopconfirmComponent } from 'ng-zorro-antd/popconfirm'; |
|
|
|
|
|
|
|
@Component({ |
|
|
|
selector: "app-layout", |
|
|
@ -59,13 +60,12 @@ export class LayoutComponent implements OnInit, AfterViewInit { |
|
|
|
heightPercent: "", |
|
|
|
widthPercent: "", |
|
|
|
}; |
|
|
|
showElement: boolean = false; |
|
|
|
|
|
|
|
constructor( |
|
|
|
private commonService: CommonService, |
|
|
|
private el: ElementRef, |
|
|
|
private renderer: Renderer2 |
|
|
|
) {} |
|
|
|
) { } |
|
|
|
ngOnInit(): void { |
|
|
|
this.systemMaps = systemList; |
|
|
|
this.initSystemBySemcSSO(); |
|
|
@ -134,7 +134,7 @@ export class LayoutComponent implements OnInit, AfterViewInit { |
|
|
|
this.commonService |
|
|
|
.postWithHeaders( |
|
|
|
this.commonService.apiUrl + |
|
|
|
"/restful/standard/demo/api/517/config/list", |
|
|
|
"/restful/standard/demo/api/517/config/list", |
|
|
|
{ |
|
|
|
userId: this.divContent.userId, |
|
|
|
tenantId: DwUserInfo.tenantId, |
|
|
@ -154,12 +154,15 @@ export class LayoutComponent implements OnInit, AfterViewInit { |
|
|
|
// this.renderer.setStyle(sysEL, 'left', item.left);
|
|
|
|
// this.renderer.setStyle(sysEL, 'width', item.width);
|
|
|
|
// this.renderer.setStyle(sysEL, 'height', item.height);
|
|
|
|
|
|
|
|
this.renderer.setStyle(sysEL, "top", item.topPercent); |
|
|
|
this.renderer.setStyle(sysEL, "left", item.leftPercent); |
|
|
|
this.renderer.setStyle(sysEL, "width", item.widthPercent); |
|
|
|
this.renderer.setStyle(sysEL, "height", item.heightPercent); |
|
|
|
this.showElement = true; |
|
|
|
if (sysEL != null) { |
|
|
|
this.renderer.setStyle(sysEL, "top", item.topPercent); |
|
|
|
this.renderer.setStyle(sysEL, "left", item.leftPercent); |
|
|
|
this.renderer.setStyle(sysEL, "width", item.widthPercent); |
|
|
|
this.renderer.setStyle(sysEL, "height", item.heightPercent); |
|
|
|
this.renderer.setStyle(sysEL, "background-color", 'wheat'); |
|
|
|
|
|
|
|
this.renderer.setStyle(sysEL, "display", 'block'); |
|
|
|
} |
|
|
|
}); |
|
|
|
} |
|
|
|
}); |
|
|
@ -216,7 +219,7 @@ export class LayoutComponent implements OnInit, AfterViewInit { |
|
|
|
this.commonService |
|
|
|
.postWithHeaders( |
|
|
|
this.commonService.apiUrl + |
|
|
|
"/restful/standard/demo/api/default/login", |
|
|
|
"/restful/standard/demo/api/default/login", |
|
|
|
{ |
|
|
|
userId: DwUserInfo.userId, |
|
|
|
tenantId: DwUserInfo.tenantId, |
|
|
@ -236,7 +239,7 @@ export class LayoutComponent implements OnInit, AfterViewInit { |
|
|
|
this.commonService |
|
|
|
.postWithHeaders( |
|
|
|
this.commonService.iamUrl + |
|
|
|
"/api/iam/v2/identity/token/refresh/tenant", |
|
|
|
"/api/iam/v2/identity/token/refresh/tenant", |
|
|
|
{ tenantSid: item.sid }, |
|
|
|
headers |
|
|
|
) |
|
|
@ -303,7 +306,7 @@ export class LayoutComponent implements OnInit, AfterViewInit { |
|
|
|
this.renderer.setStyle(sysEL, "width", this.divContent.width); |
|
|
|
} |
|
|
|
if (type === "H") { |
|
|
|
this.renderer.setStyle(sysEL, "height", this.divContent.width); |
|
|
|
this.renderer.setStyle(sysEL, "height", this.divContent.height); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
@ -345,7 +348,7 @@ export class LayoutComponent implements OnInit, AfterViewInit { |
|
|
|
this.commonService |
|
|
|
.postWithHeaders( |
|
|
|
this.commonService.apiUrl + |
|
|
|
"/restful/standard/demo/api/517/config/save", |
|
|
|
"/restful/standard/demo/api/517/config/save", |
|
|
|
this.divContent, |
|
|
|
{ |
|
|
|
"Digi-Middleware-Auth-App": DigiMiddlewareAuthApp, |
|
|
|