| | |
| | | <template> |
| | | <!-- 污染物消减量 --> |
| | | <div class="panel"> |
| | | <div class="panel-header">近一年用水量统计</div> |
| | | <div class="panel-header">近一年充值金额</div> |
| | | <div> |
| | | <line-chart :chart-data="chartData" :width="'100%'" :height="'22vh'"></line-chart> |
| | | </div> |
| | |
| | | export default { |
| | | components: { |
| | | // mainEcharts, |
| | | lineChart |
| | | lineChart, |
| | | }, |
| | | data() { |
| | | return { |
| | | datetiems: [], |
| | | chartData: { |
| | | chartType:'portrait', |
| | | time: [], |
| | | // time: ['2024-05','2024-04','2024-03','2024-02','2024-01','2023-12'], |
| | | Data: [ |
| | | { |
| | | // data: ['20','40','50','40','60','79','30','38','46','99','88','99'], |
| | | data: [], |
| | | type: 'line', |
| | | data: ['20','40','50','40','60','79','30','38','46','99','88','99'], |
| | | // data: [], |
| | | type: 'bar', |
| | | // name: 'BOD', |
| | | connectNulls: true, |
| | | smooth: true, |
| | |
| | | }, |
| | | mounted() { |
| | | this.getEchartData() |
| | | // this.chartData.time = this.getlastYearMonth().reverse() |
| | | this.chartData.time = this.getlastYearMonth().reverse() |
| | | }, |
| | | methods: { |
| | | getEchartData() { |