派生自 wuyushui/SewerAndRainNetwork

wangqi
2021-04-15 e5f105b1acb3c63df8aac97ce1c67ad070c0de2d
src/components/BaseNav/PublicBounced/common/PublicChart.vue
@@ -51,29 +51,26 @@
    EChartsDateWasteWater,
    EChartsWasteWaterTable
  },
  mounted () {
    this.$refs.Echatrs.CreateChart()
  },
  updated () {
    this.$refs.Echats.CreateChart()
  },
  data () {
    return {
      currentTab: this.current(),
      active: '1'
      active: '0'
    }
  },
  // updated () {
  //   this.$refs.Echats.DrawEXHRealTimeDateChart()
  // },
  methods: {
    tabTaggle (taggleMenu, num) {
      this.currentTab = this.current()
      this.currentTab = taggleMenu
      this.active = num
      // debugger
    },
    current (currentTab) {
      if (this.$attrs.value === 'feishui') {
        currentTab = 'EChartsHourWasteWater'
        currentTab = 'EChartsRealWasteWater'
      } else {
        currentTab = 'EChartsHour'
        currentTab = 'ECharts'
      }
      return currentTab
    }