From d83c8f2bdc1ee9e0e66bc692496e19fc47ab2e2d Mon Sep 17 00:00:00 2001 From: SHAOJIAHAO <55341701@qq.com> Date: Sat, 7 Nov 2020 14:38:27 +0800 Subject: [PATCH 1/2] =?UTF-8?q?[=E5=AE=8C=E5=96=84]=E5=AE=8C=E5=96=84?= =?UTF-8?q?=E5=AE=89=E5=85=A8=E7=96=8F=E6=95=A3=E5=92=8C=E6=B6=88=E9=98=B2?= =?UTF-8?q?=E8=AE=BE=E6=96=BD=E6=83=85=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../fire-fighting-device.component.ts | 14 ++++++++++++++ .../training-recordinfo.component.html | 2 +- .../training-recordinfo.component.ts | 4 ++++ 3 files changed, 19 insertions(+), 1 deletion(-) diff --git a/src/app/key-unit/fire-fighting-device/fire-fighting-device.component.ts b/src/app/key-unit/fire-fighting-device/fire-fighting-device.component.ts index 0f6af69..3e2f3e3 100644 --- a/src/app/key-unit/fire-fighting-device/fire-fighting-device.component.ts +++ b/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) + } }) }); diff --git a/src/app/ui/training-recordinfo/training-recordinfo.component.html b/src/app/ui/training-recordinfo/training-recordinfo.component.html index 0c60302..2260876 100644 --- a/src/app/ui/training-recordinfo/training-recordinfo.component.html +++ b/src/app/ui/training-recordinfo/training-recordinfo.component.html @@ -13,7 +13,7 @@
编辑
+编辑