aboutsummaryrefslogtreecommitdiffstats
path: root/usecaseui-portal/src/app/components/performance-details/performance-details.component.ts
diff options
context:
space:
mode:
authorzhangab <zhanganbing@chinamobile.com>2018-11-08 17:34:00 +0800
committerzhangab <zhanganbing@chinamobile.com>2018-11-08 17:34:13 +0800
commit5a45365c037a43d2c0a04ffb96b3f91f7e49b6ac (patch)
treea5d1730dcb5ed5b6c8b819854476394879da42d9 /usecaseui-portal/src/app/components/performance-details/performance-details.component.ts
parentaf41cf8c45aad0a940c45141cb9d5572423d60b9 (diff)
Fix VNF Performance Query Bugs
Change-Id: Ibc9c8cbd5425bff5b0158bb7ee2a3a8f25a05e89 Issue-ID: USECASEUI-166 Signed-off-by: zhangab <zhanganbing@chinamobile.com>
Diffstat (limited to 'usecaseui-portal/src/app/components/performance-details/performance-details.component.ts')
-rw-r--r--usecaseui-portal/src/app/components/performance-details/performance-details.component.ts19
1 files changed, 11 insertions, 8 deletions
diff --git a/usecaseui-portal/src/app/components/performance-details/performance-details.component.ts b/usecaseui-portal/src/app/components/performance-details/performance-details.component.ts
index 2e174474..83467172 100644
--- a/usecaseui-portal/src/app/components/performance-details/performance-details.component.ts
+++ b/usecaseui-portal/src/app/components/performance-details/performance-details.component.ts
@@ -14,20 +14,23 @@ export class PerformanceDetailsComponent implements OnInit {
constructor(private myhttp:MyhttpService) { }
ngOnInit() {
- this.getAlarmDetailData(this.detailId);
+
}
ngOnChanges(changes){
- // console.log(changes);
+ console.log(this.detailId)
+ this.getPerformanceHeaderDetail(this.detailId);
}
datailheaderdata: any = {};
dataillistdata: any = [];
- getAlarmDetailData(id){
- this.myhttp.getAlarmDetailData(id).subscribe((data)=>{
- console.log(data)
- this.datailheaderdata = data.alarmsHeader;
- this.dataillistdata = data.list;
- })
+ getPerformanceHeaderDetail(id){
+ if(id){
+ this.myhttp.getPerformanceHeaderDetail(id).subscribe((data)=>{
+ console.log(data)
+ this.datailheaderdata = data.performanceHeader;
+ this.dataillistdata = data.list;
+ })
+ }
}
moredetailShow = false;
@Input() detailId;