From 59b40fefe994f8b51c355ae3dfb6042f9e19ec55 Mon Sep 17 00:00:00 2001 From: lb Date: Wed, 23 Nov 2022 16:21:09 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E5=AE=9E=E6=97=B6=E4=BA=A7=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../RightContentRealtimeProduction.vue | 452 +++++++++--------- src/views/3DOverview/index.vue | 4 +- .../components/mixins/resize.js | 8 +- 3 files changed, 241 insertions(+), 223 deletions(-) diff --git a/src/views/3DOverview/components/RightContentRealtimeProduction.vue b/src/views/3DOverview/components/RightContentRealtimeProduction.vue index 607ee39..78b72b9 100644 --- a/src/views/3DOverview/components/RightContentRealtimeProduction.vue +++ b/src/views/3DOverview/components/RightContentRealtimeProduction.vue @@ -15,6 +15,224 @@ diff --git a/src/views/3DOverview/index.vue b/src/views/3DOverview/index.vue index bf8c671..cd70f2f 100644 --- a/src/views/3DOverview/index.vue +++ b/src/views/3DOverview/index.vue @@ -258,7 +258,7 @@ export default { /* 实时产量和能耗 */ .realtime { - height: calc(256px * var(--beilv)); + height: calc(240px * var(--beilv)); } /* 工序质量分析 */ .ws-quality { @@ -268,7 +268,7 @@ export default { } /* 产线成品率 */ .production { - height: calc(256px * var(--beilv)); + height: calc(220px * var(--beilv)); position: relative; } diff --git a/src/views/OperationalOverview/components/mixins/resize.js b/src/views/OperationalOverview/components/mixins/resize.js index 234953b..945aef6 100644 --- a/src/views/OperationalOverview/components/mixins/resize.js +++ b/src/views/OperationalOverview/components/mixins/resize.js @@ -10,7 +10,13 @@ export default { mounted() { this.$_resizeHandler = debounce(() => { if (this.chart) { - this.chart.resize() + if (this.setChartOption) { + this.setChartOption() + this.$nextTick(() => { + this.chart.resize() + }) + } else + this.chart.resize() } }, 100) this.$_initResizeEvent()