diff --git a/report-ui/src/views/report/bigscreen/designer/widget/widgetMarquee.vue b/report-ui/src/views/report/bigscreen/designer/widget/widgetMarquee.vue index 9fccd667..4c9ea4c0 100644 --- a/report-ui/src/views/report/bigscreen/designer/widget/widgetMarquee.vue +++ b/report-ui/src/views/report/bigscreen/designer/widget/widgetMarquee.vue @@ -65,13 +65,9 @@ export default { // 数据解析 setOptionsData() { const optionsData = this.optionsData; // 数据类型 静态 or 动态 - optionsData.dataType == "staticData" - ? this.staticDataFn(optionsData.staticData) - : this.dynamicDataFn(optionsData.dynamicData, optionsData.refreshTime); - }, - staticDataFn(val) { - this.styleColor.text = val; - this.$forceUpdate(); + if (optionsData.dataType == "dynamicData") { + this.dynamicDataFn(optionsData.dynamicData, optionsData.refreshTime); + } else {}; }, dynamicDataFn(val, refreshTime) { if (!val) return; diff --git a/report-ui/src/views/report/bigscreen/designer/widget/widgetText.vue b/report-ui/src/views/report/bigscreen/designer/widget/widgetText.vue index 12ba5fac..95b59718 100644 --- a/report-ui/src/views/report/bigscreen/designer/widget/widgetText.vue +++ b/report-ui/src/views/report/bigscreen/designer/widget/widgetText.vue @@ -63,13 +63,9 @@ export default { // 数据解析 setOptionsData() { const optionsData = this.optionsData; // 数据类型 静态 or 动态 - optionsData.dataType == "staticData" - ? this.staticDataFn(optionsData.staticData) - : this.dynamicDataFn(optionsData.dynamicData, optionsData.refreshTime); - }, - staticDataFn(val) { - this.styleColor.text = val; - this.$forceUpdate(); + if (optionsData.dataType == "dynamicData") { + this.dynamicDataFn(optionsData.dynamicData, optionsData.refreshTime); + } else {}; }, dynamicDataFn(val, refreshTime) { if (!val) return;