summaryrefslogtreecommitdiffstats
path: root/usecaseui-portal/src/app/components/details/details.component.ts
diff options
context:
space:
mode:
authorzhangab <zhanganbing@chinamobile.com>2018-11-08 12:37:25 +0800
committerzhangab <zhanganbing@chinamobile.com>2018-11-08 12:38:00 +0800
commita85d5280af7c04207bfb725e4bae037ba0eac3bf (patch)
tree9f6bf2f6d2810f5334c73ce0e77ad1559919dee9 /usecaseui-portal/src/app/components/details/details.component.ts
parent5068ef4e733342d03d30ad895e5dcbeb4b6390b1 (diff)
Fix VNF Alarm Query Bugs
Change-Id: I8cc18d8f7bf02002d062e30aa5b5abd13743d6dd Issue-ID: USECASEUI-165 Signed-off-by: zhangab <zhanganbing@chinamobile.com>
Diffstat (limited to 'usecaseui-portal/src/app/components/details/details.component.ts')
-rw-r--r--usecaseui-portal/src/app/components/details/details.component.ts31
1 files changed, 10 insertions, 21 deletions
diff --git a/usecaseui-portal/src/app/components/details/details.component.ts b/usecaseui-portal/src/app/components/details/details.component.ts
index 4965ed70..19da9e66 100644
--- a/usecaseui-portal/src/app/components/details/details.component.ts
+++ b/usecaseui-portal/src/app/components/details/details.component.ts
@@ -1,18 +1,3 @@
-/*
- Copyright (C) 2018 CMCC, Inc. and others. All rights reserved.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-*/
import { Component, OnInit, Input } from '@angular/core';
import { slideUpDown } from '../../animates';
import { MyhttpService } from '../../myhttp.service';
@@ -34,14 +19,18 @@ export class DetailsComponent implements OnInit {
this.getAlarmDetailData(this.detailId);
}
- datailheaderdata: any = {};
+ datailheaderdata: any = {
+
+ };
dataillistdata: any = [];
getAlarmDetailData(id){
- this.myhttp.getAlarmDetailData(id).subscribe((data)=>{
- // console.log(data)
- this.datailheaderdata = data.alarmsHeader;
- this.dataillistdata = data.list;
- })
+ if(id){
+ this.myhttp.getAlarmDetailData(id).subscribe((data)=>{
+ this.datailheaderdata = data.alarmsHeader;
+ this.dataillistdata = data.list;
+ })
+ }
+
}
// 详情显示
moredetailShow = false;