NEZ-3278 perf:stat chart样式优化

This commit is contained in:
zyh
2023-11-06 17:02:31 +08:00
parent a697572982
commit 44770f2e8c
6 changed files with 132 additions and 82 deletions

View File

@@ -205,6 +205,13 @@ export default {
}
},
methods: {
notebookSave (data) {
if (this.detailType === 'list') {
this.$refs.dataList.showBottomBox('notebookTab', data)
} else {
this.detailViewRightObj = this.$lodash.cloneDeep(data)
}
},
add () {
this.$store.commit('setNotebookEdit', true)
const username = localStorage.getItem('nz-username')
@@ -281,6 +288,10 @@ export default {
this.initQueryFromPath(searchKeys)
},
mounted () {
bus.$on('notebookSave', this.notebookSave)
},
beforeDestroy () {
bus.$off('notebookSave', this.notebookSave)
}
}
</script>