|
|
|
@ -68,6 +68,7 @@ export class GetOutOfLineDetailsComponent implements OnInit {
|
|
|
|
|
userName; //登录账号的用户名
|
|
|
|
|
isShowAxOtherRegion; //控制哪些用户可以看到ax全部
|
|
|
|
|
ngOnInit(): void { |
|
|
|
|
|
|
|
|
|
// 安信框选
|
|
|
|
|
this.userName = JSON.parse(sessionStorage.getItem("userdata")).userName; |
|
|
|
|
if (this.userName === "admin" || this.userName === "superadmin") { |
|
|
|
@ -75,9 +76,14 @@ export class GetOutOfLineDetailsComponent implements OnInit {
|
|
|
|
|
} else { |
|
|
|
|
this.isShowAxOtherRegion = false; |
|
|
|
|
} |
|
|
|
|
if (this.data.violatedItemSnapshot) { |
|
|
|
|
if ( |
|
|
|
|
this.data.violatedItemSnapshot && |
|
|
|
|
this.data.violation.eventSystemName.indexOf("证照") == -1 && |
|
|
|
|
this.data.violation.eventSystemName.indexOf("设备") == -1 |
|
|
|
|
) { |
|
|
|
|
this.isAnxin = true; |
|
|
|
|
} |
|
|
|
|
if (this.isAnxin) { |
|
|
|
|
let dataArr = []; |
|
|
|
|
for (const key in JSON.parse(this.data.violatedItemSnapshot)) { |
|
|
|
|
const element = JSON.parse(this.data.violatedItemSnapshot)[key]; |
|
|
|
@ -97,10 +103,10 @@ export class GetOutOfLineDetailsComponent implements OnInit {
|
|
|
|
|
this.legendList.push(checkboxArr[i]); |
|
|
|
|
} |
|
|
|
|
setTimeout(() => { |
|
|
|
|
if (this.isAnxin == true) { |
|
|
|
|
this.canvasLabel(); |
|
|
|
|
} |
|
|
|
|
}, 0); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// 安信框选
|
|
|
|
|
|
|
|
|
|
console.log("预警信息", this.data); |
|
|
|
|