diff --git a/nezha-fronted/src/components/common/exportXLSX.vue b/nezha-fronted/src/components/common/exportXLSX.vue index 2c07bdbdc..e78ec8cf8 100644 --- a/nezha-fronted/src/components/common/exportXLSX.vue +++ b/nezha-fronted/src/components/common/exportXLSX.vue @@ -133,6 +133,8 @@ url = "/asset/cancelImport"; } else if (this.importUrl.indexOf("endpoint") > -1) { url = "/endpoint/cancelImport"; + } else if (this.importUrl.indexOf("rule") > -1) { + url = "/alert/rule/cancelImport"; } this.$delete(url + '?seq='+this.importResult.seq).then(response=>{ if(response.code == 200 ){ @@ -182,9 +184,9 @@ let url=null; if (this.importUrl.indexOf("asset") > -1) { url = "/asset/template"; - } /*else if (this.importUrl.indexOf("endpoint") > -1) { - url = "/endpoint/template"; - }*/ + } else if (this.importUrl.indexOf("rule") > -1) { + url = "/alert/rule/template"; + } let param={language:language} if(!url){ diff --git a/nezha-fronted/src/components/page/alert/config.vue b/nezha-fronted/src/components/page/alert/config.vue index d13b32580..923e2cd8f 100644 --- a/nezha-fronted/src/components/page/alert/config.vue +++ b/nezha-fronted/src/components/page/alert/config.vue @@ -12,10 +12,21 @@ - + + + @@ -107,9 +118,13 @@