From 2e0c26ba23e3b8ebdaed0b38e87526cce94bf215 Mon Sep 17 00:00:00 2001 From: wangqi <magical1908@outlook.com> Date: 星期三, 14 四月 2021 19:39:20 +0800 Subject: [PATCH] Merge branch 'develop' of http://xearth.cn:6600/r/wuyushui/SewerAndRainNetwork into develop --- src/components/BaseNav/PublicBounced/common/PublicChart.vue | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/BaseNav/PublicBounced/common/PublicChart.vue b/src/components/BaseNav/PublicBounced/common/PublicChart.vue index 0e5fe9f..0428a38 100644 --- a/src/components/BaseNav/PublicBounced/common/PublicChart.vue +++ b/src/components/BaseNav/PublicBounced/common/PublicChart.vue @@ -24,7 +24,7 @@ <span >瓒呮爣</span> <i style=" background: orange;"></i> </div> - <component :is="currentTab" v-bind="$attrs" ref="Echatrs"></component> + <component :is="currentTab" v-bind="$attrs" ref="Echats"></component> </div> </template> @@ -53,7 +53,9 @@ }, mounted () { this.$refs.Echatrs.CreateChart() - this.$refs.Echatrs.effChartShow() + }, + updated () { + this.$refs.Echats.CreateChart() }, data () { return { @@ -63,17 +65,15 @@ }, methods: { tabTaggle (taggleMenu, num) { - this.currentTab = taggleMenu + this.currentTab = this.current() this.active = num // debugger }, current (currentTab) { if (this.$attrs.value === 'feishui') { currentTab = 'EChartsHourWasteWater' - console.log(currentTab) } else { currentTab = 'EChartsHour' - console.log(currentTab) } return currentTab } -- Gitblit v1.8.0