diff options
author | GuangrongFu <fu.guangrong@zte.com.cn> | 2018-08-03 08:38:16 +0800 |
---|---|---|
committer | GuangrongFu <fu.guangrong@zte.com.cn> | 2018-08-03 08:38:16 +0800 |
commit | 2f6d3758fbc70ee6aac10063a8784a0f34c48a4d (patch) | |
tree | 221ead7bb98f39336312b36897c9cefc9fa6f423 /rulemgt-frontend/src/app/correlation-ruleList/alarmRule.service.ts | |
parent | 9c89d648ca92eccc3a1d6d867eb6188c725f698e (diff) |
Fixed some UI bugs
Change-Id: Ic7229b94bcfca46b33bc3e6184e4dccf34982c60
Issue-ID: HOLMES-154
Signed-off-by: GuangrongFu <fu.guangrong@zte.com.cn>
Diffstat (limited to 'rulemgt-frontend/src/app/correlation-ruleList/alarmRule.service.ts')
-rw-r--r-- | rulemgt-frontend/src/app/correlation-ruleList/alarmRule.service.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rulemgt-frontend/src/app/correlation-ruleList/alarmRule.service.ts b/rulemgt-frontend/src/app/correlation-ruleList/alarmRule.service.ts index b410d6d..1f0ee3e 100644 --- a/rulemgt-frontend/src/app/correlation-ruleList/alarmRule.service.ts +++ b/rulemgt-frontend/src/app/correlation-ruleList/alarmRule.service.ts @@ -59,7 +59,7 @@ export class AlarmRuleService { const url = `${this.ruleUrl}?queryrequest=${queryrequest}`; return this.http.get(url, {headers:this.headers}) .toPromise() - .then(res => res.json().rules as RuleModel) + .then(res => res.json().correlationRules as RuleModel[]) .catch(this.handleError); } @@ -69,7 +69,7 @@ export class AlarmRuleService { const url = `${this.ruleUrl}?queryrequest=${JSON.stringify(data)}` return this.http.get(url, { body: data, headers: this.headers }) .toPromise() - .then(res => res.json().correlatoinRules as RuleModel[]) + .then(res => res.json().correlationRules as RuleModel[]) .catch(this.handleError); } |