fix:修改 silence rule endpoint显示 以及添加 alertRule的上滑

This commit is contained in:
zhangyu
2021-05-08 18:08:32 +08:00
parent b69f50654e
commit 7db2b77574
11 changed files with 47 additions and 24 deletions

View File

@@ -294,12 +294,15 @@ export default {
delete this.searchLabel.endAt
}
this.tools.loading = true
console.log(this.obj,123123123123)
if (this.from === fromRoute.module) {
this.searchLabel.moduleIds = this.obj.id
} else if (this.from === fromRoute.endpoint) {
this.searchLabel.endpointIds = this.obj.id
} else if (this.from === fromRoute.asset) {
this.searchLabel.assetIds = this.obj.id
} else if (this.from === fromRoute.alertRule) {
this.searchLabel.ruleIds = this.obj.id
}
this.$get(this.url, this.searchLabel).then(response => {
this.tools.loading = false