派生自 wuyushui/SewerAndRainNetwork

-
zhangshuaibao
2021-04-14 7b7421b05d66daef43bc675b3c227dd92bfd8d78
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
    }