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()