} else if (select == "common_disabled") {
this.ruleModel.enabled = 0;
} else {
-
- this.ruleModel.enabled = null;
+ this.ruleModel.enabled = 2;
}
this.setActiveText();
}
public reset(): void {
this.ruleModel.ruleName = null;
this.activeText = 'option_all';
- this.ruleModel.enabled = null;
+ this.ruleModel.enabled = 2;
this.getRules();
}
creator: null,
updateTime: null,
modifier: null,
- enabled: 0,
+ enabled: 2,
loopControlName: ''
};
this.ruleRequest = {
ruleName: null,
creator: null,
modifier: null,
- enabled: null,
+ enabled: 2,
loopControlName: ''
};
this.getRules();
let data = {'ruleId': ruleId};
var queryrequest = JSON.stringify(data);
const url = `${this.ruleUrl}?queryrequest=${queryrequest}`;
- return this.http.get(url, {headers: this.headers})
+ return this.http.get(encodeURI(url))
.toPromise()
.then(res => res.json().correlationRules as RuleModel[])
.catch(this.handleError);
let data = {ruleName: rule.ruleName, enabled: rule.enabled}
console.log(JSON.stringify(data));
const url = `${this.ruleUrl}?queryrequest=${JSON.stringify(data)}`
- return this.http.get(url, {body: data, headers: this.headers})
+ return this.http.get(encodeURI(url))
.toPromise()
.then(res => res.json().correlationRules as RuleModel[])
.catch(this.handleError);