Browse Source

[完善]首页增加进入预警页面入口按钮

beijing
邵佳豪 1 year ago
parent
commit
d67ab60f12
  1. 3
      src/app/pages/gis-home/gis-home.component.html
  2. 10
      src/app/pages/gis-home/gis-home.component.scss
  3. 6
      src/app/pages/gis-home/gis-home.component.ts

3
src/app/pages/gis-home/gis-home.component.html

@ -61,4 +61,7 @@
<div class="unitList" [hidden]="!isConnectedUnit">
<app-card-list [title]="'已接入单位'" [data]="unitList1" (childEvent)="handleChildData($event)"></app-card-list>
</div>
<div class="secretkey" (dblclick)="secretkeyTo()"></div>
</div>

10
src/app/pages/gis-home/gis-home.component.scss

@ -144,3 +144,13 @@
top: 2%;
z-index: 500;
}
.secretkey {
position: absolute;
right: 0;
bottom: 0;
width: 5px;
height: 5px;
cursor: pointer;
z-index: 999;
}

6
src/app/pages/gis-home/gis-home.component.ts

@ -1392,4 +1392,10 @@ export class GisHomeComponent implements OnInit {
this.isConnectedUnit = false;
}
}
secretkeyTo() {
if (confirm("确定进入预警页面吗?")) {
window.open("/todaywarning");
}
}
}

Loading…
Cancel
Save