派生自 wuyushui/SewerAndRainNetwork

徐旺旺
2021-04-14 a69bdb807b6cfaa5caba610ead85c0c9360e6cfb
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 {
@@ -70,10 +72,8 @@
    current (currentTab) {
      if (this.$attrs.value === 'feishui') {
        currentTab = 'EChartsHourWasteWater'
        console.log(currentTab)
      } else {
        currentTab = 'EChartsHour'
        console.log(currentTab)
      }
      return currentTab
    }