diff options
author | 2018-10-31 13:16:46 +0000 | |
---|---|---|
committer | 2018-10-31 13:16:46 +0000 | |
commit | bd3cce8eb5c25d30efa4d6ddb5607294376f85e0 (patch) | |
tree | 2bb49500a607c16970682e7af9cc67db92cc3310 /usecaseui-portal/src/app/components/performance-details/performance-details.component.ts | |
parent | 1dcd8649eb001522e83cc9ca77f8347b6bd20765 (diff) | |
parent | a5a05aa4c736c58d606234aa47a266cce054cd2d (diff) |
Merge "Fix VNF Performance Query Bugs"
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.ts | 39 |
1 files changed, 39 insertions, 0 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 new file mode 100644 index 00000000..9f70824b --- /dev/null +++ b/usecaseui-portal/src/app/components/performance-details/performance-details.component.ts @@ -0,0 +1,39 @@ +import { Component, OnInit, Input } from '@angular/core'; +import { slideUpDown } from '../../animates'; +import { MyhttpService } from '../../myhttp.service'; + +@Component({ + selector: 'app-performance-details', + templateUrl: './performance-details.component.html', + styleUrls: ['./performance-details.component.less'], + animations: [ slideUpDown ] +}) +export class PerformanceDetailsComponent implements OnInit { + + + constructor(private myhttp:MyhttpService) { } + + ngOnInit() { + this.getAlarmDetailData(7); + } + + ngOnChanges(changes){ + console.log(changes); + } + datailheaderdata: any = {}; + dataillistdata: any = []; + getAlarmDetailData(id){ + this.myhttp.getAlarmDetailData(id).subscribe((data)=>{ + console.log(data) + this.datailheaderdata = data.alarmsHeader; + this.dataillistdata = data.list; + }) + } + moredetailShow = false; + @Input() detailId; + state = 'up' + slideUpDown(){ + this.moredetailShow = !this.moredetailShow; + this.state = this.state === 'up' ? 'down' : 'up'; + } +} |