Browse Source

[完善]完善安全疏散和消防设施情况

master
邵佳豪 4 years ago
parent
commit
d83c8f2bdc
  1. 14
      src/app/key-unit/fire-fighting-device/fire-fighting-device.component.ts
  2. 2
      src/app/ui/training-recordinfo/training-recordinfo.component.html
  3. 4
      src/app/ui/training-recordinfo/training-recordinfo.component.ts

14
src/app/key-unit/fire-fighting-device/fire-fighting-device.component.ts

@ -59,6 +59,13 @@ export class FireFightingDeviceComponent implements OnInit {
elements.total = element.facilityCount[index]
elements.expanded = false});
});
if(sessionStorage.getItem("tabsindex") == "4"){
this.companyBuiltInGrouping = [this.companyBuiltInGrouping[1]]
this.companyOptionalGrouping = []
}
if(sessionStorage.getItem("tabsindex") == "5"){
this.companyBuiltInGrouping.splice(1,1)
}
}) //http
} //if
@ -254,6 +261,13 @@ export class FireFightingDeviceComponent implements OnInit {
newElement.total = elements.facilityCount[index]
newElement.expanded = false });
});
if(sessionStorage.getItem("tabsindex") == "4"){
element.buildingFacilityGroups = [element.buildingFacilityGroups[1]]
element.buildingOptionalGroups = []
}
if(sessionStorage.getItem("tabsindex") == "5"){
element.buildingFacilityGroups.splice(1,1)
}
})
});

2
src/app/ui/training-recordinfo/training-recordinfo.component.html

@ -13,7 +13,7 @@
<div class="content">
<div class="cardbox">
<mat-tab-group style="height: 97%;" [selectedIndex]="tabsSelectedIndex">
<mat-tab-group style="height: 97%;" [selectedIndex]="tabsSelectedIndex" (selectedTabChange)="selectedtab($event)">
<mat-tab label="行驶路线">
<ng-template matTabContent>

4
src/app/ui/training-recordinfo/training-recordinfo.component.ts

@ -15,4 +15,8 @@ export class TrainingRecordinfoComponent implements OnInit {
console.log($event);//data from child
this.tabsSelectedIndex = 1
}
selectedtab(e){
sessionStorage.setItem("tabsindex",e.index)
// console.log(e.index)
}
}

Loading…
Cancel
Save