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