+
@@ -148,10 +168,16 @@ export default {
},
variablesArr () {
return this.$store.getters.getVariablesArr
+ },
+ notebookEdit () { // 是否是编辑状态
+ return this.$store.getters.getNotebookEdit
}
},
methods: {
isGroup,
+ addNotebook (position) {
+ bus.$emit('addNotebook', position)
+ },
variablesHandle (searchTime) {
this.setGlobalVariablesValue(searchTime)
this.myVariables = []
@@ -524,7 +550,7 @@ export default {
this.chartData = [this.chartInfo.param.topo]
}
if (isRefresh) {
- let dom = this.$refs.chart.$refs['chart' + this.chartInfo.id]
+ const dom = this.$refs.chart.$refs['chart' + this.chartInfo.id]
if (dom) {
dom.refresh([startTime, endTime])
}
diff --git a/nezha-fronted/src/components/common/alert/alertLabel.vue b/nezha-fronted/src/components/common/alert/alertLabel.vue
index 9919ff893..5831d0c22 100644
--- a/nezha-fronted/src/components/common/alert/alertLabel.vue
+++ b/nezha-fronted/src/components/common/alert/alertLabel.vue
@@ -24,6 +24,19 @@