NEZ-602 perf: 向导大部分内容

This commit is contained in:
chenjinsong
2021-05-11 22:29:14 +08:00
parent ba854123d4
commit b23b0d347a
14 changed files with 647 additions and 127 deletions

View File

@@ -158,26 +158,18 @@ export default {
this.rightBox.show = true
}
})
},
initEvent () {
bus.$on('alert-rule-list-change', () => {
this.getTableData()
})
bus.$on('dc-list-change', () => {
this.getTableData()
})
bus.$on('alert-message-change', () => {
this.getTableData()
})
}
},
beforeDestroy () {
bus.$off('alert-rule-list-change')
bus.$off('dc-list-change')
bus.$off('alert-message-change')
},
mounted () {
this.initEvent()
// 是否弹出侧滑
const add = this.$route.query.add
if (add) {
if (add === 'alertRule') {
this.add()
}
}
}
}
</script>