Browse Source

[新增]增加两个预警类型

beijing
邵佳豪 2 years ago
parent
commit
cc33497c75
  1. 2
      src/app/pages/today-warning/get-out-of-line-details/get-out-of-line-details.component.scss
  2. 5
      src/app/pages/today-warning/get-out-of-line-details/get-out-of-line-details.component.ts

2
src/app/pages/today-warning/get-out-of-line-details/get-out-of-line-details.component.scss

@ -1,7 +1,5 @@
.box {
width: 100%;
// min-height: 715px;
// overflow-y: auto;
color: #fff;
display: flex;
flex-direction: column;

5
src/app/pages/today-warning/get-out-of-line-details/get-out-of-line-details.component.ts

@ -64,11 +64,13 @@ export class GetOutOfLineDetailsComponent implements OnInit {
{ id: 12, name: "卸油车", color: "yellow" },
{ id: 13, name: "私家车", color: "black" },
{ id: 14, name: "断开的卸油管", color: "blue" },
{ id: 15, name: "烟雾预警", color: "#B4C3FF" },
{ id: 16, name: "火灾报警", color: "red" },
];
userName; //登录账号的用户名
isShowAxOtherRegion; //控制哪些用户可以看到ax全部
ngOnInit(): void {
console.log("传进来的信息", this.data);
// 安信框选
this.userName = JSON.parse(sessionStorage.getItem("userdata")).userName;
if (this.userName === "admin" || this.userName === "superadmin") {
@ -261,7 +263,6 @@ export class GetOutOfLineDetailsComponent implements OnInit {
});
}
typeChange(item) {
if (item.checked) {
this.coordinate.forEach((element) => {

Loading…
Cancel
Save