summaryrefslogtreecommitdiffstats
path: root/rulemgt-frontend
diff options
context:
space:
mode:
Diffstat (limited to 'rulemgt-frontend')
-rw-r--r--rulemgt-frontend/pom.xml2
-rw-r--r--rulemgt-frontend/src/app/correlation-ruleInfo/ruleInfo.component.ts10
2 files changed, 7 insertions, 5 deletions
diff --git a/rulemgt-frontend/pom.xml b/rulemgt-frontend/pom.xml
index 2415bb2..dfba79e 100644
--- a/rulemgt-frontend/pom.xml
+++ b/rulemgt-frontend/pom.xml
@@ -79,6 +79,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
+ <version>3.3.2</version>
<configuration>
<failOnMissingWebXml>false</failOnMissingWebXml>
<warSourceExcludes>
@@ -103,6 +104,7 @@
<descriptors>
<descriptor>assembly.xml</descriptor>
</descriptors>
+ <tarLongFileMode>posix</tarLongFileMode>
<appendAssemblyId>false</appendAssemblyId>
<outputDirectory>target/</outputDirectory>
</configuration>
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;