From 1e392b7bfd6341f5eee0ed77dca17a8217ada0a9 Mon Sep 17 00:00:00 2001 From: qianlishi <1432731663@qq.com> Date: Tue, 29 Jun 2021 09:45:39 +0800 Subject: [PATCH] update bug --- report-ui/src/views/report/bigscreen/designer/index.vue | 3 +-- .../src/views/report/bigscreen/designer/widget/widget.vue | 4 +--- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/report-ui/src/views/report/bigscreen/designer/index.vue b/report-ui/src/views/report/bigscreen/designer/index.vue index 2a9d602c..2f8dc327 100644 --- a/report-ui/src/views/report/bigscreen/designer/index.vue +++ b/report-ui/src/views/report/bigscreen/designer/index.vue @@ -317,7 +317,6 @@ export default { handlerLayerWidget(val) { const layerWidgetArr = []; for (let i = 0; i < val.length; i++) { - console.log(getToolByCode(val[i].type)); const obj = {}; obj.icon = getToolByCode(val[i].type).icon; const options = val[i].options["setup"]; @@ -554,7 +553,6 @@ export default { return; } this.widgetIndex = obj.index; - this.widgetOptions = this.deepClone(this.widgets[obj.index]["options"]); this.widgets[obj.index].value.position = obj; this.widgets[obj.index].options.position.forEach(el => { for (const key in obj) { @@ -563,6 +561,7 @@ export default { } } }); + this.widgetOptions = this.deepClone(this.widgets[obj.index]["options"]); }, widgetsClick(index) { const draggableArr = this.$refs.widgets; diff --git a/report-ui/src/views/report/bigscreen/designer/widget/widget.vue b/report-ui/src/views/report/bigscreen/designer/widget/widget.vue index a0d37ee2..bdfd65f9 100644 --- a/report-ui/src/views/report/bigscreen/designer/widget/widget.vue +++ b/report-ui/src/views/report/bigscreen/designer/widget/widget.vue @@ -103,9 +103,7 @@ export default { }, mounted() {}, methods: { - handleFocus({ index, left, top, width, height }) { - // console.log(index, left, top, width, height); - }, + handleFocus({ index, left, top, width, height }) {}, handleBlur({ index, left, top, width, height }) { this.$emit("onActivated", { index, left, top, width, height }); this.$refs.draggable.setActive(true);