From 8b8e83df0b3b5323ceaf3f8a8f1f91d21bdccd87 Mon Sep 17 00:00:00 2001 From: wangqi <magical1908@outlook.com> Date: 星期五, 09 四月 2021 10:50:38 +0800 Subject: [PATCH] 修改为div --- src/components/BaseNav/PublicBounced/GasComponents/EChartsHour.vue | 40 ++++++++++++++++++++-------------------- 1 files changed, 20 insertions(+), 20 deletions(-) diff --git a/src/components/BaseNav/PublicBounced/GasComponents/EChartsHour.vue b/src/components/BaseNav/PublicBounced/GasComponents/EChartsHour.vue index 8ea50f0..03d5345 100644 --- a/src/components/BaseNav/PublicBounced/GasComponents/EChartsHour.vue +++ b/src/components/BaseNav/PublicBounced/GasComponents/EChartsHour.vue @@ -309,26 +309,26 @@ return options } }, - methods: { - onSubmit () { - console.log('submit!') - }, - drawChart: function () { - const myChart = this.$echarts.init(this.$refs.main) - myChart.setOption(this.options) - window.onresize = function () { - var h1 = document.documentElement.clientHeight// 鑾峰彇灞忓箷鐨勯珮搴� - if (h1 > 700) { - myChart.getDom().style.height = 3 + 'rem' - myChart.getDom().style.width = 6 + 'rem' - } else { - myChart.getDom().style.height = 3 + 'rem' - myChart.getDom().style.width = 6 + 'rem' - } - myChart.resize() - } - } - }, + // methods: { + // // onSubmit () { + // // console.log('submit!') + // // }, + // drawChart: function () { + // const myChart = this.$echarts.init(this.$refs.main) + // myChart.setOption(this.options) + // window.onresize = function () { + // var h1 = document.documentElement.clientHeight// 鑾峰彇灞忓箷鐨勯珮搴� + // if (h1 > 700) { + // myChart.getDom().style.height = 3 + 'rem' + // myChart.getDom().style.width = 6 + 'rem' + // } else { + // myChart.getDom().style.height = 3 + 'rem' + // myChart.getDom().style.width = 6 + 'rem' + // } + // myChart.resize() + // } + // } + // }, mounted () { this.$nextTick(() => { this.drawChart() -- Gitblit v1.8.0