aboutsummaryrefslogtreecommitdiffstats
path: root/usecaseui-portal/src/app/components/performance-details/performance-details.component.ts
diff options
context:
space:
mode:
authorzhangab <zhanganbing@chinamobile.com>2018-10-31 16:36:06 +0800
committerzhangab <zhanganbing@chinamobile.com>2018-10-31 16:36:36 +0800
commita5a05aa4c736c58d606234aa47a266cce054cd2d (patch)
tree8ffb5bbc12af6995585fcb8d33608e9f1e0148c5 /usecaseui-portal/src/app/components/performance-details/performance-details.component.ts
parent13de0d893a4ff6d45a49861f7536822e6be1c801 (diff)
Fix VNF Performance Query Bugs
Change-Id: I65637d6f058905d0918e5dc1740594572fa4c931 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.ts39
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';
+ }
+}