| | |
| | | </template> |
| | | |
| | | <script> |
| | | import ECharts from './Echarts' |
| | | import EChartsHour from './EChartsHour' |
| | | import EChartsDate from './EChartsDate' |
| | | import EChartsTable from './EChartsTable' |
| | | import ECharts from './echarts/Echarts' |
| | | import EChartsHour from './echarts/EChartsHour' |
| | | import EChartsDate from './echarts/EChartsDate' |
| | | import EChartsTable from './echarts/EChartsTable' |
| | | |
| | | import EChartsRealWasteWater from './EChartsRealWasteWater' |
| | | import EChartsHourWasteWater from './EChartsHourWasteWater' |
| | | import EChartsDateWasteWater from './EChartsDateWasteWater' |
| | | import EChartsWasteWaterTable from './EChartsWasteWaterTable' |
| | | import EChartsRealWasteWater from './echarts/EChartsRealWasteWater' |
| | | import EChartsHourWasteWater from './echarts/EChartsHourWasteWater' |
| | | import EChartsDateWasteWater from './echarts/EChartsDateWasteWater' |
| | | import EChartsWasteWaterTable from './echarts/EChartsWasteWaterTable' |
| | | |
| | | export default { |
| | | name: 'PublicChart', |
| | |
| | | }, |
| | | mounted () { |
| | | this.$refs.Echatrs.CreateChart() |
| | | this.$refs.Echatrs.effChartShow() |
| | | }, |
| | | data () { |
| | | return { |
| | | currentTab: 'EChartsHour', |
| | | currentTab: this.current(), |
| | | active: '1' |
| | | } |
| | | }, |
| | |
| | | this.currentTab = taggleMenu |
| | | this.active = num |
| | | // debugger |
| | | }, |
| | | current (currentTab) { |
| | | if (this.$attrs.value === 'feishui') { |
| | | currentTab = 'EChartsHourWasteWater' |
| | | } else { |
| | | currentTab = 'EChartsHour' |
| | | } |
| | | return currentTab |
| | | } |
| | | } |
| | | } |