| | |
| | | <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> |
| | | |
| | |
| | | EChartsDateWasteWater, |
| | | EChartsWasteWaterTable |
| | | }, |
| | | mounted () { |
| | | this.$refs.Echatrs.CreateChart() |
| | | this.$refs.Echatrs.effChartShow() |
| | | }, |
| | | 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 |
| | | } |