diff options
author | Guangrong Fu <fu.guangrong@zte.com.cn> | 2021-12-28 10:14:42 +0800 |
---|---|---|
committer | Guangrong Fu <fu.guangrong@zte.com.cn> | 2022-08-11 20:18:53 +0800 |
commit | a796bda2f8e2db093ce9f528f6e5960e4aa1b22c (patch) | |
tree | 04642b9f3be109a5ccc051e4876851aa0b4fa3f3 /rulemgt-frontend/src/app | |
parent | 71ad58788ebfd666f6922fd9c16f77a9a4e39e27 (diff) |
Migrate from DW to Springboot
Issue-ID: HOLMES-511
Signed-off-by: Guangrong Fu <fu.guangrong@zte.com.cn>
Change-Id: I1be0775a4fc8b754218cd584a5de7af96b2ee0e2
Diffstat (limited to 'rulemgt-frontend/src/app')
-rw-r--r-- | rulemgt-frontend/src/app/correlation-ruleInfo/ruleInfo.component.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/rulemgt-frontend/src/app/correlation-ruleInfo/ruleInfo.component.ts b/rulemgt-frontend/src/app/correlation-ruleInfo/ruleInfo.component.ts index 93a0662..e60dbef 100644 --- a/rulemgt-frontend/src/app/correlation-ruleInfo/ruleInfo.component.ts +++ b/rulemgt-frontend/src/app/correlation-ruleInfo/ruleInfo.component.ts @@ -110,7 +110,7 @@ export class RuleInfo implements OnInit { let msg = { title: 'modalTitleUpdate', message: 'message_update_rule_success' }; this.modalService.announceOpenModal(msg); this.router.navigate(['alarmRule']); - } else if (res.status == 499) { + } else if (res.status == 500) { let msg = { title: 'modalTitleUpdate', message: 'message_exception_rule_fail' }; this.modalService.announceOpenModal(msg); } else { @@ -123,7 +123,7 @@ export class RuleInfo implements OnInit { this.modalService.announceOpenModal(msg); } ); - } else if (res.status == 499) { + } else if (res.status == 500) { let msg = { 'title': 'modalTitleCheck', message: 'message_rule_content_repeat_error' }; this.modalService.announceOpenModal(msg); return false; @@ -152,7 +152,7 @@ export class RuleInfo implements OnInit { let msg = { title: 'modalTitleDefault', message: 'message_add_rule_success' }; this.modalService.announceOpenModal(msg); this.router.navigate(['alarmRule']); - } else if (res.status == 499) { + } else if (res.status == 500) { let msg = { title: 'modalTitleDefault', message: 'message_rule_name_repeat_error' }; this.modalService.announceOpenModal(msg); } else { @@ -165,7 +165,7 @@ export class RuleInfo implements OnInit { this.modalService.announceOpenModal(msg); }); return true; - } else if (res.status == 499) { + } else if (res.status == 500) { let msg = { 'title': 'modalTitleCheck', message: 'message_rule_content_repeat_error' }; this.modalService.announceOpenModal(msg); return false; @@ -196,7 +196,7 @@ export class RuleInfo implements OnInit { if (res.status == 200) { let msg = { 'title': 'modalTitleCheck', message: 'message_checkContent_rule_success' }; this.modalService.announceOpenModal(msg); - } else if (res.status == 499) { + } else if (res.status == 500) { let msg = { 'title': 'modalTitleCheck', message: 'message_rule_content_repeat_error' }; this.modalService.announceOpenModal(msg); return false; |