diff --git a/frontend/src/views/chart/view/ChartEdit.vue b/frontend/src/views/chart/view/ChartEdit.vue index ea098c9aae..450da9a788 100644 --- a/frontend/src/views/chart/view/ChartEdit.vue +++ b/frontend/src/views/chart/view/ChartEdit.vue @@ -1298,6 +1298,11 @@ export default { type: String, required: false, default: 'view' + }, + editStatue: { + type: Boolean, + required: false, + default: false } }, data() { @@ -1416,10 +1421,17 @@ export default { } */ }, watch: { + 'editStatue': function(val) { + if (val && this.param.id !== this.preChartId) { + this.preChartId = this.param.id + this.chartInit() + // console.log('fromwatch:' + JSON.stringify(val)) + } + }, 'param': function(val) { if (this.param.optType === 'new') { // - } else if (this.param.id !== this.preChartId) { + } else if (this.param.id !== this.preChartId && this.editStatue) { this.preChartId = this.param.id this.chartInit() // console.log('fromwatch:' + JSON.stringify(val)) diff --git a/frontend/src/views/panel/edit/index.vue b/frontend/src/views/panel/edit/index.vue index 380c0b7b9f..61de117100 100644 --- a/frontend/src/views/panel/edit/index.vue +++ b/frontend/src/views/panel/edit/index.vue @@ -24,7 +24,7 @@ -
+
@@ -204,9 +204,9 @@ - + -
-
- +
+
+
-
+
@@ -302,7 +302,7 @@ > - +