From d1646b926d9c3830fa3c37c0314fdfd8e4e98315 Mon Sep 17 00:00:00 2001 From: qianlishi <1432731663@qq.com> Date: Tue, 29 Jun 2021 14:48:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=A7=E5=B1=8F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/report/bigscreen/designer/index.vue | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/report-ui/src/views/report/bigscreen/designer/index.vue b/report-ui/src/views/report/bigscreen/designer/index.vue index 3ad9e2e6..e14d3b5f 100644 --- a/report-ui/src/views/report/bigscreen/designer/index.vue +++ b/report-ui/src/views/report/bigscreen/designer/index.vue @@ -585,12 +585,12 @@ export default { widgetValueChanged(key, val) { if (this.screenCode == "screen") { this.dashboard = this.deepClone(val); - } - - for (let i = 0; i < this.widgets.length; i++) { - if (this.widgetIndex == i) { - this.widgets[i].value[key] = this.deepClone(val); - this.setDefaultValue(this.widgets[i].options[key], val); + } else { + for (let i = 0; i < this.widgets.length; i++) { + if (this.widgetIndex == i) { + this.widgets[i].value[key] = this.deepClone(val); + this.setDefaultValue(this.widgets[i].options[key], val); + } } } },