NEZ-2207 feat:alert rule 批量导入页面开发
This commit is contained in:
@@ -240,20 +240,44 @@ export default {
|
||||
language () { return this.$store.getters.getLanguage },
|
||||
// 显示新版导入
|
||||
importType () {
|
||||
// asset module endpoint dc cabinet model
|
||||
const arr = ['/asset/asset/import', '/monitor/module/import', '/monitor/endpoint/import', '/dc/import', '/dc/cabinet/import', '/asset/model/import']
|
||||
// asset module endpoint dc cabinet model alertRule
|
||||
const arr = [
|
||||
'/asset/asset/import',
|
||||
'/monitor/module/import',
|
||||
'/monitor/endpoint/import',
|
||||
'/dc/import',
|
||||
'/dc/cabinet/import',
|
||||
'/asset/model/import',
|
||||
'/alert/rule/import'
|
||||
]
|
||||
return arr.some(item => item === this.importUrl)
|
||||
},
|
||||
// 已存在的内容处理方式
|
||||
showEexisted () {
|
||||
// asset module endpoint dc cabinet model
|
||||
const arr = ['/asset/asset/import', '/monitor/module/import', '/monitor/endpoint/import', '/dc/import', '/dc/cabinet/import', '/asset/model/import']
|
||||
// asset module endpoint dc cabinet model alertRule
|
||||
const arr = [
|
||||
'/asset/asset/import',
|
||||
'/monitor/module/import',
|
||||
'/monitor/endpoint/import',
|
||||
'/dc/import',
|
||||
'/dc/cabinet/import',
|
||||
'/asset/model/import',
|
||||
'/alert/rule/import'
|
||||
]
|
||||
return arr.some(item => item === this.importUrl)
|
||||
},
|
||||
// 遇到错误是否继续导入
|
||||
showIgnoreError () {
|
||||
// asset module endpoint dc cabinet model
|
||||
const arr = ['/asset/asset/import', '/monitor/module/import', '/monitor/endpoint/import', '/dc/import', '/dc/cabinet/import', '/asset/model/import']
|
||||
// asset module endpoint dc cabinet model alertRule
|
||||
const arr = [
|
||||
'/asset/asset/import',
|
||||
'/monitor/module/import',
|
||||
'/monitor/endpoint/import',
|
||||
'/dc/import',
|
||||
'/dc/cabinet/import',
|
||||
'/asset/model/import',
|
||||
'/alert/rule/import'
|
||||
]
|
||||
return arr.some(item => item === this.importUrl)
|
||||
},
|
||||
// 是否同步更新关联的dashboard
|
||||
|
||||
Reference in New Issue
Block a user