| | |
| | | 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 = taggleMenu |
| | |
| | | }, |
| | | current (currentTab) { |
| | | if (this.$attrs.value === 'feishui') { |
| | | currentTab = 'EChartsHourWasteWater' |
| | | currentTab = 'EChartsRealWasteWater' |
| | | } else { |
| | | currentTab = 'EChartsHour' |
| | | currentTab = 'ECharts' |
| | | } |
| | | return currentTab |
| | | } |