From 16a8e97d34dd90cf54f0607fcb9a3a27c12db319 Mon Sep 17 00:00:00 2001 From: hanbaoshan <hanbaoshan@aiotlink.com> Date: 星期一, 25 一月 2021 10:32:40 +0800 Subject: [PATCH] 朔黄视频检索详情调整 --- src/pages/shuohuangMonitorAnalyze/components/charts/line.vue | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/pages/shuohuangMonitorAnalyze/components/charts/line.vue b/src/pages/shuohuangMonitorAnalyze/components/charts/line.vue index c2c3a19..ba22ac6 100644 --- a/src/pages/shuohuangMonitorAnalyze/components/charts/line.vue +++ b/src/pages/shuohuangMonitorAnalyze/components/charts/line.vue @@ -1,5 +1,5 @@ <template> - <div ref="lineChart"></div> + <div ref="lineChart" style="width:100%;height:100%"></div> </template> <script> @@ -9,12 +9,12 @@ type: Object } }, - mounted(){ + mounted () { this.initLineChart(); }, - methods:{ - initLineChart(){ - this.$$nextTick(()=>{ + methods: { + initLineChart () { + this.$nextTick(() => { let dom = this.$echarts.init(this.$refs['lineChart']); dom.setOption(this.options); }) -- Gitblit v1.8.0