| | |
| | | <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> |
| | | |
| | |
| | | }, |
| | | mounted () { |
| | | this.$refs.Echatrs.CreateChart() |
| | | this.$refs.Echatrs.effChartShow() |
| | | }, |
| | | updated () { |
| | | this.$refs.Echats.CreateChart() |
| | | }, |
| | | data () { |
| | | return { |
| | |
| | | current (currentTab) { |
| | | if (this.$attrs.value === 'feishui') { |
| | | currentTab = 'EChartsHourWasteWater' |
| | | console.log(currentTab) |
| | | } else { |
| | | currentTab = 'EChartsHour' |
| | | console.log(currentTab) |
| | | } |
| | | return currentTab |
| | | } |